Lines Matching refs:rx_bufs
246 if (gq->rx_bufs[index]) in rswitch_gwca_queue_alloc_rx_buf()
248 gq->rx_bufs[index] = netdev_alloc_frag(RSWITCH_BUF_SIZE); in rswitch_gwca_queue_alloc_rx_buf()
249 if (!gq->rx_bufs[index]) in rswitch_gwca_queue_alloc_rx_buf()
258 skb_free_frag(gq->rx_bufs[index]); in rswitch_gwca_queue_alloc_rx_buf()
259 gq->rx_bufs[index] = NULL; in rswitch_gwca_queue_alloc_rx_buf()
277 skb_free_frag(gq->rx_bufs[i]); in rswitch_gwca_queue_free()
278 kfree(gq->rx_bufs); in rswitch_gwca_queue_free()
279 gq->rx_bufs = NULL; in rswitch_gwca_queue_free()
314 gq->rx_bufs = kcalloc(gq->ring_size, sizeof(*gq->rx_bufs), GFP_KERNEL); in rswitch_gwca_queue_alloc()
315 if (!gq->rx_bufs) in rswitch_gwca_queue_alloc()
378 gq->rx_bufs[i] + RSWITCH_HEADROOM, in rswitch_gwca_queue_format()
445 gq->rx_bufs[index] + RSWITCH_HEADROOM, in rswitch_gwca_queue_ext_ts_fill()
760 skb = build_skb(gq->rx_bufs[gq->cur], RSWITCH_BUF_SIZE); in rswitch_rx_handle_desc()
774 virt_to_page(gq->rx_bufs[gq->cur]), in rswitch_rx_handle_desc()
775 offset_in_page(gq->rx_bufs[gq->cur]) + RSWITCH_HEADROOM, in rswitch_rx_handle_desc()
831 gq->rx_bufs[gq->cur] = NULL; in rswitch_rx()