Home
last modified time | relevance | path

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

/freebsd/sys/dev/mthca/
H A Dmthca_main.c129 static int log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); variable
130 module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444);
131 MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-5)");
169 mdev->limits.mtt_seg_size = (1 << log_mtts_per_seg) * 8; in mthca_dev_lim()
1242 if ((log_mtts_per_seg < 1) || (log_mtts_per_seg > 5)) { in mthca_validate_profile()
1244 log_mtts_per_seg, ilog2(MTHCA_MTT_SEG_SIZE / 8)); in mthca_validate_profile()
1245 log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); in mthca_validate_profile()
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_mr.c163 seg_order = max_t(int, order - log_mtts_per_seg, 0); in __mlx4_alloc_mtt_range()
169 offset = seg * (1 << log_mtts_per_seg); in __mlx4_alloc_mtt_range()
229 seg_order = max_t(int, order - log_mtts_per_seg, 0); in __mlx4_free_mtt_range()
230 first_seg = offset / (1 << log_mtts_per_seg); in __mlx4_free_mtt_range()
934 (1 << log_mtts_per_seg))); in mlx4_init_mr_table()
H A Dmlx4_profile.c113 profile[MLX4_RES_MTT].num = request->num_mtt * (1 << log_mtts_per_seg); in mlx4_make_profile()
H A Dmlx4_main.c167 int log_mtts_per_seg = ilog2(MLX4_MTT_ENTRY_PER_SEG); variable
168 module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444);
169 MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-7)");
4177 if ((log_mtts_per_seg < 1) || (log_mtts_per_seg > 7)) { in mlx4_verify_params()
4179 log_mtts_per_seg); in mlx4_verify_params()
H A Dmlx4.h234 extern int log_mtts_per_seg;