Searched refs:page_info (Results 1 – 6 of 6) sorted by relevance
| /Linux-v5.15/drivers/net/ethernet/google/gve/ |
| D | gve_rx.c | 13 struct gve_rx_slot_page_info *page_info, in gve_rx_free_buffer() argument 19 gve_free_page(dev, page_info->page, dma, DMA_FROM_DEVICE); in gve_rx_free_buffer() 29 gve_rx_free_buffer(&priv->pdev->dev, &rx->data.page_info[i], in gve_rx_unfill_pages() 35 kvfree(rx->data.page_info); in gve_rx_unfill_pages() 36 rx->data.page_info = NULL; in gve_rx_unfill_pages() 65 static void gve_setup_rx_buffer(struct gve_rx_slot_page_info *page_info, in gve_setup_rx_buffer() argument 68 page_info->page = page; in gve_setup_rx_buffer() 69 page_info->page_offset = 0; in gve_setup_rx_buffer() 70 page_info->page_address = page_address(page); in gve_setup_rx_buffer() 75 struct gve_rx_slot_page_info *page_info, in gve_rx_alloc_buffer() argument [all …]
|
| D | gve_utils.c | 48 struct gve_rx_slot_page_info *page_info, u16 len, in gve_rx_copy() argument 52 void *va = page_info->page_address + pad + in gve_rx_copy() 53 page_info->page_offset; in gve_rx_copy() 67 void gve_dec_pagecnt_bias(struct gve_rx_slot_page_info *page_info) in gve_dec_pagecnt_bias() argument 69 page_info->pagecnt_bias--; in gve_dec_pagecnt_bias() 70 if (page_info->pagecnt_bias == 0) { in gve_dec_pagecnt_bias() 71 int pagecount = page_count(page_info->page); in gve_dec_pagecnt_bias() 76 page_info->pagecnt_bias = INT_MAX - pagecount; in gve_dec_pagecnt_bias() 79 page_ref_add(page_info->page, INT_MAX - pagecount); in gve_dec_pagecnt_bias()
|
| 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() 28 gve_free_page(&priv->pdev->dev, bs->page_info.page, bs->addr, in gve_free_page_dqo() 30 bs->page_info.page = NULL; in gve_free_page_dqo() 159 err = gve_alloc_page(priv, &priv->pdev->dev, &buf_state->page_info.page, in gve_alloc_page_dqo() 164 buf_state->page_info.page_offset = 0; in gve_alloc_page_dqo() 165 buf_state->page_info.page_address = in gve_alloc_page_dqo() 166 page_address(buf_state->page_info.page); in gve_alloc_page_dqo() 170 page_ref_add(buf_state->page_info.page, INT_MAX - 1); in gve_alloc_page_dqo() 171 buf_state->page_info.pagecnt_bias = INT_MAX; in gve_alloc_page_dqo() [all …]
|
| D | gve_utils.h | 21 struct gve_rx_slot_page_info *page_info, u16 len, 25 void gve_dec_pagecnt_bias(struct gve_rx_slot_page_info *page_info);
|
| D | gve.h | 80 struct gve_rx_slot_page_info *page_info; /* page info of the buffers */ member 125 struct gve_rx_slot_page_info page_info; member
|
| /Linux-v5.15/drivers/net/ethernet/emulex/benet/ |
| D | be_main.c | 2307 struct be_rx_page_info *page_info; in be_rx_compl_discard() local 2311 page_info = get_rx_page_info(rxo); in be_rx_compl_discard() 2312 put_page(page_info->page); in be_rx_compl_discard() 2313 memset(page_info, 0, sizeof(*page_info)); in be_rx_compl_discard() 2324 struct be_rx_page_info *page_info; in skb_fill_rx_data() local 2329 page_info = get_rx_page_info(rxo); in skb_fill_rx_data() 2330 start = page_address(page_info->page) + page_info->page_offset; in skb_fill_rx_data() 2340 put_page(page_info->page); in skb_fill_rx_data() 2347 skb_frag_set_page(skb, 0, page_info->page); in skb_fill_rx_data() 2349 page_info->page_offset + hdr_len); in skb_fill_rx_data() [all …]
|