Home
last modified time | relevance | path

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

12345678910>>...190

/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-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()
115 * to set handle->break_loop (we ignore it on other 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()
[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 …]
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()
114 // length, not the snapshot length of the pcap_t handle. in pcap_read_haiku()
[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-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-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()
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->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) { in dbus_read()
[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);
[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 …]
/freebsd/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/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/crypto/heimdal/lib/gssapi/krb5/
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 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 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.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/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/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/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 …]
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dkeylockerintrin.h100 /// Wrap a 128-bit AES key from __key into a key handle and output in
102 /// The explicit source operand __htype specifies handle restrictions.
114 /// Handle[383:0] := WrapKey128(InputKey[127:0], KeyMetadata[127:0],
119 /// MEM[__h+127:__h] := Handle[127:0] // AAD
120 /// MEM[__h+255:__h+128] := Handle[255:128] // Integrity Tag
121 /// MEM[__h+383:__h+256] := Handle[383:256] // CipherText
134 /// Wrap a 256-bit AES key from __key_hi:__key_lo into a key handle, then
135 /// output handle in ((__m128i*)__h) to ((__m128i*)__h) + 3 and
137 /// The explicit source operand __htype specifies handle restrictions.
150 /// Handle[511:0] := WrapKey256(InputKey[255:0], KeyMetadata[127:0],
[all …]

12345678910>>...190