Lines Matching refs:bufs
81 struct prestera_sdma_buf *bufs; member
86 struct prestera_sdma_buf *bufs; member
297 buf = &ring->bufs[buf_idx]; in prestera_sdma_rx_poll()
345 if (!ring->bufs) in prestera_sdma_rx_fini()
349 struct prestera_sdma_buf *buf = &ring->bufs[b]; in prestera_sdma_rx_fini()
382 ring->bufs = kmalloc_array(bnum, sizeof(*head), GFP_KERNEL); in prestera_sdma_rx_init()
383 if (!ring->bufs) in prestera_sdma_rx_init()
388 tail = &ring->bufs[bnum - 1]; in prestera_sdma_rx_init()
389 head = &ring->bufs[0]; in prestera_sdma_rx_init()
503 struct prestera_sdma_buf *buf = &tx_ring->bufs[b]; in prestera_sdma_tx_recycle_work_fn()
532 tx_ring->bufs = kmalloc_array(bnum, sizeof(*head), GFP_KERNEL); in prestera_sdma_tx_init()
533 if (!tx_ring->bufs) in prestera_sdma_tx_init()
536 tail = &tx_ring->bufs[bnum - 1]; in prestera_sdma_tx_init()
537 head = &tx_ring->bufs[0]; in prestera_sdma_tx_init()
581 if (!ring->bufs) in prestera_sdma_tx_fini()
585 struct prestera_sdma_buf *buf = &ring->bufs[b]; in prestera_sdma_tx_fini()
726 buf = &tx_ring->bufs[tx_ring->next_tx]; in prestera_sdma_xmit()