Lines Matching refs:step
1235 u32 step; in hem_list_calc_ba_range() local
1252 step = 1; in hem_list_calc_ba_range()
1255 step = step * unit; in hem_list_calc_ba_range()
1257 return step; in hem_list_calc_ba_range()
1271 int step; in hns_roce_hem_list_calc_root_ba() local
1277 step = hem_list_calc_ba_range(r->hopnum, 1, unit); in hns_roce_hem_list_calc_root_ba()
1278 if (step > 0) in hns_roce_hem_list_calc_root_ba()
1279 total += (r->count + step - 1) / step; in hns_roce_hem_list_calc_root_ba()
1302 u32 step; in hem_list_alloc_mid_bt() local
1332 step = hem_list_calc_ba_range(hopnum, level, unit); in hem_list_alloc_mid_bt()
1333 if (step < 1) { in hem_list_alloc_mid_bt()
1338 start_aligned = (distance / step) * step + r->offset; in hem_list_alloc_mid_bt()
1339 end = min_t(int, start_aligned + step - 1, max_ofs); in hem_list_alloc_mid_bt()
1354 step = (cur->start - pre->start) / step * BA_BYTE_LEN; in hem_list_alloc_mid_bt()
1355 hem_list_link_bt(hr_dev, pre->addr + step, in hem_list_alloc_mid_bt()
1388 int step; in hem_list_alloc_root_bt() local
1438 step = hem_list_calc_ba_range(r->hopnum, 1, unit); in hem_list_alloc_root_bt()
1439 if (step < 1) { in hem_list_alloc_root_bt()
1446 offset = hem->start / step * BA_BYTE_LEN; in hem_list_alloc_root_bt()