Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/hw/mthca/
H A 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()
1224 if ((log_mtts_per_seg < 1) || (log_mtts_per_seg > 5)) { in mthca_validate_profile()
1226 log_mtts_per_seg, ilog2(MTHCA_MTT_SEG_SIZE / 8)); in mthca_validate_profile()
1227 log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); in mthca_validate_profile()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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()
H A 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()
H A Dmain.c161 int log_mtts_per_seg = ilog2(1); variable
162 module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444);
163 MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment "
4528 if ((log_mtts_per_seg < 0) || (log_mtts_per_seg > 7)) { in mlx4_verify_params()
4530 log_mtts_per_seg); in mlx4_verify_params()
H A Dmlx4.h234 extern int log_mtts_per_seg;