Home
last modified time | relevance | path

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

/drivers/net/ethernet/engleder/
Dtsnep.h20 #define TSNEP_RING_SIZE 256 macro
22 #define TSNEP_RING_PAGE_COUNT (TSNEP_RING_SIZE / TSNEP_RING_ENTRIES_PER_PAGE)
81 struct tsnep_tx_entry entry[TSNEP_RING_SIZE];
112 struct tsnep_rx_entry entry[TSNEP_RING_SIZE];
Dtsnep_main.c265 for (i = 0; i < TSNEP_RING_SIZE; i++) { in tsnep_tx_ring_init()
267 next_entry = &tx->entry[(i + 1) % TSNEP_RING_SIZE]; in tsnep_tx_ring_init()
318 tx->increment_owner_counter = TSNEP_RING_SIZE - 1; in tsnep_tx_activate()
339 return TSNEP_RING_SIZE - tx->write + tx->read - 1; in tsnep_tx_desc_available()
354 entry = &tx->entry[(tx->write + i) % TSNEP_RING_SIZE]; in tsnep_tx_map()
388 entry = &tx->entry[(index + i) % TSNEP_RING_SIZE]; in tsnep_tx_unmap()
458 tsnep_tx_activate(tx, (tx->write + i) % TSNEP_RING_SIZE, length, in tsnep_xmit_frame_ring()
460 tx->write = (tx->write + count) % TSNEP_RING_SIZE; in tsnep_xmit_frame_ring()
536 tx->read = (tx->read + count) % TSNEP_RING_SIZE; in tsnep_tx_poll()
594 tx->increment_owner_counter = TSNEP_RING_SIZE - 1; in tsnep_tx_open()
[all …]