Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c101 enum mlx5e_mpwrq_umr_mode umr_mode) in mlx5e_mpwrq_log_wqe_sz() argument
103 u8 umr_entry_size = mlx5e_mpwrq_umr_entry_size(umr_mode); in mlx5e_mpwrq_log_wqe_sz()
119 enum mlx5e_mpwrq_umr_mode umr_mode) in mlx5e_mpwrq_pages_per_wqe() argument
121 u8 log_wqe_sz = mlx5e_mpwrq_log_wqe_sz(mdev, page_shift, umr_mode); in mlx5e_mpwrq_pages_per_wqe()
130 if (WARN_ON_ONCE(pages_per_wqe < 2 && umr_mode == MLX5E_MPWRQ_UMR_MODE_ALIGNED)) in mlx5e_mpwrq_pages_per_wqe()
142 enum mlx5e_mpwrq_umr_mode umr_mode) in mlx5e_mpwrq_umr_wqe_sz() argument
144 u8 pages_per_wqe = mlx5e_mpwrq_pages_per_wqe(mdev, page_shift, umr_mode); in mlx5e_mpwrq_umr_wqe_sz()
145 u8 umr_entry_size = mlx5e_mpwrq_umr_entry_size(umr_mode); in mlx5e_mpwrq_umr_wqe_sz()
157 enum mlx5e_mpwrq_umr_mode umr_mode) in mlx5e_mpwrq_umr_wqebbs() argument
159 return DIV_ROUND_UP(mlx5e_mpwrq_umr_wqe_sz(mdev, page_shift, umr_mode), in mlx5e_mpwrq_umr_wqebbs()
[all …]
Dparams.h63 enum mlx5e_mpwrq_umr_mode umr_mode);
65 enum mlx5e_mpwrq_umr_mode umr_mode);
67 enum mlx5e_mpwrq_umr_mode umr_mode);
69 enum mlx5e_mpwrq_umr_mode umr_mode);
71 enum mlx5e_mpwrq_umr_mode umr_mode);
73 enum mlx5e_mpwrq_umr_mode umr_mode);
75 enum mlx5e_mpwrq_umr_mode umr_mode);
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.c44 if (likely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_ALIGNED)) { in mlx5e_xsk_alloc_rx_mpwqe()
52 } else if (unlikely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_UNALIGNED)) { in mlx5e_xsk_alloc_rx_mpwqe()
61 } else if (likely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_TRIPLE)) { in mlx5e_xsk_alloc_rx_mpwqe()
113 if (likely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_ALIGNED)) in mlx5e_xsk_alloc_rx_mpwqe()
115 else if (unlikely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_OVERSIZED)) in mlx5e_xsk_alloc_rx_mpwqe()
117 else if (unlikely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_TRIPLE)) in mlx5e_xsk_alloc_rx_mpwqe()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c72 enum mlx5e_mpwrq_umr_mode umr_mode) in mlx5e_check_fragmented_striding_rq_cap() argument
82 umr_wqebbs = mlx5e_mpwrq_umr_wqebbs(mdev, page_shift, umr_mode); in mlx5e_check_fragmented_striding_rq_cap()
206 static u16 mlx5e_mpwrq_umr_octowords(u32 entries, enum mlx5e_mpwrq_umr_mode umr_mode) in mlx5e_mpwrq_umr_octowords() argument
208 u8 umr_entry_size = mlx5e_mpwrq_umr_entry_size(umr_mode); in mlx5e_mpwrq_umr_octowords()
226 rq->mpwqe.umr_mode), in mlx5e_build_umr_wqe()
234 octowords = mlx5e_mpwrq_umr_octowords(rq->mpwqe.pages_per_wqe, rq->mpwqe.umr_mode); in mlx5e_build_umr_wqe()
296 static u8 mlx5e_mpwrq_access_mode(enum mlx5e_mpwrq_umr_mode umr_mode) in mlx5e_mpwrq_access_mode() argument
298 switch (umr_mode) { in mlx5e_mpwrq_access_mode()
308 WARN_ONCE(1, "MPWRQ UMR mode %d is not known\n", umr_mode); in mlx5e_mpwrq_access_mode()
315 enum mlx5e_mpwrq_umr_mode umr_mode, in mlx5e_create_umr_mkey() argument
[all …]
Den.h714 u8 umr_mode; member
1014 enum mlx5e_mpwrq_umr_mode umr_mode);