Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.h20 #define CS_RING_SIZE (TX_RING_SIZE*2) macro
99 #define CS_DESC(cs, num) ((cs)->chan.ring_virt[(num) & (CS_RING_SIZE-1)])
H A Dpasemi_mac.c283 ring->size = CS_RING_SIZE; in pasemi_mac_setup_csring()
287 if (pasemi_dma_alloc_ring(&ring->chan, CS_RING_SIZE)) in pasemi_mac_setup_csring()
293 val |= PAS_DMA_TXCHAN_BASEU_SIZ(CS_RING_SIZE >> 3); in pasemi_mac_setup_csring()
1380 csdma = csring->chan.ring_dma + (fill & (CS_RING_SIZE-1)) * 8 + 2; in pasemi_mac_queue_csdesc()
1408 csring->next_to_fill = fill & (CS_RING_SIZE-1); in pasemi_mac_queue_csdesc()