Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_main.c128 static int log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); variable
129 module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444);
130 MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-5)");
168 mdev->limits.mtt_seg_size = (1 << log_mtts_per_seg) * 8; in mthca_dev_lim()
1239 if ((log_mtts_per_seg < 1) || (log_mtts_per_seg > 5)) { in mthca_validate_profile()
1241 log_mtts_per_seg, ilog2(MTHCA_MTT_SEG_SIZE / 8)); in mthca_validate_profile()
1242 log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); in mthca_validate_profile()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c107 min(1UL << (31 - log_mtts_per_seg), in mlx4_make_profile()
108 (si.totalram << 1) >> log_mtts_per_seg))); in mlx4_make_profile()
133 profile[MLX4_RES_MTT].num = request->num_mtt * (1 << log_mtts_per_seg); in mlx4_make_profile()
Dmr.c157 seg_order = max_t(int, order - log_mtts_per_seg, 0); in __mlx4_alloc_mtt_range()
163 offset = seg * (1 << log_mtts_per_seg); in __mlx4_alloc_mtt_range()
223 seg_order = max_t(int, order - log_mtts_per_seg, 0); in __mlx4_free_mtt_range()
224 first_seg = offset / (1 << log_mtts_per_seg); in __mlx4_free_mtt_range()
928 (1 << log_mtts_per_seg))); in mlx4_init_mr_table()
Dmain.c162 int log_mtts_per_seg = ilog2(1); variable
163 module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444);
164 MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment "
4475 if ((log_mtts_per_seg < 0) || (log_mtts_per_seg > 7)) { in mlx4_verify_params()
4477 log_mtts_per_seg); in mlx4_verify_params()
Dmlx4.h232 extern int log_mtts_per_seg;