Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/ethernet/google/gve/
H A Dgve_utils.c71 page_info->pagecnt_bias--; in gve_dec_pagecnt_bias()
72 if (page_info->pagecnt_bias == 0) { in gve_dec_pagecnt_bias()
78 page_info->pagecnt_bias = INT_MAX - pagecount; in gve_dec_pagecnt_bias()
H A Dgve_rx.c22 page_ref_sub(page_info->page, page_info->pagecnt_bias - 1); in gve_rx_free_buffer()
38 rx->data.page_info[i].pagecnt_bias - 1); in gve_rx_unfill_pages()
44 rx->qpl_copy_pool[i].pagecnt_bias - 1); in gve_rx_unfill_pages()
91 page_info->pagecnt_bias = INT_MAX; in gve_setup_rx_buffer()
167 rx->qpl_copy_pool[j].pagecnt_bias = INT_MAX; in gve_prefill_rx_pages()
177 rx->qpl_copy_pool[j].pagecnt_bias - 1); in gve_prefill_rx_pages()
186 rx->data.page_info[i].pagecnt_bias - 1); in gve_prefill_rx_pages()
420 if (pagecount == page_info->pagecnt_bias) in gve_rx_can_recycle_buffer()
423 else if (pagecount > page_info->pagecnt_bias) in gve_rx_can_recycle_buffer()
425 WARN(pagecount < page_info->pagecnt_bias, in gve_rx_can_recycle_buffer()
H A Dgve_rx_dqo.c21 return page_count(bs->page_info.page) - bs->page_info.pagecnt_bias; in gve_buf_ref_cnt()
28 page_ref_sub(bs->page_info.page, bs->page_info.pagecnt_bias - 1); in gve_free_page_dqo()
197 buf_state->page_info.pagecnt_bias = INT_MAX; in gve_alloc_page_dqo()
H A Dgve.h87 int pagecnt_bias; /* expected pagecnt if only the driver has a ref */ member
/openbmc/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_txrx.c726 __page_frag_cache_drain(rx_bi->page, rx_bi->pagecnt_bias); in iavf_clean_rx_ring()
884 bi->pagecnt_bias = 1; in iavf_alloc_mapped_page()
1179 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in iavf_reuse_rx_page()
1211 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in iavf_can_reuse_rx_page() local
1220 if (unlikely((page_count(page) - pagecnt_bias) > 1)) in iavf_can_reuse_rx_page()
1233 if (unlikely(!pagecnt_bias)) { in iavf_can_reuse_rx_page()
1235 rx_buffer->pagecnt_bias = USHRT_MAX; in iavf_can_reuse_rx_page()
1304 rx_buffer->pagecnt_bias--; in iavf_get_rx_buffer()
1368 rx_buffer->pagecnt_bias++; in iavf_construct_skb()
1445 rx_buffer->pagecnt_bias); in iavf_put_rx_buffer()
[all …]
H A Diavf_txrx.h282 __u16 pagecnt_bias; member
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_txrx.c422 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_clean_rx_ring()
702 bi->pagecnt_bias = USHRT_MAX; in ice_alloc_mapped_page()
806 unsigned int pagecnt_bias = rx_buf->pagecnt_bias; in ice_can_reuse_rx_page() local
814 if (unlikely(rx_buf->pgcnt - pagecnt_bias > 1)) in ice_can_reuse_rx_page()
827 if (unlikely(pagecnt_bias == 1)) { in ice_can_reuse_rx_page()
829 rx_buf->pagecnt_bias = USHRT_MAX; in ice_can_reuse_rx_page()
905 new_buf->pagecnt_bias = old_buf->pagecnt_bias; in ice_reuse_rx_page()
935 rx_buf->pagecnt_bias--; in ice_get_rx_buf()
1097 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_put_rx_buf()
1270 buf->pagecnt_bias++; in ice_clean_rx_irq()
H A Dice_txrx_lib.h45 buf->pagecnt_bias--; in ice_set_rx_bufs_act()
H A Dice_txrx.h205 unsigned int pagecnt_bias; member
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.c1383 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in i40e_reuse_rx_page()
1506 __page_frag_cache_drain(rx_bi->page, rx_bi->pagecnt_bias); in i40e_clean_rx_ring()
1671 bi->pagecnt_bias = USHRT_MAX; in i40e_alloc_mapped_page()
1972 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in i40e_can_reuse_rx_page() local
1983 if (unlikely((rx_buffer->page_count - pagecnt_bias) > 1)) { in i40e_can_reuse_rx_page()
2000 if (unlikely(pagecnt_bias == 1)) { in i40e_can_reuse_rx_page()
2002 rx_buffer->pagecnt_bias = USHRT_MAX; in i40e_can_reuse_rx_page()
2053 rx_buffer->pagecnt_bias--; in i40e_get_rx_buffer()
2078 rx_buffer->pagecnt_bias); in i40e_put_rx_buffer()
2110 rx_buffer->pagecnt_bias++; in i40e_process_rx_buffs()
[all …]
H A Di40e_txrx.h281 __u16 pagecnt_bias; member
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c543 rx_buffer->pagecnt_bias--; in ixgbevf_get_rx_buffer()
565 rx_buffer->pagecnt_bias); in ixgbevf_put_rx_buffer()
639 bi->pagecnt_bias = 1; in ixgbevf_alloc_mapped_page()
781 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in ixgbevf_reuse_rx_page()
786 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in ixgbevf_can_reuse_rx_page() local
795 if (unlikely((page_ref_count(page) - pagecnt_bias) > 1)) in ixgbevf_can_reuse_rx_page()
810 if (unlikely(!pagecnt_bias)) { in ixgbevf_can_reuse_rx_page()
812 rx_buffer->pagecnt_bias = USHRT_MAX; in ixgbevf_can_reuse_rx_page()
910 rx_buffer->pagecnt_bias++; in ixgbevf_construct_skb()
1178 rx_buffer->pagecnt_bias++; in ixgbevf_clean_rx_irq()
[all …]
H A Dixgbevf.h53 __u16 pagecnt_bias; member
/openbmc/linux/drivers/net/ethernet/mediatek/
H A Dmtk_wed_wo.c307 __page_frag_cache_drain(page, q->cache.pagecnt_bias); in mtk_wed_wo_queue_tx_clean()
329 __page_frag_cache_drain(page, q->cache.pagecnt_bias); in mtk_wed_wo_queue_rx_clean()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_main.c435 buffer_info->pagecnt_bias); in igc_clean_rx_ring_page_shared()
1873 rx_buffer->pagecnt_bias--; in igc_get_rx_buffer()
2006 rx_buffer->pagecnt_bias++; in igc_construct_skb()
2038 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in igc_reuse_rx_page()
2044 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in igc_can_reuse_rx_page() local
2053 if (unlikely((rx_buffer_pgcnt - pagecnt_bias) > 1)) in igc_can_reuse_rx_page()
2067 if (unlikely(pagecnt_bias == 1)) { in igc_can_reuse_rx_page()
2069 rx_buffer->pagecnt_bias = USHRT_MAX; in igc_can_reuse_rx_page()
2155 rx_buffer->pagecnt_bias); in igc_put_rx_buffer()
2211 bi->pagecnt_bias = USHRT_MAX; in igc_alloc_mapped_page()
[all …]
H A Digc.h524 __u16 pagecnt_bias; member
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_main.c5062 buffer_info->pagecnt_bias); in igb_clean_rx_ring()
8454 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in igb_reuse_rx_page()
8460 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in igb_can_reuse_rx_page() local
8469 if (unlikely((rx_buf_pgcnt - pagecnt_bias) > 1)) in igb_can_reuse_rx_page()
8483 if (unlikely(pagecnt_bias == 1)) { in igb_can_reuse_rx_page()
8485 rx_buffer->pagecnt_bias = USHRT_MAX; in igb_can_reuse_rx_page()
8567 rx_buffer->pagecnt_bias++; in igb_construct_skb()
8872 rx_buffer->pagecnt_bias--; in igb_get_rx_buffer()
8891 rx_buffer->pagecnt_bias); in igb_put_rx_buffer()
8978 rx_buffer->pagecnt_bias++; in igb_clean_rx_irq()
[all …]
H A Digb.h288 __u16 pagecnt_bias; member
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.h347 u16 pagecnt_bias; member
H A Dhns3_enet.c3399 cb->pagecnt_bias = USHRT_MAX; in hns3_alloc_buffer()
3411 if (cb->type & DESC_TYPE_PAGE && cb->pagecnt_bias) in hns3_free_buffer()
3412 __page_frag_cache_drain(cb->priv, cb->pagecnt_bias); in hns3_free_buffer()
3723 return page_count(cb->priv) == cb->pagecnt_bias; in hns3_can_reuse_page()
3804 desc_cb->pagecnt_bias--; in hns3_nic_reuse_page()
3806 if (unlikely(!desc_cb->pagecnt_bias)) { in hns3_nic_reuse_page()
3808 desc_cb->pagecnt_bias = USHRT_MAX; in hns3_nic_reuse_page()
3815 __page_frag_cache_drain(desc_cb->priv, desc_cb->pagecnt_bias); in hns3_nic_reuse_page()
4068 desc_cb->pagecnt_bias); in hns3_alloc_skb()
/openbmc/linux/include/linux/
H A Dmm_types.h508 unsigned int pagecnt_bias; member
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c1561 bi->pagecnt_bias = USHRT_MAX; in ixgbe_alloc_mapped_page()
1936 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in ixgbe_reuse_rx_page()
1942 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in ixgbe_can_reuse_rx_page() local
1951 if (unlikely((rx_buffer_pgcnt - pagecnt_bias) > 1)) in ixgbe_can_reuse_rx_page()
1969 if (unlikely(pagecnt_bias == 1)) { in ixgbe_can_reuse_rx_page()
1971 rx_buffer->pagecnt_bias = USHRT_MAX; in ixgbe_can_reuse_rx_page()
2050 rx_buffer->pagecnt_bias--; in ixgbe_get_rx_buffer()
2075 rx_buffer->pagecnt_bias); in ixgbe_put_rx_buffer()
2136 rx_buffer->pagecnt_bias++; in ixgbe_construct_skb()
2354 rx_buffer->pagecnt_bias++; in ixgbe_clean_rx_irq()
[all …]
H A Dixgbe.h277 __u16 pagecnt_bias; member
/openbmc/linux/mm/
H A Dpage_alloc.c4618 nc->pagecnt_bias = PAGE_FRAG_CACHE_MAX_SIZE + 1; in page_frag_alloc_align()
4626 if (!page_ref_sub_and_test(page, nc->pagecnt_bias)) in page_frag_alloc_align()
4642 nc->pagecnt_bias = PAGE_FRAG_CACHE_MAX_SIZE + 1; in page_frag_alloc_align()
4658 nc->pagecnt_bias--; in page_frag_alloc_align()
/openbmc/linux/net/sunrpc/
H A Dsvcsock.c1638 pfc->pagecnt_bias); in svc_sock_free()

12