Searched refs:TBNET_RING_SIZE (Results 1 – 1 of 1) sorted by relevance
34 #define TBNET_RING_SIZE 256 macro144 struct tbnet_frame frames[TBNET_RING_SIZE];335 for (i = 0; i < TBNET_RING_SIZE; i++) { in tbnet_free_buffers()513 unsigned int index = ring->prod & (TBNET_RING_SIZE - 1); in tbnet_alloc_rx_buffers()565 index = ring->cons++ & (TBNET_RING_SIZE - 1); in tbnet_get_tx_buffer()585 if (tbnet_available_buffers(&net->tx_ring) >= TBNET_RING_SIZE / 2) in tbnet_tx_callback()595 for (i = 0; i < TBNET_RING_SIZE; i++) { in tbnet_alloc_tx_buffers()624 ring->prod = TBNET_RING_SIZE - 1; in tbnet_alloc_tx_buffers()674 ret = tbnet_alloc_rx_buffers(net, TBNET_RING_SIZE); in tbnet_connected_work()950 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()[all …]