Home
last modified time | relevance | path

Searched refs:next_to_alloc (Results 1 – 25 of 28) sorted by relevance

12

/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.h158 int next_to_alloc; /* Rx */ member
192 if (bdr->next_to_clean > bdr->next_to_alloc) in enetc_swbd_unused()
193 return bdr->next_to_clean - bdr->next_to_alloc - 1; in enetc_swbd_unused()
195 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_alloc - 1; in enetc_swbd_unused()
H A Denetc.c1099 new = &rx_ring->rx_swbd[rx_ring->next_to_alloc]; in enetc_reuse_page()
1102 enetc_bdr_idx_inc(rx_ring, &rx_ring->next_to_alloc); in enetc_reuse_page()
1330 rx_ring->next_to_alloc = i; /* keep track from page reuse */ in enetc_refill_rx_ring()
2590 rx_ring->next_to_alloc = 0; in enetc_setup_rxbdr()
/linux/drivers/net/ethernet/huawei/hinic3/
H A Dhinic3_rx.h78 u16 next_to_alloc; member
H A Dhinic3_rx.c99 rxq->next_to_alloc = rxq->next_to_update; in hinic3_rx_fill_buffers()
/linux/drivers/net/ethernet/mscc/
H A Docelot_fdma.h122 * @next_to_alloc: Next buffer that needs to be allocated (page reuse or alloc)
131 u16 next_to_alloc; member
H A Docelot_fdma.c181 rx_ring->next_to_alloc = idx; in ocelot_fdma_alloc_rx_buffs()
301 new_rxb = &rx_ring->bufs[rx_ring->next_to_alloc]; in ocelot_fdma_reuse_rx_page()
302 rx_ring->next_to_alloc = ocelot_fdma_idx_next(rx_ring->next_to_alloc, in ocelot_fdma_reuse_rx_page()
339 /* Reuse the free half of the page for the next_to_alloc DCB*/ in ocelot_fdma_get_skb()
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.h500 * @next_to_alloc: RX buffer to allocate at
547 u16 next_to_alloc; member
710 * @next_to_alloc: RX buffer to allocate at
737 u32 next_to_alloc; member
H A Didpf_txrx.c485 rxq->next_to_alloc = 0; in idpf_rx_desc_rel()
508 bufq->next_to_alloc = 0; in idpf_rx_desc_rel_bufq()
641 u16 nta = bufq->next_to_alloc; in idpf_rx_post_buf_desc()
672 bufq->next_to_alloc = nta; in idpf_rx_post_buf_desc()
694 idpf_rx_buf_hw_update(bufq, ALIGN_DOWN(bufq->next_to_alloc, in idpf_rx_post_init_bufs()
880 rxq->next_to_alloc = 0; in idpf_rx_desc_alloc()
907 bufq->next_to_alloc = 0; in idpf_bufq_desc_alloc()
3571 u16 bufq_nta = bufq->next_to_alloc; in idpf_rx_clean_refillq()
3620 bufq->next_to_alloc = bufq_nta; in idpf_rx_clean_refillq()
H A Didpf_lib.c1356 writel(q->next_to_alloc, q->tail); in idpf_rx_init_buf_tail()
1363 writel(q->next_to_alloc, q->tail); in idpf_rx_init_buf_tail()
/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_vf_lib.c261 ring->next_to_alloc = 0; in wx_configure_rx_ring_vf()
H A Dwx_lib.c371 rx_ring->next_to_alloc = i; in wx_alloc_rx_buffers()
2421 while (i != rx_ring->next_to_alloc) { in wx_clean_rx_ring()
2451 rx_ring->next_to_alloc = 0; in wx_clean_rx_ring()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_txrx.h325 u16 next_to_alloc; member
H A Dice_txrx.c438 rx_ring->next_to_alloc = 0; in ice_clean_rx_ring()
830 * which will assign the current buffer to the buffer that next_to_alloc is
918 u16 nta = rx_ring->next_to_alloc; in ice_reuse_rx_page()
925 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in ice_reuse_rx_page()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.h397 u16 next_to_alloc; member
H A Di40e_txrx.c1369 u16 nta = rx_ring->next_to_alloc; in i40e_reuse_rx_page()
1375 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in i40e_reuse_rx_page()
1518 rx_ring->next_to_alloc = 0; in i40e_clean_rx_ring()
1570 rx_ring->next_to_alloc = 0; in i40e_setup_rx_descriptors()
1595 rx_ring->next_to_alloc = val; in i40e_release_rx_desc()
1915 * which will assign the current buffer to the buffer that next_to_alloc is
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c161 rx_ring->next_to_alloc = i; in fm10k_alloc_rx_buffers()
186 u16 nta = rx_ring->next_to_alloc; in fm10k_reuse_rx_page()
192 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in fm10k_reuse_rx_page()
H A Dfm10k.h128 u16 next_to_alloc; member
H A Dfm10k_netdev.c279 rx_ring->next_to_alloc = 0; in fm10k_clean_rx_ring()
/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c706 rx_ring->next_to_alloc = i; in ixgbevf_alloc_rx_buffers()
769 u16 nta = rx_ring->next_to_alloc; in ixgbevf_reuse_rx_page()
775 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in ixgbevf_reuse_rx_page()
1950 ring->next_to_alloc = 0; in ixgbevf_configure_rx_ring()
2369 while (i != rx_ring->next_to_alloc) { in ixgbevf_clean_rx_ring()
2398 rx_ring->next_to_alloc = 0; in ixgbevf_clean_rx_ring()
/linux/drivers/net/ethernet/intel/igc/
H A Digc.h185 u16 next_to_alloc; member
H A Digc_main.c416 while (i != rx_ring->next_to_alloc) { in igc_clean_rx_ring_page_shared()
471 ring->next_to_alloc = 0; in igc_clean_rx_ring()
569 rx_ring->next_to_alloc = 0; in igc_setup_rx_resources()
2055 u16 nta = rx_ring->next_to_alloc; in igc_reuse_rx_page()
2062 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in igc_reuse_rx_page()
2305 rx_ring->next_to_alloc = i; in igc_alloc_rx_buffers()
/linux/drivers/net/ethernet/intel/igb/
H A Digb.h348 u16 next_to_alloc; member
/linux/drivers/net/ethernet/freescale/
H A Dgianfar.c1272 rx_queue->next_to_alloc = i; in gfar_alloc_rx_buffs()
1314 rx_queue->next_to_alloc = 0; in gfar_init_bds()
2348 u16 nta = rxq->next_to_alloc; in gfar_reuse_rx_page()
2354 rxq->next_to_alloc = (nta < rxq->rx_ring_size) ? nta : 0; in gfar_reuse_rx_page()
H A Dgianfar.h1060 u16 next_to_alloc; member
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe.h386 u16 next_to_alloc; member

12