/linux-6.1.9/drivers/net/ethernet/google/gve/ |
D | gve_utils.c | 87 page_info->pagecnt_bias--; in gve_dec_pagecnt_bias() 88 if (page_info->pagecnt_bias == 0) { in gve_dec_pagecnt_bias() 94 page_info->pagecnt_bias = INT_MAX - pagecount; in gve_dec_pagecnt_bias()
|
D | gve_rx.c | 19 page_ref_sub(page_info->page, page_info->pagecnt_bias - 1); in gve_rx_free_buffer() 35 rx->data.page_info[i].pagecnt_bias - 1); in gve_rx_unfill_pages() 78 page_info->pagecnt_bias = INT_MAX; in gve_setup_rx_buffer() 335 if (pagecount == page_info->pagecnt_bias) in gve_rx_can_recycle_buffer() 338 else if (pagecount > page_info->pagecnt_bias) in gve_rx_can_recycle_buffer() 340 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() 27 page_ref_sub(bs->page_info.page, bs->page_info.pagecnt_bias - 1); in gve_free_page_dqo() 171 buf_state->page_info.pagecnt_bias = INT_MAX; in gve_alloc_page_dqo()
|
D | gve.h | 62 int pagecnt_bias; /* expected pagecnt if only the driver has a ref */ member
|
/linux-6.1.9/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.c | 726 __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 …]
|
D | iavf_txrx.h | 283 __u16 pagecnt_bias; member
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.c | 421 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_clean_rx_ring() 691 bi->pagecnt_bias = USHRT_MAX; in ice_alloc_mapped_page() 796 unsigned int pagecnt_bias = rx_buf->pagecnt_bias; in ice_can_reuse_rx_page() local 805 if (unlikely((rx_buf_pgcnt - pagecnt_bias) > 1)) in ice_can_reuse_rx_page() 818 if (unlikely(pagecnt_bias == 1)) { in ice_can_reuse_rx_page() 820 rx_buf->pagecnt_bias = USHRT_MAX; in ice_can_reuse_rx_page() 882 new_buf->pagecnt_bias = old_buf->pagecnt_bias; in ice_reuse_rx_page() 917 rx_buf->pagecnt_bias--; in ice_get_rx_buf() 1034 rx_buf->pagecnt_bias++; in ice_construct_skb() 1071 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_put_rx_buf() [all …]
|
D | ice_txrx.h | 173 u16 pagecnt_bias; member
|
/linux-6.1.9/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 1381 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() 1681 bi->pagecnt_bias = USHRT_MAX; in i40e_alloc_mapped_page() 1984 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in i40e_can_reuse_rx_page() local 1995 if (unlikely((rx_buffer_pgcnt - pagecnt_bias) > 1)) { in i40e_can_reuse_rx_page() 2012 if (unlikely(pagecnt_bias == 1)) { in i40e_can_reuse_rx_page() 2014 rx_buffer->pagecnt_bias = USHRT_MAX; in i40e_can_reuse_rx_page() 2086 rx_buffer->pagecnt_bias--; in i40e_get_rx_buffer() 2165 rx_buffer->pagecnt_bias++; in i40e_construct_skb() 2244 rx_buffer->pagecnt_bias); in i40e_put_rx_buffer() [all …]
|
D | i40e_txrx.h | 279 __u16 pagecnt_bias; member
|
/linux-6.1.9/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.1.9/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 402 buffer_info->pagecnt_bias); in igc_clean_rx_ring_page_shared() 1780 rx_buffer->pagecnt_bias--; in igc_get_rx_buffer() 1913 rx_buffer->pagecnt_bias++; in igc_construct_skb() 1945 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in igc_reuse_rx_page() 1951 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in igc_can_reuse_rx_page() local 1960 if (unlikely((rx_buffer_pgcnt - pagecnt_bias) > 1)) in igc_can_reuse_rx_page() 1974 if (unlikely(pagecnt_bias == 1)) { in igc_can_reuse_rx_page() 1976 rx_buffer->pagecnt_bias = USHRT_MAX; in igc_can_reuse_rx_page() 2062 rx_buffer->pagecnt_bias); in igc_put_rx_buffer() 2118 bi->pagecnt_bias = USHRT_MAX; in igc_alloc_mapped_page() [all …]
|
D | igc.h | 468 __u16 pagecnt_bias; member
|
/linux-6.1.9/include/linux/ |
D | mm_types.h | 397 unsigned int pagecnt_bias; member
|
/linux-6.1.9/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 4970 buffer_info->pagecnt_bias); in igb_clean_rx_ring() 8361 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in igb_reuse_rx_page() 8367 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in igb_can_reuse_rx_page() local 8376 if (unlikely((rx_buf_pgcnt - pagecnt_bias) > 1)) in igb_can_reuse_rx_page() 8390 if (unlikely(pagecnt_bias == 1)) { in igb_can_reuse_rx_page() 8392 rx_buffer->pagecnt_bias = USHRT_MAX; in igb_can_reuse_rx_page() 8474 rx_buffer->pagecnt_bias++; in igb_construct_skb() 8779 rx_buffer->pagecnt_bias--; in igb_get_rx_buffer() 8798 rx_buffer->pagecnt_bias); in igb_put_rx_buffer() 8883 rx_buffer->pagecnt_bias++; in igb_clean_rx_irq() [all …]
|
D | igb.h | 288 __u16 pagecnt_bias; member
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.h | 345 u16 pagecnt_bias; member
|
D | hns3_enet.c | 3383 cb->pagecnt_bias = USHRT_MAX; in hns3_alloc_buffer() 3395 if (cb->type & DESC_TYPE_PAGE && cb->pagecnt_bias) in hns3_free_buffer() 3396 __page_frag_cache_drain(cb->priv, cb->pagecnt_bias); in hns3_free_buffer() 3705 return page_count(cb->priv) == cb->pagecnt_bias; in hns3_can_reuse_page() 3786 desc_cb->pagecnt_bias--; in hns3_nic_reuse_page() 3788 if (unlikely(!desc_cb->pagecnt_bias)) { in hns3_nic_reuse_page() 3790 desc_cb->pagecnt_bias = USHRT_MAX; in hns3_nic_reuse_page() 3797 __page_frag_cache_drain(desc_cb->priv, desc_cb->pagecnt_bias); in hns3_nic_reuse_page() 4050 desc_cb->pagecnt_bias); in hns3_alloc_skb()
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 1569 bi->pagecnt_bias = USHRT_MAX; in ixgbe_alloc_mapped_page() 1944 new_buff->pagecnt_bias = old_buff->pagecnt_bias; in ixgbe_reuse_rx_page() 1950 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in ixgbe_can_reuse_rx_page() local 1959 if (unlikely((rx_buffer_pgcnt - pagecnt_bias) > 1)) in ixgbe_can_reuse_rx_page() 1977 if (unlikely(pagecnt_bias == 1)) { in ixgbe_can_reuse_rx_page() 1979 rx_buffer->pagecnt_bias = USHRT_MAX; in ixgbe_can_reuse_rx_page() 2058 rx_buffer->pagecnt_bias--; in ixgbe_get_rx_buffer() 2083 rx_buffer->pagecnt_bias); in ixgbe_put_rx_buffer() 2144 rx_buffer->pagecnt_bias++; in ixgbe_construct_skb() 2362 rx_buffer->pagecnt_bias++; in ixgbe_clean_rx_irq() [all …]
|
D | ixgbe.h | 270 __u16 pagecnt_bias; member
|
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/ |
D | dma.c | 589 __page_frag_cache_drain(page, q->rx_page.pagecnt_bias); in mt76_dma_rx_cleanup()
|
D | usb.c | 709 __page_frag_cache_drain(page, q->rx_page.pagecnt_bias); in mt76u_free_rx_queue()
|
/linux-6.1.9/mm/ |
D | page_alloc.c | 5727 nc->pagecnt_bias = PAGE_FRAG_CACHE_MAX_SIZE + 1; in page_frag_alloc_align() 5735 if (!page_ref_sub_and_test(page, nc->pagecnt_bias)) in page_frag_alloc_align() 5751 nc->pagecnt_bias = PAGE_FRAG_CACHE_MAX_SIZE + 1; in page_frag_alloc_align() 5767 nc->pagecnt_bias--; in page_frag_alloc_align()
|
/linux-6.1.9/drivers/nvme/target/ |
D | tcp.c | 1465 __page_frag_cache_drain(page, queue->pf_cache.pagecnt_bias); in nvmet_tcp_release_queue_work()
|