Searched refs:ba_num (Results 1 – 2 of 2) sorted by relevance
1191 int ba_num; in alloc_root_hem() local1194 ba_num = hns_roce_hem_list_calc_root_ba(regions, region_cnt, unit); in alloc_root_hem()1195 if (ba_num < 1) in alloc_root_hem()1198 if (ba_num > unit) in alloc_root_hem()1205 ba_num, true); in alloc_root_hem()1209 *max_ba_num = ba_num; in alloc_root_hem()
1079 unsigned int ba_num; in cal_best_bt_pg_sz() local1087 ba_num = 0; in cal_best_bt_pg_sz()1094 ba_num += DIV_ROUND_UP(re->count, pgs_per_l1ba); in cal_best_bt_pg_sz()1097 if (ba_num <= ba_per_bt) in cal_best_bt_pg_sz()