Lines Matching refs:pp
17 static u32 libeth_rx_hw_len_mtu(const struct page_pool_params *pp, u32 max_len) in libeth_rx_hw_len_mtu() argument
21 len = READ_ONCE(pp->netdev->mtu) + LIBETH_RX_LL_LEN; in libeth_rx_hw_len_mtu()
24 pp->max_len); in libeth_rx_hw_len_mtu()
39 static u32 libeth_rx_hw_len_truesize(const struct page_pool_params *pp, in libeth_rx_hw_len_truesize() argument
44 min = SKB_HEAD_ALIGN(pp->offset + LIBETH_RX_BUF_STRIDE); in libeth_rx_hw_len_truesize()
48 len = SKB_WITH_OVERHEAD(truesize - pp->offset); in libeth_rx_hw_len_truesize()
51 pp->max_len); in libeth_rx_hw_len_truesize()
69 struct page_pool_params *pp) in libeth_rx_page_pool_params() argument
71 pp->offset = LIBETH_SKB_HEADROOM; in libeth_rx_page_pool_params()
73 pp->max_len = LIBETH_RX_PAGE_LEN(pp->offset); in libeth_rx_page_pool_params()
78 fq->buf_len = libeth_rx_hw_len_mtu(pp, fq->buf_len); in libeth_rx_page_pool_params()
81 fq->buf_len = libeth_rx_hw_len_truesize(pp, fq->buf_len, in libeth_rx_page_pool_params()
92 fq->truesize = roundup_pow_of_two(SKB_HEAD_ALIGN(pp->offset + in libeth_rx_page_pool_params()
113 struct page_pool_params *pp) in libeth_rx_page_pool_params_zc() argument
117 pp->offset = 0; in libeth_rx_page_pool_params_zc()
118 pp->max_len = PAGE_SIZE << LIBETH_RX_PAGE_ORDER; in libeth_rx_page_pool_params_zc()
122 mtu = READ_ONCE(pp->netdev->mtu); in libeth_rx_page_pool_params_zc()
133 pp->max_len); in libeth_rx_page_pool_params_zc()
150 struct page_pool_params pp = { in libeth_rx_fq_create() local
165 ret = libeth_rx_page_pool_params(fq, &pp); in libeth_rx_fq_create()
167 ret = libeth_rx_page_pool_params_zc(fq, &pp); in libeth_rx_fq_create()
171 pool = page_pool_create(&pp); in libeth_rx_fq_create()
180 fq->pp = pool; in libeth_rx_fq_create()
198 page_pool_destroy(fq->pp); in libeth_rx_fq_destroy()
210 page_pool_recycle_direct(page->pp, page); in libeth_rx_recycle_slow()