Home
last modified time | relevance | path

Searched refs:rx_frame (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/drivers/watchdog/
Dwdt_nxp_fs26.c151 struct fs26_spi_rx_frame *rx_frame) in fs26_spi_transceive() argument
204 if (rx_frame) { 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()
223 struct fs26_spi_rx_frame *rx_frame) in fs26_getreg() argument
231 return fs26_spi_transceive(spi, &tx_frame, rx_frame); in fs26_getreg()
284 struct fs26_spi_rx_frame rx_frame; in fs26_wd_refresh() local
295 if (fs26_getreg(&config->spi, FS26_FS_WD_TOKEN, &rx_frame)) { in fs26_wd_refresh()
299 data->token = rx_frame.data; in fs26_wd_refresh()
316 if (!fs26_getreg(&config->spi, FS26_FS_GRL_FLAGS, &rx_frame)) { in fs26_wd_refresh()
[all …]
/Zephyr-latest/drivers/spi/
Dspi_npcx_spip.c162 static void spi_npcx_spip_process_rx_buf(struct spi_npcx_spip_data *const data, uint16_t rx_frame) in spi_npcx_spip_process_rx_buf() argument
166 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_npcx_spip_process_rx_buf()
168 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_npcx_spip_process_rx_buf()
181 uint16_t rx_frame; in spi_npcx_spip_xfer_frame() local
199 rx_frame = reg_base->SPIP_DATA; in spi_npcx_spip_xfer_frame()
200 spi_npcx_spip_process_rx_buf(data, rx_frame); in spi_npcx_spip_xfer_frame()
219 uint16_t rx_frame; in spi_npcx_spip_isr() local
230 rx_frame = reg_base->SPIP_DATA; in spi_npcx_spip_isr()
232 spi_npcx_spip_process_rx_buf(data, rx_frame); in spi_npcx_spip_isr()
Dspi_numaker.c145 uint32_t tx_frame, rx_frame; in spi_numaker_txrx() local
205 rx_frame = SPI_READ_RX(dev_cfg->spi); in spi_numaker_txrx()
207 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_numaker_txrx()
210 LOG_DBG("%s --> RX [0x%x] done", __func__, rx_frame); in spi_numaker_txrx()
Dspi_gecko_eusart.c189 uint8_t rx_frame; in spi_eusart_shift_frames() local
195 rx_frame = spi_gecko_eusart_recv(eusart); in spi_eusart_shift_frames()
198 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_eusart_shift_frames()
Dspi_ll_stm32.c326 uint32_t rx_frame = 0; in spi_stm32_read_next_frame() local
329 rx_frame = LL_SPI_ReceiveData8(spi); in spi_stm32_read_next_frame()
331 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_stm32_read_next_frame()
335 rx_frame = LL_SPI_ReceiveData16(spi); in spi_stm32_read_next_frame()
337 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_stm32_read_next_frame()
420 uint16_t rx_frame; in spi_stm32_shift_s() local
423 rx_frame = LL_SPI_ReceiveData8(spi); in spi_stm32_shift_s()
424 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_stm32_shift_s()
427 rx_frame = LL_SPI_ReceiveData16(spi); in spi_stm32_shift_s()
428 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_stm32_shift_s()
Dspi_gd32.c199 uint16_t tx_frame = 0U, rx_frame = 0U; in spi_gd32_frame_exchange() local
228 rx_frame = SPI_DATA(cfg->reg); in spi_gd32_frame_exchange()
230 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_gd32_frame_exchange()
235 rx_frame = SPI_DATA(cfg->reg); in spi_gd32_frame_exchange()
237 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_gd32_frame_exchange()
Dspi_gecko_usart.c255 uint8_t rx_frame; in spi_gecko_shift_frames() local
261 rx_frame = spi_gecko_recv(usart); in spi_gecko_shift_frames()
264 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_gecko_shift_frames()
/Zephyr-latest/drivers/ethernet/
Deth_gecko.c143 struct net_pkt *rx_frame = NULL; in frame_get() local
195 rx_frame = net_pkt_rx_alloc_with_buffer(dev_data->iface, in frame_get()
197 if (!rx_frame) { in frame_get()
203 return rx_frame; in frame_get()
212 if (net_pkt_write(rx_frame, &dma_rx_buffer[j], in frame_get()
217 net_pkt_unref(rx_frame); in frame_get()
218 rx_frame = NULL; in frame_get()
235 return rx_frame; in frame_get()
241 struct net_pkt *rx_frame; in eth_rx() local
248 rx_frame = frame_get(dev); in eth_rx()
[all …]
Deth_sam_gmac.c1225 struct net_pkt *rx_frame; in frame_get() local
1254 rx_frame = net_pkt_rx_alloc(K_NO_WAIT); in frame_get()
1289 if (rx_frame != NULL) { in frame_get()
1294 new_frag = net_pkt_get_frag(rx_frame, CONFIG_NET_BUF_DATA_SIZE, K_NO_WAIT); in frame_get()
1297 net_pkt_unref(rx_frame); in frame_get()
1298 rx_frame = NULL; in frame_get()
1302 net_pkt_frag_insert(rx_frame, frag); in frame_get()
1327 LOG_DBG("Frame complete: rx=%p, tail=%d", rx_frame, tail); in frame_get()
1330 return rx_frame; in frame_get()
1338 struct net_pkt *rx_frame; in eth_rx() local
[all …]
Deth_nxp_imx_netc_priv.h112 uint8_t *rx_frame; member
Deth_nxp_imx_netc.c51 result = EP_ReceiveFrameCopy(&data->handle, 0, data->rx_frame, length, NULL); in netc_eth_rx()
66 ret = net_pkt_write(pkt, data->rx_frame, length); in netc_eth_rx()
Deth_nxp_imx_netc_psi.c179 .rx_frame = eth##n##_rx_frame, \
/Zephyr-latest/drivers/ieee802154/
Dieee802154_nrf5.c154 struct nrf5_802154_rx_frame *rx_frame; in nrf5_rx_thread() local
163 rx_frame = NULL; in nrf5_rx_thread()
167 rx_frame = k_fifo_get(&nrf5_radio->rx_fifo, K_FOREVER); in nrf5_rx_thread()
169 __ASSERT_NO_MSG(rx_frame->psdu); in nrf5_rx_thread()
176 pkt_len = rx_frame->psdu[0]; in nrf5_rx_thread()
178 pkt_len = rx_frame->psdu[0] - IEEE802154_FCS_LENGTH; in nrf5_rx_thread()
196 if (net_pkt_write(pkt, rx_frame->psdu + 1, pkt_len)) { in nrf5_rx_thread()
200 net_pkt_set_ieee802154_lqi(pkt, rx_frame->lqi); in nrf5_rx_thread()
201 net_pkt_set_ieee802154_rssi_dbm(pkt, rx_frame->rssi); in nrf5_rx_thread()
202 net_pkt_set_ieee802154_ack_fpb(pkt, rx_frame->ack_fpb); in nrf5_rx_thread()
[all …]
/Zephyr-latest/drivers/can/
Dcan_mcp2515.c700 uint8_t rx_frame[MCP2515_FRAME_LEN]; in mcp2515_rx() local
707 mcp2515_cmd_read_rx_buffer(dev, nm, rx_frame, sizeof(rx_frame)); in mcp2515_rx()
708 mcp2515_convert_mcp2515frame_to_canframe(rx_frame, &frame); in mcp2515_rx()
/Zephyr-latest/doc/hardware/peripherals/can/
Dcontroller.rst234 struct can_frame rx_frame;
245 k_msgq_get(&my_can_msgq, &rx_frame, K_FOREVER);