Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mediatek/
H A Dmtk_star_emac.c231 #define MTK_STAR_RING_NUM_DESCS 512 macro
232 #define MTK_STAR_TX_THRESH (MTK_STAR_RING_NUM_DESCS / 4)
233 #define MTK_STAR_NUM_TX_DESCS MTK_STAR_RING_NUM_DESCS
234 #define MTK_STAR_NUM_RX_DESCS MTK_STAR_RING_NUM_DESCS
235 #define MTK_STAR_NUM_DESCS_TOTAL (MTK_STAR_RING_NUM_DESCS * 2)
241 struct sk_buff *skbs[MTK_STAR_RING_NUM_DESCS];
242 dma_addr_t dma_addrs[MTK_STAR_RING_NUM_DESCS];
335 ring->tail = (ring->tail + 1) % MTK_STAR_RING_NUM_DESCS; in mtk_star_ring_pop_tail()
363 ring->head = (ring->head + 1) % MTK_STAR_RING_NUM_DESCS; in mtk_star_ring_push_head()
391 avail = MTK_STAR_RING_NUM_DESCS - ring->head + ring->tail - 1; in mtk_star_tx_ring_avail()
[all …]