Home
last modified time | relevance | path

Searched refs:hopnum (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hem.c1215 static bool hem_list_is_bottom_bt(int hopnum, int bt_level) in hem_list_is_bottom_bt() argument
1224 return bt_level >= (hopnum ? hopnum - 1 : hopnum); in hem_list_is_bottom_bt()
1233 static u32 hem_list_calc_ba_range(int hopnum, int bt_level, int unit) in hem_list_calc_ba_range() argument
1239 if (hopnum <= bt_level) in hem_list_calc_ba_range()
1253 max = hopnum - bt_level; in hem_list_calc_ba_range()
1276 if (r->hopnum > 1) { in hns_roce_hem_list_calc_root_ba()
1277 step = hem_list_calc_ba_range(r->hopnum, 1, unit); in hns_roce_hem_list_calc_root_ba()
1296 const int hopnum = r->hopnum; in hem_list_alloc_mid_bt() local
1305 if (hopnum <= 1) in hem_list_alloc_mid_bt()
1308 if (hopnum > HNS_ROCE_MAX_BT_LEVEL) { in hem_list_alloc_mid_bt()
[all …]
Dhns_roce_alloc.c295 void hns_roce_init_buf_region(struct hns_roce_buf_region *region, int hopnum, in hns_roce_init_buf_region() argument
298 if (hopnum == HNS_ROCE_HOP_NUM_0) in hns_roce_init_buf_region()
299 region->hopnum = 0; in hns_roce_init_buf_region()
301 region->hopnum = hopnum; in hns_roce_init_buf_region()
Dhns_roce_device.h351 int hopnum; /* addressing hop num */ member
1218 void hns_roce_init_buf_region(struct hns_roce_buf_region *region, int hopnum,