Searched refs:ba_num (Results 1 – 2 of 2) sorted by relevance
1247 int ba_num; in alloc_root_hem() local1250 ba_num = hns_roce_hem_list_calc_root_ba(regions, region_cnt, unit); in alloc_root_hem()1251 if (ba_num < 1) in alloc_root_hem()1254 if (ba_num > unit) in alloc_root_hem()1261 ba_num, true); in alloc_root_hem()1265 *max_ba_num = ba_num; in alloc_root_hem()
926 unsigned int ba_num; in cal_best_bt_pg_sz() local934 ba_num = 0; in cal_best_bt_pg_sz()941 ba_num += DIV_ROUND_UP(re->count, pgs_per_l1ba); in cal_best_bt_pg_sz()944 if (ba_num <= ba_per_bt) in cal_best_bt_pg_sz()