/Zephyr-latest/drivers/can/ |
D | can_mcp2515.c | 32 const struct spi_buf tx_buf = { in mcp2515_cmd_soft_reset() local 36 .buffers = &tx_buf, .count = 1U in mcp2515_cmd_soft_reset() 50 const struct spi_buf tx_buf = { in mcp2515_cmd_bit_modify() local 54 .buffers = &tx_buf, .count = 1U in mcp2515_cmd_bit_modify() 67 struct spi_buf tx_buf[] = { in mcp2515_cmd_write_reg() local 72 .buffers = tx_buf, .count = ARRAY_SIZE(tx_buf) in mcp2515_cmd_write_reg() 101 struct spi_buf tx_buf[] = { in mcp2515_cmd_load_tx_buffer() local 106 .buffers = tx_buf, .count = ARRAY_SIZE(tx_buf) in mcp2515_cmd_load_tx_buffer() 127 struct spi_buf tx_buf[] = { in mcp2515_cmd_rts() local 131 .buffers = tx_buf, .count = ARRAY_SIZE(tx_buf) in mcp2515_cmd_rts() [all …]
|
/Zephyr-latest/tests/net/lib/mqtt/v3_1_1/mqtt_packet/src/ |
D | mqtt_packet.c | 726 buf.cur = client.tx_buf; in eval_msg_connect() 727 buf.end = client.tx_buf + client.tx_buf_size; in eval_msg_connect() 746 buf.cur = client.tx_buf; in eval_msg_disconnect() 747 buf.end = client.tx_buf + client.tx_buf_size; in eval_msg_disconnect() 773 buf.cur = client.tx_buf; in eval_msg_publish() 774 buf.end = client.tx_buf + client.tx_buf_size; in eval_msg_publish() 846 buf.cur = client.tx_buf; in eval_msg_subscribe() 847 buf.end = client.tx_buf + client.tx_buf_size; in eval_msg_subscribe() 900 buf.cur = client.tx_buf; in eval_msg_pingreq() 901 buf.end = client.tx_buf + client.tx_buf_size; in eval_msg_pingreq() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/src/ |
D | main.c | 41 evt.data.tx.buf = data->tx_buf; in tx_done() 100 uint8_t tx_buf[RSP_HEADER_SIZE + sizeof(EC_HELLO_STR)]; in test_hello() local 101 struct ec_host_cmd_response_header *rsp = (struct ec_host_cmd_response_header *)tx_buf; in test_hello() 118 memcpy(&tx_buf[RSP_HEADER_SIZE], EC_HELLO_STR, sizeof(EC_HELLO_STR)); in test_hello() 119 rsp->checksum = cal_checksum(tx_buf, sizeof(tx_buf)); in test_hello() 123 ztest_expect_data(uart_mock_tx, buf, tx_buf); in test_hello()
|
/Zephyr-latest/modules/nrf_wifi/bus/ |
D | qspi_if.c | 181 const struct qspi_buf *tx_buf; member 582 const void *tx_buf = NULL; in qspi_send_cmd() local 588 if (cmd->tx_buf) { in qspi_send_cmd() 589 tx_buf = cmd->tx_buf->buf; in qspi_send_cmd() 590 tx_len = cmd->tx_buf->len; in qspi_send_cmd() 626 int res = nrfx_qspi_cinstr_xfer(&cinstr_cfg, tx_buf, rx_buf); in qspi_send_cmd() 780 .tx_buf = &sr_buf, in qspi_nrfx_configure() 1023 const struct qspi_buf tx_buf = { .buf = (uint8_t *)&p_cfg->nonce[1], in qspi_cmd_encryption() local 1027 .tx_buf = &tx_buf, in qspi_cmd_encryption() 1152 const struct qspi_buf tx_buf = { in qspi_WRSR2() local [all …]
|
/Zephyr-latest/drivers/sensor/ti/tmp007/ |
D | tmp007.c | 37 uint8_t tx_buf[3] = {reg, val >> 8, val & 0xFF}; in tmp007_reg_write() local 39 return i2c_write_dt(i2c, tx_buf, sizeof(tx_buf)); in tmp007_reg_write()
|
/Zephyr-latest/drivers/sensor/bosch/bmp388/ |
D | bmp388_spi.c | 61 const struct spi_buf tx_buf = { in bmp388_reg_write_spi() local 66 .buffers = &tx_buf, in bmp388_reg_write_spi()
|
/Zephyr-latest/drivers/serial/ |
D | uart_emul.c | 73 const uint8_t *tx_buf; member 587 const uint8_t *tx_buf = NULL; in uart_emul_async_tx_handler() local 593 tx_buf = data->tx_buf; in uart_emul_async_tx_handler() 597 if (!tx_buf) { in uart_emul_async_tx_handler() 601 written = ring_buf_put(data->tx_rb, &data->tx_buf[tx_buf_offset], in uart_emul_async_tx_handler() 608 data->tx_buf = NULL; in uart_emul_async_tx_handler() 613 if (!tx_buf) { in uart_emul_async_tx_handler() 618 uint32_t loop_written = uart_emul_put_rx_data(dev, &tx_buf[tx_buf_offset], written); in uart_emul_async_tx_handler() 660 .buf = tx_buf, in uart_emul_async_tx_handler() 745 if (data->tx_buf) { in uart_emul_tx() [all …]
|
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp.c | 30 struct ring_buf tx_buf; member 82 len = ring_buf_get(&p->tx_buf, buf, 1); in osdp_uart_isr() 110 sent = (int)ring_buf_put(&p->tx_buf, buf, len); in osdp_uart_send() 120 ring_buf_reset(&p->tx_buf); in osdp_uart_flush() 197 ring_buf_init(&p->tx_buf, sizeof(p->tx_fbuf), p->tx_fbuf); in osdp_init()
|
/Zephyr-latest/drivers/spi/ |
D | spi_context.h | 48 const uint8_t *tx_buf; member 300 ctx->tx_buf = (const uint8_t *) in spi_context_buffers_setup() 320 (void *)ctx->tx_buf, ctx->tx_len, in spi_context_buffers_setup() 345 ctx->tx_buf = (const uint8_t *) in spi_context_update_tx() 349 } else if (ctx->tx_buf) { in spi_context_update_tx() 350 ctx->tx_buf += dfs * len; in spi_context_update_tx() 353 LOG_DBG("tx buf/len %p/%zu", (void *)ctx->tx_buf, ctx->tx_len); in spi_context_update_tx() 365 return !!(ctx->tx_buf && ctx->tx_len); in spi_context_tx_buf_on()
|
D | spi_b_renesas_ra8.c | 177 if (data->ctx.tx_buf != NULL) { in ra_spi_b_transceive_slave() 179 tx = *(uint32_t *)(data->ctx.tx_buf); in ra_spi_b_transceive_slave() 181 tx = *(uint16_t *)(data->ctx.tx_buf); in ra_spi_b_transceive_slave() 183 tx = *(uint8_t *)(data->ctx.tx_buf); in ra_spi_b_transceive_slave() 226 tx = *(uint32_t *)(data->ctx.tx_buf); in ra_spi_b_transceive_master() 228 tx = *(uint16_t *)(data->ctx.tx_buf); in ra_spi_b_transceive_master() 230 tx = *(uint8_t *)(data->ctx.tx_buf); in ra_spi_b_transceive_master() 330 R_SPI_B_Write(&data->spi, data->ctx.tx_buf, data->data_len, spi_width); in transceive() 331 } else if (data->ctx.tx_buf == NULL) { in transceive() 334 R_SPI_B_WriteRead(&data->spi, data->ctx.tx_buf, data->ctx.rx_buf, data->data_len, in transceive() [all …]
|
D | spi_renesas_ra.c | 189 if (data->ctx.tx_buf != NULL) { in ra_spi_transceive_slave() 191 tx = *(uint32_t *)(data->ctx.tx_buf); in ra_spi_transceive_slave() 193 tx = *(uint16_t *)(data->ctx.tx_buf); in ra_spi_transceive_slave() 195 tx = *(uint8_t *)(data->ctx.tx_buf); in ra_spi_transceive_slave() 251 tx = *(uint32_t *)(data->ctx.tx_buf); in ra_spi_transceive_master() 253 tx = *(uint16_t *)(data->ctx.tx_buf); in ra_spi_transceive_master() 255 tx = *(uint8_t *)(data->ctx.tx_buf); in ra_spi_transceive_master() 368 R_SPI_Write(&data->spi, data->ctx.tx_buf, data->data_len, spi_width); in transceive() 369 } else if (data->ctx.tx_buf == NULL) { in transceive() 372 R_SPI_WriteRead(&data->spi, data->ctx.tx_buf, data->ctx.rx_buf, data->data_len, in transceive() [all …]
|
/Zephyr-latest/subsys/shell/backends/ |
D | shell_mqtt.c | 219 sh_mqtt->mqtt_cli.tx_buf = sh_mqtt->buf.tx; in client_init() 457 rc = sh_mqtt_publish(&sh_mqtt->tx_buf.buf[0], sh_mqtt->tx_buf.len); in sh_mqtt_publish_tx_buf() 458 memset(&sh_mqtt->tx_buf, 0, sizeof(sh_mqtt->tx_buf)); in sh_mqtt_publish_tx_buf() 750 if ((sh_mqtt->tx_buf.len + length - *cnt) > TX_BUF_SIZE) { in write_data() 751 copy_len = TX_BUF_SIZE - sh_mqtt->tx_buf.len; in write_data() 756 memcpy(sh_mqtt->tx_buf.buf + sh_mqtt->tx_buf.len, (uint8_t *)data + *cnt, copy_len); in write_data() 757 sh_mqtt->tx_buf.len += copy_len; in write_data() 760 if (sh_mqtt->tx_buf.len == TX_BUF_SIZE) { in write_data() 774 if (sh_mqtt->tx_buf.len > 0) { in write_data()
|
/Zephyr-latest/include/zephyr/mgmt/ec_host_cmd/ |
D | simulator.h | 32 struct ec_host_cmd_tx_buf **tx_buf);
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_pcf857x.c | 173 uint16_t tx_buf; in pcf857x_port_set_raw() local 185 tx_buf = (drv_data->pins_cfg.outputs_state & ~mask); in pcf857x_port_set_raw() 186 tx_buf |= (value & mask); in pcf857x_port_set_raw() 187 tx_buf ^= toggle; in pcf857x_port_set_raw() 188 sys_put_le16(tx_buf, tx_buf_p); in pcf857x_port_set_raw() 196 drv_data->pins_cfg.outputs_state = tx_buf; in pcf857x_port_set_raw()
|
/Zephyr-latest/drivers/sensor/ti/ina219/ |
D | ina219.c | 43 uint8_t tx_buf[3]; in ina219_reg_write() local 45 tx_buf[0] = addr; in ina219_reg_write() 46 sys_put_be16(reg_data, &tx_buf[1]); in ina219_reg_write() 48 return i2c_write_dt(&cfg->bus, tx_buf, sizeof(tx_buf)); in ina219_reg_write()
|
/Zephyr-latest/samples/subsys/dap/src/ |
D | main.c | 25 static uint8_t tx_buf[CONFIG_CMSIS_DAP_PACKET_SIZE]; variable 325 len = dap_execute_cmd(buf->data, tx_buf); in dap_usb_process() 327 len, tx_buf[0], tx_buf[1]); in dap_usb_process() 330 err = usb_transfer_sync(ep, tx_buf, len, USB_TRANS_WRITE | USB_TRANS_NO_ZLP); in dap_usb_process()
|
/Zephyr-latest/drivers/sensor/sensirion/shtcx/ |
D | shtcx.c | 73 uint8_t tx_buf[2]; in shtcx_write_command() local 75 sys_put_be16(cmd, tx_buf); in shtcx_write_command() 76 return i2c_write_dt(&cfg->i2c, tx_buf, sizeof(tx_buf)); in shtcx_write_command()
|
/Zephyr-latest/drivers/sensor/ti/opt3001/ |
D | opt3001.c | 43 uint8_t tx_buf[3] = { reg, new_value[0], new_value[1] }; in opt3001_reg_write() local 45 return i2c_write_dt(&config->i2c, tx_buf, sizeof(tx_buf)); in opt3001_reg_write()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_enc424j600.c | 31 const struct spi_buf tx_buf = { in enc424j600_write_sbc() local 36 .buffers = &tx_buf, in enc424j600_write_sbc() 48 const struct spi_buf tx_buf = { in enc424j600_write_sfru() local 53 .buffers = &tx_buf, in enc424j600_write_sfru() 70 const struct spi_buf tx_buf = { in enc424j600_read_sfru() local 75 .buffers = &tx_buf, in enc424j600_read_sfru() 103 const struct spi_buf tx_buf = { in enc424j600_modify_sfru() local 108 .buffers = &tx_buf, in enc424j600_modify_sfru() 164 const struct spi_buf tx_buf[2] = { in enc424j600_write_mem() local 175 .buffers = tx_buf, in enc424j600_write_mem() [all …]
|
/Zephyr-latest/drivers/sensor/ti/ina226/ |
D | ina226.c | 88 uint8_t tx_buf[3]; in ina226_reg_write() local 90 tx_buf[0] = reg; in ina226_reg_write() 91 sys_put_be16(val, &tx_buf[1]); in ina226_reg_write() 93 return i2c_write_dt(bus, tx_buf, sizeof(tx_buf)); in ina226_reg_write()
|
/Zephyr-latest/drivers/sensor/ti/ina3221/ |
D | ina3221.c | 39 uint8_t tx_buf[3]; in reg_write() local 41 tx_buf[0] = addr; in reg_write() 42 sys_put_be16(reg_data, &tx_buf[1]); in reg_write() 44 return i2c_write_dt(&cfg->bus, tx_buf, sizeof(tx_buf)); in reg_write()
|
/Zephyr-latest/drivers/sensor/maxim/max44009/ |
D | max44009.c | 51 uint8_t tx_buf[2] = {reg, val}; in max44009_reg_write() local 53 return i2c_write_dt(&config->i2c, tx_buf, sizeof(tx_buf)); in max44009_reg_write()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_spi.c | 37 const struct spi_buf tx_buf = { in spi_read_register() local 43 .buffers = &tx_buf, in spi_read_register()
|
/Zephyr-latest/drivers/sensor/sensirion/scd4x/ |
D | scd4x.c | 34 uint8_t tx_buf[2]; in scd4x_write_command() local 37 sys_put_be16(scd4x_cmds[cmd].cmd, tx_buf); in scd4x_write_command() 39 ret = i2c_write_dt(&cfg->bus, tx_buf, sizeof(tx_buf)); in scd4x_write_command() 74 uint8_t tx_buf[((data_size * 3) + 2)]; in scd4x_write_reg() local 76 sys_put_be16(scd4x_cmds[cmd].cmd, tx_buf); in scd4x_write_reg() 81 sys_put_be16(data[i], &tx_buf[tx_buf_pos]); in scd4x_write_reg() 83 tx_buf[tx_buf_pos++] = scd4x_calc_crc(data[i]); in scd4x_write_reg() 86 ret = i2c_write_dt(&cfg->bus, tx_buf, sizeof(tx_buf)); in scd4x_write_reg()
|
/Zephyr-latest/drivers/input/ |
D | input_paw32xx.c | 84 const struct spi_buf tx_buf = { in paw32xx_read_reg() local 89 .buffers = &tx_buf, in paw32xx_read_reg() 116 const struct spi_buf tx_buf = { in paw32xx_write_reg() local 121 .buffers = &tx_buf, in paw32xx_write_reg() 163 const struct spi_buf tx_buf = { in paw32xx_read_xy() local 168 .buffers = &tx_buf, in paw32xx_read_xy()
|