Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 64) sorted by relevance

123

/subsys/sd/
A Dsd_ops.c22 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()
213 cmd.opcode = opcode; in sdmmc_spi_read_cxd()
214 cmd.arg = 0; in sdmmc_spi_read_cxd()
243 cmd.opcode = opcode; in sdmmc_read_cxd()
244 cmd.arg = (rca << 16); in sdmmc_read_cxd()
338 cmd.arg = 0U; in sdmmc_switch_voltage()
417 cmd.arg = 0; in sdmmc_request_rca()
626 cmd.arg = 0; in card_query_written()
[all …]
A Dmmc.c202 cmd.arg = ocr; in mmc_send_op_cond()
264 cmd.arg = MMC_RCA_ARG; in mmc_set_rca()
287 cmd.opcode = SD_SEND_CSD; in mmc_read_csd()
387 cmd.opcode = SD_SWITCH; in mmc_set_bus_width()
413 cmd.opcode = SD_SWITCH; in mmc_set_hs_timing()
441 cmd.opcode = SD_SWITCH; in mmc_set_power_class_HS200()
477 cmd.opcode = SD_SWITCH; in mmc_set_timing()
525 cmd.opcode = SD_SWITCH; in mmc_set_timing()
536 cmd.opcode = SD_SWITCH; in mmc_set_timing()
568 cmd.arg = 0; in mmc_read_ext_csd()
[all …]
A Dsd.c24 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()
30 cmd.retries = CONFIG_SD_CMD_RETRIES; in sd_idle()
43 struct sdhc_command cmd; in sd_send_interface_condition() local
55 cmd.opcode = SD_SEND_IF_COND; in sd_send_interface_condition()
67 resp = cmd.response[1]; in sd_send_interface_condition()
69 resp = cmd.response[0]; in sd_send_interface_condition()
88 struct sdhc_command cmd; in sd_enable_crc() local
92 cmd.opcode = SD_SPI_CRC_ON_OFF; in sd_enable_crc()
[all …]
A Dsdmmc.c71 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()
87 card->ocr = cmd.response[1]; in sdmmc_spi_send_ocr()
99 struct sdhc_command cmd; in sdmmc_send_ocr() local
104 cmd.arg = ocr; in sdmmc_send_ocr()
174 cmd.arg = 0; in sdmmc_read_scr()
215 cmd.arg = block_len; in sdmmc_set_blocklen()
250 cmd.arg = 0U; in sdmmc_set_bus_width()
253 cmd.arg = 2U; in sdmmc_set_bus_width()
[all …]
A Dsd_utils.h32 static inline int sd_check_response(struct sdhc_command *cmd) in sd_check_response() argument
34 if (cmd->response_type == SD_RSP_TYPE_R1) { in sd_check_response()
35 return (cmd->response[0U] & SD_R1_ERR_FLAGS); in sd_check_response()
50 static inline int sd_retry(int(*cmd)(struct sd_card *card), in sd_retry()
58 ret = cmd(card); in sd_retry()
A Dsdio.c30 struct sdhc_command cmd = {0}; in sdio_send_ocr() local
34 cmd.opcode = SDIO_SEND_OP_COND; in sdio_send_ocr()
35 cmd.arg = ocr; in sdio_send_ocr()
37 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdio_send_ocr()
81 card->ocr = cmd.response[0U]; in sdio_send_ocr()
94 struct sdhc_command cmd = {0}; in sdio_io_rw_direct() local
96 cmd.opcode = SDIO_RW_DIRECT; in sdio_io_rw_direct()
101 cmd.arg |= BIT(SDIO_CMD_ARG_RW_SHIFT); in sdio_io_rw_direct()
107 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdio_io_rw_direct()
133 struct sdhc_command cmd = {0}; in sdio_io_rw_extended() local
[all …]
/subsys/bluetooth/controller/hci/
A Dhci.c1744 cmd->phy, cmd->packing, cmd->framing, in le_create_big()
1767 cmd->packing, cmd->framing, cmd->bn, in le_create_big_test()
1768 cmd->irc, cmd->pto, cmd->encryption, in le_create_big_test()
1878 cmd->encryption, cmd->bcode, cmd->mse, in le_big_create_sync()
2061 cmd->sca, cmd->packing, cmd->framing, in le_set_cig_parameters()
3438 status = ll_test_tx(cmd->tx_ch, cmd->test_data_len, cmd->pkt_payload, cmd->phy, in le_enh_tx_test()
3452 status = ll_test_tx(cmd->tx_ch, cmd->test_data_len, cmd->pkt_payload, cmd->phy, in le_tx_test_v3()
3453 cmd->cte_len, cmd->cte_type, cmd->switch_pattern_len, cmd->ant_ids, in le_tx_test_v3()
3468 status = ll_test_tx(cmd->tx_ch, cmd->test_data_len, cmd->pkt_payload, cmd->phy, in le_tx_test_v4()
3469 cmd->cte_len, cmd->cte_type, cmd->switch_pattern_len, cmd->ant_ids, in le_tx_test_v4()
[all …]
/subsys/usb/host/
A Dusbip.c71 cmd->hdr.command = ntohl(cmd->hdr.command); in usbip_ntoh_command()
72 cmd->hdr.seqnum = ntohl(cmd->hdr.seqnum); in usbip_ntoh_command()
73 cmd->hdr.devid = ntohl(cmd->hdr.devid); in usbip_ntoh_command()
74 cmd->hdr.direction = ntohl(cmd->hdr.direction); in usbip_ntoh_command()
75 cmd->hdr.ep = ntohl(cmd->hdr.ep); in usbip_ntoh_command()
78 cmd->submit.flags = ntohl(cmd->submit.flags); in usbip_ntoh_command()
79 cmd->submit.length = ntohl(cmd->submit.length); in usbip_ntoh_command()
84 cmd->unlink.seqnum = ntohl(cmd->unlink.seqnum); in usbip_ntoh_command()
124 struct usbip_command *const cmd = &cmd_nd->cmd; in usbip_req_cb() local
288 cmd->hdr.devid, cmd->hdr.seqnum, cmd->submit.length, ep, cmd->submit.flags); in usbip_handle_submit()
[all …]
/subsys/mgmt/osdp/src/
A Dosdp_pd.c262 struct osdp_cmd cmd; in pd_decode_command() local
340 cmd.id = OSDP_CMD_OUTPUT; in pd_decode_command()
359 cmd.id = OSDP_CMD_LED; in pd_decode_command()
360 cmd.led.reader = buf[pos++]; in pd_decode_command()
390 cmd.id = OSDP_CMD_BUZZER; in pd_decode_command()
410 cmd.id = OSDP_CMD_TEXT; in pd_decode_command()
411 cmd.text.reader = buf[pos++]; in pd_decode_command()
422 memcpy(cmd.text.data, buf + pos, cmd.text.length); in pd_decode_command()
437 cmd.id = OSDP_CMD_COMSET; in pd_decode_command()
487 cmd.id = OSDP_CMD_KEYSET; in pd_decode_command()
[all …]
A Dosdp_cp.c66 if (k_mem_slab_alloc(&pd->cmd.slab, (void **)&cmd, K_MSEC(100))) { in cp_cmd_alloc()
70 return cmd; in cp_cmd_alloc()
75 k_mem_slab_free(&pd->cmd.slab, (void *)cmd); in cp_cmd_free()
80 sys_slist_append(&pd->cmd.queue, &cmd->node); in cp_cmd_enqueue()
251 memcpy(buf + len, cmd->text.data, cmd->text.length); in cp_build_command()
673 struct osdp_cmd *cmd; in cp_flush_command_queue() local
676 cp_cmd_free(pd, cmd); in cp_flush_command_queue()
738 pd->cmd_id = cmd->id; in cp_phy_state_update()
813 c->id = cmd; in cp_cmd_dispatcher()
1029 } else if (cmd[i]) { in osdp_cp_send_command_keyset()
[all …]
/subsys/shell/
A Dshell_utils.c34 return cmd; in shell_root_cmd_get()
106 c = *cmd; in make_argv()
115 memmove(cmd, cmd + 1, in make_argv()
122 memmove(cmd, cmd + 1, in make_argv()
132 memmove(cmd, cmd + 1, z_shell_strlen(cmd)); in make_argv()
141 memmove(cmd, cmd + 1, in make_argv()
162 memmove(cmd, cmd + (i - 1), in make_argv()
189 memmove(cmd, cmd + (i - 1), in make_argv()
201 cmd += 1; in make_argv()
217 c = *cmd; in z_shell_make_argv()
[all …]
A Dshell_wildcard.c14 char const *cmd, in command_add() argument
17 uint16_t cmd_len = z_shell_strlen(cmd); in command_add()
36 memcpy(completion_addr, cmd, cmd_len); in command_add()
70 const struct shell_static_entry *cmd, in commands_expand() argument
79 while ((entry = z_shell_cmd_get(cmd, cmd_idx++, &dloc)) != NULL) { in commands_expand()
160 const struct shell_static_entry *cmd, in z_shell_wildcard_process() argument
165 if (cmd == NULL) { in z_shell_wildcard_process()
180 ret_val = commands_expand(sh, cmd, pattern); in z_shell_wildcard_process()
A Dshell_help.c211 const struct shell_static_entry *cmd) in z_shell_help_cmd_print() argument
216 field_width = z_shell_strlen(cmd->syntax) + z_shell_strlen(cmd_sep); in z_shell_help_cmd_print()
218 z_shell_fprintf(sh, SHELL_NORMAL, "%s%s", cmd->syntax, cmd_sep); in z_shell_help_cmd_print()
220 if (shell_help_is_structured(cmd->help)) { in z_shell_help_cmd_print()
221 formatted_structured_help_print(sh, cmd->syntax, cmd->help, field_width); in z_shell_help_cmd_print()
223 formatted_text_print(sh, cmd->help, field_width, false); in z_shell_help_cmd_print()
A Dshell_help.h18 const struct shell_static_entry *cmd);
22 const struct shell_static_entry *cmd,
/subsys/usb/device_next/class/
A Dusbd_msc_scsi.c52 #define GET_CONTROL_NACA(cmd) (cmd->control & BIT(2)) argument
85 #define GET_REQUEST_SENSE_DESC(cmd) (cmd->desc & BIT(0)) argument
195 #define GET_IMMED(cmd) (cmd->immed & BIT(0)) argument
196 #define GET_POWER_CONDITION_MODIFIER(cmd) (cmd->condition & BIT_MASK(4)) argument
197 #define GET_POWER_CONDITION(cmd) ((cmd->start & 0xF0) >> 4) argument
198 #define GET_NO_FLUSH(cmd) (cmd->start & BIT(2)) argument
199 #define GET_LOEJ(cmd) (cmd->start & BIT(1)) argument
200 #define GET_START(cmd) (cmd->start & BIT(0)) argument
221 #define GET_PREVENT(cmd) (cmd->prevent & BIT_MASK(2)) argument
575 if (cmd->page != MODE_SENSE_PAGE_CODE_ALL_PAGES || cmd->subpage != 0) { in SCSI_CMD_HANDLER()
[all …]
/subsys/shell/backends/
A Dshell_telnet.c108 switch (cmd->opt) { in telnet_reply_dont_command()
116 cmd->op = NVT_CMD_WILL; in telnet_reply_dont_command()
131 switch (cmd->opt) { in telnet_reply_do_command()
133 cmd->op = NVT_CMD_WILL; in telnet_reply_do_command()
140 cmd->op = NVT_CMD_WILL; in telnet_reply_do_command()
157 if (!cmd->iac) { in telnet_reply_command()
161 switch (cmd->op) { in telnet_reply_command()
257 LOG_DBG("Got a command %u/%u/%u", cmd->iac, cmd->op, cmd->opt); in telnet_handle_command()
307 cmd->op = *(buf + off); in telnet_recv()
331 memset(cmd, 0, sizeof(*cmd)); in telnet_recv()
[all …]
/subsys/bluetooth/audio/shell/
A Dmedia_controller.c767 const struct mpl_cmd cmd = { in cmd_media_play() local
784 const struct mpl_cmd cmd = { in cmd_media_pause() local
802 const struct mpl_cmd cmd = { in cmd_media_fast_rewind() local
820 const struct mpl_cmd cmd = { in cmd_media_fast_forward() local
838 const struct mpl_cmd cmd = { in cmd_media_stop() local
856 struct mpl_cmd cmd = { in cmd_media_move_relative() local
967 struct mpl_cmd cmd = { in cmd_media_goto_segment() local
1077 struct mpl_cmd cmd = { in cmd_media_goto_track() local
1098 cmd.param = (int32_t)track; in cmd_media_goto_track()
1185 struct mpl_cmd cmd = { in cmd_media_goto_group() local
[all …]
A Dmcc.c389 err, cmd->opcode, cmd->param); in mcc_send_cmd_cb()
393 bt_shell_print("Command opcode: %d, param: %d", cmd->opcode, cmd->param); in mcc_send_cmd_cb()
1075 const struct mpl_cmd cmd = { in cmd_mcc_play() local
1092 const struct mpl_cmd cmd = { in cmd_mcc_pause() local
1110 const struct mpl_cmd cmd = { in cmd_mcc_fast_rewind() local
1163 struct mpl_cmd cmd = { in cmd_mcc_move_relative() local
1269 struct mpl_cmd cmd = { in cmd_mcc_goto_segment() local
1371 struct mpl_cmd cmd = { in cmd_mcc_goto_track() local
1392 cmd.param = (int32_t)track; in cmd_mcc_goto_track()
1473 struct mpl_cmd cmd = { in cmd_mcc_goto_group() local
[all …]
/subsys/tracing/
A Dtracing_backend_uart.c31 static uint8_t *cmd; in uart_isr() local
47 if (!cmd) { in uart_isr()
48 length = tracing_cmd_buffer_alloc(&cmd); in uart_isr()
53 cmd[cur] = '\0'; in uart_isr()
54 tracing_cmd_handle(cmd, cur); in uart_isr()
55 cmd = NULL; in uart_isr()
63 cmd[cur++] = byte; in uart_isr()
/subsys/console/
A Dgetline.c22 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()
/subsys/bluetooth/host/classic/
A Davrcp.c310 struct bt_avrcp_frame *cmd; in avrcp_create_unit_pdu() local
317 cmd = net_buf_add(buf, sizeof(*cmd)); in avrcp_create_unit_pdu()
318 memset(cmd, 0, sizeof(*cmd)); in avrcp_create_unit_pdu()
331 struct bt_avrcp_frame *cmd; in avrcp_create_subunit_pdu() local
338 cmd = net_buf_add(buf, sizeof(*cmd)); in avrcp_create_subunit_pdu()
339 memset(cmd, 0, sizeof(*cmd)); in avrcp_create_subunit_pdu()
353 struct bt_avrcp_frame *cmd; in avrcp_create_passthrough_pdu() local
360 cmd = net_buf_add(buf, sizeof(*cmd)); in avrcp_create_passthrough_pdu()
361 memset(cmd, 0, sizeof(*cmd)); in avrcp_create_passthrough_pdu()
381 cmd = net_buf_add(buf, sizeof(*cmd)); in avrcp_create_vendor_pdu()
[all …]
/subsys/llext/
A Dshell.c71 struct llext_shell_cmd *cmd = arg; in llext_shell_name_cb() local
73 if (cmd->tgt == cmd->idx) { in llext_shell_name_cb()
74 cmd->ext = ext; in llext_shell_name_cb()
78 cmd->idx++; in llext_shell_name_cb()
85 struct llext_shell_cmd cmd = {.tgt = idx}; in llext_name_get() local
87 llext_iterate(llext_shell_name_cb, &cmd); in llext_name_get()
89 entry->syntax = cmd.ext ? cmd.ext->name : NULL; in llext_name_get()
/subsys/usb/device/class/netusb/
A Dfunction_rndis.c448 LOG_DBG("req_id 0x%x", cmd->req_id); in rndis_init_handle()
460 rsp->req_id = cmd->req_id; in rndis_init_handle()
519 sys_le32_to_cpu(cmd->req_id), in rndis_query_handle()
521 sys_le32_to_cpu(cmd->buf_len), in rndis_query_handle()
522 sys_le32_to_cpu(cmd->buf_offset)); in rndis_query_handle()
526 rsp->req_id = cmd->req_id; in rndis_query_handle()
647 if (len < sizeof(*cmd)) { in rndis_set_handle()
653 param = (uint8_t *)&cmd->req_id + sys_le32_to_cpu(cmd->buf_offset); in rndis_set_handle()
656 sys_le32_to_cpu(cmd->buf_len)) { in rndis_set_handle()
671 sys_le32_to_cpu(cmd->buf_len), in rndis_set_handle()
[all …]
/subsys/disk/
A Ddisk_access.c121 int disk_access_ioctl(const char *pdrv, uint8_t cmd, void *buf) in disk_access_ioctl() argument
128 switch (cmd) { in disk_access_ioctl()
131 rc = disk->ops->ioctl(disk, cmd, buf); in disk_access_ioctl()
146 disk->ops->ioctl(disk, cmd, buf); in disk_access_ioctl()
149 rc = disk->ops->ioctl(disk, cmd, buf); in disk_access_ioctl()
161 rc = disk->ops->ioctl(disk, cmd, buf); in disk_access_ioctl()
/subsys/bluetooth/controller/ll_sw/openisa/hci/
A Dhci_vendor.h11 inline int hci_vendor_cmd_handle(uint16_t ocf, struct net_buf *cmd, in hci_vendor_cmd_handle() argument
14 return hci_vendor_cmd_handle_common(ocf, cmd, evt); in hci_vendor_cmd_handle()

Completed in 94 milliseconds

123