Searched refs:ba_num (Results 1 – 2 of 2) sorted by relevance
1197 int ba_num; in alloc_root_hem() local1200 ba_num = hns_roce_hem_list_calc_root_ba(regions, region_cnt, unit); in alloc_root_hem()1201 if (ba_num < 1) in alloc_root_hem()1204 if (ba_num > unit) in alloc_root_hem()1211 ba_num, true); in alloc_root_hem()1215 *max_ba_num = ba_num; in alloc_root_hem()
1075 unsigned int ba_num; in cal_best_bt_pg_sz() local1083 ba_num = 0; in cal_best_bt_pg_sz()1090 ba_num += DIV_ROUND_UP(re->count, pgs_per_l1ba); in cal_best_bt_pg_sz()1093 if (ba_num <= ba_per_bt) in cal_best_bt_pg_sz()