Home
last modified time | relevance | path

Searched refs:pp_params (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.1/Documentation/networking/
Dpage_pool.rst158 struct page_pool_params pp_params = { 0 };
162 pp_params.order = 0;
164 pp_params.flags = PP_FLAG_DMA_MAP;
165 pp_params.pool_size = DESC_NUM;
166 pp_params.nid = NUMA_NO_NODE;
167 pp_params.dev = priv->dev;
168 pp_params.dma_dir = xdp_prog ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE;
169 page_pool = page_pool_create(&pp_params);
/Linux-v6.1/drivers/net/ethernet/engleder/
Dtsnep_main.c653 struct page_pool_params pp_params = { 0 }; in tsnep_rx_ring_init() local
676 pp_params.flags = PP_FLAG_DMA_MAP | PP_FLAG_DMA_SYNC_DEV; in tsnep_rx_ring_init()
677 pp_params.order = 0; in tsnep_rx_ring_init()
678 pp_params.pool_size = TSNEP_RING_SIZE; in tsnep_rx_ring_init()
679 pp_params.nid = dev_to_node(dmadev); in tsnep_rx_ring_init()
680 pp_params.dev = dmadev; in tsnep_rx_ring_init()
681 pp_params.dma_dir = DMA_FROM_DEVICE; in tsnep_rx_ring_init()
682 pp_params.max_len = TSNEP_MAX_RX_BUF_SIZE; in tsnep_rx_ring_init()
683 pp_params.offset = TSNEP_SKB_PAD; in tsnep_rx_ring_init()
684 rx->page_pool = page_pool_create(&pp_params); in tsnep_rx_ring_init()
/Linux-v6.1/drivers/net/ethernet/ti/
Dcpsw_priv.c1149 struct page_pool_params pp_params = {}; in cpsw_create_page_pool() local
1152 pp_params.order = 0; in cpsw_create_page_pool()
1153 pp_params.flags = PP_FLAG_DMA_MAP; in cpsw_create_page_pool()
1154 pp_params.pool_size = size; in cpsw_create_page_pool()
1155 pp_params.nid = NUMA_NO_NODE; in cpsw_create_page_pool()
1156 pp_params.dma_dir = DMA_BIDIRECTIONAL; in cpsw_create_page_pool()
1157 pp_params.dev = cpsw->dev; in cpsw_create_page_pool()
1159 pool = page_pool_create(&pp_params); in cpsw_create_page_pool()
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c1993 struct page_pool_params pp_params = { 0 }; in __alloc_dma_rx_desc_resources() local
2001 pp_params.flags = PP_FLAG_DMA_MAP | PP_FLAG_DMA_SYNC_DEV; in __alloc_dma_rx_desc_resources()
2002 pp_params.pool_size = dma_conf->dma_rx_size; in __alloc_dma_rx_desc_resources()
2004 pp_params.order = ilog2(num_pages); in __alloc_dma_rx_desc_resources()
2005 pp_params.nid = dev_to_node(priv->device); in __alloc_dma_rx_desc_resources()
2006 pp_params.dev = priv->device; in __alloc_dma_rx_desc_resources()
2007 pp_params.dma_dir = xdp_prog ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE; in __alloc_dma_rx_desc_resources()
2008 pp_params.offset = stmmac_rx_offset(priv); in __alloc_dma_rx_desc_resources()
2009 pp_params.max_len = STMMAC_MAX_RX_BUF_SIZE(num_pages); in __alloc_dma_rx_desc_resources()
2011 rx_q->page_pool = page_pool_create(&pp_params); in __alloc_dma_rx_desc_resources()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c669 struct page_pool_params pp_params = { 0 }; in mlx5e_alloc_rq() local
774 pp_params.order = 0; in mlx5e_alloc_rq()
775 pp_params.flags = 0; /* No-internal DMA mapping in page_pool */ in mlx5e_alloc_rq()
776 pp_params.pool_size = pool_size; in mlx5e_alloc_rq()
777 pp_params.nid = node; in mlx5e_alloc_rq()
778 pp_params.dev = rq->pdev; in mlx5e_alloc_rq()
779 pp_params.dma_dir = rq->buff.map_dir; in mlx5e_alloc_rq()
786 rq->page_pool = page_pool_create(&pp_params); in mlx5e_alloc_rq()
/Linux-v6.1/net/bpf/
Dtest_run.c153 struct page_pool_params pp_params = { in xdp_test_run_setup() local
170 pp = page_pool_create(&pp_params); in xdp_test_run_setup()
/Linux-v6.1/drivers/net/ethernet/socionext/
Dnetsec.c1295 struct page_pool_params pp_params = { in netsec_setup_rx_dring() local
1308 dring->page_pool = page_pool_create(&pp_params); in netsec_setup_rx_dring()
/Linux-v6.1/drivers/net/
Dxen-netfront.c2160 struct page_pool_params pp_params = { in xennet_create_page_pool() local
2170 queue->page_pool = page_pool_create(&pp_params); in xennet_create_page_pool()
/Linux-v6.1/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1480 struct page_pool_params pp_params = { in mtk_create_page_pool() local
1492 pp_params.dma_dir = rcu_access_pointer(eth->prog) ? DMA_BIDIRECTIONAL in mtk_create_page_pool()
1494 pp = page_pool_create(&pp_params); in mtk_create_page_pool()
/Linux-v6.1/drivers/net/ethernet/freescale/
Dfec_main.c431 struct page_pool_params pp_params = { in fec_enet_create_page_pool() local
443 rxq->page_pool = page_pool_create(&pp_params); in fec_enet_create_page_pool()
/Linux-v6.1/drivers/net/ethernet/marvell/
Dmvneta.c3283 struct page_pool_params pp_params = { in mvneta_create_page_pool() local
3295 rxq->page_pool = page_pool_create(&pp_params); in mvneta_create_page_pool()
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c4929 struct page_pool_params pp_params = { in hns3_alloc_page_pool() local
4942 ring->page_pool = page_pool_create(&pp_params); in hns3_alloc_page_pool()
/Linux-v6.1/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c108 struct page_pool_params pp_params = { in mvpp2_create_page_pool() local
119 return page_pool_create(&pp_params); in mvpp2_create_page_pool()