Home
last modified time | relevance | path

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

/freebsd/sys/dev/mgb/
H A Dif_mgb.h132 #define MGB_DMA_RING_SIZE 16 /* in programming guide, this number is 100 */ macro
136 (sizeof(struct mgb_ring_desc) * MGB_DMA_RING_SIZE)
179 #define MGB_NEXT_RING_IDX(_idx) (((_idx) == MGB_DMA_RING_SIZE - 1) ? 0 : ((_idx) + 1))
180 #define MGB_PREV_RING_IDX(_idx) (((_idx) == 0) ? (MGB_DMA_RING_SIZE - 1) : ((_idx) - 1))
183 + MGB_DMA_RING_SIZE ) % MGB_DMA_RING_SIZE )
H A Dif_mgb.c301 .isc_ntxd_max = {MGB_DMA_RING_SIZE, 1},
302 .isc_ntxd_default = {MGB_DMA_RING_SIZE, 1},
311 .isc_nrxd_max = {MGB_DMA_RING_SIZE, 1},
312 .isc_nrxd_default = {MGB_DMA_RING_SIZE, 1},
684 for (i = 0; i < MGB_DMA_RING_SIZE; i++)
1285 ring_config |= (MGB_DMA_RING_SIZE & MGB_DMA_RING_LEN_MASK); in mgb_dma_rx_ring_init()
1348 ring_config |= (MGB_DMA_RING_SIZE & MGB_DMA_RING_LEN_MASK); in mgb_dma_tx_ring_init()