Lines Matching refs:pg_chunk

119 		struct fl_pg_chunk pg_chunk;  member
354 if (q->use_pages && d->pg_chunk.page) { in clear_rx_desc()
355 (*d->pg_chunk.p_cnt)--; in clear_rx_desc()
356 if (!*d->pg_chunk.p_cnt) in clear_rx_desc()
358 d->pg_chunk.mapping, in clear_rx_desc()
361 put_page(d->pg_chunk.page); in clear_rx_desc()
362 d->pg_chunk.page = NULL; in clear_rx_desc()
392 if (q->pg_chunk.page) { in free_rx_bufs()
393 __free_pages(q->pg_chunk.page, q->order); in free_rx_bufs()
394 q->pg_chunk.page = NULL; in free_rx_bufs()
445 if (!q->pg_chunk.page) { in alloc_pg_chunk()
448 q->pg_chunk.page = alloc_pages(gfp, order); in alloc_pg_chunk()
449 if (unlikely(!q->pg_chunk.page)) in alloc_pg_chunk()
451 q->pg_chunk.va = page_address(q->pg_chunk.page); in alloc_pg_chunk()
452 q->pg_chunk.p_cnt = q->pg_chunk.va + (PAGE_SIZE << order) - in alloc_pg_chunk()
454 q->pg_chunk.offset = 0; in alloc_pg_chunk()
455 mapping = pci_map_page(adapter->pdev, q->pg_chunk.page, in alloc_pg_chunk()
457 q->pg_chunk.mapping = mapping; in alloc_pg_chunk()
459 sd->pg_chunk = q->pg_chunk; in alloc_pg_chunk()
461 prefetch(sd->pg_chunk.p_cnt); in alloc_pg_chunk()
463 q->pg_chunk.offset += q->buf_size; in alloc_pg_chunk()
464 if (q->pg_chunk.offset == (PAGE_SIZE << order)) in alloc_pg_chunk()
465 q->pg_chunk.page = NULL; in alloc_pg_chunk()
467 q->pg_chunk.va += q->buf_size; in alloc_pg_chunk()
468 get_page(q->pg_chunk.page); in alloc_pg_chunk()
471 if (sd->pg_chunk.offset == 0) in alloc_pg_chunk()
472 *sd->pg_chunk.p_cnt = 1; in alloc_pg_chunk()
474 *sd->pg_chunk.p_cnt += 1; in alloc_pg_chunk()
515 mapping = sd->pg_chunk.mapping + sd->pg_chunk.offset; in refill_fl()
853 memcpy(newskb->data, sd->pg_chunk.va, len); in get_packet_pg()
869 prefetch(sd->pg_chunk.p_cnt); in get_packet_pg()
882 (*sd->pg_chunk.p_cnt)--; in get_packet_pg()
883 if (!*sd->pg_chunk.p_cnt && sd->pg_chunk.page != fl->pg_chunk.page) in get_packet_pg()
885 sd->pg_chunk.mapping, in get_packet_pg()
890 memcpy(newskb->data, sd->pg_chunk.va, SGE_RX_PULL_LEN); in get_packet_pg()
891 skb_fill_page_desc(newskb, 0, sd->pg_chunk.page, in get_packet_pg()
892 sd->pg_chunk.offset + SGE_RX_PULL_LEN, in get_packet_pg()
899 sd->pg_chunk.page, in get_packet_pg()
900 sd->pg_chunk.offset, len); in get_packet_pg()
2102 (*sd->pg_chunk.p_cnt)--; in lro_add_page()
2103 if (!*sd->pg_chunk.p_cnt && sd->pg_chunk.page != fl->pg_chunk.page) in lro_add_page()
2105 sd->pg_chunk.mapping, in lro_add_page()
2110 put_page(sd->pg_chunk.page); in lro_add_page()
2121 cpl = qs->lro_va = sd->pg_chunk.va + 2; in lro_add_page()
2135 rx_frag->page = sd->pg_chunk.page; in lro_add_page()
2136 rx_frag->page_offset = sd->pg_chunk.offset + offset; in lro_add_page()
2327 void *addr = fl->sdesc[fl->cidx].pg_chunk.va; in process_responses()