Home
last modified time | relevance | path

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

12345678910>>...84

/freebsd/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/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/contrib/libpcap/
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);
[all …]
H A Dpcap-haiku.c56 pcap_read_haiku(pcap_t* handle, int maxPackets _U_, pcap_handler callback, in pcap_read_haiku() argument
61 u_char* buffer = (u_char*)handle->buffer; in pcap_read_haiku()
64 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()
82 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, in pcap_read_haiku()
87 struct pcap_haiku* handlep = (struct pcap_haiku*)handle->priv; in pcap_read_haiku()
109 wireLength <= handle->bufsize ? wireLength : handle->bufsize; in pcap_read_haiku()
112 if (handle->fcode.bf_insns) { in pcap_read_haiku()
115 if (pcapint_filter(handle->fcode.bf_insns, buffer, wireLength, in pcap_read_haiku()
[all …]
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 ve…
88 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in netfilter_read_linux() argument
90 struct pcap_netfilter *handlep = handle->priv; in netfilter_read_linux()
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()
119 len = recv(handle->fd, handle->buffer, handle->bufsize, 0); in netfilter_read_linux()
120 if (handle->break_loop) { in netfilter_read_linux()
121 handle->break_loop = 0; in netfilter_read_linux()
129 pcapint_fmt_errmsg_for_errno(handle->errbuf, in netfilter_read_linux()
[all …]
H A Dpcap-bt-linux.c192 bt_activate(pcap_t* handle) in bt_activate() argument
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->snapshot; in bt_activate()
223 handle->linktype = DLT_BLUETOOTH_HCI_H4_WITH_PHDR; in bt_activate()
225 handle->read_op = bt_read_linux; in bt_activate()
[all …]
H A Dpcap-usb-linux.c224 usb_set_ring_size(pcap_t* handle, int header_size) in usb_set_ring_size() argument
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) in usb_mmap() argument
288 struct pcap_usb_linux *handlep = handle->priv; in usb_mmap()
[all …]
H A Dpcap-dbus.c52 dbus_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in dbus_read() argument
54 struct pcap_dbus *handlep = handle->priv; 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()
91 if (handle->fcode.bf_insns == NULL || in dbus_read()
92 pcapint_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) { in dbus_read()
104 dbus_write(pcap_t *handle, const void *buf, int size) in dbus_write() argument
107 struct pcap_dbus *handlep = handle->priv; in dbus_write()
[all …]
H A Dpcap-bt-monitor-linux.c93 bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in bt_monitor_read() argument
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->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_monitor_read()
[all …]
H A Dpcap-rdmasniff.c65 rdmasniff_stats(pcap_t *handle, struct pcap_stat *stat) in rdmasniff_stats() argument
67 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_stats()
77 rdmasniff_cleanup(pcap_t *handle) in rdmasniff_cleanup() argument
79 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_cleanup()
90 pcapint_cleanup_live_common(handle); in rdmasniff_cleanup()
94 rdmasniff_post_recv(pcap_t *handle, uint64_t wr_id) in rdmasniff_post_recv() argument
96 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_post_recv()
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) in rdmasniff_read() argument
115 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_read()
[all …]
/freebsd/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 …]
/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()
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/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/contrib/ntp/include/
H A Dtimepps-SCO.h210 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()
247 pps_handle_t handle in time_pps_destroy() argument
254 if (!handle) { in time_pps_destroy()
[all …]
H A Dtimepps-SunOS.h208 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()
248 pps_handle_t handle in time_pps_destroy() argument
255 if (!handle) { in time_pps_destroy()
[all …]
/freebsd/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/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_shim.c45 VCHIQ_SERVICE_HANDLE_T handle; member
97 int32_t vchi_msg_peek(VCHI_SERVICE_HANDLE_T handle, in vchi_msg_peek() argument
102 SHIM_SERVICE_T *service = (SHIM_SERVICE_T *)handle; in vchi_msg_peek()
132 int32_t vchi_msg_remove(VCHI_SERVICE_HANDLE_T handle) in vchi_msg_remove() argument
134 SHIM_SERVICE_T *service = (SHIM_SERVICE_T *)handle; in vchi_msg_remove()
139 vchiq_release_message(service->handle, header); in vchi_msg_remove()
159 int32_t vchi_msg_queue(VCHI_SERVICE_HANDLE_T handle, in vchi_msg_queue() argument
165 SHIM_SERVICE_T *service = (SHIM_SERVICE_T *)handle; in vchi_msg_queue()
173 status = vchiq_queue_message(service->handle, &element, 1); in vchi_msg_queue()
181 status = vchiq_queue_message(service->handle, &element, 1); in vchi_msg_queue()
[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()
157 if (vmci_hashtable_entry_exists_locked(table, entry->handle)) { in vmci_hashtable_add_entry()
159 "exists.\n", entry->handle.context, in vmci_hashtable_add_entry()
160 entry->handle.resource); in vmci_hashtable_add_entry()
165 idx = VMCI_HASHTABLE_HASH(entry->handle, table->size); in vmci_hashtable_add_entry()
243 struct vmci_handle handle) in vmci_hashtable_get_entry_locked() argument
248 ASSERT(!VMCI_HANDLE_EQUAL(handle, VMCI_INVALID_HANDLE)); in vmci_hashtable_get_entry_locked()
251 idx = VMCI_HASHTABLE_HASH(handle, table->size); in vmci_hashtable_get_entry_locked()
[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()
57 ATF_REQUIRE_MSG(handle != NULL, "dlopen fails: %s", dlerror()); in ATF_TC_BODY()
59 testf_dso_null = dlsym(handle, "testf_dso_null"); 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()
85 ATF_REQUIRE_MSG(handle != NULL, "dlopen fails: %s", dlerror()); in ATF_TC_BODY()
87 testf_dso_null = dlsym(handle, "testf_dso_null"); in ATF_TC_BODY()
94 ATF_REQUIRE(dlclose(handle) == 0); in ATF_TC_BODY()
[all …]
/freebsd/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, fndp) argument
64 #define GLOB_NAME_DONE(handle) _findclose(handle) argument
66 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \ argument
72 intptr_t handle;
[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.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>>...84