Searched refs:TBNET_RING_SIZE (Results 1 – 1 of 1) sorted by relevance
31 #define TBNET_RING_SIZE 256 macro140 struct tbnet_frame frames[TBNET_RING_SIZE];332 for (i = 0; i < TBNET_RING_SIZE; i++) { in tbnet_free_buffers()488 unsigned int index = ring->prod & (TBNET_RING_SIZE - 1); in tbnet_alloc_rx_buffers()537 index = ring->cons++ & (TBNET_RING_SIZE - 1); in tbnet_get_tx_buffer()557 if (tbnet_available_buffers(&net->tx_ring) >= TBNET_RING_SIZE / 2) in tbnet_tx_callback()567 for (i = 0; i < TBNET_RING_SIZE; i++) { in tbnet_alloc_tx_buffers()594 ring->prod = TBNET_RING_SIZE - 1; in tbnet_alloc_tx_buffers()631 ret = tbnet_alloc_rx_buffers(net, TBNET_RING_SIZE); in tbnet_connected_work()756 if (frame_count == 0 || frame_count > TBNET_RING_SIZE / 4) { in tbnet_check_frame()[all …]