Searched refs:page_info (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/google/gve/ |
D | gve_rx.c | 16 struct gve_rx_slot_page_info *page_info, in gve_rx_free_buffer() argument 22 page_ref_sub(page_info->page, page_info->pagecnt_bias - 1); in gve_rx_free_buffer() 23 gve_free_page(dev, page_info->page, dma, DMA_FROM_DEVICE); in gve_rx_free_buffer() 33 gve_rx_free_buffer(&priv->pdev->dev, &rx->data.page_info[i], in gve_rx_unfill_pages() 37 page_ref_sub(rx->data.page_info[i].page, in gve_rx_unfill_pages() 38 rx->data.page_info[i].pagecnt_bias - 1); in gve_rx_unfill_pages() 48 kvfree(rx->data.page_info); in gve_rx_unfill_pages() 49 rx->data.page_info = NULL; in gve_rx_unfill_pages() 82 static void gve_setup_rx_buffer(struct gve_rx_slot_page_info *page_info, in gve_setup_rx_buffer() argument 85 page_info->page = page; in gve_setup_rx_buffer() [all …]
|
D | gve_utils.c | 52 struct gve_rx_slot_page_info *page_info, u16 len) in gve_rx_copy() argument 54 void *va = page_info->page_address + page_info->page_offset + in gve_rx_copy() 55 page_info->pad; in gve_rx_copy() 69 void gve_dec_pagecnt_bias(struct gve_rx_slot_page_info *page_info) in gve_dec_pagecnt_bias() argument 71 page_info->pagecnt_bias--; in gve_dec_pagecnt_bias() 72 if (page_info->pagecnt_bias == 0) { in gve_dec_pagecnt_bias() 73 int pagecount = page_count(page_info->page); in gve_dec_pagecnt_bias() 78 page_info->pagecnt_bias = INT_MAX - pagecount; in gve_dec_pagecnt_bias() 81 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() 28 page_ref_sub(bs->page_info.page, bs->page_info.pagecnt_bias - 1); in gve_free_page_dqo() 30 gve_free_page(&priv->pdev->dev, bs->page_info.page, bs->addr, in gve_free_page_dqo() 32 bs->page_info.page = NULL; in gve_free_page_dqo() 174 &buf_state->page_info.page, in gve_alloc_page_dqo() 186 buf_state->page_info.page = rx->dqo.qpl->pages[idx]; in gve_alloc_page_dqo() 190 buf_state->page_info.page_offset = 0; in gve_alloc_page_dqo() 191 buf_state->page_info.page_address = in gve_alloc_page_dqo() 192 page_address(buf_state->page_info.page); in gve_alloc_page_dqo() 196 page_ref_add(buf_state->page_info.page, INT_MAX - 1); in gve_alloc_page_dqo() [all …]
|
D | gve_utils.h | 21 struct gve_rx_slot_page_info *page_info, u16 len); 24 void gve_dec_pagecnt_bias(struct gve_rx_slot_page_info *page_info);
|
D | gve.h | 106 struct gve_rx_slot_page_info *page_info; /* page info of the buffers */ member 151 struct gve_rx_slot_page_info page_info; member
|
/linux-6.6.21/drivers/net/wwan/t7xx/ |
D | t7xx_hif_dpmaif_rx.c | 398 struct dpmaif_bat_page *page_info; in t7xx_dpmaif_set_frag_to_skb() local 402 page_info = rxq->bat_frag->bat_skb; in t7xx_dpmaif_set_frag_to_skb() 403 page_info += t7xx_normal_pit_bid(pkt_info); in t7xx_dpmaif_set_frag_to_skb() 404 dma_unmap_page(dev, page_info->data_bus_addr, page_info->data_len, DMA_FROM_DEVICE); in t7xx_dpmaif_set_frag_to_skb() 406 if (!page_info->page) in t7xx_dpmaif_set_frag_to_skb() 411 data_base_addr = page_info->data_bus_addr; in t7xx_dpmaif_set_frag_to_skb() 413 data_offset += page_info->offset; in t7xx_dpmaif_set_frag_to_skb() 415 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, page_info->page, in t7xx_dpmaif_set_frag_to_skb() 416 data_offset, data_len, page_info->data_len); in t7xx_dpmaif_set_frag_to_skb() 418 page_info->page = NULL; in t7xx_dpmaif_set_frag_to_skb() [all …]
|
/linux-6.6.21/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() 2348 page_info->page, in skb_fill_rx_data() 2349 page_info->page_offset + hdr_len, in skb_fill_rx_data() [all …]
|