Home
last modified time | relevance | path

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

12345678910>>...98

/freebsd-14.2/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-14.2/lib/libc/nameser/
H A Dns_parse.c160 b = ns_skiprr(handle->_msg_ptr, handle->_eom, section, in ns_parserr()
170 b = dn_expand(handle->_msg, handle->_eom, in ns_parserr()
175 if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom) in ns_parserr()
184 if (handle->_msg_ptr + NS_INT32SZ + NS_INT16SZ > handle->_eom) in ns_parserr()
188 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr()
193 if (++handle->_rrnum > handle->_counts[(int)section]) in ns_parserr()
222 b = ns_skiprr(handle->_msg_ptr, handle->_eom, section, in ns_parserr2()
232 b = ns_name_unpack2(handle->_msg, handle->_eom, handle->_msg_ptr, in ns_parserr2()
237 if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom) in ns_parserr2()
250 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr2()
[all …]
/freebsd-14.2/contrib/libpcap/
H A Dpcap-linux.c384 return handle; in pcapint_create_interface()
807 ret = del_mon_if(handle, handle->fd, &nlstate, in pcap_cleanup_linux()
1163 handle->errbuf, pcap_protocol(handle))) != 0) { in pcap_activate_linux()
1190 handle->selectable_fd = handle->fd; in pcap_activate_linux()
2651 handle->bufsize = handle->snapshot; in setup_socket()
3009 mtu = iface_get_mtu(handle->fd, handle->opt.device, in create_ring()
4272 handle, in pcap_read_linux_mmap_v2()
4309 if (++handle->offset >= handle->cc) in pcap_read_linux_mmap_v2()
4397 handle, in pcap_read_linux_mmap_v3()
4440 if (++handle->offset >= handle->cc) in pcap_read_linux_mmap_v3()
[all …]
H A Dpcap-haiku.c64 if (handle->break_loop) { in pcap_read_haiku()
65 handle->break_loop = 0; in pcap_read_haiku()
68 bytesReceived = recvfrom(handle->fd, buffer, handle->bufsize, MSG_TRUNC, in pcap_read_haiku()
109 wireLength <= handle->bufsize ? wireLength : handle->bufsize; in pcap_read_haiku()
201 get_promisc(handle)) in pcap_cleanup_haiku()
263 if ((handle->fd = dgram_socket(AF_LINK, handle->errbuf)) < 0) in pcap_activate_haiku()
308 handle->selectable_fd = handle->fd; in pcap_activate_haiku()
327 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in pcap_activate_haiku()
352 handle->buffer = (u_char*)malloc(handle->bufsize); in pcap_activate_haiku()
432 if (handle == NULL) in pcapint_create_interface()
[all …]
H A Dpcap-netfilter-linux.c107 len = handle->cc; in netfilter_read_linux()
119 len = recv(handle->fd, handle->buffer, handle->bufsize, 0); in netfilter_read_linux()
136 bp = handle->bp; in netfilter_read_linux()
160 handle->bp = bp; in netfilter_read_linux()
295 handle->bp = bp; in netfilter_read_linux()
298 handle->cc = 0; in netfilter_read_linux()
303 handle->cc = 0; in netfilter_read_linux()
588 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in netfilter_activate()
592 handle->bufsize = 128 + handle->snapshot; in netfilter_activate()
626 handle->buffer = malloc(handle->bufsize); in netfilter_activate()
[all …]
H A Dpcap-bt-linux.c192 bt_activate(pcap_t* handle) in bt_activate() argument
206 handle->opt.device); in bt_activate()
218 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in bt_activate()
222 handle->bufsize = BT_CTRL_SIZE+sizeof(pcap_bluetooth_h4_header)+handle->snapshot; in bt_activate()
237 if (handle->fd < 0) { in bt_activate()
243 handle->buffer = malloc(handle->bufsize); in bt_activate()
244 if (!handle->buffer) { in bt_activate()
288 if (handle->opt.rfmon) { in bt_activate()
309 handle->selectable_fd = handle->fd; in bt_activate()
342 if (handle->break_loop) in bt_read_linux()
[all …]
H A Dpcap-usb-linux.c474 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in usb_activate()
478 handle->bufsize = handle->snapshot; in usb_activate()
479 handle->offset = 0; in usb_activate()
504 if (handle->fd < 0) in usb_activate()
557 close(handle->fd); in usb_activate()
577 handle->selectable_fd = handle->fd; in usb_activate()
591 close(handle->fd); in usb_activate()
604 handle->selectable_fd = handle->fd; in usb_activate()
608 handle->buffer = malloc(handle->bufsize); in usb_activate()
736 pcapint_filter(handle->fcode.bf_insns, handle->buffer, in usb_read_linux_bin()
[all …]
H A Dpcap-dbus.c73 if (handle->break_loop) { in dbus_read()
74 handle->break_loop = 0; in dbus_read()
137 dbus_cleanup(pcap_t *handle) in dbus_cleanup() argument
169 dbus_activate(pcap_t *handle) in dbus_activate() argument
223 handle->bufsize = 0; in dbus_activate()
224 handle->offset = 0; in dbus_activate()
259 handle->selectable_fd = handle->fd = -1; in dbus_activate()
262 if (handle->opt.rfmon) { in dbus_activate()
266 dbus_cleanup(handle); in dbus_activate()
275 if (handle->snapshot <= 0 || handle->snapshot > 134217728) in dbus_activate()
[all …]
H A Dpcap-bt-monitor-linux.c110 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()
182 bt_monitor_activate(pcap_t* handle) in bt_monitor_activate() argument
188 if (handle->opt.rfmon) { in bt_monitor_activate()
201 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in bt_monitor_activate()
217 if (handle->fd < 0) { in bt_monitor_activate()
223 handle->buffer = malloc(handle->bufsize); in bt_monitor_activate()
224 if (!handle->buffer) { in bt_monitor_activate()
[all …]
H A Dpcap-rdmasniff.c77 rdmasniff_cleanup(pcap_t *handle) in rdmasniff_cleanup() argument
128 if (handle->break_loop) { in rdmasniff_read()
129 handle->break_loop = 0; in rdmasniff_read()
181 if (handle->break_loop) { in rdmasniff_read()
182 handle->break_loop = 0; in rdmasniff_read()
194 pcap_t *handle = sp->pd; in rdmasniff_oneshot() local
284 handle->buffer = malloc(handle->bufsize); in rdmasniff_activate()
285 if (!handle->buffer) { in rdmasniff_activate()
298 priv->mr = ibv_reg_mr(priv->pd, handle->buffer, handle->bufsize, IBV_ACCESS_LOCAL_WRITE); in rdmasniff_activate()
317 if (handle->snapshot <= 0 || handle->snapshot > RDMASNIFF_RECEIVE_SIZE) in rdmasniff_activate()
[all …]
/freebsd-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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>>...98