Home
last modified time | relevance | path

Searched refs:rx_buf (Results 126 – 150 of 266) sorted by relevance

1234567891011

/Zephyr-latest/drivers/spi/
Dspi_nrfx_spim.c412 uint8_t *rx_buf = ctx->rx_buf; in transfer_next_chunk() local
436 !nrf_dma_accessible_check(&dev_config->spim.p_reg, rx_buf)) { in transfer_next_chunk()
442 rx_buf = dev_data->rx_buffer; in transfer_next_chunk()
450 xfer.p_rx_buffer = rx_buf; in transfer_next_chunk()
502 p_event->xfer_desc.p_rx_buffer != dev_data->ctx.rx_buf) { in event_handler()
508 (void)memcpy(dev_data->ctx.rx_buf, in event_handler()
Dspi_esp32_spim.c97 if (ctx->rx_buf && (!esp_ptr_dma_capable((uint32_t *)&ctx->rx_buf[0]) || in spi_esp32_transfer()
98 ((int)&ctx->rx_buf[0] % 4 != 0) || (dma_len_rx % 4 != 0))) { in spi_esp32_transfer()
116 hal_trans->rcv_buffer = rx_temp ? rx_temp : ctx->rx_buf; in spi_esp32_transfer()
142 memcpy(&ctx->rx_buf[0], rx_temp, transfer_len_bytes); in spi_esp32_transfer()
Dspi_mcux_ecspi.c124 UNALIGNED_PUT(data->rx_data, (uint8_t *)data->ctx.rx_buf); in spi_mcux_master_transfer_callback()
127 UNALIGNED_PUT(data->rx_data, (uint16_t *)data->ctx.rx_buf); in spi_mcux_master_transfer_callback()
130 UNALIGNED_PUT(data->rx_data, (uint32_t *)data->ctx.rx_buf); in spi_mcux_master_transfer_callback()
Dspi_mcux_flexio.c60 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
70 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
78 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
86 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
Dspi_xec_qmspi.c456 static int qmspi_rx(QMSPI_Type *regs, const struct spi_buf *rx_buf, in qmspi_rx() argument
459 uint8_t *p = rx_buf->buf; in qmspi_rx()
460 size_t rlen = rx_buf->len; in qmspi_rx()
469 didx = qmspi_descr_alloc(regs, rx_buf, 0, false); in qmspi_rx()
Dspi_smartbond.c156 *(uint8_t *)data->ctx.rx_buf = cfg->regs->SPI_RX_TX_REG; in spi_smartbond_read_word()
159 sys_put_le16((uint16_t)cfg->regs->SPI_RX_TX_REG, data->ctx.rx_buf); in spi_smartbond_read_word()
162 sys_put_le32(cfg->regs->SPI_RX_TX_REG, data->ctx.rx_buf); in spi_smartbond_read_word()
483 if (ctx->rx_len && !ctx->rx_buf) { in spi_smartbond_write()
501 if (ctx->rx_buf) { in spi_smartbond_transfer()
942 rx_block->dest_address = (uint32_t)ctx->rx_buf; in spi_smartbond_dma_trigger()
1002 if (ctx->rx_buf) { in spi_smartbond_dma_trigger()
1003 rx_block->dest_address = (uint32_t)ctx->rx_buf; in spi_smartbond_dma_trigger()
1030 if (!ctx->rx_buf) { in spi_smartbond_dma_trigger()
Dspi_mchp_mss_qspi.c198 UNALIGNED_PUT(temp, (uint32_t *)ctx->rx_buf); in mss_qspi_receive_x32()
220 UNALIGNED_PUT(rdata, (uint8_t *)ctx->rx_buf); in mss_qspi_receive_x8()
291 if (!ctx->rx_buf) { in mss_qspi_transmit()
339 UNALIGNED_PUT(rdata, (uint8_t *)ctx->rx_buf); in mss_qspi_receive()
Dspi_mcux_flexcomm.c97 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
107 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
115 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
123 transfer.rxData = ctx->rx_buf; in spi_mcux_transfer_next_packet()
561 bool rx_ignore = data->ctx.rx_buf ? false : true; in spi_mcux_dma_move_buffers()
564 ret = spi_mcux_dma_rx_load(dev, data->ctx.rx_buf, len); in spi_mcux_dma_move_buffers()
/Zephyr-latest/drivers/sensor/vishay/vcnl36825t/
Dvcnl36825t.c25 uint8_t rx_buf[2]; in vcnl36825t_read() local
28 rc = i2c_write_read_dt(spec, &reg_addr, sizeof(reg_addr), rx_buf, sizeof(rx_buf)); in vcnl36825t_read()
33 *value = sys_get_le16(rx_buf); in vcnl36825t_read()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx.c163 uint8_t rx_buf[RX2XX_MAX_FRAME_SIZE]; in rf2xx_trx_rx() local
178 rf2xx_iface_frame_read(dev, rx_buf, RX2XX_FRAME_HEADER_SIZE); in rf2xx_trx_rx()
179 pkt_len = rx_buf[RX2XX_FRAME_PHR_INDEX]; in rf2xx_trx_rx()
190 rf2xx_iface_frame_read(dev, rx_buf, frame_len); in rf2xx_trx_rx()
193 trac = rx_buf[pkt_len + RX2XX_FRAME_TRAC_INDEX]; in rf2xx_trx_rx()
196 ctx->pkt_ed = rx_buf[pkt_len + RX2XX_FRAME_ED_INDEX]; in rf2xx_trx_rx()
204 ctx->pkt_lqi = rx_buf[pkt_len + RX2XX_FRAME_LQI_INDEX]; in rf2xx_trx_rx()
224 memcpy(pkt->buffer->data, rx_buf + RX2XX_FRAME_HEADER_SIZE, pkt_len); in rf2xx_trx_rx()
/Zephyr-latest/drivers/lora/
Dsx126x.c100 const struct spi_buf rx_buf[] = { in sx126x_spi_transceive() local
117 .buffers = rx_buf, in sx126x_spi_transceive()
118 .count = ARRAY_SIZE(rx_buf) in sx126x_spi_transceive()
/Zephyr-latest/drivers/adc/
Dadc_max1125x.c255 const struct spi_buf rx_buf[] = {{ in max1125x_read_reg() local
264 .buffers = rx_buf, in max1125x_read_reg()
265 .count = ARRAY_SIZE(rx_buf), in max1125x_read_reg()
374 const struct spi_buf rx_buf[] = {{ in max1125x_read_sample() local
383 .buffers = rx_buf, in max1125x_read_sample()
384 .count = ARRAY_SIZE(rx_buf), in max1125x_read_sample()
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/
Dtest_i2s_dir_both_loopback.c199 char rx_buf[BLOCK_SIZE]; in ZTEST_USER() local
228 ret = i2s_buf_read(dev_i2s, rx_buf, &rx_size); in ZTEST_USER()
/Zephyr-latest/drivers/i3c/
Di3c_mcux.c1198 uint8_t rx_buf[8] = {0xFFU, 0xFFU, 0xFFU, 0xFFU, 0xFFU, 0xFFU, 0xFFU, 0xFFU}; in mcux_i3c_do_daa() local
1235 rx_buf[rx_size] = (uint8_t)(base->MRDATAB & in mcux_i3c_do_daa()
1256 vendor_id = (((uint16_t)rx_buf[0] << 8U) | (uint16_t)rx_buf[1]) & in mcux_i3c_do_daa()
1260 part_no = (uint32_t)rx_buf[2] << 24U | (uint32_t)rx_buf[3] << 16U | in mcux_i3c_do_daa()
1261 (uint32_t)rx_buf[4] << 8U | (uint32_t)rx_buf[5]; in mcux_i3c_do_daa()
1278 target->bcr = rx_buf[6]; in mcux_i3c_do_daa()
1279 target->dcr = rx_buf[7]; in mcux_i3c_do_daa()
/Zephyr-latest/subsys/shell/backends/
Dshell_telnet.c279 buf_left = sizeof(sh_telnet->rx_buf) - sh_telnet->rx_len; in telnet_recv()
287 buf = sh_telnet->rx_buf + sh_telnet->rx_len; in telnet_recv()
760 memcpy(data, sh_telnet->rx_buf, read_len); in telnet_read()
765 memmove(sh_telnet->rx_buf, sh_telnet->rx_buf + read_len, in telnet_read()
/Zephyr-latest/drivers/ethernet/
Deth_renesas_ra.c321 static uint8_t rx_buf[NET_ETH_MAX_FRAME_SIZE]; in renesas_ra_eth_rx() local
327 err = R_ETHER_Read(&ctx->ctrl, rx_buf, &len); in renesas_ra_eth_rx()
339 if (net_pkt_write(pkt, rx_buf, len)) { in renesas_ra_eth_rx()
/Zephyr-latest/drivers/flash/
Dflash_npcx_fiu_qspi.c194 if (cfg->rx_buf == NULL) { in qspi_npcx_fiu_uma_transceive()
198 qspi_npcx_uma_read_byte(dev, cfg->rx_buf + i); in qspi_npcx_fiu_uma_transceive()
Dflash_npcx_fiu_nor.c112 .rx_buf = dst, in flash_npcx_uma_read()
206 .rx_buf = data, in flash_npcx_nor_read_sfdp()
400 cfg.rx_buf = op_out->rx_buf; in flash_npcx_nor_ex_exec_uma()
/Zephyr-latest/drivers/mfd/
Dmfd_bd8lb600fs.c112 const struct spi_buf rx_buf = { in bd8lb600fs_transceive_state() local
117 .buffers = &rx_buf, in bd8lb600fs_transceive_state()
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_shi_npcx.c130 volatile uint8_t *rx_buf; /* Entry pointer of receive buffer */ member
272 while (data->rx_buf == inst->IBUF + shi_npcx_read_buf_pointer(inst)) { in shi_npcx_read_inbuf_wait()
279 *data->rx_msg++ = *data->rx_buf++; in shi_npcx_read_inbuf_wait()
538 *data->rx_msg++ = *data->rx_buf++; in shi_npcx_read_half_inbuf()
666 data->rx_buf = inst->IBUF; in shi_npcx_handle_input_buf_full()
793 data->rx_buf = inst->IBUF; in shi_npcx_reset_prepare()
/Zephyr-latest/drivers/input/
Dinput_pinnacle.c482 const struct spi_buf rx_buf[] = { in pinnacle_read_spi() local
493 .buffers = rx_buf, in pinnacle_read_spi()
494 .count = ARRAY_SIZE(rx_buf), in pinnacle_read_spi()
536 const struct spi_buf rx_buf[] = { in pinnacle_seq_read_spi() local
547 .buffers = rx_buf, in pinnacle_seq_read_spi()
548 .count = ARRAY_SIZE(rx_buf), in pinnacle_seq_read_spi()
/Zephyr-latest/subsys/usb/device/class/
Dcdc_acm.c114 uint8_t rx_buf[CDC_ACM_BUFFER_SIZE]; /* Internal RX buffer */ member
312 wrote = ring_buf_put(dev_data->rx_ringbuf, dev_data->rx_buf, size); in cdc_acm_read_cb()
324 if (ring_buf_space_get(dev_data->rx_ringbuf) < sizeof(dev_data->rx_buf)) { in cdc_acm_read_cb()
331 usb_transfer(ep, dev_data->rx_buf, sizeof(dev_data->rx_buf), in cdc_acm_read_cb()
372 memset(&dev_data->rx_buf, 0, CDC_ACM_BUFFER_SIZE); in cdc_acm_reset_port()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_rndis.c177 static uint8_t rx_buf[RNDIS_BUF_SIZE]; variable
294 if (len > sizeof(rx_buf)) { in rndis_bulk_out()
300 usb_read(ep, rx_buf, len, &read); in rndis_bulk_out()
311 if (len == 1U && !rx_buf[0]) { in rndis_bulk_out()
339 rndis.in_pkt_len = parse_rndis_header(rx_buf, len); in rndis_bulk_out()
367 rx_buf + hdr_offset, len - hdr_offset)) { in rndis_bulk_out()
/Zephyr-latest/subsys/mgmt/ec_host_cmd/
Dec_host_cmd_handler.c346 static void ec_host_cmd_log_request(const uint8_t *rx_buf) in ec_host_cmd_log_request() argument
350 (const struct ec_host_cmd_request_header *const)rx_buf; in ec_host_cmd_log_request()
362 const uint8_t *rx_data = rx_buf + RX_HEADER_SIZE; in ec_host_cmd_log_request()
/Zephyr-latest/drivers/net/
Dppp.c105 uint8_t rx_buf[CONFIG_NET_PPP_RINGBUF_SIZE]; member
197 if (!rx_retry_pending && space_left < (sizeof(context->rx_buf) / 8)) { in uart_callback()
227 next_buf = evt->data.rx_buf.buf; in uart_callback()
281 if (ret >= (sizeof(ppp->rx_buf) / 2)) { in uart_recovery()
957 ring_buf_init(&ppp->rx_ringbuf, sizeof(ppp->rx_buf), ppp->rx_buf); in ppp_driver_init()

1234567891011