/external/wpa_supplicant_8/src/common/ |
D | wpa_ctrl.c | 97 struct wpa_ctrl *ctrl; in wpa_ctrl_open2() local 113 ctrl = os_zalloc(sizeof(*ctrl)); in wpa_ctrl_open2() 114 if (ctrl == NULL) in wpa_ctrl_open2() 117 ctrl->s = socket(PF_UNIX, SOCK_DGRAM, 0); in wpa_ctrl_open2() 118 if (ctrl->s < 0) { in wpa_ctrl_open2() 119 os_free(ctrl); in wpa_ctrl_open2() 123 ctrl->local.sun_family = AF_UNIX; in wpa_ctrl_open2() 127 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2() 128 sizeof(ctrl->local.sun_path), in wpa_ctrl_open2() 132 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2() [all …]
|
D | wpa_helpers.c | 25 struct wpa_ctrl *ctrl; in wpa_open_ctrl() local 28 ctrl = wpa_ctrl_open(buf); in wpa_open_ctrl() 29 if (ctrl == NULL) in wpa_open_ctrl() 31 return ctrl; in wpa_open_ctrl() 37 struct wpa_ctrl *ctrl; in wpa_command() local 42 ctrl = wpa_open_ctrl(ifname); in wpa_command() 43 if (ctrl == NULL) in wpa_command() 46 if (wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, NULL) < 0) { in wpa_command() 48 wpa_ctrl_close(ctrl); in wpa_command() 51 wpa_ctrl_close(ctrl); in wpa_command() [all …]
|
D | dpp_tcp.c | 24 struct dpp_controller *ctrl; member 118 struct dpp_relay_controller *ctrl; in dpp_relay_add_controller() local 123 ctrl = os_zalloc(sizeof(*ctrl)); in dpp_relay_add_controller() 124 if (!ctrl) in dpp_relay_add_controller() 126 dl_list_init(&ctrl->conn); in dpp_relay_add_controller() 127 ctrl->global = dpp; in dpp_relay_add_controller() 128 os_memcpy(&ctrl->ipaddr, config->ipaddr, sizeof(*config->ipaddr)); in dpp_relay_add_controller() 129 os_memcpy(ctrl->pkhash, config->pkhash, SHA256_MAC_LEN); in dpp_relay_add_controller() 130 ctrl->msg_ctx = config->msg_ctx; in dpp_relay_add_controller() 131 ctrl->cb_ctx = config->cb_ctx; in dpp_relay_add_controller() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpa_cli.c | 76 static void update_creds(struct wpa_ctrl *ctrl); 77 static void update_networks(struct wpa_ctrl *ctrl); 78 static void update_stations(struct wpa_ctrl *ctrl); 79 static void update_ifnames(struct wpa_ctrl *ctrl); 228 static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd, int print) in _wpa_ctrl_command() argument 245 ret = wpa_ctrl_request(ctrl, cmd, os_strlen(cmd), buf, &len, in _wpa_ctrl_command() 264 static int wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd) in wpa_ctrl_command() argument 266 return _wpa_ctrl_command(ctrl, cmd, 1); in wpa_ctrl_command() 270 static int wpa_cli_cmd(struct wpa_ctrl *ctrl, const char *cmd, int min_args, in wpa_cli_cmd() argument 282 return wpa_ctrl_command(ctrl, buf); in wpa_cli_cmd() [all …]
|
D | libwpa_test.c | 15 struct wpa_ctrl *ctrl; in main() local 17 ctrl = wpa_ctrl_open("foo"); in main() 18 if (!ctrl) in main() 20 if (wpa_ctrl_attach(ctrl) == 0) in main() 21 wpa_ctrl_detach(ctrl); in main() 22 if (wpa_ctrl_pending(ctrl)) { in main() 27 wpa_ctrl_recv(ctrl, buf, &len); in main() 29 wpa_ctrl_close(ctrl); in main()
|
/external/wpa_supplicant_8/hostapd/ |
D | hostapd_cli.c | 48 static void update_stations(struct wpa_ctrl *ctrl); 82 static void register_event_handler(struct wpa_ctrl *ctrl) in register_event_handler() argument 88 !eloop_register_read_sock(wpa_ctrl_get_fd(ctrl), in register_event_handler() 95 static void unregister_event_handler(struct wpa_ctrl *ctrl) in unregister_event_handler() argument 100 eloop_unregister_read_sock(wpa_ctrl_get_fd(ctrl)); in unregister_event_handler() 193 static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd, int print) in _wpa_ctrl_command() argument 204 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, in _wpa_ctrl_command() 221 static inline int wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd) in wpa_ctrl_command() argument 223 return _wpa_ctrl_command(ctrl, cmd, 1); in wpa_ctrl_command() 227 static int hostapd_cli_cmd(struct wpa_ctrl *ctrl, const char *cmd, in hostapd_cli_cmd() argument [all …]
|
/external/arm-trusted-firmware/drivers/brcm/emmc/ |
D | emmc_chal_sd.c | 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() 132 rc = mmio_read_32(handle->ctrl.sdRegBaseAddr + in chal_sd_set_power() 164 mmio_clrsetbits_32(handle->ctrl.sdRegBaseAddr + in chal_sd_set_dma_boundary() 175 handle->ctrl.sdRegBaseAddr = sdBase; in chal_sd_setup_handler() 176 handle->ctrl.hostRegBaseAddr = hostBase; in chal_sd_setup_handler() 177 handle->ctrl.present = 0; in chal_sd_setup_handler() [all …]
|
D | emmc_csl_sdcard.c | 194 handle->device->ctrl.argReg = 0; in abort_err() 195 handle->device->ctrl.cmdIndex = SD_CMD_STOP_TRANSMISSION; in abort_err() 203 handle->device->ctrl.cmdIndex, in abort_err() 204 handle->device->ctrl.argReg, options); in abort_err() 221 process_cmd_response(handle, handle->device->ctrl.cmdIndex, in abort_err() 268 if (handle->device->ctrl.cmdStatus == SD_OK) in process_data_xfer() 271 check_error(handle, handle->device->ctrl.cmdStatus); in process_data_xfer() 297 if (handle->device->ctrl.cmdStatus == SD_OK) in process_data_xfer() 300 check_error(handle, handle->device->ctrl.cmdStatus); in process_data_xfer() 336 handle->device->ctrl.present = 0; /* init card present to be no card */ in init_card() [all …]
|
D | emmc_csl_sdcmd.c | 76 handle->device->ctrl.rca = 0x5; in sd_cmd3() 77 argument = handle->device->ctrl.rca << SD_CMD7_ARG_RCA_SHIFT; in sd_cmd3() 87 handle->device->ctrl.rca = 0; in sd_cmd3() 157 argument = handle->device->ctrl.rca << SD_CMD7_ARG_RCA_SHIFT; in sd_cmd9() 250 argument = handle->device->ctrl.rca << SD_CMD7_ARG_RCA_SHIFT; in sd_cmd13() 284 handle->device->ctrl.rca, res, resp.cardStatus); in sd_cmd16() 325 handle->device->ctrl.rca, res, resp.cardStatus); in sd_cmd17() 379 handle->device->ctrl.rca, res, resp.cardStatus); in sd_cmd18() 433 handle->device->ctrl.rca, res); in card_sts_resp() 550 handle->device->ctrl.rca, res, &resp.cardStatus); in sd_cmd24() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nv04_state_raster.c | 130 nv04->ctrl[0] = NV04_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_FIXED | in nv04_emit_control() 132 nv04->ctrl[1] = 0; in nv04_emit_control() 133 nv04->ctrl[2] = 0; in nv04_emit_control() 137 nv04->ctrl[0] |= NV04_TEXTURED_TRIANGLE_CONTROL_DITHER_ENABLE; in nv04_emit_control() 141 nv04->ctrl[0] |= NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_NONE; in nv04_emit_control() 143 nv04->ctrl[0] |= NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_BOTH; in nv04_emit_control() 145 nv04->ctrl[0] |= (cull == GL_FRONT) ^ (front == GL_CCW) ? in nv04_emit_control() 151 nv04->ctrl[0] |= NV04_TEXTURED_TRIANGLE_CONTROL_Z_ENABLE; in nv04_emit_control() 153 nv04->ctrl[0] |= NV04_TEXTURED_TRIANGLE_CONTROL_Z_WRITE; in nv04_emit_control() 155 nv04->ctrl[0] |= get_comparison_op(ctx->Depth.Func) << 16; in nv04_emit_control() [all …]
|
/external/openscreen/third_party/abseil/src/absl/container/internal/ |
D | raw_hash_set.cc | 40 bool ShouldInsertBackwards(size_t hash, ctrl_t* ctrl) { in ShouldInsertBackwards() argument 43 return (H1(hash, ctrl) ^ RandomSeed()) % 13 > 6; in ShouldInsertBackwards() 47 ctrl_t* ctrl, size_t capacity) { in ConvertDeletedToEmptyAndFullToDeleted() argument 48 assert(ctrl[capacity] == kSentinel); in ConvertDeletedToEmptyAndFullToDeleted() 50 for (ctrl_t* pos = ctrl; pos != ctrl + capacity + 1; pos += Group::kWidth) { in ConvertDeletedToEmptyAndFullToDeleted() 54 std::memcpy(ctrl + capacity + 1, ctrl, Group::kWidth); in ConvertDeletedToEmptyAndFullToDeleted() 55 ctrl[capacity] = kSentinel; in ConvertDeletedToEmptyAndFullToDeleted()
|
/external/angle/third_party/abseil-cpp/absl/container/internal/ |
D | raw_hash_set.cc | 40 bool ShouldInsertBackwards(size_t hash, ctrl_t* ctrl) { in ShouldInsertBackwards() argument 43 return (H1(hash, ctrl) ^ RandomSeed()) % 13 > 6; in ShouldInsertBackwards() 47 ctrl_t* ctrl, size_t capacity) { in ConvertDeletedToEmptyAndFullToDeleted() argument 48 assert(ctrl[capacity] == kSentinel); in ConvertDeletedToEmptyAndFullToDeleted() 50 for (ctrl_t* pos = ctrl; pos < ctrl + capacity; pos += Group::kWidth) { in ConvertDeletedToEmptyAndFullToDeleted() 54 std::memcpy(ctrl + capacity + 1, ctrl, NumClonedBytes()); in ConvertDeletedToEmptyAndFullToDeleted() 55 ctrl[capacity] = kSentinel; in ConvertDeletedToEmptyAndFullToDeleted()
|
/external/mesa3d/src/panfrost/bifrost/ |
D | disassemble.c | 57 if (regs.ctrl == 0) in get_reg0() 139 unsigned ctrl; in DecodeRegCtrl() local 140 if (regs.ctrl == 0) { in DecodeRegCtrl() 141 ctrl = regs.reg1 >> 2; in DecodeRegCtrl() 145 ctrl = regs.ctrl; in DecodeRegCtrl() 151 ctrl = (ctrl & 0x7) | ((ctrl & 0x8) << 1); in DecodeRegCtrl() 153 ctrl += 16; in DecodeRegCtrl() 155 decoded.slot23 = bifrost_reg_ctrl_lut[ctrl]; in DecodeRegCtrl() 164 struct bifrost_reg_ctrl ctrl = DecodeRegCtrl(fp, srcs, first); in dump_regs() local 166 if (ctrl.read_reg0) in dump_regs() [all …]
|
/external/easymock/src/org/easymock/ |
D | EasyMockSupport.java | 143 IMocksControl ctrl = EasyMock.createStrictControl(); in createStrictControl() local 144 controls.add(ctrl); in createStrictControl() 145 return ctrl; in createStrictControl() 154 IMocksControl ctrl = EasyMock.createControl(); in createControl() local 155 controls.add(ctrl); in createControl() 156 return ctrl; in createControl() 167 IMocksControl ctrl = EasyMock.createNiceControl(); in createNiceControl() local 168 controls.add(ctrl); in createNiceControl() 169 return ctrl; in createNiceControl()
|
D | MockControl.java | 40 private final MocksControl ctrl; field in MockControl 42 protected MockControl(MocksControl ctrl, Class<T> toMock) { in MockControl() argument 43 this.ctrl = ctrl; in MockControl() 44 this.mock = ctrl.createMock(toMock); in MockControl() 109 ctrl.reset(); in reset() 120 ctrl.replay(); in replay() 133 ctrl.verify(); in verify() 299 ctrl.setLegacyDefaultThrowable(throwable); in setDefaultThrowable() 315 ctrl.setLegacyDefaultReturnValue(value); in setDefaultReturnValue() 328 ctrl.setLegacyMatcher(matcher); in setMatcher() [all …]
|
/external/autotest/server/site_tests/servo_LabControlVerification/ |
D | servo_LabControlVerification.py | 53 ctrl = {'ctrl_name': ctrl_elems[0]} 56 ctrl['ctrl_value'] = ctrl_elems[1] 60 ctrl) 61 ctrls.append(ctrl) 118 for ctrl in self.ctrls: 121 if len(ctrl) == 1: 124 if len(ctrl) == 2: 127 logstr = 'About to %s control %r' % (ctrl_type, ctrl['ctrl_name']) 129 logstr = '%s to %s' % (logstr, ctrl['ctrl_value']) 132 ctrl_func(**ctrl) [all …]
|
/external/arm-trusted-firmware/drivers/marvell/ |
D | amb_adec.c | 74 uint32_t ctrl, base, size; in amb_enable_win() local 82 ctrl = (size << AMB_SIZE_OFFSET) | (win->target_id << AMB_ATTR_OFFSET); in amb_enable_win() 86 mmio_write_32(AMB_WIN_CR_OFFSET(win_num), ctrl); in amb_enable_win() 89 ctrl |= WIN_ENABLE_BIT; in amb_enable_win() 90 mmio_write_32(AMB_WIN_CR_OFFSET(win_num), ctrl); in amb_enable_win() 96 uint32_t ctrl, base, win_id, attr; in dump_amb_adec() local 103 ctrl = mmio_read_32(AMB_WIN_CR_OFFSET(win_id)); in dump_amb_adec() 104 if (ctrl & WIN_ENABLE_BIT) { in dump_amb_adec() 106 attr = (ctrl >> AMB_ATTR_OFFSET) & AMB_ATTR_MASK; in dump_amb_adec() 107 size_count = (ctrl >> AMB_SIZE_OFFSET) & AMB_SIZE_MASK; in dump_amb_adec()
|
/external/iproute2/ip/ |
D | ipmonitor.c | 40 static void print_headers(FILE *fp, char *label, struct rtnl_ctrl_data *ctrl) in print_headers() argument 46 if (ctrl == NULL || ctrl->nsid < 0) in print_headers() 49 fprintf(fp, "[nsid %d]", ctrl->nsid); in print_headers() 57 struct rtnl_ctrl_data *ctrl, in accept_msg() argument 76 print_headers(fp, "[MROUTE]", ctrl); in accept_msg() 80 print_headers(fp, "[ROUTE]", ctrl); in accept_msg() 88 print_headers(fp, "[LINK]", ctrl); in accept_msg() 93 print_headers(fp, "[ADDR]", ctrl); in accept_msg() 98 print_headers(fp, "[ADDRLABEL]", ctrl); in accept_msg() 111 print_headers(fp, "[NEIGH]", ctrl); in accept_msg() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
D | addinterface.cpp | 59 struct wpa_ctrl *ctrl; in addInterfaces() local 64 ctrl = wpa_ctrl_open(NULL); in addInterfaces() 65 if (ctrl == NULL) in addInterfaces() 69 ret = wpa_ctrl_request(ctrl, "INTERFACE_LIST", 14, buf, &len, NULL); in addInterfaces() 71 wpa_ctrl_close(ctrl); in addInterfaces() 76 wpa_ctrl_close(ctrl); in addInterfaces() 188 struct wpa_ctrl *ctrl; in interfaceSelected() local 205 ctrl = wpa_ctrl_open(NULL); in interfaceSelected() 206 if (ctrl == NULL) in interfaceSelected() 210 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, NULL); in interfaceSelected() [all …]
|
/external/rust/crates/hashbrown/src/raw/ |
D | mod.rs | 121 fn is_full(ctrl: u8) -> bool { in is_full() 122 ctrl & 0x80 == 0 in is_full() 127 fn is_special(ctrl: u8) -> bool { in is_special() 128 ctrl & 0x80 != 0 in is_special() 133 fn special_is_empty(ctrl: u8) -> bool { in special_is_empty() 134 debug_assert!(is_special(ctrl)); in special_is_empty() 135 ctrl & 0x01 != 0 in special_is_empty() 384 ctrl: NonNull<u8>, field 504 NonNull::new_unchecked(self.table.ctrl.as_ptr().cast()) in data_end() 716 if *self_.ctrl(i) == DELETED { in rehash_in_place() [all …]
|
/external/libnl/lib/genl/ |
D | mngt.c | 298 static int __genl_ops_resolve(struct nl_cache *ctrl, struct genl_ops *ops) in __genl_ops_resolve() argument 302 family = genl_ctrl_search_by_name(ctrl, ops->o_name); in __genl_ops_resolve() 360 struct nl_cache *ctrl; in genl_ops_resolve() local 363 if ((err = genl_ctrl_alloc_cache(sk, &ctrl)) < 0) in genl_ops_resolve() 366 err = __genl_ops_resolve(ctrl, ops); in genl_ops_resolve() 368 nl_cache_free(ctrl); in genl_ops_resolve() 388 struct nl_cache *ctrl; in genl_mngt_resolve() local 392 if ((err = genl_ctrl_alloc_cache(sk, &ctrl)) < 0) in genl_mngt_resolve() 396 err = __genl_ops_resolve(ctrl, ops); in genl_mngt_resolve() 399 nl_cache_free(ctrl); in genl_mngt_resolve()
|
/external/arm-trusted-firmware/plat/marvell/armada/a3k/common/ |
D | io_addr_dec.c | 40 uint32_t ctrl = 0; in set_io_addr_dec_win() local 44 ctrl = ((win_size / MVEBU_WIN_BASE_SIZE_ALIGNMENT) - 1) << in set_io_addr_dec_win() 47 ctrl |= dec_win->win_attr << MVEBU_DEC_WIN_CTRL_ATTR_OFF; in set_io_addr_dec_win() 49 ctrl |= DRAM_CPU_DEC_TARGET_NUM << MVEBU_DEC_WIN_CTRL_TARGET_OFF; in set_io_addr_dec_win() 64 win_id, dec_win->win_offset), ctrl); in set_io_addr_dec_win() 66 ctrl |= MVEBU_DEC_WIN_ENABLE << MVEBU_DEC_WIN_CTRL_EN_OFF; in set_io_addr_dec_win() 68 win_id, dec_win->win_offset), ctrl); in set_io_addr_dec_win()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
D | 2-2.c | 94 int ctrl; /* checkpoints */ member 195 td->ctrl = 1; in tf() 200 td->ctrl = 2; in tf() 203 td->ctrl = 3; in tf() 251 td->ctrl = 4; in tf() 483 td->ctrl = 0; in main() 532 while ((td->ctrl == 0) && (td->status == 0)) { in main() 546 if ((td->ctrl == 2) && (td->status == 0)) { /* Spurious wakeups hapenned */ in main() 549 td->ctrl = 1; in main() 552 if (td->ctrl == 1) { /* The child is inside the cond wait */ in main() [all …]
|
/external/wpa_supplicant_8/src/fst/ |
D | fst.c | 134 struct fst_ctrl_handle * fst_global_add_ctrl(const struct fst_ctrl *ctrl) in fst_global_add_ctrl() argument 138 if (!ctrl) in fst_global_add_ctrl() 145 if (ctrl->init && ctrl->init()) { in fst_global_add_ctrl() 150 h->ctrl = *ctrl; in fst_global_add_ctrl() 160 if (h->ctrl.deinit) in fst_global_del_ctrl() 161 h->ctrl.deinit(); in fst_global_del_ctrl()
|
/external/libpcap/ |
D | pcap-usb-linux.c | 506 struct usbdevfs_ctrltransfer ctrl; in probe_devices() local 538 ctrl.bRequestType = USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE; in probe_devices() 539 ctrl.bRequest = USB_REQ_GET_DESCRIPTOR; in probe_devices() 540 ctrl.wValue = USB_DT_DEVICE << 8; in probe_devices() 541 ctrl.wIndex = 0; in probe_devices() 542 ctrl.wLength = sizeof(descriptor); in probe_devices() 544 ctrl.requesttype = USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE; in probe_devices() 545 ctrl.request = USB_REQ_GET_DESCRIPTOR; in probe_devices() 546 ctrl.value = USB_DT_DEVICE << 8; in probe_devices() 547 ctrl.index = 0; in probe_devices() [all …]
|