Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 1539) sorted by relevance

12345678910>>...62

/freebsd/sys/dev/qat/qat_common/
H A Dqat_hal.c44 #define AE(handle, ae) ((handle)->hal_handle->aes[ae]) argument
571 SET_GLB_CSR(handle, in qat_hal_reset_timestamp()
1031 handle = malloc(sizeof(*handle), M_QAT, M_WAITOK | M_ZERO); in qat_hal_init()
1057 handle->fw_auth = (pci_get_device(GET_DEV(handle->accel_dev)) == in qat_hal_init()
1061 if (handle->fw_auth && qat_hal_check_imr(handle)) { in qat_hal_init()
1067 handle->hal_handle = in qat_hal_init()
1126 free(handle, M_QAT); in qat_hal_init()
1133 if (!handle) in qat_hal_deinit()
1136 free(handle, M_QAT); in qat_hal_deinit()
1149 if (handle->fw_auth) { in qat_hal_start()
[all …]
H A Dqat_uclo.c450 handle, in qat_uclo_init_ustore()
1010 handle, in qat_uclo_init_reg_sym()
1202 if (qat_uclo_map_ae(handle, handle->hal_handle->ae_max_num)) { in qat_uclo_parse_uof_obj()
1530 SET_FCU_CSR(handle, in qat_uclo_broadcast_load_fw()
1558 SET_FCU_CSR(handle, in qat_uclo_broadcast_load_fw()
1753 SET_FCU_CSR(handle, in qat_uclo_load_fw()
1809 if (handle->fw_auth) { in qat_uclo_wr_mimage()
2176 if (handle->mobj_handle) in qat_uclo_del_obj()
2178 if (handle->sobj_handle) in qat_uclo_del_obj()
2337 qat_hal_set_pc(handle, in qat_uclo_wr_uimage_page()
[all …]
/freebsd/lib/libc/nameser/
H A Dns_parse.c157 b = ns_skiprr(handle->_msg_ptr, handle->_eom, section, in ns_parserr()
167 b = dn_expand(handle->_msg, handle->_eom, in ns_parserr()
172 if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom) in ns_parserr()
181 if (handle->_msg_ptr + NS_INT32SZ + NS_INT16SZ > handle->_eom) in ns_parserr()
185 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr()
190 if (++handle->_rrnum > handle->_counts[(int)section]) in ns_parserr()
219 b = ns_skiprr(handle->_msg_ptr, handle->_eom, section, in ns_parserr2()
229 b = ns_name_unpack2(handle->_msg, handle->_eom, handle->_msg_ptr, in ns_parserr2()
234 if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom) in ns_parserr2()
247 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr2()
[all …]
/freebsd/contrib/libpcap/
H A Dpcap-linux.c380 return handle; in pcap_create_interface()
803 ret = del_mon_if(handle, handle->fd, &nlstate, in pcap_cleanup_linux()
1113 handle->errbuf, pcap_protocol(handle))) != 0) { in pcap_activate_linux()
1140 handle->selectable_fd = handle->fd; in pcap_activate_linux()
2609 handle->bufsize = handle->snapshot; in setup_socket()
2969 mtu = iface_get_mtu(handle->fd, handle->opt.device, in create_ring()
4124 handle, in pcap_read_linux_mmap_v2()
4161 if (++handle->offset >= handle->cc) in pcap_read_linux_mmap_v2()
4249 handle, in pcap_read_linux_mmap_v3()
4292 if (++handle->offset >= handle->cc) in pcap_read_linux_mmap_v3()
[all …]
H A Dpcap-netfilter-linux.c109 len = handle->cc; in netfilter_read_linux()
121 len = recv(handle->fd, handle->buffer, handle->bufsize, 0); in netfilter_read_linux()
138 bp = handle->bp; in netfilter_read_linux()
162 handle->bp = bp; in netfilter_read_linux()
297 handle->bp = bp; in netfilter_read_linux()
300 handle->cc = 0; in netfilter_read_linux()
305 handle->cc = 0; in netfilter_read_linux()
590 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in netfilter_activate()
594 handle->bufsize = 128 + handle->snapshot; in netfilter_activate()
625 handle->buffer = malloc(handle->bufsize); in netfilter_activate()
[all …]
H A Dpcap-usb-linux.c476 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in usb_activate()
480 handle->bufsize = handle->snapshot; in usb_activate()
481 handle->offset = 0; in usb_activate()
506 if (handle->fd < 0) in usb_activate()
559 close(handle->fd); in usb_activate()
579 handle->selectable_fd = handle->fd; in usb_activate()
593 close(handle->fd); in usb_activate()
606 handle->selectable_fd = handle->fd; in usb_activate()
610 handle->buffer = malloc(handle->bufsize); in usb_activate()
738 pcap_filter(handle->fcode.bf_insns, handle->buffer, in usb_read_linux_bin()
[all …]
H A Dpcap-bt-linux.c193 bt_activate(pcap_t* handle) in bt_activate() argument
207 handle->opt.device); in bt_activate()
219 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in bt_activate()
223 handle->bufsize = BT_CTRL_SIZE+sizeof(pcap_bluetooth_h4_header)+handle->snapshot; in bt_activate()
238 if (handle->fd < 0) { in bt_activate()
244 handle->buffer = malloc(handle->bufsize); in bt_activate()
245 if (!handle->buffer) { in bt_activate()
289 if (handle->opt.rfmon) { in bt_activate()
310 handle->selectable_fd = handle->fd; in bt_activate()
344 if (handle->break_loop) in bt_read_linux()
[all …]
H A Dpcap-haiku.cpp55 u_char* buffer = (u_char*)handle->buffer + handle->offset; in pcap_read_haiku()
59 if (handle->break_loop) { in pcap_read_haiku()
62 handle->break_loop = 0; in pcap_read_haiku()
67 bytesReceived = recvfrom(handle->fd, buffer, handle->bufsize, MSG_TRUNC, in pcap_read_haiku()
77 snprintf(handle->errbuf, sizeof(handle->errbuf), in pcap_read_haiku()
170 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in pcap_activate_haiku()
184 handle->buffer = (u_char*)malloc(handle->bufsize); in pcap_activate_haiku()
191 handle->offset = 0; in pcap_activate_haiku()
256 if (handle == NULL) { in pcap_create_interface()
263 handle->fd = socket; in pcap_create_interface()
[all …]
H A Dpcap-dbus.c75 if (handle->break_loop) { in dbus_read()
76 handle->break_loop = 0; in dbus_read()
139 dbus_cleanup(pcap_t *handle) in dbus_cleanup() argument
171 dbus_activate(pcap_t *handle) in dbus_activate() argument
225 handle->bufsize = 0; in dbus_activate()
226 handle->offset = 0; in dbus_activate()
261 handle->selectable_fd = handle->fd = -1; in dbus_activate()
264 if (handle->opt.rfmon) { in dbus_activate()
268 dbus_cleanup(handle); in dbus_activate()
277 if (handle->snapshot <= 0 || handle->snapshot > 134217728) in dbus_activate()
[all …]
H A Dpcap-bt-monitor-linux.c111 iv[1].iov_len = handle->snapshot; in bt_monitor_read()
117 msg.msg_control = handle->buffer; in bt_monitor_read()
122 if (handle->break_loop) in bt_monitor_read()
124 handle->break_loop = 0; in bt_monitor_read()
180 bt_monitor_activate(pcap_t* handle) in bt_monitor_activate() argument
186 if (handle->opt.rfmon) { in bt_monitor_activate()
199 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in bt_monitor_activate()
215 if (handle->fd < 0) { in bt_monitor_activate()
221 handle->buffer = malloc(handle->bufsize); in bt_monitor_activate()
222 if (!handle->buffer) { in bt_monitor_activate()
[all …]
H A Dpcap-rdmasniff.c79 rdmasniff_cleanup(pcap_t *handle) in rdmasniff_cleanup() argument
130 if (handle->break_loop) { in rdmasniff_read()
131 handle->break_loop = 0; in rdmasniff_read()
183 if (handle->break_loop) { in rdmasniff_read()
184 handle->break_loop = 0; in rdmasniff_read()
196 pcap_t *handle = sp->pd; in rdmasniff_oneshot() local
286 handle->buffer = malloc(handle->bufsize); in rdmasniff_activate()
287 if (!handle->buffer) { in rdmasniff_activate()
300 priv->mr = ibv_reg_mr(priv->pd, handle->buffer, handle->bufsize, IBV_ACCESS_LOCAL_WRITE); in rdmasniff_activate()
319 if (handle->snapshot <= 0 || handle->snapshot > RDMASNIFF_RECEIVE_SIZE) in rdmasniff_activate()
[all …]
/freebsd/lib/libgpio/
H A Dgpio.c71 gpio_close(gpio_handle_t handle) in gpio_close() argument
73 close(handle); in gpio_close()
83 if (ioctl(handle, GPIOMAXPIN, &maxpins) < 0) in gpio_pin_list()
95 gpio_pin_config(handle, &cfgs[i]); in gpio_pin_list()
110 if (ioctl(handle, GPIOGETCONFIG, &gppin) < 0) in gpio_pin_config()
129 if (ioctl(handle, GPIOSETNAME, &gppin) < 0) in gpio_pin_set_name()
157 if (ioctl(handle, GPIOGET, &gpreq) < 0) in gpio_pin_get()
173 if (ioctl(handle, GPIOSET, &gpreq) < 0) in gpio_pin_set()
186 if (ioctl(handle, GPIOTOGGLE, &gpreq) < 0) in gpio_pin_toggle()
211 if (gpio_pin_config(handle, &cfg) < 0) in gpio_pin_set_flag()
[all …]
/freebsd/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()
89 handle->usage = 0; in _gsskrb5_krb5_import_cred()
99 free(handle); in _gsskrb5_krb5_import_cred()
112 free(handle); in _gsskrb5_krb5_import_cred()
122 handle->principal, in _gsskrb5_krb5_import_cred()
123 &handle->lifetime); in _gsskrb5_krb5_import_cred()
126 free(handle); in _gsskrb5_krb5_import_cred()
183 if (handle->ccache) in _gsskrb5_krb5_import_cred()
185 if (handle->keytab) in _gsskrb5_krb5_import_cred()
[all …]
H A Dacquire_cred.c113 gsskrb5_cred handle in acquire_initiator_cred() argument
194 handle->principal, in acquire_initiator_cred()
231 handle->principal, in acquire_initiator_cred()
232 &handle->lifetime); in acquire_initiator_cred()
264 gsskrb5_cred handle in acquire_acceptor_cred() argument
379 gsskrb5_cred handle; in _gsskrb5_acquire_cred_ext() local
393 handle = calloc(1, sizeof(*handle)); in _gsskrb5_acquire_cred_ext()
406 free(handle); in _gsskrb5_acquire_cred_ext()
418 free(handle); in _gsskrb5_acquire_cred_ext()
430 free(handle); in _gsskrb5_acquire_cred_ext()
[all …]
H A Dadd_cred.c54 handle = NULL; in _gsskrb5_add_cred()
99 handle = calloc(1, sizeof(*handle)); in _gsskrb5_add_cred()
100 if (handle == NULL) { in _gsskrb5_add_cred()
109 handle->keytab = NULL; in _gsskrb5_add_cred()
110 handle->ccache = NULL; in _gsskrb5_add_cred()
120 free(handle); in _gsskrb5_add_cred()
166 handle->ccache); in _gsskrb5_add_cred()
225 if (handle) { in _gsskrb5_add_cred()
228 if (handle->keytab) in _gsskrb5_add_cred()
230 if (handle->ccache) in _gsskrb5_add_cred()
[all …]
/freebsd/sys/dev/qat/include/common/
H A Dicp_qat_hal.h148 ADF_CSR_RD(handle->hal_misc_addr_v, CAP_CSR_ADDR(csr))
165 typeof(handle) handle_ = (handle); \
181 typeof(handle) handle_ = (handle); \
191 ((handle)->hal_cap_ae_local_csr_addr_v + ((ae) << 12))
192 #define AE_CSR_ADDR(handle, ae, csr) (AE_CSR(handle, ae) + (0x3ff & (csr))) argument
194 ADF_CSR_WR(handle->hal_misc_addr_v, AE_CSR_ADDR(handle, ae, csr), val)
196 ADF_CSR_RD(handle->hal_misc_addr_v, AE_CSR_ADDR(handle, ae, csr))
198 ((handle)->hal_cap_ae_xfer_csr_addr_v + ((ae) << 12))
200 (AE_XFER(handle, ae) + (((reg)&0xff) << 2))
202 ADF_CSR_WR(handle->hal_misc_addr_v, AE_XFER_ADDR(handle, ae, reg), val)
[all …]
/freebsd/contrib/ntp/include/
H A Dtimepps-SCO.h219 if (!handle) { in time_pps_create()
229 if (!(*handle)) { in time_pps_create()
247 pps_handle_t handle in time_pps_destroy() argument
254 if (!handle) { in time_pps_destroy()
258 free(handle); in time_pps_destroy()
277 if (!handle) { in time_pps_setparams()
339 if (!handle) { in time_pps_getparams()
367 if (!handle) { in time_pps_getcap()
399 if (!handle) { in time_pps_fetch()
437 handle->serial++; in time_pps_fetch()
[all …]
H A Dtimepps-SunOS.h215 if (!handle) { in time_pps_create()
230 if (!(*handle)) { in time_pps_create()
248 pps_handle_t handle in time_pps_destroy() argument
255 if (!handle) { in time_pps_destroy()
259 free(handle); in time_pps_destroy()
269 pps_handle_t handle, in time_pps_setparams() argument
278 if (!handle) { in time_pps_setparams()
340 if (!handle) { in time_pps_getparams()
368 if (!handle) { in time_pps_getcap()
403 if (!handle) { in time_pps_fetch()
[all …]
/freebsd/contrib/netbsd-tests/libexec/ld.elf_so/
H A Dt_dlvsym.c45 void *handle; in ATF_TC_BODY() local
56 ATF_CHECK(handle != NULL); in ATF_TC_BODY()
65 dlclose(handle); in ATF_TC_BODY()
77 void *handle; in ATF_TC_BODY() local
97 dlclose(handle); in ATF_TC_BODY()
110 void *handle; in ATF_TC_BODY() local
127 dlclose(handle); in ATF_TC_BODY()
140 void *handle; in ATF_TC_BODY() local
157 dlclose(handle); in ATF_TC_BODY()
170 void *handle; in ATF_TC_BODY() local
[all …]
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_shim.c45 VCHIQ_SERVICE_HANDLE_T handle; member
139 vchiq_release_message(service->handle, header); in vchi_msg_remove()
631 VCHI_SERVICE_HANDLE_T *handle) in vchi_service_open() argument
636 *handle = (VCHI_SERVICE_HANDLE_T)service; in vchi_service_open()
650 &service->handle); in vchi_service_open()
654 *handle = NULL; in vchi_service_open()
664 VCHI_SERVICE_HANDLE_T *handle) in vchi_service_create() argument
669 *handle = (VCHI_SERVICE_HANDLE_T)service; in vchi_service_create()
686 *handle = NULL; in vchi_service_create()
748 vchiq_set_service_option(service->handle, in vchi_service_set_option()
[all …]
/freebsd/contrib/netbsd-tests/lib/libpthread/dlopen/
H A Dt_dlopen.c54 void *handle; in ATF_TC_BODY() local
56 handle = dlopen(DSO, RTLD_NOW | RTLD_LOCAL); in ATF_TC_BODY()
64 ATF_REQUIRE(dlclose(handle) == 0); in ATF_TC_BODY()
78 void *handle; in ATF_TC_BODY() local
84 handle = dlopen(DSO, RTLD_NOW | RTLD_LOCAL); in ATF_TC_BODY()
94 ATF_REQUIRE(dlclose(handle) == 0); in ATF_TC_BODY()
110 void *handle; in ATF_TC_BODY() local
116 handle = dlopen(DSO, RTLD_NOW | RTLD_LOCAL); in ATF_TC_BODY()
125 dlclose(handle); in ATF_TC_BODY()
142 void *handle; in ATF_TC_BODY() local
[all …]
/freebsd/contrib/less/
H A Dlglob.h47 #define GLOB_FIRST_FAILED(handle) ((handle) != 0) 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, fndp) argument
64 #define GLOB_NAME_DONE(handle) _findclose(handle) argument
78 #define GLOB_FIRST_FAILED(handle) ((handle) != 0) argument
79 #define GLOB_NEXT_NAME(handle,fndp) findnext(fndp) argument
80 #define GLOB_NAME_DONE(handle) argument
[all …]
/freebsd/sys/dev/vmware/vmci/
H A Dvmci_hashtable.c24 struct vmci_handle handle);
122 struct vmci_handle handle) in vmci_hashtable_init_entry() argument
126 entry->handle = handle; in vmci_hashtable_init_entry()
159 "exists.\n", entry->handle.context, in vmci_hashtable_add_entry()
160 entry->handle.resource); in vmci_hashtable_add_entry()
243 struct vmci_handle handle) in vmci_hashtable_get_entry_locked() argument
291 struct vmci_handle handle) in vmci_hashtable_get_entry() argument
434 struct vmci_handle handle) in vmci_hashtable_entry_exists() argument
465 struct vmci_handle handle) in vmci_hashtable_entry_exists_locked() argument
478 VMCI_HANDLE_TO_RESOURCE_ID(handle)) in vmci_hashtable_entry_exists_locked()
[all …]
/freebsd/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/contrib/opencsd/decoder/source/c_api/
H A Docsd_c_api.cpp96 if(handle != C_API_INVALID_TREE_HANDLE) in ocsd_create_dcd_tree()
105 ocsd_destroy_dcd_tree(handle); in ocsd_create_dcd_tree()
109 return handle; in ocsd_create_dcd_tree()
114 if(handle != C_API_INVALID_TREE_HANDLE) in ocsd_destroy_dcd_tree()
122 it = s_data_map.find(handle); in ocsd_destroy_dcd_tree()
150 if(handle != C_API_INVALID_TREE_HANDLE) in ocsd_dt_process_data()
165 DecodeTree *dt = (DecodeTree *)handle; in ocsd_dt_create_decoder()
227 it = s_data_map.find(handle); in ocsd_dt_attach_packet_callback()
299 it = s_data_map.find(handle); in ocsd_def_errlog_set_strprint_cb()
438 if(handle != C_API_INVALID_TREE_HANDLE) in ocsd_dt_remove_mem_acc()
[all …]

12345678910>>...62