/linux-6.6.21/drivers/net/ethernet/google/gve/ |
D | gve_utils.c | 71 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()
|
D | gve_rx.c | 22 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()
|
D | gve_rx_dqo.c | 21 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()
|
D | gve.h | 87 int pagecnt_bias; /* expected pagecnt if only the driver has a ref */ member
|
/linux-6.6.21/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.c | 725 __page_frag_cache_drain(rx_bi->page, rx_bi->pagecnt_bias); in iavf_clean_rx_ring() 883 bi->pagecnt_bias = 1; in iavf_alloc_mapped_page() 1178 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in iavf_reuse_rx_page() 1210 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in iavf_can_reuse_rx_page() local 1219 if (unlikely((page_count(page) - pagecnt_bias) > 1)) in iavf_can_reuse_rx_page() 1232 if (unlikely(!pagecnt_bias)) { in iavf_can_reuse_rx_page() 1234 rx_buffer->pagecnt_bias = USHRT_MAX; in iavf_can_reuse_rx_page() 1303 rx_buffer->pagecnt_bias--; in iavf_get_rx_buffer() 1367 rx_buffer->pagecnt_bias++; in iavf_construct_skb() 1444 rx_buffer->pagecnt_bias); in iavf_put_rx_buffer() [all …]
|
D | iavf_txrx.h | 282 __u16 pagecnt_bias; member
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.c | 422 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_clean_rx_ring() 726 bi->pagecnt_bias = USHRT_MAX; in ice_alloc_mapped_page() 830 unsigned int pagecnt_bias = rx_buf->pagecnt_bias; in ice_can_reuse_rx_page() local 839 if (unlikely(rx_buf->pgcnt - pagecnt_bias > 1)) in ice_can_reuse_rx_page() 852 if (unlikely(pagecnt_bias == 1)) { in ice_can_reuse_rx_page() 854 rx_buf->pagecnt_bias = USHRT_MAX; in ice_can_reuse_rx_page() 930 new_buf->pagecnt_bias = old_buf->pagecnt_bias; in ice_reuse_rx_page() 965 rx_buf->pagecnt_bias--; in ice_get_rx_buf() 1127 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_put_rx_buf() 1309 buf->pagecnt_bias++; in ice_clean_rx_irq()
|
D | ice_txrx_lib.h | 45 buf->pagecnt_bias--; in ice_set_rx_bufs_act()
|
D | ice_txrx.h | 205 unsigned int pagecnt_bias; member
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 1384 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in i40e_reuse_rx_page() 1507 __page_frag_cache_drain(rx_bi->page, rx_bi->pagecnt_bias); in i40e_clean_rx_ring() 1672 bi->pagecnt_bias = USHRT_MAX; in i40e_alloc_mapped_page() 1973 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in i40e_can_reuse_rx_page() local 1984 if (unlikely((rx_buffer->page_count - pagecnt_bias) > 1)) { in i40e_can_reuse_rx_page() 2001 if (unlikely(pagecnt_bias == 1)) { in i40e_can_reuse_rx_page() 2003 rx_buffer->pagecnt_bias = USHRT_MAX; in i40e_can_reuse_rx_page() 2054 rx_buffer->pagecnt_bias--; in i40e_get_rx_buffer() 2079 rx_buffer->pagecnt_bias); in i40e_put_rx_buffer() 2111 rx_buffer->pagecnt_bias++; in i40e_process_rx_buffs() [all …]
|
D | i40e_txrx.h | 279 __u16 pagecnt_bias; member
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 543 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 …]
|
D | ixgbevf.h | 53 __u16 pagecnt_bias; member
|
/linux-6.6.21/drivers/net/ethernet/mediatek/ |
D | mtk_wed_wo.c | 307 __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()
|
/linux-6.6.21/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 435 buffer_info->pagecnt_bias); in igc_clean_rx_ring_page_shared() 1877 rx_buffer->pagecnt_bias--; in igc_get_rx_buffer() 2010 rx_buffer->pagecnt_bias++; in igc_construct_skb() 2042 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in igc_reuse_rx_page() 2048 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in igc_can_reuse_rx_page() local 2057 if (unlikely((rx_buffer_pgcnt - pagecnt_bias) > 1)) in igc_can_reuse_rx_page() 2071 if (unlikely(pagecnt_bias == 1)) { in igc_can_reuse_rx_page() 2073 rx_buffer->pagecnt_bias = USHRT_MAX; in igc_can_reuse_rx_page() 2159 rx_buffer->pagecnt_bias); in igc_put_rx_buffer() 2215 bi->pagecnt_bias = USHRT_MAX; in igc_alloc_mapped_page() [all …]
|
D | igc.h | 524 __u16 pagecnt_bias; member
|
/linux-6.6.21/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 5053 buffer_info->pagecnt_bias); in igb_clean_rx_ring() 8448 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in igb_reuse_rx_page() 8454 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in igb_can_reuse_rx_page() local 8463 if (unlikely((rx_buf_pgcnt - pagecnt_bias) > 1)) in igb_can_reuse_rx_page() 8477 if (unlikely(pagecnt_bias == 1)) { in igb_can_reuse_rx_page() 8479 rx_buffer->pagecnt_bias = USHRT_MAX; in igb_can_reuse_rx_page() 8561 rx_buffer->pagecnt_bias++; in igb_construct_skb() 8866 rx_buffer->pagecnt_bias--; in igb_get_rx_buffer() 8885 rx_buffer->pagecnt_bias); in igb_put_rx_buffer() 8970 rx_buffer->pagecnt_bias++; in igb_clean_rx_irq() [all …]
|
D | igb.h | 288 __u16 pagecnt_bias; member
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.h | 345 u16 pagecnt_bias; member
|
D | hns3_enet.c | 3399 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() 3720 return page_count(cb->priv) == cb->pagecnt_bias; in hns3_can_reuse_page() 3801 desc_cb->pagecnt_bias--; in hns3_nic_reuse_page() 3803 if (unlikely(!desc_cb->pagecnt_bias)) { in hns3_nic_reuse_page() 3805 desc_cb->pagecnt_bias = USHRT_MAX; in hns3_nic_reuse_page() 3812 __page_frag_cache_drain(desc_cb->priv, desc_cb->pagecnt_bias); in hns3_nic_reuse_page() 4065 desc_cb->pagecnt_bias); in hns3_alloc_skb()
|
/linux-6.6.21/include/linux/ |
D | mm_types.h | 508 unsigned int pagecnt_bias; member
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 1561 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 …]
|
D | ixgbe.h | 277 __u16 pagecnt_bias; member
|
/linux-6.6.21/mm/ |
D | page_alloc.c | 4599 nc->pagecnt_bias = PAGE_FRAG_CACHE_MAX_SIZE + 1; in page_frag_alloc_align() 4607 if (!page_ref_sub_and_test(page, nc->pagecnt_bias)) in page_frag_alloc_align() 4623 nc->pagecnt_bias = PAGE_FRAG_CACHE_MAX_SIZE + 1; in page_frag_alloc_align() 4639 nc->pagecnt_bias--; in page_frag_alloc_align()
|
/linux-6.6.21/net/sunrpc/ |
D | svcsock.c | 1642 pfc->pagecnt_bias); in svc_sock_free()
|