/Zephyr-Core-3.7.0/drivers/display/ |
D | display_rm67162.c | 27 uint8_t cmd; member 31 {.cmd = 0xFE, .param = 0x01}, 32 {.cmd = 0x06, .param = 0x62}, 33 {.cmd = 0x0E, .param = 0x80}, 34 {.cmd = 0x0F, .param = 0x80}, 35 {.cmd = 0x10, .param = 0x71}, 36 {.cmd = 0x13, .param = 0x81}, 37 {.cmd = 0x14, .param = 0x81}, 38 {.cmd = 0x15, .param = 0x82}, 39 {.cmd = 0x16, .param = 0x82}, [all …]
|
D | display_nt35510.c | 73 uint8_t cmd[5]; member 78 {.reg = 0xf0, .cmd_len = 5, .cmd = {0x55, 0xaa, 0x52, 0x08, 0x01}}, 80 {.reg = 0xb0, .cmd_len = 3, .cmd = {0x03, 0x03, 0x03}}, 82 {.reg = 0xb6, .cmd_len = 3, .cmd = {0x46, 0x46, 0x46}}, 84 {.reg = 0xb1, .cmd_len = 3, .cmd = {0x03, 0x03, 0x03}}, 86 {.reg = 0xb7, .cmd_len = 3, .cmd = {0x36, 0x36, 0x36}}, 88 {.reg = 0xb2, .cmd_len = 3, .cmd = {0x00, 0x00, 0x02}}, 90 {.reg = 0xb8, .cmd_len = 3, .cmd = {0x26, 0x26, 0x26}}, 92 {.reg = 0xbf, .cmd_len = 1, .cmd = {0x01}}, 94 {.reg = 0xb3, .cmd_len = 3, .cmd = {0x09, 0x09, 0x09}}, [all …]
|
D | display_gc9x01x.c | 45 uint8_t cmd; member 57 .cmd = 0xEBU, 62 .cmd = 0x84U, 67 .cmd = 0x85U, 72 .cmd = 0x86U, 77 .cmd = 0x87U, 82 .cmd = 0x88U, 87 .cmd = 0x89U, 92 .cmd = 0x8AU, 97 .cmd = 0x8BU, [all …]
|
/Zephyr-Core-3.7.0/drivers/disk/nvme/ |
D | nvme_controller_cmd.c | 31 memset(&request->cmd, 0, sizeof(request->cmd)); in nvme_ctrlr_cmd_identify_controller() 32 request->cmd.cdw0.opc = NVME_OPC_IDENTIFY; in nvme_ctrlr_cmd_identify_controller() 33 request->cmd.cdw10 = sys_cpu_to_le32(1); in nvme_ctrlr_cmd_identify_controller() 51 request->cmd.cdw0.opc = NVME_OPC_IDENTIFY; in nvme_ctrlr_cmd_identify_namespace() 55 request->cmd.nsid = sys_cpu_to_le32(nsid); in nvme_ctrlr_cmd_identify_namespace() 65 struct nvme_command *cmd; in nvme_ctrlr_cmd_create_io_cq() local 72 cmd = &request->cmd; in nvme_ctrlr_cmd_create_io_cq() 73 cmd->cdw0.opc = NVME_OPC_CREATE_IO_CQ; in nvme_ctrlr_cmd_create_io_cq() 79 cmd->cdw10 = sys_cpu_to_le32(((io_queue->num_entries-1) << 16) | in nvme_ctrlr_cmd_create_io_cq() 82 cmd->cdw11 = sys_cpu_to_le32((io_queue->vector << 16) | 0x3); in nvme_ctrlr_cmd_create_io_cq() [all …]
|
/Zephyr-Core-3.7.0/drivers/mdio/ |
D | mdio_adin2111.c | 64 uint32_t cmd; in mdio_adin2111_read_c45() local 68 cmd = (prtad & 0x1FU) << 21; in mdio_adin2111_read_c45() 69 cmd |= (devad & 0x1FU) << 16; in mdio_adin2111_read_c45() 70 cmd |= regad; in mdio_adin2111_read_c45() 72 ret = eth_adin2111_reg_write(cfg->adin, ADIN2111_MDIOACC0, cmd); in mdio_adin2111_read_c45() 78 cmd = (cmd & ~UINT16_MAX) | (0x3U << 26); in mdio_adin2111_read_c45() 80 ret = eth_adin2111_reg_write(cfg->adin, ADIN2111_MDIOACC1, cmd); in mdio_adin2111_read_c45() 91 ret = eth_adin2111_reg_read(cfg->adin, ADIN2111_MDIOACC1, &cmd); in mdio_adin2111_read_c45() 93 *data = cmd & UINT16_MAX; in mdio_adin2111_read_c45() 105 uint32_t cmd; in mdio_adin2111_write_c45() local [all …]
|
/Zephyr-Core-3.7.0/subsys/sd/ |
D | sd_ops.c | 22 struct sdhc_command cmd; in sdmmc_read_status() local 25 cmd.opcode = SD_SEND_STATUS; in sdmmc_read_status() 26 cmd.arg = 0; in sdmmc_read_status() 28 cmd.arg = (card->relative_addr << 16U); in sdmmc_read_status() 30 cmd.response_type = (SD_RSP_TYPE_R1 | SD_SPI_RSP_TYPE_R2); in sdmmc_read_status() 31 cmd.retries = CONFIG_SD_CMD_RETRIES; in sdmmc_read_status() 32 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_read_status() 34 ret = sdhc_request(card->sdhc, &cmd, NULL); in sdmmc_read_status() 40 if ((cmd.response[0U] & SDHC_SPI_R2_CARD_LOCKED) || in sdmmc_read_status() 41 (cmd.response[0U] & SDHC_SPI_R2_UNLOCK_FAIL)) { in sdmmc_read_status() [all …]
|
D | mmc.c | 67 inline int mmc_ioctl(struct sd_card *card, uint8_t cmd, void *buf) in mmc_ioctl() argument 69 return card_ioctl(card, cmd, buf); in mmc_ioctl() 207 struct sdhc_command cmd = {0}; in mmc_send_op_cond() local 211 cmd.opcode = MMC_SEND_OP_COND; in mmc_send_op_cond() 212 cmd.arg = ocr; in mmc_send_op_cond() 213 cmd.response_type = SD_RSP_TYPE_R3; in mmc_send_op_cond() 214 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_send_op_cond() 217 retries < CONFIG_SD_OCR_RETRY_COUNT && !(cmd.response[0] & SD_OCR_PWR_BUSY_FLAG); in mmc_send_op_cond() 219 ret = sdhc_request(card->sdhc, &cmd, NULL); in mmc_send_op_cond() 237 if (cmd.response[0] & MMC_OCR_VDD170_195FLAG) { in mmc_send_op_cond() [all …]
|
D | sd.c | 24 struct sdhc_command cmd; in sd_idle() local 27 cmd.opcode = SD_GO_IDLE_STATE; in sd_idle() 28 cmd.arg = 0x0; in sd_idle() 29 cmd.response_type = (SD_RSP_TYPE_NONE | SD_SPI_RSP_TYPE_R1); in sd_idle() 30 cmd.retries = CONFIG_SD_CMD_RETRIES; in sd_idle() 31 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sd_idle() 32 return sdhc_request(card->sdhc, &cmd, NULL); in sd_idle() 38 struct sdhc_command cmd; in sd_send_interface_condition() local 42 cmd.opcode = SD_SEND_IF_COND; in sd_send_interface_condition() 43 cmd.arg = SD_IF_COND_VHS_3V3 | SD_IF_COND_CHECK; in sd_send_interface_condition() [all …]
|
D | sdmmc.c | 71 struct sdhc_command cmd; in sdmmc_spi_send_ocr() local 74 cmd.opcode = SD_SPI_READ_OCR; in sdmmc_spi_send_ocr() 75 cmd.arg = arg; in sdmmc_spi_send_ocr() 76 cmd.response_type = SD_SPI_RSP_TYPE_R3; in sdmmc_spi_send_ocr() 77 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_spi_send_ocr() 78 cmd.retries = CONFIG_SD_CMD_RETRIES; in sdmmc_spi_send_ocr() 80 ret = sdhc_request(card->sdhc, &cmd, NULL); in sdmmc_spi_send_ocr() 87 card->ocr = cmd.response[1]; in sdmmc_spi_send_ocr() 99 struct sdhc_command cmd; in sdmmc_send_ocr() local 103 cmd.opcode = SD_APP_SEND_OP_COND; in sdmmc_send_ocr() [all …]
|
/Zephyr-Core-3.7.0/tests/bluetooth/tester/src/audio/ |
D | btp_bap_broadcast.h | 59 uint8_t btp_bap_broadcast_source_setup(const void *cmd, uint16_t cmd_len, 61 uint8_t btp_bap_broadcast_source_release(const void *cmd, uint16_t cmd_len, 63 uint8_t btp_bap_broadcast_adv_start(const void *cmd, uint16_t cmd_len, 65 uint8_t btp_bap_broadcast_adv_stop(const void *cmd, uint16_t cmd_len, 67 uint8_t btp_bap_broadcast_source_start(const void *cmd, uint16_t cmd_len, 69 uint8_t btp_bap_broadcast_source_stop(const void *cmd, uint16_t cmd_len, 71 uint8_t btp_bap_broadcast_sink_setup(const void *cmd, uint16_t cmd_len, 73 uint8_t btp_bap_broadcast_sink_release(const void *cmd, uint16_t cmd_len, 75 uint8_t btp_bap_broadcast_scan_start(const void *cmd, uint16_t cmd_len, 77 uint8_t btp_bap_broadcast_scan_stop(const void *cmd, uint16_t cmd_len, [all …]
|
D | btp_bap_unicast.h | 58 uint8_t btp_bap_discover(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len); 60 uint8_t btp_ascs_configure_codec(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len); 61 uint8_t btp_ascs_configure_qos(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len); 62 uint8_t btp_ascs_enable(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len); 63 uint8_t btp_ascs_receiver_start_ready(const void *cmd, uint16_t cmd_len, 65 uint8_t btp_ascs_receiver_stop_ready(const void *cmd, uint16_t cmd_len, 67 uint8_t btp_ascs_disable(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len); 68 uint8_t btp_ascs_release(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len); 69 uint8_t btp_ascs_update_metadata(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len); 70 uint8_t btp_ascs_add_ase_to_cis(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len); [all …]
|
/Zephyr-Core-3.7.0/drivers/eeprom/ |
D | eeprom_lpc11u6x.c | 35 uint32_t cmd[5]; in eeprom_lpc11u6x_read() local 47 cmd[0] = IAP_CMD_EEPROM_READ; in eeprom_lpc11u6x_read() 48 cmd[1] = offset; in eeprom_lpc11u6x_read() 49 cmd[2] = (uint32_t) data; in eeprom_lpc11u6x_read() 50 cmd[3] = len; in eeprom_lpc11u6x_read() 51 cmd[4] = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC / 1000; in eeprom_lpc11u6x_read() 53 ret = iap_cmd(cmd); in eeprom_lpc11u6x_read() 68 uint32_t cmd[5]; in eeprom_lpc11u6x_write() local 80 cmd[0] = IAP_CMD_EEPROM_WRITE; in eeprom_lpc11u6x_write() 81 cmd[1] = offset; in eeprom_lpc11u6x_write() [all …]
|
/Zephyr-Core-3.7.0/scripts/west_commands/runners/ |
D | nrfjprog.py | 71 cmd = ['nrfjprog'] 76 cmd.append('--pinresetenable') 78 cmd.append('--program') 79 cmd.append(_op['firmware']['file']) 82 cmd.append('--chiperase') 84 cmd.append('--sectorerase') 86 cmd.append('--sectoranduicrerase') 94 cmd.append('--qspisectorerase') 97 cmd.append('--verify') 99 cmd.append('--qspiini') [all …]
|
D | misc.py | 19 def __init__(self, cfg, cmd, args): argument 21 if not cmd: 25 self.cmd = cmd 47 return MiscFlasher(cfg, args.cmd, args.args) 50 self.require(self.cmd) 51 self.check_call([self.cmd, self.cfg.build_dir] + self.args)
|
/Zephyr-Core-3.7.0/tests/bluetooth/tester/src/ |
D | btp.c | 92 struct btp_buf *cmd; in cmd_handler() local 97 cmd = k_fifo_get(&cmds_queue, K_FOREVER); in cmd_handler() 99 len = sys_le16_to_cpu(cmd->hdr.len); in cmd_handler() 101 btp = find_btp_handler(cmd->hdr.service, cmd->hdr.opcode); in cmd_handler() 103 if (btp->index != cmd->hdr.index) { in cmd_handler() 108 status = btp->func(cmd->hdr.data, len, in cmd_handler() 109 cmd->rsp, &rsp_len); in cmd_handler() 122 delayed_cmd = cmd; in cmd_handler() 127 tester_send_with_index(cmd->hdr.service, cmd->hdr.opcode, in cmd_handler() 128 cmd->hdr.index, cmd->rsp, rsp_len); in cmd_handler() [all …]
|
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/audio/src/ |
D | media_controller_test.c | 393 static void command_send_cb(struct media_player *plr, int err, const struct mpl_cmd *cmd) in command_send_cb() argument 603 static void test_send_cmd_wait_flags(struct mpl_cmd *cmd) in test_send_cmd_wait_flags() argument 609 err = media_proxy_ctrl_send_command(current_player, cmd); in test_send_cmd_wait_flags() 612 err, cmd->opcode); in test_send_cmd_wait_flags() 622 struct mpl_cmd cmd; in test_cp_play() local 624 cmd.opcode = MEDIA_PROXY_OP_PLAY; in test_cp_play() 625 cmd.use_param = false; in test_cp_play() 627 test_send_cmd_wait_flags(&cmd); in test_cp_play() 641 struct mpl_cmd cmd; in test_cp_pause() local 643 cmd.opcode = MEDIA_PROXY_OP_PAUSE; in test_cp_pause() [all …]
|
D | mcc_test.c | 350 static void mcc_send_command_cb(struct bt_conn *conn, int err, const struct mpl_cmd *cmd) in mcc_send_command_cb() argument 354 err, cmd->opcode, cmd->param); in mcc_send_command_cb() 700 struct mpl_cmd cmd = { 0 }; in test_invalid_send_cmd() local 703 err = bt_mcc_send_cmd(NULL, &cmd); in test_invalid_send_cmd() 715 cmd.opcode = 0; /* Invalid opcode */ in test_invalid_send_cmd() 717 err = bt_mcc_send_cmd(default_conn, &cmd); in test_invalid_send_cmd() 719 FAIL("bt_mcc_send_cmd did not fail with invalid opcode %u", cmd.opcode); in test_invalid_send_cmd() 723 cmd.opcode = 0x80; /* Invalid opcode */ in test_invalid_send_cmd() 725 err = bt_mcc_send_cmd(default_conn, &cmd); in test_invalid_send_cmd() 727 FAIL("bt_mcc_send_cmd did not fail with invalid opcode %u", cmd.opcode); in test_invalid_send_cmd() [all …]
|
/Zephyr-Core-3.7.0/subsys/shell/ |
D | shell_utils.c | 30 const union shell_cmd_entry *cmd; in shell_root_cmd_get() local 32 TYPE_SECTION_GET(union shell_cmd_entry, shell_root_cmds, id, &cmd); in shell_root_cmd_get() 34 return cmd; in shell_root_cmd_get() 102 char *cmd = *ppcmd; in make_argv() local 106 c = *cmd; in make_argv() 115 memmove(cmd, cmd + 1, in make_argv() 116 z_shell_strlen(cmd)); in make_argv() 117 cmd += 1; in make_argv() 122 memmove(cmd, cmd + 1, in make_argv() 123 z_shell_strlen(cmd)); in make_argv() [all …]
|
/Zephyr-Core-3.7.0/samples/bluetooth/tmap_peripheral/src/ |
D | mcp_ctlr.c | 30 static void mcc_send_command_cb(struct bt_conn *conn, int err, const struct mpl_cmd *cmd) in mcc_send_command_cb() argument 34 err, cmd->opcode, cmd->param); in mcc_send_command_cb() 37 err, cmd->opcode, cmd->param); in mcc_send_command_cb() 67 struct mpl_cmd cmd; in mcp_send_cmd() local 69 cmd.opcode = mcp_opcode; in mcp_send_cmd() 70 cmd.use_param = false; in mcp_send_cmd() 77 err = bt_mcc_send_cmd(default_conn, &cmd); in mcp_send_cmd()
|
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/hci/ |
D | hci.c | 373 struct bt_hci_cp_disconnect *cmd = (void *)buf->data; in disconnect() local 377 handle = sys_le16_to_cpu(cmd->handle); in disconnect() 378 status = ll_terminate_ind_send(handle, cmd->reason); in disconnect() 385 struct bt_hci_cp_read_remote_version_info *cmd = (void *)buf->data; in read_remote_ver_info() local 389 handle = sys_le16_to_cpu(cmd->handle); in read_remote_ver_info() 396 static int link_control_cmd_handle(uint16_t ocf, struct net_buf *cmd, in link_control_cmd_handle() argument 402 disconnect(cmd, evt); in link_control_cmd_handle() 405 read_remote_ver_info(cmd, evt); in link_control_cmd_handle() 417 struct bt_hci_cp_set_event_mask *cmd = (void *)buf->data; in set_event_mask() local 419 event_mask = sys_get_le64(cmd->events); in set_event_mask() [all …]
|
/Zephyr-Core-3.7.0/subsys/mgmt/osdp/src/ |
D | osdp_pd.c | 182 static bool do_command_callback(struct osdp_pd *pd, struct osdp_cmd *cmd) in do_command_callback() argument 186 ret = pd->command_callback(pd->command_callback_arg, cmd); in do_command_callback() 195 static int pd_cmd_cap_ok(struct osdp_pd *pd, struct osdp_cmd *cmd) in pd_cmd_cap_ok() argument 215 if (!cmd || cap->compliance_level == 0 || in pd_cmd_cap_ok() 216 cmd->output.output_no + 1 > cap->num_items) { in pd_cmd_cap_ok() 222 if (!cmd || cap->compliance_level == 0 || in pd_cmd_cap_ok() 223 cmd->led.led_number + 1 > cap->num_items) { in pd_cmd_cap_ok() 262 struct osdp_cmd cmd; in pd_decode_command() local 266 pd->cmd_id = cmd.id = buf[pos++]; in pd_decode_command() 340 cmd.id = OSDP_CMD_OUTPUT; in pd_decode_command() [all …]
|
D | osdp_cp.c | 64 struct osdp_cmd *cmd = NULL; in cp_cmd_alloc() local 66 if (k_mem_slab_alloc(&pd->cmd.slab, (void **)&cmd, K_MSEC(100))) { in cp_cmd_alloc() 70 return cmd; in cp_cmd_alloc() 73 static void cp_cmd_free(struct osdp_pd *pd, struct osdp_cmd *cmd) in cp_cmd_free() argument 75 k_mem_slab_free(&pd->cmd.slab, (void *)cmd); in cp_cmd_free() 78 static void cp_cmd_enqueue(struct osdp_pd *pd, struct osdp_cmd *cmd) in cp_cmd_enqueue() argument 80 sys_slist_append(&pd->cmd.queue, &cmd->node); in cp_cmd_enqueue() 83 static int cp_cmd_dequeue(struct osdp_pd *pd, struct osdp_cmd **cmd) in cp_cmd_dequeue() argument 87 node = sys_slist_peek_head(&pd->cmd.queue); in cp_cmd_dequeue() 91 sys_slist_remove(&pd->cmd.queue, NULL, node); in cp_cmd_dequeue() [all …]
|
/Zephyr-Core-3.7.0/drivers/led/ |
D | ht16k33.c | 101 uint8_t cmd; in ht16k33_led_blink() local 108 cmd = HT16K33_CMD_DISP_SETUP | HT16K33_OPT_D; in ht16k33_led_blink() 110 cmd |= HT16K33_OPT_BLINK_OFF; in ht16k33_led_blink() 112 cmd |= HT16K33_OPT_BLINK_05HZ; in ht16k33_led_blink() 114 cmd |= HT16K33_OPT_BLINK_1HZ; in ht16k33_led_blink() 116 cmd |= HT16K33_OPT_BLINK_2HZ; in ht16k33_led_blink() 119 if (i2c_write_dt(&config->i2c, &cmd, sizeof(cmd))) { in ht16k33_led_blink() 136 uint8_t cmd; in ht16k33_led_set_brightness() local 144 cmd = HT16K33_CMD_DIMMING_SET | dim; in ht16k33_led_set_brightness() 146 if (i2c_write_dt(&config->i2c, &cmd, sizeof(cmd))) { in ht16k33_led_set_brightness() [all …]
|
/Zephyr-Core-3.7.0/drivers/smbus/ |
D | smbus_handlers.c | 59 uint16_t addr, uint8_t cmd, in z_vrfy_smbus_byte_data_write() argument 64 return z_impl_smbus_byte_data_write(dev, addr, cmd, byte); in z_vrfy_smbus_byte_data_write() 69 uint16_t addr, uint8_t cmd, in z_vrfy_smbus_byte_data_read() argument 75 return z_impl_smbus_byte_data_read(dev, addr, cmd, byte); in z_vrfy_smbus_byte_data_read() 80 uint16_t addr, uint8_t cmd, in z_vrfy_smbus_word_data_write() argument 85 return z_impl_smbus_word_data_write(dev, addr, cmd, word); in z_vrfy_smbus_word_data_write() 90 uint16_t addr, uint8_t cmd, in z_vrfy_smbus_word_data_read() argument 96 return z_impl_smbus_word_data_read(dev, addr, cmd, word); in z_vrfy_smbus_word_data_read() 101 uint16_t addr, uint8_t cmd, in z_vrfy_smbus_pcall() argument 107 return z_impl_smbus_pcall(dev, addr, cmd, send_word, recv_word); in z_vrfy_smbus_pcall() [all …]
|
/Zephyr-Core-3.7.0/subsys/console/ |
D | getline.c | 22 static struct console_input *cmd; in console_getline() local 25 if (cmd != NULL) { in console_getline() 26 k_fifo_put(&free_queue, cmd); in console_getline() 29 cmd = k_fifo_get(&used_queue, K_FOREVER); in console_getline() 30 return cmd->line; in console_getline()
|