Home
last modified time | relevance | path

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

12345678910>>...204

/external/adhd/cras/src/server/
Dcras_hfp_slc.c82 int (*callback) (struct hfp_slc_handle *handle, const char *cmd);
86 static int hfp_send(struct hfp_slc_handle *handle, const char *buf) in hfp_send() argument
90 if (handle->rfcomm_fd < 0) in hfp_send()
94 err = write(handle->rfcomm_fd, "\r\n", 2); in hfp_send()
101 err = write(handle->rfcomm_fd, in hfp_send()
108 err = write(handle->rfcomm_fd, "\r\n", 2); in hfp_send()
116 static int hfp_send_ind_event_report(struct hfp_slc_handle *handle, in hfp_send_ind_event_report() argument
122 if (handle->is_hsp || !handle->ind_event_report) in hfp_send_ind_event_report()
126 return hfp_send(handle, cmd); in hfp_send_ind_event_report()
131 static int hfp_send_calling_line_identification(struct hfp_slc_handle *handle, in hfp_send_calling_line_identification() argument
[all …]
/external/e2fsprogs/lib/ext2fs/
Dextent.c127 static void dump_path(const char *tag, struct ext2_extent_handle *handle, in dump_path() argument
131 printf("%s: level=%d\n", tag, handle->level); in dump_path()
136 tag, (ppp - handle->path), ppp->buf, ppp->entries, in dump_path()
148 } while (ppp >= handle->path); in dump_path()
159 #define dump_path(tag, handle, path) do { } while (0) argument
194 void ext2fs_extent_free(ext2_extent_handle_t handle) in ext2fs_extent_free() argument
198 if (!handle) in ext2fs_extent_free()
201 if (handle->path) { in ext2fs_extent_free()
202 for (i = 1; i < handle->max_paths; i++) { in ext2fs_extent_free()
203 if (handle->path[i].buf) in ext2fs_extent_free()
[all …]
/external/libmtp/logs/
Dmtp-detect-amazon-fire-hd8.txt11 Error 7: Found a bad handle, trying to ignore it.
12 Error 7: Found a bad handle, trying to ignore it.
13 Error 7: Found a bad handle, trying to ignore it.
14 Error 7: Found a bad handle, trying to ignore it.
15 Error 7: Found a bad handle, trying to ignore it.
16 Error 7: Found a bad handle, trying to ignore it.
17 Error 7: Found a bad handle, trying to ignore it.
18 Error 7: Found a bad handle, trying to ignore it.
19 Error 7: Found a bad handle, trying to ignore it.
20 Error 7: Found a bad handle, trying to ignore it.
[all …]
/external/selinux/libsemanage/src/
Ddatabase.c9 static int assert_init(semanage_handle_t * handle, dbase_config_t * dconfig) in assert_init() argument
14 ERR(handle, in assert_init()
24 static int enter_ro(semanage_handle_t * handle, dbase_config_t * dconfig) in enter_ro() argument
27 if (assert_init(handle, dconfig) < 0) in enter_ro()
30 if (!handle->is_in_transaction && in enter_ro()
31 handle->conf->store_type == SEMANAGE_CON_DIRECT) { in enter_ro()
33 if (semanage_get_active_lock(handle) < 0) { in enter_ro()
34 ERR(handle, "could not get the active lock"); in enter_ro()
39 if (dconfig->dtable->cache(handle, dconfig->dbase) < 0) in enter_ro()
45 ERR(handle, "could not enter read-only section"); in enter_ro()
[all …]
Dhandle.h47 semanage_handle_t * handle, const char *fmt, ...);
122 dbase_config_t * semanage_user_base_dbase_local(semanage_handle_t * handle) in semanage_user_base_dbase_local() argument
124 return &handle->dbase[DBASE_LOCAL_USERS_BASE]; in semanage_user_base_dbase_local()
128 dbase_config_t * semanage_user_extra_dbase_local(semanage_handle_t * handle) in semanage_user_extra_dbase_local() argument
130 return &handle->dbase[DBASE_LOCAL_USERS_EXTRA]; in semanage_user_extra_dbase_local()
134 dbase_config_t * semanage_user_dbase_local(semanage_handle_t * handle) in semanage_user_dbase_local() argument
136 return &handle->dbase[DBASE_LOCAL_USERS]; in semanage_user_dbase_local()
140 dbase_config_t * semanage_port_dbase_local(semanage_handle_t * handle) in semanage_port_dbase_local() argument
142 return &handle->dbase[DBASE_LOCAL_PORTS]; in semanage_port_dbase_local()
146 dbase_config_t * semanage_ibpkey_dbase_local(semanage_handle_t * handle) in semanage_ibpkey_dbase_local() argument
[all …]
Dpolicy_components.c15 static int clear_obsolete(semanage_handle_t * handle, in clear_obsolete() argument
31 if (rtable->key_extract(handle, records[i], &key) < 0) in clear_obsolete()
34 if (dst_dtable->exists(handle, dst->dbase, key, &exists) < 0) in clear_obsolete()
38 if (src_dtable->del(handle, src->dbase, key) < 0) in clear_obsolete()
59 static int load_records(semanage_handle_t * handle, in load_records() argument
77 if (rtable->key_extract(handle, records[i], &rkey) < 0) in load_records()
81 dtable->set(handle, dbase, rkey, records[i]) < 0) in load_records()
85 dtable->modify(handle, dbase, rkey, records[i]) < 0) in load_records()
109 int semanage_base_merge_components(semanage_handle_t * handle) in semanage_base_merge_components() argument
120 {semanage_user_base_dbase_local(handle), in semanage_base_merge_components()
[all …]
Dseusers_local.c21 static char *semanage_user_roles(semanage_handle_t * handle, const char *sename) { in semanage_user_roles() argument
29 if (semanage_user_key_create(handle, sename, &key) >= 0) { in semanage_user_roles()
30 if (semanage_user_query(handle, key, &user) >= 0) { in semanage_user_roles()
31 if (semanage_user_get_roles(handle, in semanage_user_roles()
58 static int semanage_seuser_audit(semanage_handle_t * handle, in semanage_seuser_audit() argument
78 proles = semanage_user_roles(handle, psename); in semanage_seuser_audit()
84 roles = semanage_user_roles(handle, sename); in semanage_seuser_audit()
123 int semanage_seuser_modify_local(semanage_handle_t * handle, in semanage_seuser_modify_local() argument
128 void *callback = (void *) handle->msg_callback; in semanage_seuser_modify_local()
129 dbase_config_t *dconfig = semanage_seuser_dbase_local(handle); in semanage_seuser_modify_local()
[all …]
Dfcontexts_local.c18 int semanage_fcontext_modify_local(semanage_handle_t * handle, in semanage_fcontext_modify_local() argument
23 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_modify_local()
24 return dbase_modify(handle, dconfig, key, data); in semanage_fcontext_modify_local()
27 int semanage_fcontext_del_local(semanage_handle_t * handle, in semanage_fcontext_del_local() argument
31 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_del_local()
32 return dbase_del(handle, dconfig, key); in semanage_fcontext_del_local()
35 int semanage_fcontext_query_local(semanage_handle_t * handle, in semanage_fcontext_query_local() argument
40 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_query_local()
41 return dbase_query(handle, dconfig, key, response); in semanage_fcontext_query_local()
44 int semanage_fcontext_exists_local(semanage_handle_t * handle, in semanage_fcontext_exists_local() argument
[all …]
Ddatabase_policydb.c54 static int dbase_policydb_set_serial(semanage_handle_t * handle, in dbase_policydb_set_serial() argument
58 int cache_serial = handle->funcs->get_serial(handle); in dbase_policydb_set_serial()
60 ERR(handle, "could not update cache serial"); in dbase_policydb_set_serial()
68 static int dbase_policydb_needs_resync(semanage_handle_t * handle, in dbase_policydb_needs_resync() argument
77 cache_serial = handle->funcs->get_serial(handle); in dbase_policydb_needs_resync()
89 static int dbase_policydb_cache(semanage_handle_t * handle, in dbase_policydb_cache() argument
102 if (!dbase_policydb_needs_resync(handle, dbase)) in dbase_policydb_cache()
105 fname = dbase->path[handle->is_in_transaction]; in dbase_policydb_cache()
108 ERR(handle, "could not create policydb object"); in dbase_policydb_cache()
116 ERR(handle, "could not open %s for reading: %s", in dbase_policydb_cache()
[all …]
Duser_record.c33 int semanage_user_key_create(semanage_handle_t * handle, in semanage_user_key_create() argument
37 return sepol_user_key_create(handle->sepolh, name, key); in semanage_user_key_create()
42 int semanage_user_key_extract(semanage_handle_t * handle, in hidden_def()
47 return semanage_user_base_key_extract(handle, user->base, key); in hidden_def()
102 int semanage_user_set_name(semanage_handle_t * handle, in hidden_def()
110 if (semanage_user_base_set_name(handle, user->base, name) < 0) in hidden_def()
113 if (semanage_user_extra_set_name(handle, user->extra, name) < 0) in hidden_def()
121 ERR(handle, "out of memory"); in hidden_def()
124 ERR(handle, "could not set user name to %s", name); in hidden_def()
138 int semanage_user_set_prefix(semanage_handle_t * handle, in semanage_user_set_prefix() argument
[all …]
Dibendports_local.c17 int semanage_ibendport_modify_local(semanage_handle_t *handle, in semanage_ibendport_modify_local() argument
21 dbase_config_t *dconfig = semanage_ibendport_dbase_local(handle); in semanage_ibendport_modify_local()
23 return dbase_modify(handle, dconfig, key, data); in semanage_ibendport_modify_local()
26 int semanage_ibendport_del_local(semanage_handle_t *handle, in semanage_ibendport_del_local() argument
29 dbase_config_t *dconfig = semanage_ibendport_dbase_local(handle); in semanage_ibendport_del_local()
31 return dbase_del(handle, dconfig, key); in semanage_ibendport_del_local()
34 int semanage_ibendport_query_local(semanage_handle_t *handle, in semanage_ibendport_query_local() argument
38 dbase_config_t *dconfig = semanage_ibendport_dbase_local(handle); in semanage_ibendport_query_local()
40 return dbase_query(handle, dconfig, key, response); in semanage_ibendport_query_local()
43 int semanage_ibendport_exists_local(semanage_handle_t *handle, in semanage_ibendport_exists_local() argument
[all …]
/external/libpcap/
Dpcap-netfilter-linux.c85 static int nfqueue_send_verdict(const pcap_t *handle, uint16_t group_id, u_int32_t id, u_int32_t ve…
89 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in netfilter_read_linux() argument
91 struct pcap_netfilter *handlep = handle->priv; in netfilter_read_linux()
99 if (handle->break_loop) { in netfilter_read_linux()
105 handle->break_loop = 0; in netfilter_read_linux()
108 len = handle->cc; in netfilter_read_linux()
120 len = recv(handle->fd, handle->buffer, handle->bufsize, 0); in netfilter_read_linux()
121 if (handle->break_loop) { in netfilter_read_linux()
122 handle->break_loop = 0; in netfilter_read_linux()
130 pcap_fmt_errmsg_for_errno(handle->errbuf, in netfilter_read_linux()
[all …]
Dpcap-linux.c396 static void destroy_ring(pcap_t *handle);
397 static int create_ring(pcap_t *handle, int *status);
398 static int prepare_tpacket_socket(pcap_t *handle);
474 static int enter_rfmon_mode(pcap_t *handle, int sock_fd,
478 static int iface_ethtool_get_ts_info(const char *device, pcap_t *handle,
482 static int iface_get_offload(pcap_t *handle);
487 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
490 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
491 static int reset_kernel_filter(pcap_t *handle);
502 pcap_t *handle; in pcap_create_interface() local
[all …]
Dpcap-bt-linux.c184 bt_activate(pcap_t* handle) in bt_activate() argument
186 struct pcap_bt *handlep = handle->priv; in bt_activate()
194 if (sscanf(handle->opt.device, BT_IFACE"%d", &dev_id) != 1) in bt_activate()
196 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in bt_activate()
198 handle->opt.device); in bt_activate()
210 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in bt_activate()
211 handle->snapshot = MAXIMUM_SNAPLEN; in bt_activate()
214 handle->bufsize = BT_CTRL_SIZE+sizeof(pcap_bluetooth_h4_header)+handle->snapshot; in bt_activate()
215 handle->linktype = DLT_BLUETOOTH_HCI_H4_WITH_PHDR; in bt_activate()
217 handle->read_op = bt_read_linux; in bt_activate()
[all …]
Dpcap-dbus.c54 dbus_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in dbus_read() argument
56 struct pcap_dbus *handlep = handle->priv; in dbus_read()
71 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Connection closed"); in dbus_read()
75 if (handle->break_loop) { in dbus_read()
76 handle->break_loop = 0; in dbus_read()
84 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Disconnected"); in dbus_read()
93 if (handle->fcode.bf_insns == NULL || in dbus_read()
94 bpf_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) { in dbus_read()
106 dbus_write(pcap_t *handle, const void *buf, size_t size) in dbus_write() argument
109 struct pcap_dbus *handlep = handle->priv; in dbus_write()
[all …]
Dpcap-bt-monitor-linux.c86 bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in bt_monitor_read() argument
97 pktd = (u_char *)handle->buffer + BT_CONTROL_SIZE; in bt_monitor_read()
103 iv[1].iov_len = handle->snapshot; in bt_monitor_read()
109 msg.msg_control = handle->buffer; in bt_monitor_read()
113 ret = recvmsg(handle->fd, &msg, 0); in bt_monitor_read()
114 if (handle->break_loop) in bt_monitor_read()
116 handle->break_loop = 0; in bt_monitor_read()
122 pcap_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, in bt_monitor_read()
141 if (handle->fcode.bf_insns == NULL || in bt_monitor_read()
142 bpf_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_monitor_read()
[all …]
Dpcap-usb-linux.c384 int usb_mmap(pcap_t* handle) in usb_mmap() argument
386 struct pcap_usb_linux *handlep = handle->priv; in usb_mmap()
387 int len = ioctl(handle->fd, MON_IOCQ_RING_SIZE); in usb_mmap()
393 MAP_SHARED, handle->fd, 0); in usb_mmap()
513 usb_activate(pcap_t* handle) in usb_activate() argument
515 struct pcap_usb_linux *handlep = handle->priv; in usb_activate()
526 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in usb_activate()
527 handle->snapshot = MAXIMUM_SNAPLEN; in usb_activate()
530 handle->bufsize = handle->snapshot; in usb_activate()
531 handle->offset = 0; in usb_activate()
[all …]
Dpcap-rdmasniff.c66 rdmasniff_stats(pcap_t *handle, struct pcap_stat *stat) in rdmasniff_stats() argument
68 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_stats()
78 rdmasniff_cleanup(pcap_t *handle) in rdmasniff_cleanup() argument
80 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_cleanup()
91 pcap_cleanup_live_common(handle); in rdmasniff_cleanup()
95 rdmasniff_post_recv(pcap_t *handle, uint64_t wr_id) in rdmasniff_post_recv() argument
97 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_post_recv()
102 sg_entry.addr = (uintptr_t) handle->buffer + RDMASNIFF_RECEIVE_SIZE * wr_id; in rdmasniff_post_recv()
114 rdmasniff_read(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in rdmasniff_read() argument
116 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_read()
[all …]
/external/brotli/java/org/brotli/wrapper/dec/
Ddecoder_jni.cc47 DecoderHandle* handle = nullptr; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate() local
53 handle = new (std::nothrow) DecoderHandle(); in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
54 ok = !!handle; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
57 handle->input_offset = 0; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
58 handle->input_length = 0; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
59 handle->input_start = nullptr; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
64 handle->input_start = new (std::nothrow) uint8_t[input_size]; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
65 ok = !!handle->input_start; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
70 handle->state = BrotliDecoderCreateInstance(nullptr, nullptr, nullptr); in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
71 ok = !!handle->state; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
[all …]
/external/brotli/java/org/brotli/wrapper/enc/
Dencoder_jni.cc47 EncoderHandle* handle = nullptr; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate() local
52 handle = new (std::nothrow) EncoderHandle(); in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
53 ok = !!handle; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
56 handle->input_offset = 0; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
57 handle->input_last = 0; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
58 handle->input_start = nullptr; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
63 handle->input_start = new (std::nothrow) uint8_t[input_size]; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
64 ok = !!handle->input_start; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
69 handle->state = BrotliEncoderCreateInstance(nullptr, nullptr, nullptr); in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
70 ok = !!handle->state; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
[all …]
/external/capstone/
Dcs.c190 cs_err CAPSTONE_API cs_errno(csh handle) in cs_errno() argument
193 if (!handle) in cs_errno()
196 ud = (struct cs_struct *)(uintptr_t)handle; in cs_errno()
235 cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle) in cs_open() argument
266 *handle = 0; in cs_open()
270 *handle = (uintptr_t)ud; in cs_open()
274 *handle = 0; in cs_open()
280 cs_err CAPSTONE_API cs_close(csh *handle) in cs_close() argument
284 if (*handle == 0) in cs_close()
288 ud = (struct cs_struct *)(*handle); in cs_close()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dchannel_tracker.cc51 opaque_to_channel_[new_handle.handle()] = channel; in NewChannel()
56 Status ChannelTracker::RegisterSend(const ChannelHandle& handle) { in RegisterSend() argument
58 return RegisterSendInternal(handle); in RegisterSend()
61 Status ChannelTracker::RegisterRecv(const ChannelHandle& handle) { in RegisterRecv() argument
63 return RegisterRecvInternal(handle); in RegisterRecv()
74 Status ChannelTracker::RegisterSendInternal(const ChannelHandle& handle) { in RegisterSendInternal() argument
75 if (!opaque_to_channel_.contains(handle.handle())) { in RegisterSendInternal()
76 return NotFound("channel handle not found: %d", handle.handle()); in RegisterSendInternal()
78 Channel& channel = opaque_to_channel_[handle.handle()]; in RegisterSendInternal()
83 handle.handle()); in RegisterSendInternal()
[all …]
/external/capstone/bindings/vb6/
DvbCapstone.cpp30 cs_err __stdcall bs_open(cs_arch arch, cs_mode mode, csh *handle){ in bs_open() argument
32 return cs_open(arch, mode, handle); in bs_open()
35 cs_err __stdcall bs_close(csh *handle){ in bs_close() argument
37 return cs_close(handle); in bs_close()
40 cs_err __stdcall bs_option(csh handle, cs_opt_type type, size_t value){ in bs_option() argument
42 return cs_option(handle, type, value); in bs_option()
45 cs_err __stdcall bs_errno(csh handle){ in bs_errno() argument
47 return cs_errno(handle); in bs_errno()
55 size_t __stdcall bs_disasm(csh handle, const uint8_t *code, size_t code_size, uint64_t address, siz… in bs_disasm() argument
57 return cs_disasm(handle, code, code_size, address, count, insn); in bs_disasm()
[all …]
/external/iproute2/include/libiptc/
Dlibiptc.h28 int iptc_is_chain(const char *chain, struct xtc_handle *const handle);
37 const char *iptc_first_chain(struct xtc_handle *handle);
38 const char *iptc_next_chain(struct xtc_handle *handle);
42 struct xtc_handle *handle);
46 struct xtc_handle *handle);
50 struct xtc_handle *handle);
53 int iptc_builtin(const char *chain, struct xtc_handle *const handle);
58 struct xtc_handle *handle);
68 struct xtc_handle *handle);
74 struct xtc_handle *handle);
[all …]
/external/iptables/include/libiptc/
Dlibiptc.h28 int iptc_is_chain(const char *chain, struct xtc_handle *const handle);
37 const char *iptc_first_chain(struct xtc_handle *handle);
38 const char *iptc_next_chain(struct xtc_handle *handle);
42 struct xtc_handle *handle);
46 struct xtc_handle *handle);
50 struct xtc_handle *handle);
53 int iptc_builtin(const char *chain, struct xtc_handle *const handle);
58 struct xtc_handle *handle);
68 struct xtc_handle *handle);
74 struct xtc_handle *handle);
[all …]

12345678910>>...204