Lines Matching refs:tx_frame

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()
341 tx_dma_desc[tx_frame->tail_index].status |= ETH_MAC_DMA_TDES0_OWN; in eth_xmc4xxx_send()
343 sys_slist_append(&dev_data->tx_frame_list, &tx_frame->node); in eth_xmc4xxx_send()
502 struct eth_xmc4xxx_tx_frame *tx_frame = SYS_SLIST_CONTAINER(node, tx_frame, node); in eth_xmc4xxx_handle_tx() local
507 if (tx_frame->head_index >= tx_frame->tail_index) { in eth_xmc4xxx_handle_tx()
508 num_descriptors = tx_frame->head_index - tx_frame->tail_index + 1; in eth_xmc4xxx_handle_tx()
510 num_descriptors = tx_frame->head_index + NUM_TX_DMA_DESCRIPTORS - in eth_xmc4xxx_handle_tx()
511 tx_frame->tail_index + 1; in eth_xmc4xxx_handle_tx()
514 index = tx_frame->tail_index; in eth_xmc4xxx_handle_tx()
526 XMC_ETH_MAC_DMA_DESC_t *dma_desc = &tx_dma_desc[tx_frame->head_index]; in eth_xmc4xxx_handle_tx()
529 struct net_pkt *pkt = tx_frame->pkt; in eth_xmc4xxx_handle_tx()
547 net_pkt_unref(tx_frame->pkt); in eth_xmc4xxx_handle_tx()
548 k_mem_slab_free(&tx_frame_slab, (void *)tx_frame); in eth_xmc4xxx_handle_tx()