Lines Matching refs:TBNET_RING_SIZE
30 #define TBNET_RING_SIZE 256 macro
138 struct tbnet_frame frames[TBNET_RING_SIZE];
326 for (i = 0; i < TBNET_RING_SIZE; i++) { in tbnet_free_buffers()
482 unsigned int index = ring->prod & (TBNET_RING_SIZE - 1); in tbnet_alloc_rx_buffers()
531 index = ring->cons++ & (TBNET_RING_SIZE - 1); in tbnet_get_tx_buffer()
551 if (tbnet_available_buffers(&net->tx_ring) >= TBNET_RING_SIZE / 2) in tbnet_tx_callback()
561 for (i = 0; i < TBNET_RING_SIZE; i++) { in tbnet_alloc_tx_buffers()
588 ring->prod = TBNET_RING_SIZE - 1; in tbnet_alloc_tx_buffers()
630 ret = tbnet_alloc_rx_buffers(net, TBNET_RING_SIZE); in tbnet_connected_work()
744 if (frame_count == 0 || frame_count > TBNET_RING_SIZE / 4) { in tbnet_check_frame()
874 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
894 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()