Home
last modified time | relevance | path

Searched refs:page_info (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/google/gve/
Dgve_rx.c13 struct gve_rx_slot_page_info *page_info, in gve_rx_free_buffer() argument
19 page_ref_sub(page_info->page, page_info->pagecnt_bias - 1); in gve_rx_free_buffer()
20 gve_free_page(dev, page_info->page, dma, DMA_FROM_DEVICE); in gve_rx_free_buffer()
30 gve_rx_free_buffer(&priv->pdev->dev, &rx->data.page_info[i], in gve_rx_unfill_pages()
34 page_ref_sub(rx->data.page_info[i].page, in gve_rx_unfill_pages()
35 rx->data.page_info[i].pagecnt_bias - 1); in gve_rx_unfill_pages()
39 kvfree(rx->data.page_info); in gve_rx_unfill_pages()
40 rx->data.page_info = NULL; in gve_rx_unfill_pages()
69 static void gve_setup_rx_buffer(struct gve_rx_slot_page_info *page_info, in gve_setup_rx_buffer() argument
72 page_info->page = page; in gve_setup_rx_buffer()
[all …]
Dgve_utils.c52 struct gve_rx_slot_page_info *page_info, u16 len, in gve_rx_copy() argument
55 void *va = page_info->page_address + padding + page_info->page_offset; in gve_rx_copy()
85 void gve_dec_pagecnt_bias(struct gve_rx_slot_page_info *page_info) in gve_dec_pagecnt_bias() argument
87 page_info->pagecnt_bias--; in gve_dec_pagecnt_bias()
88 if (page_info->pagecnt_bias == 0) { in gve_dec_pagecnt_bias()
89 int pagecount = page_count(page_info->page); in gve_dec_pagecnt_bias()
94 page_info->pagecnt_bias = INT_MAX - pagecount; in gve_dec_pagecnt_bias()
97 page_ref_add(page_info->page, INT_MAX - pagecount); in gve_dec_pagecnt_bias()
Dgve_rx_dqo.c21 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 …]
Dgve_utils.h21 struct gve_rx_slot_page_info *page_info, u16 len,
25 void gve_dec_pagecnt_bias(struct gve_rx_slot_page_info *page_info);
Dgve.h80 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-5.19.10/drivers/net/wwan/t7xx/
Dt7xx_hif_dpmaif_rx.c434 struct dpmaif_bat_page *page_info; in t7xx_dpmaif_set_frag_to_skb() local
438 page_info = rxq->bat_frag->bat_skb; in t7xx_dpmaif_set_frag_to_skb()
439 page_info += t7xx_normal_pit_bid(pkt_info); in t7xx_dpmaif_set_frag_to_skb()
440 dma_unmap_page(dev, page_info->data_bus_addr, page_info->data_len, DMA_FROM_DEVICE); in t7xx_dpmaif_set_frag_to_skb()
442 if (!page_info->page) in t7xx_dpmaif_set_frag_to_skb()
447 data_base_addr = page_info->data_bus_addr; in t7xx_dpmaif_set_frag_to_skb()
449 data_offset += page_info->offset; in t7xx_dpmaif_set_frag_to_skb()
451 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, page_info->page, in t7xx_dpmaif_set_frag_to_skb()
452 data_offset, data_len, page_info->data_len); in t7xx_dpmaif_set_frag_to_skb()
454 page_info->page = NULL; in t7xx_dpmaif_set_frag_to_skb()
[all …]
/linux-5.19.10/drivers/net/ethernet/emulex/benet/
Dbe_main.c2307 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 …]