Home
last modified time | relevance | path

Searched full:handle (Results 1 – 25 of 6926) sorted by relevance

12345678910>>...278

/freebsd-src/sys/dev/qat/qat_common/
H A Dqat_hal.c44 #define AE(handle, ae) ((handle)->hal_handle->aes[ae]) argument
101 qat_hal_set_live_ctx(struct icp_qat_fw_loader_handle *handle, in qat_hal_set_live_ctx() argument
105 AE(handle, ae).live_ctx_mask = ctx_mask; in qat_hal_set_live_ctx()
110 qat_hal_rd_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_rd_ae_csr() argument
118 *value = GET_AE_CSR(handle, ae, csr); in qat_hal_rd_ae_csr()
119 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_rd_ae_csr()
128 qat_hal_wr_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_wr_ae_csr() argument
136 SET_AE_CSR(handle, ae, csr, value); in qat_hal_wr_ae_csr()
137 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_wr_ae_csr()
146 qat_hal_get_wakeup_event(struct icp_qat_fw_loader_handle *handle, in qat_hal_get_wakeup_event() argument
[all …]
H A Dqat_uclo.c144 qat_uclo_wr_sram_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_sram_by_words() argument
152 if (num_in_bytes > handle->hal_sram_size) { in qat_uclo_wr_sram_by_words()
158 SRAM_WRITE(handle, addr, outval); in qat_uclo_wr_sram_by_words()
167 qat_uclo_wr_umem_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_umem_by_words() argument
180 qat_hal_wr_umem(handle, ae, addr++, 1, &outval); in qat_uclo_wr_umem_by_words()
187 qat_uclo_batch_wr_umem(struct icp_qat_fw_loader_handle *handle, in qat_uclo_batch_wr_umem() argument
203 qat_uclo_wr_umem_by_words(handle, ae, addr, value, size); in qat_uclo_batch_wr_umem()
209 qat_uclo_cleanup_batch_init_list(struct icp_qat_fw_loader_handle *handle, in qat_uclo_cleanup_batch_init_list() argument
250 qat_uclo_fetch_initmem_ae(struct icp_qat_fw_loader_handle *handle, in qat_uclo_fetch_initmem_ae() argument
255 struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle; in qat_uclo_fetch_initmem_ae()
[all …]
/freebsd-src/lib/libc/nameser/
H A Dns_parse.c73 int ns_msg_getflag(ns_msg handle, int flag) { in ns_msg_getflag() argument
74 return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift); in ns_msg_getflag()
102 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in ns_initparse() argument
106 handle->_msg = msg; in ns_initparse()
107 handle->_eom = eom; in ns_initparse()
110 NS_GET16(handle->_id, msg); in ns_initparse()
113 NS_GET16(handle->_flags, msg); in ns_initparse()
117 NS_GET16(handle->_counts[i], msg); in ns_initparse()
120 if (handle->_counts[i] == 0) in ns_initparse()
121 handle->_sections[i] = NULL; in ns_initparse()
[all …]
/freebsd-src/contrib/libpcap/
H A Dpcap-netfilter-linux.c84 static int nfqueue_send_verdict(const pcap_t *handle, uint16_t group_id, u_int32_t id, u_int32_t verdict);
88 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user)
90 struct pcap_netfilter *handlep = handle->priv; in netfilter_read_linux() argument
98 if (handle->break_loop) { in netfilter_read_linux()
104 handle->break_loop = 0; in netfilter_read_linux()
107 len = handle->cc; in netfilter_read_linux()
115 * to set handle->break_loop (we ignore it on other in netfilter_read_linux()
119 len = recv(handle->fd, handle->buffer, handle in netfilter_read_linux()
310 netfilter_set_datalink(pcap_t * handle,int dlt) netfilter_set_datalink() argument
317 netfilter_stats_linux(pcap_t * handle,struct pcap_stat * stats) netfilter_stats_linux() argument
328 netfilter_inject_linux(pcap_t * handle,const void * buf _U_,int size _U_) netfilter_inject_linux() argument
342 netfilter_send_config_msg(const pcap_t * handle,uint16_t msg_type,int ack,u_int8_t family,u_int16_t res_id,const struct my_nfattr * mynfa) netfilter_send_config_msg() argument
430 nflog_send_config_msg(const pcap_t * handle,uint8_t family,u_int16_t group_id,const struct my_nfattr * mynfa) nflog_send_config_msg() argument
436 nflog_send_config_cmd(const pcap_t * handle,uint16_t group_id,u_int8_t cmd,u_int8_t family) nflog_send_config_cmd() argument
451 nflog_send_config_mode(const pcap_t * handle,uint16_t group_id,u_int8_t copy_mode,u_int32_t copy_range) nflog_send_config_mode() argument
467 nfqueue_send_verdict(const pcap_t * handle,uint16_t group_id,u_int32_t id,u_int32_t verdict) nfqueue_send_verdict() argument
483 nfqueue_send_config_msg(const pcap_t * handle,uint8_t family,u_int16_t group_id,const struct my_nfattr * mynfa) nfqueue_send_config_msg() argument
489 nfqueue_send_config_cmd(const pcap_t * handle,uint16_t group_id,u_int8_t cmd,u_int16_t pf) nfqueue_send_config_cmd() argument
505 nfqueue_send_config_mode(const pcap_t * handle,uint16_t group_id,u_int8_t copy_mode,u_int32_t copy_range) nfqueue_send_config_mode() argument
521 netfilter_activate(pcap_t * handle) netfilter_activate() argument
[all...]
H A Dpcap-rdmasniff.c65 rdmasniff_stats(pcap_t *handle, struct pcap_stat *stat)
67 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_stats() argument
77 rdmasniff_cleanup(pcap_t *handle)
79 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_cleanup() argument
90 pcapint_cleanup_live_common(handle); in rdmasniff_cleanup()
94 rdmasniff_post_recv(pcap_t *handle, uint64_t wr_id)
96 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_post_recv() argument
101 sg_entry.addr = (uintptr_t) handle->buffer + RDMASNIFF_RECEIVE_SIZE * wr_id; in rdmasniff_post_recv()
113 rdmasniff_read(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user)
115 struct pcap_rdmasniff *priv = handle argument
196 pcap_t *handle = sp->pd; rdmasniff_oneshot() local
205 rdmasniff_activate(pcap_t * handle) rdmasniff_activate() argument
[all...]
H A Dpcap-haiku.cpp
H A Dpcap-bt-monitor-linux.c93 bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user)
104 pktd = (u_char *)handle->buffer + BT_CONTROL_SIZE; in bt_monitor_read()
110 iv[1].iov_len = handle->snapshot; in bt_monitor_read()
116 msg.msg_control = handle->buffer; in bt_monitor_read()
120 if (handle->break_loop) in bt_monitor_read()
122 handle->break_loop = 0; in bt_monitor_read()
125 ret = recvmsg(handle->fd, &msg, 0); in bt_monitor_read()
133 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, in bt_monitor_read()
155 if (handle->fcode.bf_insns == NULL || in bt_monitor_read()
156 pcapint_filter(handle in bt_monitor_read()
94 bt_monitor_read(pcap_t * handle,int max_packets _U_,pcap_handler callback,u_char * user) bt_monitor_read() argument
162 bt_monitor_inject(pcap_t * handle,const void * buf _U_,int size _U_) bt_monitor_inject() argument
180 bt_monitor_activate(pcap_t * handle) bt_monitor_activate() argument
[all...]
H A Dpcap-bt-linux.c192 bt_activate(pcap_t* handle)
194 struct pcap_bt *handlep = handle->priv; in bt_activate()
202 if (sscanf(handle->opt.device, BT_IFACE"%d", &dev_id) != 1) in bt_activate()
204 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in bt_activate()
206 handle->opt.device); in bt_activate()
218 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in bt_activate()
219 handle->snapshot = MAXIMUM_SNAPLEN; in bt_activate()
222 handle->bufsize = BT_CTRL_SIZE+sizeof(pcap_bluetooth_h4_header)+handle in bt_activate()
193 bt_activate(pcap_t * handle) bt_activate() argument
319 bt_read_linux(pcap_t * handle,int max_packets _U_,pcap_handler callback,u_char * user) bt_read_linux() argument
405 bt_inject_linux(pcap_t * handle,const void * buf _U_,int size _U_) bt_inject_linux() argument
414 bt_stats_linux(pcap_t * handle,struct pcap_stat * stats) bt_stats_linux() argument
[all...]
H A Dpcap-dbus.c52 dbus_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user)
54 struct pcap_dbus *handlep = handle->priv; in dbus_read() argument
67 /* XXX handle->opt.timeout = timeout_ms; */ in dbus_read()
69 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Connection closed"); in dbus_read()
73 if (handle->break_loop) { in dbus_read()
74 handle->break_loop = 0; in dbus_read()
82 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Disconnected"); in dbus_read()
88 /* pkth.caplen = min (payload_len, handle->snapshot); */ in dbus_read()
91 if (handle->fcode.bf_insns == NULL || in dbus_read()
92 pcapint_filter(handle in dbus_read()
106 dbus_write(pcap_t * handle,const void * buf,int size) dbus_write() argument
128 dbus_stats(pcap_t * handle,struct pcap_stat * stats) dbus_stats() argument
139 dbus_cleanup(pcap_t * handle) dbus_cleanup() argument
171 dbus_activate(pcap_t * handle) dbus_activate() argument
[all...]
H A Dpcap-linux.c247 static void destroy_ring(pcap_t *handle);
248 static int create_ring(pcap_t *handle);
249 static int prepare_tpacket_socket(pcap_t *handle);
320 static int enter_rfmon_mode(pcap_t *handle, int sock_fd,
322 static int iface_get_ts_types(const char *device, pcap_t *handle,
324 static int iface_get_offload(pcap_t *handle);
326 static int fix_program(pcap_t *handle, struct sock_fprog *fcode);
327 static int fix_offset(pcap_t *handle, struct bpf_insn *p);
328 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
329 static int reset_kernel_filter(pcap_t *handle);
341 pcap_t *handle; pcap_create_interface() local
439 get_mac80211_phydev(pcap_t * handle,const char * device,char * phydev_path,size_t phydev_max_pathlen) get_mac80211_phydev() argument
481 nl80211_init(pcap_t * handle,struct nl80211_state * state,const char * device) nl80211_init() argument
535 add_mon_if(pcap_t * handle,int sock_fd,struct nl80211_state * state,const char * device,const char * mondevice) add_mon_if() argument
640 del_mon_if(pcap_t * handle,int sock_fd,struct nl80211_state * state,const char * device,const char * mondevice) del_mon_if() argument
694 pcap_protocol(pcap_t * handle) pcap_protocol() argument
706 pcap_can_set_rfmon_linux(pcap_t * handle) pcap_can_set_rfmon_linux() argument
786 pcap_cleanup_linux(pcap_t * handle) pcap_cleanup_linux() argument
940 pcap_breakloop_linux(pcap_t * handle) pcap_breakloop_linux() argument
956 set_vlan_offset(pcap_t * handle) set_vlan_offset() argument
993 pcap_activate_linux(pcap_t * handle) pcap_activate_linux() argument
1150 pcap_set_datalink_linux(pcap_t * handle,int dlt) pcap_set_datalink_linux() argument
1169 linux_check_direction(const pcap_t * handle,const struct sockaddr_ll * sll) linux_check_direction() argument
1225 device_still_exists(pcap_t * handle) device_still_exists() argument
1266 pcap_inject_linux(pcap_t * handle,const void * buf,int size) pcap_inject_linux() argument
1308 pcap_stats_linux(pcap_t * handle,struct pcap_stat * stats) pcap_stats_linux() argument
1776 pcap_setdirection_linux(pcap_t * handle,pcap_direction_t d) pcap_setdirection_linux() argument
1829 map_arphrd_to_dlt(pcap_t * handle,int arptype,const char * device,int cooked_ok) map_arphrd_to_dlt() argument
2277 set_dlt_list_cooked(pcap_t * handle) set_dlt_list_cooked() argument
2299 setup_socket(pcap_t * handle,int is_any_device) setup_socket() argument
2661 setup_mmapped(pcap_t * handle,int * status) setup_mmapped() argument
2724 init_tpacket(pcap_t * handle,int version,const char * version_str) init_tpacket() argument
2792 prepare_tpacket_socket(pcap_t * handle) prepare_tpacket_socket() argument
2869 create_ring(pcap_t * handle,int * status) create_ring() argument
3296 destroy_ring(pcap_t * handle) destroy_ring() argument
3341 pcap_t *handle = sp->pd; pcap_oneshot_linux() local
3350 pcap_getnonblock_linux(pcap_t * handle) pcap_getnonblock_linux() argument
3359 pcap_setnonblock_linux(pcap_t * handle,int nonblock) pcap_setnonblock_linux() argument
3412 pcap_get_ring_frame_status(pcap_t * handle,int offset) pcap_get_ring_frame_status() argument
3435 pcap_wait_for_frames_mmap(pcap_t * handle) pcap_wait_for_frames_mmap() argument
3789 pcap_handle_packet_mmap(pcap_t * handle,pcap_handler callback,u_char * user,unsigned char * frame,unsigned int tp_len,unsigned int tp_mac,unsigned int tp_snaplen,unsigned int tp_sec,unsigned int tp_usec,int tp_vlan_tci_valid,__u16 tp_vlan_tci,__u16 tp_vlan_tpid) pcap_handle_packet_mmap() argument
4078 pcap_read_linux_mmap_v2(pcap_t * handle,int max_packets,pcap_handler callback,u_char * user) pcap_read_linux_mmap_v2() argument
4175 pcap_read_linux_mmap_v3(pcap_t * handle,int max_packets,pcap_handler callback,u_char * user) pcap_read_linux_mmap_v3() argument
4316 pcap_setfilter_linux(pcap_t * handle,struct bpf_program * filter) pcap_setfilter_linux() argument
4647 enter_rfmon_mode(pcap_t * handle,int sock_fd,const char * device) enter_rfmon_mode() argument
4805 iface_set_all_ts_types(pcap_t * handle,char * ebuf) iface_set_all_ts_types() argument
4826 iface_get_ts_types(const char * device,pcap_t * handle,char * ebuf) iface_get_ts_types() argument
4946 iface_get_ts_types(const char * device,pcap_t * handle,char * ebuf) iface_get_ts_types() argument
5002 iface_ethtool_flag_ioctl(pcap_t * handle,int cmd,const char * cmdname,int eperm_ok) iface_ethtool_flag_ioctl() argument
5048 iface_get_offload(pcap_t * handle) iface_get_offload() argument
5139 iface_dsa_get_proto_info(const char * device,pcap_t * handle) iface_dsa_get_proto_info() argument
5261 fix_program(pcap_t * handle,struct sock_fprog * fcode) fix_program() argument
5330 fix_offset(pcap_t * handle,struct bpf_insn * p) fix_offset() argument
5415 set_kernel_filter(pcap_t * handle,struct sock_fprog * fcode) set_kernel_filter() argument
5542 reset_kernel_filter(pcap_t * handle) reset_kernel_filter() argument
[all...]
H A Dpcap-usb-linux.c224 usb_set_ring_size(pcap_t* handle, int header_size)
248 if (handle->snapshot < header_size) in usb_set_ring_size()
249 handle->snapshot = header_size; in usb_set_ring_size()
251 ring_size = (handle->snapshot - header_size) * 5; in usb_set_ring_size()
266 handle->snapshot = header_size + (MAX_RING_SIZE/5); in usb_set_ring_size()
277 if (ioctl(handle->fd, MON_IOCT_RING_SIZE, ring_size) == -1) { in usb_set_ring_size()
278 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, in usb_set_ring_size()
279 errno, "Can't set ring size from fd %d", handle->fd); in usb_set_ring_size()
286 int usb_mmap(pcap_t* handle)
288 struct pcap_usb_linux *handlep = handle argument
226 usb_set_ring_size(pcap_t * handle,int header_size) usb_set_ring_size() argument
463 usb_activate(pcap_t * handle) usb_activate() argument
621 usb_inject_linux(pcap_t * handle,const void * buf _U_,int size _U_) usb_inject_linux() argument
640 usb_stats_linux_bin(pcap_t * handle,struct pcap_stat * stats) usb_stats_linux_bin() argument
664 usb_read_linux_bin(pcap_t * handle,int max_packets _U_,pcap_handler callback,u_char * user) usb_read_linux_bin() argument
754 usb_read_linux_mmap(pcap_t * handle,int max_packets,pcap_handler callback,u_char * user) usb_read_linux_mmap() argument
934 usb_cleanup_linux_mmap(pcap_t * handle) usb_cleanup_linux_mmap() argument
[all...]
/freebsd-src/share/man/man9/
H A Dbus_space.9153 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t size"
157 .Fa "bus_space_tag_t space" "bus_space_handle_t handle"
168 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t size"
172 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
177 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
182 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
187 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
192 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
197 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
202 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
[all …]
/freebsd-src/lib/libgpio/
H A Dgpio.c71 gpio_close(gpio_handle_t handle) in gpio_close() argument
73 close(handle); in gpio_close()
77 gpio_pin_list(gpio_handle_t handle, gpio_config_t **pcfgs) in gpio_pin_list() argument
83 if (ioctl(handle, GPIOMAXPIN, &maxpins) < 0) in gpio_pin_list()
95 gpio_pin_config(handle, &cfgs[i]); in gpio_pin_list()
103 gpio_pin_config(gpio_handle_t handle, gpio_config_t *cfg) in gpio_pin_config() argument
110 if (ioctl(handle, GPIOGETCONFIG, &gppin) < 0) in gpio_pin_config()
120 gpio_pin_set_name(gpio_handle_t handle, gpio_pin_t pin, char *name) in gpio_pin_set_name() argument
129 if (ioctl(handle, GPIOSETNAME, &gppin) < 0) in gpio_pin_set_name()
136 gpio_pin_set_flags(gpio_handle_t handle, gpio_config_t *cfg) in gpio_pin_set_flags() argument
[all …]
H A Dgpio.332 .Nd "library to handle GPIO pins"
43 .Fn gpio_close "gpio_handle_t handle"
45 .Fn gpio_pin_list "gpio_handle_t handle" "gpio_config_t **pcfgs"
47 .Fn gpio_pin_config "gpio_handle_t handle" "gpio_config_t *cfg"
49 .Fn gpio_pin_set_name "gpio_handle_t handle" "gpio_pin_t pin" "char *name"
51 .Fn gpio_pin_set_flags "gpio_handle_t handle" "gpio_config_t *cfg"
53 .Fn gpio_pin_get "gpio_handle_t handle" "gpio_pin_t pin"
55 .Fn gpio_pin_set "gpio_handle_t handle" "gpio_pin_t pin" "gpio_value_t value"
57 .Fn gpio_pin_toggle "gpio_handle_t handle" "gpio_pin_t pin"
59 .Fn gpio_pin_low "gpio_handle_t handle" "gpio_pin_t pin"
[all …]
/freebsd-src/crypto/heimdal/lib/gssapi/krb5/
H A Dcopy_ccache.c74 gsskrb5_cred handle; in _gsskrb5_krb5_import_cred() local
81 handle = calloc(1, sizeof(*handle)); in _gsskrb5_krb5_import_cred()
82 if (handle == NULL) { in _gsskrb5_krb5_import_cred()
87 HEIMDAL_MUTEX_init(&handle->cred_id_mutex); in _gsskrb5_krb5_import_cred()
89 handle->usage = 0; in _gsskrb5_krb5_import_cred()
94 handle->usage |= GSS_C_INITIATE; in _gsskrb5_krb5_import_cred()
97 &handle->principal); in _gsskrb5_krb5_import_cred()
99 free(handle); in _gsskrb5_krb5_import_cred()
108 handle->principal, in _gsskrb5_krb5_import_cred()
111 krb5_free_principal(context, handle->principal); in _gsskrb5_krb5_import_cred()
[all …]
H A Dacquire_cred.c113 gsskrb5_cred handle in acquire_initiator_cred() argument
142 if (handle->principal) { in acquire_initiator_cred()
144 handle->principal, in acquire_initiator_cred()
163 } else if (handle->principal == NULL) { in acquire_initiator_cred()
164 kret = krb5_copy_principal(context, def_princ, &handle->principal); in acquire_initiator_cred()
167 } else if (handle->principal != NULL && in acquire_initiator_cred()
168 krb5_principal_compare(context, handle->principal, in acquire_initiator_cred()
179 if (handle->principal == NULL) { in acquire_initiator_cred()
180 kret = krb5_get_default_principal(context, &handle->principal); in acquire_initiator_cred()
194 handle->principal, in acquire_initiator_cred()
[all …]
H A Dadd_cred.c51 gsskrb5_cred cred, handle; in _gsskrb5_add_cred() local
54 handle = NULL; in _gsskrb5_add_cred()
99 handle = calloc(1, sizeof(*handle)); in _gsskrb5_add_cred()
100 if (handle == NULL) { in _gsskrb5_add_cred()
106 handle->usage = cred_usage; in _gsskrb5_add_cred()
107 handle->lifetime = cred->lifetime; in _gsskrb5_add_cred()
108 handle->principal = NULL; in _gsskrb5_add_cred()
109 handle->keytab = NULL; in _gsskrb5_add_cred()
110 handle->ccache = NULL; in _gsskrb5_add_cred()
111 handle->mechanisms = NULL; in _gsskrb5_add_cred()
[all …]
/freebsd-src/sys/dev/qat/include/common/
H A Dicp_qat_hal.h144 #define CAP_CSR_ADDR(csr) (csr + handle->hal_cap_g_ctl_csr_addr_v)
145 #define SET_CAP_CSR(handle, csr, val) \ argument
146 ADF_CSR_WR(handle->hal_misc_addr_v, CAP_CSR_ADDR(csr), val)
147 #define GET_CAP_CSR(handle, csr) \ argument
148 ADF_CSR_RD(handle->hal_misc_addr_v, CAP_CSR_ADDR(csr))
149 #define SET_GLB_CSR(handle, csr, val) \ argument
151 u32 dev_id = pci_get_device(GET_DEV((handle)->accel_dev)); \
153 SET_CAP_CSR((handle), (csr), (val)) : \
154 SET_CAP_CSR((handle), (csr) + GLOBAL_CSR, val); \
156 #define GET_GLB_CSR(handle, csr) \ argument
[all …]
/freebsd-src/contrib/ntp/include/
H A Dtimepps-SCO.h204 * create PPS handle from file descriptor
210 pps_handle_t *handle /* returned handle */ in time_pps_create() argument
219 if (!handle) { in time_pps_create()
228 *handle = malloc(sizeof(pps_unit_t)); in time_pps_create()
229 if (!(*handle)) { in time_pps_create()
234 memset(*handle, 0, sizeof(pps_unit_t)); in time_pps_create()
235 (*handle)->filedes = filedes; in time_pps_create()
236 (*handle)->params.api_version = PPS_API_VERS_1; in time_pps_create()
237 (*handle)->params.mode = PPS_CAPTUREASSERT | PPS_TSFMT_TSPEC; in time_pps_create()
242 * release PPS handle
[all …]
H A Dtimepps-SunOS.h202 * create PPS handle from file descriptor
208 pps_handle_t *handle /* returned handle */ in time_pps_create() argument
215 if (!handle) { in time_pps_create()
229 *handle = malloc(sizeof(pps_unit_t)); in time_pps_create()
230 if (!(*handle)) { in time_pps_create()
235 memset(*handle, 0, sizeof(pps_unit_t)); in time_pps_create()
236 (*handle)->filedes = filedes; in time_pps_create()
237 (*handle)->params.api_version = PPS_API_VERS_1; in time_pps_create()
238 (*handle)->params.mode = PPS_CAPTUREASSERT | PPS_TSFMT_TSPEC; in time_pps_create()
243 * release PPS handle
[all …]
/freebsd-src/contrib/less/
H A Dlglob.h47 #define GLOB_FIRST_FAILED(handle) ((handle) != 0) argument
48 #define GLOB_NEXT_NAME(handle,fndp) _dos_findnext(fndp) argument
49 #define GLOB_NAME_DONE(handle) argument
51 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \ argument
57 int handle;
62 #define GLOB_FIRST_FAILED(handle) ((handle) == -1) argument
63 #define GLOB_NEXT_NAME(handle,fndp) _findnext(handle, fnd argument
64 GLOB_NAME_DONE(handle) global() argument
66 DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) global() argument
78 GLOB_FIRST_FAILED(handle) global() argument
79 GLOB_NEXT_NAME(handle,fndp) global() argument
80 GLOB_NAME_DONE(handle) global() argument
82 DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) global() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Support/
H A DDynamicLibrary.cpp32 static void DLClose(void *Handle);
33 static void *DLSym(void *Handle, const char *Symbol);
38 HandleList::iterator Find(void *Handle) { return find(Handles, Handle); } in Find() argument
40 bool Contains(void *Handle) { in Contains() argument
41 return Handle == Process || Find(Handle) != Handles.end(); in Contains()
44 bool AddLibrary(void *Handle, bool IsProcess = false, bool CanClose = true, in AddLibrary() argument
47 assert((Handle == this ? IsProcess : !IsProcess) && "Bad Handle."); in AddLibrary()
53 if (!AllowDuplicates && Find(Handle) != Handles.end()) { in AddLibrary()
55 DLClose(Handle); in AddLibrary()
58 Handles.push_back(Handle); in AddLibrary()
[all …]
/freebsd-src/contrib/libcbor/test/
H A Dmap_test.c48 struct cbor_pair *handle = cbor_map_handle(map); in test_simple_map() local
49 assert_uint8(handle[0].key, 1); in test_simple_map()
50 assert_uint8(handle[0].value, 2); in test_simple_map()
51 assert_uint8(handle[1].key, 3); in test_simple_map()
52 assert_uint8(handle[1].value, 4); in test_simple_map()
68 struct cbor_pair *handle = cbor_map_handle(map); in test_indef_simple_map() local
69 assert_uint8(handle[0].key, 1); in test_indef_simple_map()
70 assert_uint8(handle[0].value, 2); in test_indef_simple_map()
71 assert_uint8(handle[1].key, 3); in test_indef_simple_map()
72 assert_uint8(handle[1].value, 4); in test_indef_simple_map()
[all …]
/freebsd-src/contrib/netbsd-tests/libexec/ld.elf_so/
H A Dt_dlvsym.c45 void *handle; in ATF_TC_BODY() local
53 handle = dlopen("libh_helper_symver_dso.so", RTLD_LAZY); in ATF_TC_BODY()
56 ATF_CHECK(handle != NULL); in ATF_TC_BODY()
58 sym = dlvsym(handle, "testfunc", "V_1"); in ATF_TC_BODY()
65 dlclose(handle); in ATF_TC_BODY()
77 void *handle; in ATF_TC_BODY() local
85 handle = dlopen("libh_helper_symver_dso.so", RTLD_LAZY); in ATF_TC_BODY()
88 ATF_CHECK(handle != NULL); in ATF_TC_BODY()
90 sym = dlvsym(handle, "testfunc", "V_3"); in ATF_TC_BODY()
97 dlclose(handle); in ATF_TC_BODY()
[all …]
/freebsd-src/contrib/opencsd/decoder/source/c_api/
H A Docsd_c_api.cpp58 static ocsd_err_t ocsd_check_and_add_mem_acc_mapper(const dcd_tree_handle_t handle, DecodeTree **pp…
94 dcd_tree_handle_t handle = C_API_INVALID_TREE_HANDLE; in ocsd_create_dcd_tree() local
95 handle = (dcd_tree_handle_t)DecodeTree::CreateDecodeTree(src_type,deformatterCfgFlags); in ocsd_create_dcd_tree()
96 if(handle != C_API_INVALID_TREE_HANDLE) in ocsd_create_dcd_tree()
101 s_data_map.insert(std::pair<dcd_tree_handle_t, lib_dt_data_list *>(handle,pList)); in ocsd_create_dcd_tree()
105 ocsd_destroy_dcd_tree(handle); in ocsd_create_dcd_tree()
106 handle = C_API_INVALID_TREE_HANDLE; in ocsd_create_dcd_tree()
109 return handle; in ocsd_create_dcd_tree()
112 OCSD_C_API void ocsd_destroy_dcd_tree(const dcd_tree_handle_t handle) in ocsd_destroy_dcd_tree() argument
114 if(handle != C_API_INVALID_TREE_HANDLE) in ocsd_destroy_dcd_tree()
[all …]

12345678910>>...278