Home
last modified time | relevance | path

Searched refs:rx_buf (Results 76 – 100 of 266) sorted by relevance

1234567891011

/Zephyr-latest/drivers/mipi_dsi/
Dmipi_dsi.c19 .rx_buf = buf in mipi_dsi_generic_read()
77 .rx_buf = buf, in mipi_dsi_dcs_read()
/Zephyr-latest/drivers/spi/
Dspi_b_renesas_ra8.c205 UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf); in ra_spi_b_transceive_slave()
207 UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf); in ra_spi_b_transceive_slave()
209 UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf); in ra_spi_b_transceive_slave()
253 UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf); in ra_spi_b_transceive_master()
255 UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf); in ra_spi_b_transceive_master()
257 UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf); in ra_spi_b_transceive_master()
329 if (data->ctx.rx_buf == NULL) { in transceive()
332 R_SPI_B_Read(&data->spi, data->ctx.rx_buf, data->data_len, spi_width); in transceive()
334 R_SPI_B_WriteRead(&data->spi, data->ctx.tx_buf, data->ctx.rx_buf, data->data_len, in transceive()
463 data->spi.p_rx_data = data->ctx.rx_buf; in ra_spi_retransmit()
[all …]
Dspi_mcux_dspi.c159 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
169 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
177 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
186 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
391 uint8_t *rx_buf; in update_rx_dma() local
406 if (data->ctx.rx_buf != NULL) { in update_rx_dma()
407 rx_buf = data->ctx.rx_buf; in update_rx_dma()
409 rx_buf = data->inner_rx_buffer->buf; in update_rx_dma()
413 rx_buf = data->inner_rx_buffer->buf; in update_rx_dma()
416 LOG_DBG("tx only 0x%x, size %d", (uint32_t)rx_buf, rx_size); in update_rx_dma()
[all …]
Dspi_renesas_ra.c228 UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf); in ra_spi_transceive_slave()
230 UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf); in ra_spi_transceive_slave()
232 UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf); in ra_spi_transceive_slave()
290 UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf); in ra_spi_transceive_master()
292 UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf); in ra_spi_transceive_master()
294 UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf); in ra_spi_transceive_master()
367 if (data->ctx.rx_buf == NULL) { in transceive()
370 R_SPI_Read(&data->spi, data->ctx.rx_buf, data->data_len, spi_width); in transceive()
372 R_SPI_WriteRead(&data->spi, data->ctx.tx_buf, data->ctx.rx_buf, data->data_len, in transceive()
505 data->spi.p_rx_data = data->ctx.rx_buf; in ra_spi_retransmit()
[all …]
/Zephyr-latest/drivers/sensor/maxim/max6675/
Dmax6675.c39 const struct spi_buf rx_buf = { in max6675_sample_fetch() local
44 .buffers = &rx_buf, in max6675_sample_fetch()
/Zephyr-latest/drivers/watchdog/
Dwdt_nxp_fs26.c154 uint32_t rx_buf; in fs26_spi_transceive() local
163 .buf = &rx_buf, in fs26_spi_transceive()
164 .len = sizeof(rx_buf) in fs26_spi_transceive()
193 rx_buf = __builtin_bswap32(rx_buf); in fs26_spi_transceive()
197 crc = fs26_calcrc((uint8_t *)&rx_buf, sizeof(rx_buf) - 1); in fs26_spi_transceive()
198 if (crc != ((uint8_t)FS26_GET_CRC(rx_buf))) { in fs26_spi_transceive()
205 rx_frame->status.raw = (uint8_t)FS26_GET_DEV_STATUS(rx_buf); in fs26_spi_transceive()
206 rx_frame->data = (uint16_t)FS26_GET_DATA(rx_buf); in fs26_spi_transceive()
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/src/
Duart_mock.h17 uint8_t *rx_buf; member
/Zephyr-latest/drivers/serial/
Duart_esp32.c100 uint8_t *rx_buf; member
574 (uint32_t)data->async.rx_buf + data->async.rx_counter, in uart_esp32_dma_rx_done()
584 evt.data.rx.buf = data->async.rx_buf; in uart_esp32_dma_rx_done()
597 evt.data.rx_buf.buf = data->async.rx_buf; in uart_esp32_dma_rx_done()
603 data->async.rx_buf = data->async.rx_next_buf; in uart_esp32_dma_rx_done()
613 if (!data->async.rx_buf) { in uart_esp32_dma_rx_done()
620 dma_reload(config->dma_dev, config->rx_dma_channel, 0, (uint32_t)data->async.rx_buf, in uart_esp32_dma_rx_done()
701 evt.data.rx.buf = data->async.rx_buf; in uart_esp32_async_rx_timeout()
823 data->async.rx_buf = buf; in uart_esp32_async_rx_enable()
834 dma_blk.dest_address = (uint32_t)data->async.rx_buf; in uart_esp32_async_rx_enable()
[all …]
/Zephyr-latest/drivers/sensor/maxim/max31855/
Dmax31855.c44 struct spi_buf rx_buf = { in max31855_sample_fetch() local
48 const struct spi_buf_set rx = {.buffers = &rx_buf, .count = 1}; in max31855_sample_fetch()
/Zephyr-latest/drivers/w1/
Dw1_ds2485.c29 uint8_t *rx_buf, uint8_t rx_len) in ds2485_w1_script_cmd() argument
44 .buf = rx_buf, in ds2485_w1_script_cmd()
/Zephyr-latest/drivers/modem/
Dwncm14a2a.c1066 struct net_buf *rx_buf = NULL; in wncm14a2a_rx() local
1113 wncm14a2a_read_rx(&rx_buf); in wncm14a2a_rx()
1115 while (rx_buf) { in wncm14a2a_rx()
1116 net_buf_skipcrlf(&rx_buf); in wncm14a2a_rx()
1117 if (!rx_buf) { in wncm14a2a_rx()
1122 len = net_buf_findcrlf(rx_buf, &frag, &offset); in wncm14a2a_rx()
1130 if (net_buf_ncmp(rx_buf, handlers[i].cmd, in wncm14a2a_rx()
1137 rx_buf = net_buf_skip(rx_buf, in wncm14a2a_rx()
1142 len = net_buf_findcrlf(rx_buf, in wncm14a2a_rx()
1150 handlers[i].func(&rx_buf, len); in wncm14a2a_rx()
[all …]
Dsimcom-sim7080.c316 if (!data->rx_buf) { in sockread_common()
326 if (net_buf_frags_len(data->rx_buf) < socket_data_length) { in sockread_common()
345 ret = net_buf_linearize(sock_data->recv_buf, sock_data->recv_buf_len, data->rx_buf, 0, in sockread_common()
347 data->rx_buf = net_buf_skip(data->rx_buf, ret); in sockread_common()
661 out_len = net_buf_linearize(ips, sizeof(ips) - 1, data->rx_buf, 1, len); in MODEM_CMD_DEFINE()
966 mdata.mdm_manufacturer, sizeof(mdata.mdm_manufacturer) - 1, data->rx_buf, 0, len); in MODEM_CMD_DEFINE()
978 data->rx_buf, 0, len); in MODEM_CMD_DEFINE()
995 data->rx_buf, 0, len); in MODEM_CMD_DEFINE()
1015 net_buf_linearize(mdata.mdm_imei, sizeof(mdata.mdm_imei) - 1, data->rx_buf, 0, len); in MODEM_CMD_DEFINE()
1028 net_buf_linearize(mdata.mdm_imsi, sizeof(mdata.mdm_imsi) - 1, data->rx_buf, 0, len); in MODEM_CMD_DEFINE()
[all …]
/Zephyr-latest/include/zephyr/drivers/flash/
Dnpcx_flash_api_ex.h53 uint8_t *rx_buf; member
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a_trigger.c83 uint8_t rx_buf[2]; in tcn75a_attr_get() local
102 ret = i2c_write_read_dt(&config->i2c_spec, &config_reg, 1, rx_buf, 2); in tcn75a_attr_get()
107 limit = sys_get_be16(rx_buf); in tcn75a_attr_get()
/Zephyr-latest/samples/net/mqtt_sn_publisher/src/
Dudp.c36 static APP_BMEM uint8_t rx_buf[CONFIG_NET_SAMPLE_MQTT_SN_BUFFER_SIZE]; variable
144 rx_buf, sizeof(rx_buf)); in process_thread()
/Zephyr-latest/drivers/sensor/ti/ina219/
Dina219.c26 uint8_t rx_buf[2]; in ina219_reg_read() local
31 rx_buf, sizeof(rx_buf)); in ina219_reg_read()
33 *reg_data = sys_get_be16(rx_buf); in ina219_reg_read()
/Zephyr-latest/samples/subsys/dap/src/
Dmain.c24 static uint8_t rx_buf[CONFIG_CMSIS_DAP_PACKET_SIZE]; variable
273 net_buf_add_mem(buf, rx_buf, MIN(size, CONFIG_CMSIS_DAP_PACKET_SIZE)); in dapusb_read_cb()
277 usb_transfer(ep, rx_buf, sizeof(rx_buf), USB_TRANS_READ, dapusb_read_cb, cfg); in dapusb_read_cb()
/Zephyr-latest/subsys/shell/backends/
Dshell_websocket.c121 buf_left = sizeof(ws->rx_buf) - ws->rx_len; in ws_recv()
129 buf = ws->rx_buf + ws->rx_len; in ws_recv()
355 memcpy(data, ws->rx_buf, read_len); in sh_read()
360 memmove(ws->rx_buf, ws->rx_buf + read_len, ws->rx_len); in sh_read()
/Zephyr-latest/drivers/adc/
Dadc_max11102_17.c48 const struct spi_buf rx_buf[] = {{ in max11102_17_switch_channel() local
53 .buffers = rx_buf, in max11102_17_switch_channel()
54 .count = ARRAY_SIZE(rx_buf), in max11102_17_switch_channel()
220 const struct spi_buf rx_buf[] = {{ in max11102_17_read_sample() local
225 .buffers = rx_buf, in max11102_17_read_sample()
226 .count = ARRAY_SIZE(rx_buf), in max11102_17_read_sample()
/Zephyr-latest/drivers/ethernet/
Deth_enc28j60.c56 const struct spi_buf rx_buf = { in eth_enc28j60_set_bank() local
65 .buffers = &rx_buf, in eth_enc28j60_set_bank()
116 struct spi_buf rx_buf = { in eth_enc28j60_read_reg() local
120 .buffers = &rx_buf, in eth_enc28j60_read_reg()
129 rx_buf.len = rx_size; in eth_enc28j60_read_reg()
242 struct spi_buf rx_buf[2] = { in eth_enc28j60_read_mem() local
249 .buffers = rx_buf, in eth_enc28j60_read_mem()
261 rx_buf[1].buf = data_buffer; in eth_enc28j60_read_mem()
262 rx_buf[1].len = MAX_BUFFER_LENGTH; in eth_enc28j60_read_mem()
271 rx_buf[1].buf = data_buffer; in eth_enc28j60_read_mem()
[all …]
/Zephyr-latest/drivers/mfd/
Dmfd_ad559x_spi.c23 struct spi_buf rx_buf[] = {{.buf = val, .len = len}}; in mfd_ad559x_spi_read_raw() local
25 const struct spi_buf_set rx = {.buffers = rx_buf, .count = 1}; in mfd_ad559x_spi_read_raw()
/Zephyr-latest/include/zephyr/shell/
Dshell_rpmsg.h49 struct shell_rpmsg_rx rx_buf[CONFIG_SHELL_RPMSG_MAX_RX]; member
/Zephyr-latest/drivers/sensor/ti/ina3221/
Dina3221.c26 uint8_t rx_buf[2]; in reg_read() local
29 rc = i2c_write_read_dt(&cfg->bus, &reg_addr, sizeof(reg_addr), rx_buf, sizeof(rx_buf)); in reg_read()
31 *reg_data = sys_get_be16(rx_buf); in reg_read()
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl_spi.c36 const struct spi_buf rx_buf[2] = { in lsm6dsl_raw_read() local
47 .buffers = rx_buf, in lsm6dsl_raw_read()
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_cp.c568 len = osdp_phy_packet_init(pd, pd->rx_buf, sizeof(pd->rx_buf)); in cp_build_packet()
574 ret = cp_build_command(pd, pd->rx_buf, sizeof(pd->rx_buf)); in cp_build_packet()
581 len = osdp_phy_packet_finalize(pd, pd->rx_buf, len, sizeof(pd->rx_buf)); in cp_build_packet()
600 ret = pd->channel.send(pd->channel.data, pd->rx_buf, pd->rx_buf_len); in cp_send_command()
610 osdp_dump(NULL, pd->rx_buf, pd->rx_buf_len); in cp_send_command()
622 buf = pd->rx_buf + pd->rx_buf_len; in cp_process_reply()
623 remaining = sizeof(pd->rx_buf) - pd->rx_buf_len; in cp_process_reply()
634 osdp_dump(NULL, pd->rx_buf, pd->rx_buf_len); in cp_process_reply()
638 err = osdp_phy_check_packet(pd, pd->rx_buf, pd->rx_buf_len, &len); in cp_process_reply()
655 len = osdp_phy_decode_packet(pd, pd->rx_buf, len, &buf); in cp_process_reply()
[all …]

1234567891011