Home
last modified time | relevance | path

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

12345678910>>...223

/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/crypto/krb5/src/lib/kadm5/srv/
H A Dserver_init.c22 static int dup_db_args(kadm5_server_handle_t handle, char **db_args) in dup_db_args() argument
29 handle->db_args = NULL; in dup_db_args()
33 handle->db_args = calloc(sizeof(char*), count+1); in dup_db_args()
34 if (handle->db_args == NULL) { in dup_db_args()
40 handle->db_args[count] = strdup(db_args[count]); in dup_db_args()
41 if (handle->db_args[count] == NULL) { in dup_db_args()
48 if (ret && handle->db_args) { in dup_db_args()
49 for (count=0; handle->db_args[count]; count++) in dup_db_args()
50 free(handle->db_args[count]); in dup_db_args()
52 free(handle->db_args), handle->db_args = NULL; in dup_db_args()
[all …]
H A Dserver_kdb.c26 krb5_error_code kdb_init_master(kadm5_server_handle_t handle, in kdb_init_master() argument
38 if ((ret = krb5_get_default_realm(handle->context, &realm))) in kdb_init_master()
44 krb5_free_principal(handle->context, master_princ); in kdb_init_master()
46 if ((ret = krb5_db_setup_mkey_name(handle->context, in kdb_init_master()
47 handle->params.mkey_name, in kdb_init_master()
51 krb5_free_keyblock_contents(handle->context, &master_keyblock); in kdb_init_master()
52 master_keyblock.enctype = handle->params.enctype; in kdb_init_master()
59 ret = krb5_db_fetch_mkey(handle->context, master_princ, in kdb_init_master()
62 handle->params.stash_file, in kdb_init_master()
70 if ((ret = krb5_db_fetch_mkey_list(handle->context, master_princ, in kdb_init_master()
[all …]
H A Dpwqual.c48 pwqual_handle *list = NULL, handle = NULL; in k5_pwqual_load() local
62 /* For each module, allocate a handle, initialize its vtable, and bind the in k5_pwqual_load()
66 handle = k5alloc(sizeof(*handle), &ret); in k5_pwqual_load()
67 if (handle == NULL) in k5_pwqual_load()
69 ret = (*mod)(context, 1, 1, (krb5_plugin_vtable)&handle->vt); in k5_pwqual_load()
71 free(handle); in k5_pwqual_load()
72 handle = NULL; in k5_pwqual_load()
75 handle->data = NULL; in k5_pwqual_load()
76 if (handle->vt.open != NULL) { in k5_pwqual_load()
77 ret = handle->vt.open(context, dict_file, &handle->data); in k5_pwqual_load()
[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/crypto/krb5/src/lib/kadm5/clnt/
H A Dclient_init.c63 get_init_creds(kadm5_server_handle_t handle, krb5_principal client,
68 gic_iter(kadm5_server_handle_t handle, enum init_type init_type,
76 setup_gss(kadm5_server_handle_t handle, kadm5_config_params *params_in,
80 rpc_auth(kadm5_server_handle_t handle, kadm5_config_params *params_in,
142 free_handle(kadm5_server_handle_t handle) in free_handle() argument
148 if (handle == NULL) in free_handle()
151 if (handle->destroy_cache && handle->cache_name != NULL) { in free_handle()
152 ret = krb5_cc_resolve(handle->context, handle->cache_name, &ccache); in free_handle()
154 ret = krb5_cc_destroy(handle->context, ccache); in free_handle()
156 free(handle->cache_name); in free_handle()
[all …]
H A Dclient_principal.c19 #define eret() do { clnt_perror(handle->clnt, "null ret"); return KADM5_RPC_ERROR; } while (0)
31 kadm5_server_handle_t handle = server_handle; in kadm5_create_principal() local
38 arg.api_version = handle->api_version; in kadm5_create_principal()
57 if (create_principal_2(&arg, &r, handle->clnt)) in kadm5_create_principal()
71 kadm5_server_handle_t handle = server_handle; in kadm5_create_principal_3() local
78 arg.api_version = handle->api_version; in kadm5_create_principal_3()
99 if (create_principal3_2(&arg, &r, handle->clnt)) in kadm5_create_principal_3()
109 kadm5_server_handle_t handle = server_handle; in kadm5_delete_principal() local
116 arg.api_version = handle->api_version; in kadm5_delete_principal()
117 if (delete_principal_2(&arg, &r, handle->clnt)) in kadm5_delete_principal()
[all …]
/freebsd/crypto/krb5/src/kadmin/server/
H A Dserver_stubs.c31 static int gss_to_krb5_name(kadm5_server_handle_t handle,
66 * Purpose: Check a server handle and return a com_err code if it is
71 * handle The server handle.
74 static int check_handle(void *handle) in check_handle() argument
76 CHECK_HANDLE(handle); in check_handle()
83 * Purpose: Constructs a server handle suitable for passing into the
85 * and calling principal into the server handle returned by
91 * handle (output) The returned handle
96 * handle. If an error occurs, then no allocated storage is
100 * The allocated storage for the handle should be freed with
[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/crypto/krb5/src/lib/kadm5/
H A Dt_kadm5.c65 * Initialize a handle using the global context. The caller must destroy this
66 * handle before initializing another one. If the client name begins with '$',
68 * client is null, return a null handle.
73 void *handle; in get_handle() local
88 KADM5_STRUCT_VERSION, api, NULL, &handle)); in get_handle()
89 return handle; in get_handle()
93 free_handle(void *handle) in free_handle() argument
95 if (handle != NULL) in free_handle()
96 check(kadm5_destroy(handle)); in free_handle()
111 void *handle = get_handle("admin"); in create_simple_policy() local
[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 …]

12345678910>>...223