Home
last modified time | relevance | path

Searched refs:NB_TX_DESCS (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.7.0/drivers/ethernet/
Deth_dwmac_mmu.c37 dwmac_tx_rx_descriptors[NB_TX_DESCS + NB_RX_DESCS];
61 desc_uncached_addr += NB_TX_DESCS * sizeof(struct dwmac_dma_desc); in dwmac_platform_init()
65 desc_phys_addr += NB_TX_DESCS * sizeof(struct dwmac_dma_desc); in dwmac_platform_init()
Deth_dwmac.c187 INC_WRAP(d_idx, NB_TX_DESCS); in dwmac_send()
205 DEC_WRAP(d_idx, NB_TX_DESCS); in dwmac_send()
222 INC_WRAP(d_idx, NB_TX_DESCS), k_sem_give(&p->free_tx_descs)) { in dwmac_tx_release()
533 k_sem_init(&p->free_tx_descs, NB_TX_DESCS - 1, NB_TX_DESCS - 1); in dwmac_iface_init()
601 memset(p->tx_descs, 0, NB_TX_DESCS * sizeof(struct dwmac_dma_desc)); in dwmac_probe()
613 REG_WRITE(DMA_CHn_TXDESC_RING_LENGTH(0), NB_TX_DESCS - 1); in dwmac_probe()
Deth_cyclonev.c248 for (i = 0; i < NB_TX_DESCS; i++) { in eth_cyclonev_setup_txdesc()
255 if (i == (NB_TX_DESCS - 1)) { in eth_cyclonev_setup_txdesc()
294 k_sem_init(&p->free_tx_descs, NB_TX_DESCS - 1, NB_TX_DESCS - 1); in eth_cyclonev_iface_init()
466 if (p->tx_current_desc_number >= NB_TX_DESCS) { in eth_cyclonev_send()
503 index = NB_TX_DESCS - 1; in eth_cyclonev_send()
767 INC_WRAP(d_idx, NB_TX_DESCS), k_sem_give(&p->free_tx_descs)) { in eth_cyclonev_tx_release()
Deth_cyclonev_priv.h18 #define NB_TX_DESCS CONFIG_ETH_CVSX_NB_TX_DESCS macro
42 struct eth_cyclonev_dma_desc tx_desc_ring[NB_TX_DESCS], rx_desc_ring[NB_RX_DESCS];
46 uint8_t tx_buf[ETH_BUFFER_SIZE * NB_TX_DESCS]; /* Transmit Buffer */
Deth_dwmac_stm32h7x.c95 static struct dwmac_dma_desc dwmac_tx_descs[NB_TX_DESCS] __desc_mem;
Deth_dwmac_priv.h22 #define NB_TX_DESCS CONFIG_DWMAC_NB_TX_DESCS macro
62 struct net_buf *tx_frags[NB_TX_DESCS]; /* index shared with tx_descs */