Searched refs:log_mtts_per_seg (Results 1 – 5 of 5) sorted by relevance
/linux-3.4.99/drivers/infiniband/hw/mthca/ |
D | mthca_main.c | 129 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() 1247 if ((log_mtts_per_seg < 1) || (log_mtts_per_seg > 5)) { in mthca_validate_profile() 1249 log_mtts_per_seg, ilog2(MTHCA_MTT_SEG_SIZE / 8)); in mthca_validate_profile() 1250 log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); in mthca_validate_profile()
|
/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/ |
D | profile.c | 109 si.totalram >> (log_mtts_per_seg - 1)))); in mlx4_make_profile() 132 profile[MLX4_RES_MTT].num = request->num_mtt * (1 << log_mtts_per_seg); in mlx4_make_profile()
|
D | mr.c | 172 seg_order = max_t(int, order - log_mtts_per_seg, 0); in __mlx4_alloc_mtt_range() 178 offset = seg * (1 << log_mtts_per_seg); in __mlx4_alloc_mtt_range() 238 seg_order = max_t(int, order - log_mtts_per_seg, 0); in __mlx4_free_mtt_range() 239 first_seg = offset / (1 << log_mtts_per_seg); in __mlx4_free_mtt_range() 672 (1 << log_mtts_per_seg))); in mlx4_init_mr_table()
|
D | main.c | 127 int log_mtts_per_seg = ilog2(MLX4_MTT_ENTRY_PER_SEG); variable 128 module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444); 129 MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-7)"); 2203 if ((log_mtts_per_seg < 1) || (log_mtts_per_seg > 7)) { in mlx4_verify_params() 2204 pr_warning("mlx4_core: bad log_mtts_per_seg: %d\n", log_mtts_per_seg); in mlx4_verify_params()
|
D | mlx4.h | 195 extern int log_mtts_per_seg;
|