Home
last modified time | relevance | path

Searched refs:pages_per_wqe (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.c124 u8 pages_per_wqe; in mlx5e_mpwrq_pages_per_wqe() local
126 pages_per_wqe = log_wqe_sz > page_shift ? (1 << (log_wqe_sz - page_shift)) : 1; in mlx5e_mpwrq_pages_per_wqe()
132 if (WARN_ON_ONCE(pages_per_wqe < 2 && umr_mode == MLX5E_MPWRQ_UMR_MODE_ALIGNED)) in mlx5e_mpwrq_pages_per_wqe()
133 pages_per_wqe = 2; in mlx5e_mpwrq_pages_per_wqe()
137 if (WARN_ON_ONCE(pages_per_wqe > MLX5_MPWRQ_MAX_PAGES_PER_WQE)) in mlx5e_mpwrq_pages_per_wqe()
140 return pages_per_wqe; in mlx5e_mpwrq_pages_per_wqe()
146 u8 pages_per_wqe = mlx5e_mpwrq_pages_per_wqe(mdev, page_shift, umr_mode); in mlx5e_mpwrq_umr_wqe_sz() local
151 ALIGN(pages_per_wqe * umr_entry_size, MLX5_UMR_FLEX_ALIGNMENT); in mlx5e_mpwrq_umr_wqe_sz()
168 u8 pages_per_wqe = mlx5e_mpwrq_pages_per_wqe(mdev, page_shift, umr_mode); in mlx5e_mpwrq_mtts_per_wqe() local
175 return ALIGN(pages_per_wqe + 1, in mlx5e_mpwrq_mtts_per_wqe()
H A Dtxrx.h561 size_t isz = struct_size(rq->mpwqe.info, alloc_units.frag_pages, rq->mpwqe.pages_per_wqe); in mlx5e_get_mpw_info()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c566 if (bitmap_full(wi->skip_release_bitmap, rq->mpwqe.pages_per_wqe)) in mlx5e_free_rx_mpwqe()
569 no_xdp_xmit = bitmap_empty(wi->skip_release_bitmap, rq->mpwqe.pages_per_wqe); in mlx5e_free_rx_mpwqe()
578 for (i = 0; i < rq->mpwqe.pages_per_wqe; i++) in mlx5e_free_rx_mpwqe()
582 for (i = 0; i < rq->mpwqe.pages_per_wqe; i++) { in mlx5e_free_rx_mpwqe()
791 for (i = 0; i < rq->mpwqe.pages_per_wqe; i++, frag_page++) { in mlx5e_alloc_rx_mpwqe()
806 if (rq->mpwqe.pages_per_wqe & (MLX5_UMR_MTT_NUM_ENTRIES_ALIGNMENT - 1)) { in mlx5e_alloc_rx_mpwqe()
807 int pad = ALIGN(rq->mpwqe.pages_per_wqe, MLX5_UMR_MTT_NUM_ENTRIES_ALIGNMENT) - in mlx5e_alloc_rx_mpwqe()
808 rq->mpwqe.pages_per_wqe; in mlx5e_alloc_rx_mpwqe()
810 memset(&umr_wqe->inline_mtts[rq->mpwqe.pages_per_wqe], 0, in mlx5e_alloc_rx_mpwqe()
814 bitmap_zero(wi->skip_release_bitmap, rq->mpwqe.pages_per_wqe); in mlx5e_alloc_rx_mpwqe()
[all …]
H A Den.h675 u8 pages_per_wqe; member
H A Den_main.c328 octowords = mlx5e_mpwrq_umr_octowords(rq->mpwqe.pages_per_wqe, rq->mpwqe.umr_mode); in mlx5e_build_umr_wqe()
381 rq->mpwqe.pages_per_wqe)); in mlx5e_rq_alloc_mpwqe_info()
393 bitmap_fill(wi->skip_release_bitmap, rq->mpwqe.pages_per_wqe); in mlx5e_rq_alloc_mpwqe_info()
858 rq->mpwqe.pages_per_wqe = in mlx5e_alloc_rq()
868 pool_size = rq->mpwqe.pages_per_wqe << in mlx5e_alloc_rq()