/Zephyr-latest/drivers/spi/ |
D | spi_npcx_spip.c | 145 static void spi_npcx_spip_process_tx_buf(struct spi_npcx_spip_data *const data, uint16_t *tx_frame) in spi_npcx_spip_process_tx_buf() argument 150 *tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_npcx_spip_process_tx_buf() 152 *tx_frame = UNALIGNED_GET((uint16_t *)(data->ctx.tx_buf)); in spi_npcx_spip_process_tx_buf() 180 uint16_t tx_frame = SPI_NPCX_SPIP_TX_NOP; in spi_npcx_spip_xfer_frame() local 183 spi_npcx_spip_process_tx_buf(data, &tx_frame); in spi_npcx_spip_xfer_frame() 191 reg_base->SPIP_DATA = tx_frame; in spi_npcx_spip_xfer_frame() 218 uint16_t tx_frame = SPI_NPCX_SPIP_TX_NOP; in spi_npcx_spip_isr() local 227 spi_npcx_spip_process_tx_buf(data, &tx_frame); in spi_npcx_spip_isr() 228 reg_base->SPIP_DATA = tx_frame; in spi_npcx_spip_isr() 246 spi_npcx_spip_process_tx_buf(data, &tx_frame); in spi_npcx_spip_isr() [all …]
|
D | spi_gecko_eusart.c | 177 uint8_t tx_frame = 0; in spi_eusart_next_tx() local 180 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_eusart_next_tx() 183 return tx_frame; in spi_eusart_next_tx() 188 uint8_t tx_frame; in spi_eusart_shift_frames() local 191 tx_frame = spi_eusart_next_tx(data); in spi_eusart_shift_frames() 192 spi_gecko_eusart_send(eusart, tx_frame); in spi_eusart_shift_frames()
|
D | spi_gecko_usart.c | 242 uint8_t tx_frame = 0; in spi_gecko_next_tx() local 245 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_gecko_next_tx() 248 return tx_frame; in spi_gecko_next_tx() 254 uint8_t tx_frame; in spi_gecko_shift_frames() local 257 tx_frame = spi_gecko_next_tx(data); in spi_gecko_shift_frames() 258 spi_gecko_send(usart, tx_frame); in spi_gecko_shift_frames()
|
D | spi_numaker.c | 145 uint32_t tx_frame, rx_frame; in spi_numaker_txrx() local 174 tx_frame = ((ctx->tx_buf == NULL) ? SPI_NUMAKER_TX_NOP in spi_numaker_txrx() 177 SPI_WRITE_TX(dev_cfg->spi, tx_frame); in spi_numaker_txrx() 189 LOG_DBG("%s --> TX [0x%x] done", __func__, tx_frame); in spi_numaker_txrx()
|
D | spi_ll_stm32.c | 305 uint32_t tx_frame = SPI_STM32_TX_NOP; in spi_stm32_send_next_frame() local 309 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_stm32_send_next_frame() 311 LL_SPI_TransmitData8(spi, tx_frame); in spi_stm32_send_next_frame() 315 tx_frame = UNALIGNED_GET((uint16_t *)(data->ctx.tx_buf)); in spi_stm32_send_next_frame() 317 LL_SPI_TransmitData16(spi, tx_frame); in spi_stm32_send_next_frame() 403 uint16_t tx_frame; in spi_stm32_shift_s() local 406 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_stm32_shift_s() 407 LL_SPI_TransmitData8(spi, tx_frame); in spi_stm32_shift_s() 410 tx_frame = UNALIGNED_GET((uint16_t *)(data->ctx.tx_buf)); in spi_stm32_shift_s() 411 LL_SPI_TransmitData16(spi, tx_frame); in spi_stm32_shift_s()
|
D | spi_gd32.c | 199 uint16_t tx_frame = 0U, rx_frame = 0U; in spi_gd32_frame_exchange() local 207 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_gd32_frame_exchange() 210 SPI_DATA(cfg->reg) = tx_frame; in spi_gd32_frame_exchange() 215 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_gd32_frame_exchange() 217 SPI_DATA(cfg->reg) = tx_frame; in spi_gd32_frame_exchange()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_xmc4xxx.c | 188 struct eth_xmc4xxx_tx_frame *tx_frame = SYS_SLIST_CONTAINER(node, tx_frame, node); in eth_xmc4xxx_flush_tx() local 190 net_pkt_unref(tx_frame->pkt); in eth_xmc4xxx_flush_tx() 191 k_mem_slab_free(&tx_frame_slab, (void *)tx_frame); in eth_xmc4xxx_flush_tx() 233 struct eth_xmc4xxx_tx_frame *tx_frame; in eth_xmc4xxx_send() local 257 ret = k_mem_slab_alloc(&tx_frame_slab, (void **)&tx_frame, K_NO_WAIT); in eth_xmc4xxx_send() 265 tx_frame->pkt = pkt; in eth_xmc4xxx_send() 266 tx_frame->tail_index = dev_data->dma_desc_tx_head; in eth_xmc4xxx_send() 273 k_mem_slab_free(&tx_frame_slab, (void **)&tx_frame); in eth_xmc4xxx_send() 315 tx_frame->head_index = dev_data->dma_desc_tx_head; in eth_xmc4xxx_send() 325 k_mem_slab_free(&tx_frame_slab, (void **)&tx_frame); in eth_xmc4xxx_send() [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_nxp_fs26.c | 150 struct fs26_spi_tx_frame *tx_frame, in fs26_spi_transceive() argument 176 tx_buf = (uint32_t)(FS26_SET_REG_ADDR(tx_frame->addr) in fs26_spi_transceive() 177 | FS26_SET_DATA(tx_frame->data) in fs26_spi_transceive() 178 | (tx_frame->write ? FS26_RW : 0)); in fs26_spi_transceive() 225 struct fs26_spi_tx_frame tx_frame = { in fs26_getreg() local 231 return fs26_spi_transceive(spi, &tx_frame, rx_frame); in fs26_getreg() 245 struct fs26_spi_tx_frame tx_frame = { in fs26_setreg() local 251 return fs26_spi_transceive(spi, &tx_frame, NULL); in fs26_setreg()
|
/Zephyr-latest/drivers/can/ |
D | can_mcp2515.c | 538 uint8_t tx_frame[MCP2515_FRAME_LEN]; in mcp2515_send() local 579 mcp2515_convert_canframe_to_mcp2515frame(frame, tx_frame); in mcp2515_send() 585 len = sizeof(tx_frame) - CAN_MAX_DLC + frame->dlc; in mcp2515_send() 587 mcp2515_cmd_load_tx_buffer(dev, abc, tx_frame, len); in mcp2515_send()
|