Lines Matching refs:ndescs
1634 int ndescs, in mlx5_alloc_priv_descs() argument
1637 int size = ndescs * desc_size; in mlx5_alloc_priv_descs()
1739 static void mlx5_set_umr_free_mkey(struct ib_pd *pd, u32 *in, int ndescs, in mlx5_set_umr_free_mkey() argument
1749 MLX5_SET(mkc, mkc, translations_octword_size, ndescs); in mlx5_set_umr_free_mkey()
1757 int ndescs, int desc_size, int page_shift, in _mlx5_alloc_mkey_descs() argument
1765 mr->max_descs = ndescs; in _mlx5_alloc_mkey_descs()
1767 err = mlx5_alloc_priv_descs(pd->device, mr, ndescs, desc_size); in _mlx5_alloc_mkey_descs()
1771 mlx5_set_umr_free_mkey(pd, in, ndescs, access_mode, page_shift); in _mlx5_alloc_mkey_descs()
1793 int ndescs = ALIGN(max_num_sg + max_num_meta_sg, 4); in mlx5_ib_alloc_pi_mr() local
1815 err = _mlx5_alloc_mkey_descs(pd, mr, ndescs, desc_size, page_shift, in mlx5_ib_alloc_pi_mr()
1833 int ndescs, u32 *in, int inlen) in mlx5_alloc_mem_reg_descs() argument
1835 return _mlx5_alloc_mkey_descs(pd, mr, ndescs, sizeof(struct mlx5_mtt), in mlx5_alloc_mem_reg_descs()
1841 int ndescs, u32 *in, int inlen) in mlx5_alloc_sg_gaps_descs() argument
1843 return _mlx5_alloc_mkey_descs(pd, mr, ndescs, sizeof(struct mlx5_klm), in mlx5_alloc_sg_gaps_descs()
1931 int ndescs = ALIGN(max_num_sg, 4); in __mlx5_ib_alloc_mr() local
1951 err = mlx5_alloc_mem_reg_descs(pd, mr, ndescs, in, inlen); in __mlx5_ib_alloc_mr()
1954 err = mlx5_alloc_sg_gaps_descs(pd, mr, ndescs, in, inlen); in __mlx5_ib_alloc_mr()
1999 int ndescs; in mlx5_ib_alloc_mw() local
2019 ndescs = req.num_klms ? roundup(req.num_klms, 4) : roundup(1, 4); in mlx5_ib_alloc_mw()
2030 MLX5_SET(mkc, mkc, translations_octword_size, ndescs); in mlx5_ib_alloc_mw()
2044 mw->ndescs = ndescs; in mlx5_ib_alloc_mw()
2143 mr->ndescs = 1; in mlx5_ib_map_pa_mr_sg_pi()
2196 mr->ndescs = i; in mlx5_ib_sg_to_klms()
2229 if (unlikely(mr->ndescs == mr->max_descs)) in mlx5_set_page()
2233 descs[mr->ndescs++] = cpu_to_be64(addr | MLX5_EN_RD | MLX5_EN_WR); in mlx5_set_page()
2243 if (unlikely(mr->ndescs + mr->meta_ndescs == mr->max_descs)) in mlx5_set_page_pi()
2247 descs[mr->ndescs + mr->meta_ndescs++] = in mlx5_set_page_pi()
2263 pi_mr->ndescs = 0; in mlx5_ib_map_mtt_mr_sg_pi()
2297 pi_mr->ndescs * ibmr->page_size + in mlx5_ib_map_mtt_mr_sg_pi()
2328 pi_mr->ndescs = 0; in mlx5_ib_map_klm_mr_sg_pi()
2363 mr->ndescs = 0; in mlx5_ib_map_mr_sg_pi()
2419 mr->ndescs = 0; in mlx5_ib_map_mr_sg()