/external/trace-cmd/lib/trace-cmd/ |
D | trace-output.c | 99 static int write_options(struct tracecmd_output *handle); 100 static int save_string_section(struct tracecmd_output *handle, bool compress); 103 do_write_check(struct tracecmd_output *handle, const void *data, long long size) in do_write_check() argument 105 if (handle->do_compress) in do_write_check() 106 return tracecmd_compress_buffer_write(handle->compress, data, size); in do_write_check() 108 if (handle->msg_handle) in do_write_check() 109 return tracecmd_msg_data_send(handle->msg_handle, data, size); in do_write_check() 111 return __do_write_check(handle->fd, data, size); in do_write_check() 114 static inline off64_t do_lseek(struct tracecmd_output *handle, off_t offset, int whence) in do_lseek() argument 116 if (handle->do_compress) in do_lseek() [all …]
|
D | trace-input.c | 49 struct tracecmd_input *handle; member 235 static int read_options_type(struct tracecmd_input *handle); 237 void tracecmd_set_flag(struct tracecmd_input *handle, int flag) in tracecmd_set_flag() argument 239 handle->flags |= flag; in tracecmd_set_flag() 242 void tracecmd_clear_flag(struct tracecmd_input *handle, int flag) in tracecmd_clear_flag() argument 244 handle->flags &= ~flag; in tracecmd_clear_flag() 247 unsigned long tracecmd_get_flags(struct tracecmd_input *handle) in tracecmd_get_flags() argument 249 return handle->flags; in tracecmd_get_flags() 252 enum tracecmd_file_states tracecmd_get_file_state(struct tracecmd_input *handle) in tracecmd_get_file_state() argument 254 return handle->file_state; in tracecmd_get_file_state() [all …]
|
D | trace-compress.c | 80 static long long do_write(struct tracecmd_compression *handle, in do_write() argument 85 if (handle->msg_handle) { in do_write() 86 ret = tracecmd_msg_data_send(handle->msg_handle, data, size); in do_write() 91 return write_fd(handle->fd, data, size); in do_write() 94 static inline int buffer_extend(struct tracecmd_compression *handle, unsigned int size) in buffer_extend() argument 99 if (size <= handle->capacity) in buffer_extend() 103 buf = realloc(handle->buffer, extend); in buffer_extend() 106 handle->buffer = buf; in buffer_extend() 107 handle->capacity = extend; in buffer_extend() 120 off64_t tracecmd_compress_lseek(struct tracecmd_compression *handle, off64_t offset, int whence) in tracecmd_compress_lseek() argument [all …]
|
/external/arm-trusted-firmware/drivers/brcm/emmc/ |
D | emmc_csl_sdcard.c | 51 static int set_card_data_width(struct sd_handle *handle, int width); 52 static int abort_err(struct sd_handle *handle); 53 static int err_recovery(struct sd_handle *handle, uint32_t errors); 54 static int xfer_data(struct sd_handle *handle, uint32_t mode, uint32_t addr, 57 int set_boot_config(struct sd_handle *handle, uint32_t config) in set_boot_config() argument 59 return mmc_cmd6(handle, SDIO_HW_EMMC_EXT_CSD_BOOT_CNF | config); in set_boot_config() 62 void process_csd_mmc_speed(struct sd_handle *handle, uint32_t csd_mmc_speed) in process_csd_mmc_speed() argument 109 chal_sd_set_clock((CHAL_HANDLE *) handle->device, div_ctrl_setting, 0); in process_csd_mmc_speed() 111 chal_sd_set_clock((CHAL_HANDLE *) handle->device, div_ctrl_setting, 1); in process_csd_mmc_speed() 122 int set_card_data_width(struct sd_handle *handle, int width) in set_card_data_width() argument [all …]
|
D | emmc_chal_sd.c | 66 static int32_t chal_sd_set_power(struct sd_dev *handle, 69 static void chal_sd_set_dma_boundary(struct sd_dev *handle, uint32_t boundary); 71 static int32_t chal_sd_setup_handler(struct sd_dev *handle, 78 static int32_t chal_sd_set_power(struct sd_dev *handle, in chal_sd_set_power() argument 84 if (handle == NULL) in chal_sd_set_power() 87 mmio_clrsetbits_32(handle->ctrl.sdRegBaseAddr + in chal_sd_set_power() 101 rc = mmio_read_32(handle->ctrl.sdRegBaseAddr + in chal_sd_set_power() 119 mmio_setbits_32(handle->ctrl.sdRegBaseAddr + SD4_EMMC_TOP_CTRL_OFFSET, in chal_sd_set_power() 123 mmio_write_32(handle->ctrl.sdRegBaseAddr + SD4_EMMC_TOP_ARG_OFFSET, 0); in chal_sd_set_power() 124 mmio_write_32(handle->ctrl.sdRegBaseAddr + SD4_EMMC_TOP_CMD_OFFSET, 0); in chal_sd_set_power() [all …]
|
D | emmc_csl_sdcmd.c | 19 int sd_cmd0(struct sd_handle *handle) in sd_cmd0() argument 25 res = send_cmd(handle, SD_CMD_GO_IDLE_STATE, argument, 0, NULL); in sd_cmd0() 29 chal_sd_clear_irq((void *)handle->device, 0xffffffff); in sd_cmd0() 35 int sd_cmd1(struct sd_handle *handle, uint32_t ocr, uint32_t *ocr_output) in sd_cmd1() argument 49 res = send_cmd(handle, SD_CMD_SEND_OPCOND, ocr, options, &resp); in sd_cmd1() 57 int sd_cmd2(struct sd_handle *handle) in sd_cmd2() argument 65 return send_cmd(handle, SD_CMD_ALL_SEND_CID, 0, options, &resp); in sd_cmd2() 68 int sd_cmd3(struct sd_handle *handle) in sd_cmd3() argument 76 handle->device->ctrl.rca = 0x5; in sd_cmd3() 77 argument = handle->device->ctrl.rca << SD_CMD7_ARG_RCA_SHIFT; in sd_cmd3() [all …]
|
/external/selinux/libsemanage/src/ |
D | database.c | 9 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 …]
|
D | handle.h | 46 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 …]
|
D | policy_components.c | 15 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 …]
|
D | seusers_local.c | 21 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 …]
|
D | fcontexts_local.c | 17 int semanage_fcontext_modify_local(semanage_handle_t * handle, in semanage_fcontext_modify_local() argument 22 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_modify_local() 23 return dbase_modify(handle, dconfig, key, data); in semanage_fcontext_modify_local() 26 int semanage_fcontext_del_local(semanage_handle_t * handle, in semanage_fcontext_del_local() argument 30 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_del_local() 31 return dbase_del(handle, dconfig, key); in semanage_fcontext_del_local() 34 int semanage_fcontext_query_local(semanage_handle_t * handle, in semanage_fcontext_query_local() argument 39 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_query_local() 40 return dbase_query(handle, dconfig, key, response); in semanage_fcontext_query_local() 43 int semanage_fcontext_exists_local(semanage_handle_t * handle, in semanage_fcontext_exists_local() argument [all …]
|
/external/libpcap/ |
D | pcap-linux.c | 247 static void destroy_ring(pcap_t *handle); 248 static int create_ring(pcap_t *handle, int *status); 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 …]
|
D | pcap-netfilter-linux.c | 86 static int nfqueue_send_verdict(const pcap_t *handle, uint16_t group_id, u_int32_t id, u_int32_t ve… 90 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in netfilter_read_linux() argument 92 struct pcap_netfilter *handlep = handle->priv; in netfilter_read_linux() 100 if (handle->break_loop) { in netfilter_read_linux() 106 handle->break_loop = 0; in netfilter_read_linux() 109 len = handle->cc; in netfilter_read_linux() 121 len = recv(handle->fd, handle->buffer, handle->bufsize, 0); in netfilter_read_linux() 122 if (handle->break_loop) { in netfilter_read_linux() 123 handle->break_loop = 0; in netfilter_read_linux() 131 pcap_fmt_errmsg_for_errno(handle->errbuf, in netfilter_read_linux() [all …]
|
D | pcap-usb-linux.c | 226 usb_set_ring_size(pcap_t* handle, int header_size) in usb_set_ring_size() argument 250 if (handle->snapshot < header_size) in usb_set_ring_size() 251 handle->snapshot = header_size; in usb_set_ring_size() 253 ring_size = (handle->snapshot - header_size) * 5; in usb_set_ring_size() 268 handle->snapshot = header_size + (MAX_RING_SIZE/5); in usb_set_ring_size() 279 if (ioctl(handle->fd, MON_IOCT_RING_SIZE, ring_size) == -1) { in usb_set_ring_size() 280 pcap_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, in usb_set_ring_size() 281 errno, "Can't set ring size from fd %d", handle->fd); in usb_set_ring_size() 288 int usb_mmap(pcap_t* handle) in usb_mmap() argument 290 struct pcap_usb_linux *handlep = handle->priv; in usb_mmap() [all …]
|
D | pcap-bt-linux.c | 193 bt_activate(pcap_t* handle) in bt_activate() argument 195 struct pcap_bt *handlep = handle->priv; in bt_activate() 203 if (sscanf(handle->opt.device, BT_IFACE"%d", &dev_id) != 1) in bt_activate() 205 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in bt_activate() 207 handle->opt.device); in bt_activate() 219 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) in bt_activate() 220 handle->snapshot = MAXIMUM_SNAPLEN; in bt_activate() 223 handle->bufsize = BT_CTRL_SIZE+sizeof(pcap_bluetooth_h4_header)+handle->snapshot; in bt_activate() 224 handle->linktype = DLT_BLUETOOTH_HCI_H4_WITH_PHDR; in bt_activate() 226 handle->read_op = bt_read_linux; in bt_activate() [all …]
|
D | pcap-haiku.cpp | 50 pcap_read_haiku(pcap_t* handle, int maxPackets _U_, pcap_handler callback, in pcap_read_haiku() argument 55 u_char* buffer = (u_char*)handle->buffer + handle->offset; in pcap_read_haiku() 59 if (handle->break_loop) { in pcap_read_haiku() 62 handle->break_loop = 0; in pcap_read_haiku() 67 bytesReceived = recvfrom(handle->fd, buffer, handle->bufsize, MSG_TRUNC, in pcap_read_haiku() 77 snprintf(handle->errbuf, sizeof(handle->errbuf), in pcap_read_haiku() 83 if (captureLength > handle->snapshot) in pcap_read_haiku() 84 captureLength = handle->snapshot; in pcap_read_haiku() 87 if (handle->fcode.bf_insns) { in pcap_read_haiku() 88 if (pcap_filter(handle->fcode.bf_insns, buffer, bytesReceived, in pcap_read_haiku() [all …]
|
D | pcap-dbus.c | 54 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 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 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Disconnected"); in dbus_read() 93 if (handle->fcode.bf_insns == NULL || in dbus_read() 94 pcap_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, int size) in dbus_write() argument 109 struct pcap_dbus *handlep = handle->priv; in dbus_write() [all …]
|
D | pcap-bt-monitor-linux.c | 94 bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in bt_monitor_read() argument 105 pktd = (u_char *)handle->buffer + BT_CONTROL_SIZE; in bt_monitor_read() 111 iv[1].iov_len = handle->snapshot; in bt_monitor_read() 117 msg.msg_control = handle->buffer; in bt_monitor_read() 121 ret = recvmsg(handle->fd, &msg, 0); in bt_monitor_read() 122 if (handle->break_loop) in bt_monitor_read() 124 handle->break_loop = 0; in bt_monitor_read() 134 pcap_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, in bt_monitor_read() 153 if (handle->fcode.bf_insns == NULL || in bt_monitor_read() 154 pcap_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_monitor_read() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | extent.c | 128 static void dump_path(const char *tag, struct ext2_extent_handle *handle, in dump_path() argument 132 printf("%s: level=%d\n", tag, handle->level); in dump_path() 137 tag, (ppp - handle->path), ppp->buf, ppp->entries, in dump_path() 149 } while (ppp >= handle->path); in dump_path() 160 #define dump_path(tag, handle, path) do { } while (0) argument 195 void ext2fs_extent_free(ext2_extent_handle_t handle) in ext2fs_extent_free() argument 199 if (!handle) in ext2fs_extent_free() 202 if (handle->path) { in ext2fs_extent_free() 203 for (i = 1; i < handle->max_paths; i++) { in ext2fs_extent_free() 204 if (handle->path[i].buf) in ext2fs_extent_free() [all …]
|
/external/musl/src/network/ |
D | ns_parse.c | 50 int ns_initparse(const unsigned char *msg, int msglen, ns_msg *handle) in ns_initparse() argument 54 handle->_msg = msg; in ns_initparse() 55 handle->_eom = msg + msglen; in ns_initparse() 57 NS_GET16(handle->_id, msg); in ns_initparse() 58 NS_GET16(handle->_flags, msg); in ns_initparse() 59 for (i = 0; i < ns_s_max; i++) NS_GET16(handle->_counts[i], msg); in ns_initparse() 61 if (handle->_counts[i]) { in ns_initparse() 62 handle->_sections[i] = msg; in ns_initparse() 63 r = ns_skiprr(msg, handle->_eom, i, handle->_counts[i]); in ns_initparse() 67 handle->_sections[i] = NULL; in ns_initparse() [all …]
|
/external/angle/src/compiler/translator/ |
D | ShaderLang.cpp | 45 TCompiler *GetCompilerFromHandle(ShHandle handle) in GetCompilerFromHandle() argument 47 if (!handle) in GetCompilerFromHandle() 52 TShHandleBase *base = static_cast<TShHandleBase *>(handle); in GetCompilerFromHandle() 57 const std::vector<VarT> *GetShaderVariables(const ShHandle handle) in GetShaderVariables() argument 59 TCompiler *compiler = GetCompilerFromHandle(handle); in GetShaderVariables() 69 TranslatorHLSL *GetTranslatorHLSLFromHandle(ShHandle handle) in GetTranslatorHLSLFromHandle() argument 71 if (!handle) in GetTranslatorHLSLFromHandle() 73 TShHandleBase *base = static_cast<TShHandleBase *>(handle); in GetTranslatorHLSLFromHandle() 367 void Destruct(ShHandle handle) in Destruct() argument 369 if (handle == 0) in Destruct() [all …]
|
/external/brotli/java/org/brotli/wrapper/dec/ |
D | decoder_jni.cc | 47 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/ |
D | encoder_jni.cc | 47 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/trace-cmd/lib/trace-cmd/include/private/ |
D | trace-cmd-private.h | 98 void tracecmd_set_quiet(struct tracecmd_output *handle, bool set_quiet); 99 bool tracecmd_get_quiet(struct tracecmd_output *handle); 100 void tracecmd_set_out_clock(struct tracecmd_output *handle, const char *clock); 101 const char *tracecmd_get_trace_clock(struct tracecmd_input *handle); 103 const char *tracecmd_get_cpustats(struct tracecmd_input *handle); 104 const char *tracecmd_get_uname(struct tracecmd_input *handle); 105 const char *tracecmd_get_version(struct tracecmd_input *handle); 106 off64_t tracecmd_get_cpu_file_size(struct tracecmd_input *handle, int cpu); 171 struct tracecmd_input *handle; member 183 typedef void (*tracecmd_show_data_func)(struct tracecmd_input *handle, [all …]
|
/external/linux-kselftest/tools/testing/selftests/drivers/net/mlxsw/ |
D | sch_offload.sh | 19 local handle=$1; shift 23 h=$(qdisc_stats_get $h1 "$handle" .handle) 24 [[ $h == '"'$handle'"' ]] 25 check_err $? "Qdisc with handle $handle does not exist" 27 offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded) 29 check_fail $? "Qdisc with handle $handle offloaded, but should not be" 34 local handle=$1; shift 36 if [[ ! -z $handle ]]; then 37 local offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded) 39 check_err $? "Qdisc with handle $handle not offloaded" [all …]
|