Home
last modified time | relevance | path

Searched refs:cmd_buf (Results 1 – 21 of 21) sorted by relevance

/Zephyr-latest/drivers/sensor/adi/adt7310/
Dadt7310.c52 uint8_t cmd_buf[3] = { ADT7310_READ_CMD | (reg << 3) }; in adt7310_temp_reg_read() local
54 const struct spi_buf tx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_read()
55 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_read()
64 memcpy(val, cmd_buf + 1, 2); in adt7310_temp_reg_read()
73 uint8_t cmd_buf[3]; in adt7310_temp_reg_write() local
74 const struct spi_buf tx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_write()
75 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_write()
79 cmd_buf[0] = ADT7310_WRITE_CMD | (reg << 3); in adt7310_temp_reg_write()
81 memcpy(&cmd_buf[1], &val, sizeof(val)); in adt7310_temp_reg_write()
89 uint8_t cmd_buf[2] = { ADT7310_READ_CMD | (reg << 3) }; in adt7310_reg_read() local
[all …]
/Zephyr-latest/drivers/display/
Dssd1306.c154 uint8_t cmd_buf[] = {(config->segment_remap ? SSD1306_SET_SEGMENT_MAP_REMAPED in ssd1306_set_panel_orientation() local
159 return ssd1306_write_bus(dev, cmd_buf, sizeof(cmd_buf), true); in ssd1306_set_panel_orientation()
165 uint8_t cmd_buf[] = {SSD1306_SET_CLOCK_DIV_RATIO, in ssd1306_set_timing_setting() local
172 return ssd1306_write_bus(dev, cmd_buf, sizeof(cmd_buf), true); in ssd1306_set_timing_setting()
178 uint8_t cmd_buf[] = { in ssd1306_set_hardware_config() local
189 return ssd1306_write_bus(dev, cmd_buf, sizeof(cmd_buf), true); in ssd1306_set_hardware_config()
195 uint8_t cmd_buf[] = { in ssd1306_set_charge_pump() local
202 return ssd1306_write_bus(dev, cmd_buf, sizeof(cmd_buf), true); in ssd1306_set_charge_pump()
209 uint8_t cmd_buf[] = { in ssd1306_set_iref_mode() local
215 ret = ssd1306_write_bus(dev, cmd_buf, sizeof(cmd_buf), true); in ssd1306_set_iref_mode()
[all …]
Ddisplay_ist3931.c64 uint8_t cmd_buf = IST3931_CMD_POWER_CONTROL | config->vc | config->vf << 1; in ist3931_set_power() local
66 return ist3931_write_bus(dev, &cmd_buf, 1, 1); in ist3931_set_power()
72 uint8_t cmd_buf = IST3931_CMD_BIAS | config->bias; in ist3931_set_bias() local
74 return ist3931_write_bus(dev, &cmd_buf, 1, 1); in ist3931_set_bias()
80 uint8_t cmd_buf[2] = {IST3931_CMD_CT, config->ct}; in ist3931_set_ct() local
82 return ist3931_write_bus(dev, cmd_buf, 1, 2); in ist3931_set_ct()
88 uint8_t cmd_buf[3] = {IST3931_CMD_FRAME_CONTROL, config->fr & 0x00FF, config->fr >> 8}; in ist3931_set_fr() local
90 return ist3931_write_bus(dev, cmd_buf, 1, 3); in ist3931_set_fr()
96 uint8_t cmd_buf[2] = {(IST3931_CMD_SET_DUTY_LSB | (config->duty & 0x0F)), in ist3931_set_duty() local
99 return ist3931_write_bus(dev, cmd_buf, 1, 2); in ist3931_set_duty()
[all …]
Dls0xx.c100 struct spi_buf cmd_buf = { .buf = buf, .len = len }; in ls0xx_cmd() local
101 struct spi_buf_set buf_set = { .buffers = &cmd_buf, .count = 1 }; in ls0xx_cmd()
/Zephyr-latest/tests/drivers/disk/disk_access/src/
Dmain.c106 uint32_t cmd_buf; in test_setup() local
114 rc = disk_access_ioctl(disk_pdrv, DISK_IOCTL_GET_SECTOR_COUNT, &cmd_buf); in test_setup()
117 TC_PRINT("Disk reports %u sectors\n", cmd_buf); in test_setup()
118 disk_sector_count = cmd_buf; in test_setup()
120 rc = disk_access_ioctl(disk_pdrv, DISK_IOCTL_GET_SECTOR_SIZE, &cmd_buf); in test_setup()
122 TC_PRINT("Disk reports sector size %u\n", cmd_buf); in test_setup()
123 disk_sector_size = cmd_buf; in test_setup()
128 zassert_true(cmd_buf <= SECTOR_SIZE, in test_setup()
/Zephyr-latest/tests/drivers/disk/disk_performance/src/
Dmain.c59 uint32_t cmd_buf; in test_setup() local
67 rc = disk_access_ioctl(disk_pdrv, DISK_IOCTL_GET_SECTOR_COUNT, &cmd_buf); in test_setup()
70 TC_PRINT("Disk reports %u sectors\n", cmd_buf); in test_setup()
71 disk_sector_count = cmd_buf; in test_setup()
73 rc = disk_access_ioctl(disk_pdrv, DISK_IOCTL_GET_SECTOR_SIZE, &cmd_buf); in test_setup()
75 TC_PRINT("Disk reports sector size %u\n", cmd_buf); in test_setup()
76 disk_sector_size = cmd_buf; in test_setup()
79 zassert_true(cmd_buf == SECTOR_SIZE, in test_setup()
/Zephyr-latest/drivers/can/
Dcan_mcp2515.c30 uint8_t cmd_buf[] = { MCP2515_OPCODE_RESET }; in mcp2515_cmd_soft_reset() local
33 .buf = cmd_buf, .len = sizeof(cmd_buf), in mcp2515_cmd_soft_reset()
48 uint8_t cmd_buf[] = { MCP2515_OPCODE_BIT_MODIFY, reg_addr, mask, data }; in mcp2515_cmd_bit_modify() local
51 .buf = cmd_buf, .len = sizeof(cmd_buf), in mcp2515_cmd_bit_modify()
65 uint8_t cmd_buf[] = { MCP2515_OPCODE_WRITE, reg_addr }; in mcp2515_cmd_write_reg() local
68 { .buf = cmd_buf, .len = sizeof(cmd_buf) }, in mcp2515_cmd_write_reg()
99 uint8_t cmd_buf[] = { MCP2515_OPCODE_LOAD_TX_BUFFER | abc }; in mcp2515_cmd_load_tx_buffer() local
102 { .buf = cmd_buf, .len = sizeof(cmd_buf) }, in mcp2515_cmd_load_tx_buffer()
125 uint8_t cmd_buf[] = { MCP2515_OPCODE_RTS | nnn }; in mcp2515_cmd_rts() local
128 { .buf = cmd_buf, .len = sizeof(cmd_buf) } in mcp2515_cmd_rts()
[all …]
/Zephyr-latest/drivers/wifi/esp_at/
Desp_offload.c264 char cmd_buf[sizeof("AT+CIPSEND=0,,\"\",") + in _sock_send() local
286 snprintk(cmd_buf, sizeof(cmd_buf), in _sock_send()
296 snprintk(cmd_buf, sizeof(cmd_buf), in _sock_send()
306 cmds, ARRAY_SIZE(cmds), cmd_buf, in _sock_send()
488 char cmd_buf[CIPRECVDATA_CMD_MAX_LEN + 1]; in cmd_ciprecvdata_parse() local
498 match_len = net_buf_linearize(cmd_buf, CIPRECVDATA_CMD_MAX_LEN, in cmd_ciprecvdata_parse()
500 cmd_buf[match_len] = 0; in cmd_ciprecvdata_parse()
502 *data_len = strtol(&cmd_buf[len], &endptr, 10); in cmd_ciprecvdata_parse()
520 if (endptr == &cmd_buf[len] || in cmd_ciprecvdata_parse()
523 LOG_ERR("Invalid cmd: %s", cmd_buf); in cmd_ciprecvdata_parse()
[all …]
Desp_socket.c216 char cmd_buf[sizeof("AT+CIPCLOSE=000")]; local
219 snprintk(cmd_buf, sizeof(cmd_buf), "AT+CIPCLOSE=%d",
221 ret = esp_cmd_send(dev, NULL, 0, cmd_buf, ESP_CMD_TIMEOUT);
/Zephyr-latest/drivers/misc/ft8xx/
Dft8xx_drv.c169 uint8_t cmd_buf[COMMAND_SIZE] = {command, 0, 0}; in ft8xx_drv_command() local
172 .buf = cmd_buf, in ft8xx_drv_command()
173 .len = sizeof(cmd_buf), in ft8xx_drv_command()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc1200.c81 uint8_t cmd_buf[2]; in z_cc1200_access_reg() local
84 .buf = cmd_buf, in z_cc1200_access_reg()
95 cmd_buf[0] = 0U; in z_cc1200_access_reg()
98 cmd_buf[0] |= CC1200_ACCESS_BURST; in z_cc1200_access_reg()
102 cmd_buf[0] |= CC1200_REG_EXTENDED_ADDRESS; in z_cc1200_access_reg()
103 cmd_buf[1] = addr; in z_cc1200_access_reg()
105 cmd_buf[0] |= addr; in z_cc1200_access_reg()
114 cmd_buf[0] |= CC1200_ACCESS_RD; in z_cc1200_access_reg()
Dieee802154_mcr20a.c158 uint8_t cmd_buf[3] = { in z_mcr20a_read_reg() local
166 .buf = cmd_buf, in z_mcr20a_read_reg()
179 return cmd_buf[len - 1]; in z_mcr20a_read_reg()
192 uint8_t cmd_buf[3] = { in z_mcr20a_write_reg() local
199 .buf = cmd_buf, in z_mcr20a_write_reg()
215 uint8_t cmd_buf[2] = { in z_mcr20a_write_burst() local
222 .buf = cmd_buf, in z_mcr20a_write_burst()
243 uint8_t cmd_buf[2] = { in z_mcr20a_read_burst() local
250 .buf = cmd_buf, in z_mcr20a_read_burst()
1080 uint8_t cmd_buf[2] = { in write_txfifo_content() local
[all …]
Dieee802154_cc2520.c208 uint8_t cmd_buf[2]; in z_cc2520_access() local
211 .buf = cmd_buf, in z_cc2520_access()
225 cmd_buf[0] = ins; in z_cc2520_access()
229 cmd_buf[0] |= (uint8_t)(addr >> 8); in z_cc2520_access()
230 cmd_buf[1] = (uint8_t)(addr & 0xff); in z_cc2520_access()
232 cmd_buf[0] |= (uint8_t)(addr & 0xff); in z_cc2520_access()
/Zephyr-latest/drivers/sdhc/
Dsdhc_spi.c355 uint8_t *cmd_buf; in sdhc_spi_send_cmd() local
396 cmd_buf = dev_data->scratch + 1; in sdhc_spi_send_cmd()
408 cmd_buf[0] = (cmd->opcode & SD_SPI_CMD); in sdhc_spi_send_cmd()
409 cmd_buf[0] = ((cmd_buf[0] | SD_SPI_TX) & ~SD_SPI_START); in sdhc_spi_send_cmd()
411 sys_put_be32(cmd->arg, &cmd_buf[1]); in sdhc_spi_send_cmd()
413 cmd_buf[SD_SPI_CMD_BODY_SIZE] = crc7_be(0, cmd_buf, SD_SPI_CMD_BODY_SIZE) | 0x1; in sdhc_spi_send_cmd()
/Zephyr-latest/include/zephyr/shell/
Dshell_telnet.h53 uint8_t cmd_buf[SHELL_TELNET_MAX_CMD_SIZE]; member
/Zephyr-latest/drivers/usb/uhc/
Duhc_max3421e.c68 const struct spi_buf cmd_buf = { in max3421e_read_hirq() local
84 .buffers = &cmd_buf, in max3421e_read_hirq()
116 const struct spi_buf cmd_buf = { in max3421e_write_byte() local
121 .buffers = &cmd_buf, in max3421e_write_byte()
136 const struct spi_buf cmd_buf[] = { in max3421e_write() local
147 .buffers = cmd_buf, in max3421e_write()
148 .count = ARRAY_SIZE(cmd_buf), in max3421e_write()
/Zephyr-latest/drivers/ethernet/
Deth_adin2111.c542 uint8_t cmd_buf[ADIN2111_FIFO_READ_CMD_BUF_SIZE_CRC] = { 0 }; in adin2111_read_fifo() local
544 uint8_t cmd_buf[ADIN2111_FIFO_READ_CMD_BUF_SIZE] = { 0 }; in adin2111_read_fifo() local
564 *(uint16_t *)cmd_buf = htons((ADIN2111_READ_TXN_CTRL | rx_reg)); in adin2111_read_fifo()
566 cmd_buf[2] = crc8_ccitt(0, cmd_buf, ADIN2111_SPI_HEADER_SIZE); in adin2111_read_fifo()
568 cmd_buf[3] = 0U; in adin2111_read_fifo()
571 cmd_buf[2] = 0U; in adin2111_read_fifo()
574 const struct spi_buf tx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adin2111_read_fifo()
576 {.buf = NULL, .len = sizeof(cmd_buf) + ADIN2111_FRAME_HEADER_SIZE}, in adin2111_read_fifo()
/Zephyr-latest/subsys/usb/device_next/class/
Dbt_hci.c423 struct net_buf *cmd_buf; in bt_hci_ctd() local
435 cmd_buf = bt_buf_get_tx(BT_BUF_CMD, K_NO_WAIT, buf->data, buf->len); in bt_hci_ctd()
436 if (!cmd_buf) { in bt_hci_ctd()
442 k_fifo_put(&bt_hci_rx_queue, cmd_buf); in bt_hci_ctd()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp.c41 static struct btp_buf cmd_buf[CMD_QUEUED]; variable
233 k_fifo_put(&avail_queue, &cmd_buf[i]); in tester_init()
/Zephyr-latest/subsys/shell/
Dshell.c640 char *cmd_buf = sh->ctx->cmd_buff; in execute() local
663 argv[1] = cmd_buf; in execute()
676 quote = z_shell_make_argv(&argc, argvp, cmd_buf, 2); in execute()
677 cmd_buf = (char *)argvp[1]; in execute()
/Zephyr-latest/subsys/shell/backends/
Dshell_telnet.c272 (struct telnet_simple_command *)sh_telnet->cmd_buf; in telnet_recv()