Lines Matching refs:ndescs
1221 int ndescs, in mlx5_alloc_priv_descs() argument
1224 int size = ndescs * desc_size; in mlx5_alloc_priv_descs()
1352 int ndescs = ALIGN(max_num_sg, 4); in mlx5_ib_alloc_mr() local
1370 MLX5_SET(mkc, mkc, translations_octword_size, ndescs); in mlx5_ib_alloc_mr()
1378 ndescs, sizeof(u64)); in mlx5_ib_alloc_mr()
1383 mr->max_descs = ndescs; in mlx5_ib_alloc_mr()
1388 ndescs, sizeof(struct mlx5_klm)); in mlx5_ib_alloc_mr()
1392 mr->max_descs = ndescs; in mlx5_ib_alloc_mr()
1467 int ndescs; in mlx5_ib_alloc_mw() local
1487 ndescs = req.num_klms ? roundup(req.num_klms, 4) : roundup(1, 4); in mlx5_ib_alloc_mw()
1499 MLX5_SET(mkc, mkc, translations_octword_size, ndescs); in mlx5_ib_alloc_mw()
1599 mr->ndescs = sg_nents; in mlx5_ib_sg_to_klms()
1623 if (unlikely(mr->ndescs == mr->max_descs)) in mlx5_set_page()
1627 descs[mr->ndescs++] = cpu_to_be64(addr | MLX5_EN_RD | MLX5_EN_WR); in mlx5_set_page()
1638 mr->ndescs = 0; in mlx5_ib_map_mr_sg()