Searched refs:log_mtts_per_seg (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_main.c | 128 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 D | profile.c | 107 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 D | mr.c | 157 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 D | main.c | 161 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 D | mlx4.h | 234 extern int log_mtts_per_seg;
|