hopnum 295 drivers/infiniband/hw/hns/hns_roce_alloc.c void hns_roce_init_buf_region(struct hns_roce_buf_region *region, int hopnum, hopnum 298 drivers/infiniband/hw/hns/hns_roce_alloc.c if (hopnum == HNS_ROCE_HOP_NUM_0) hopnum 299 drivers/infiniband/hw/hns/hns_roce_alloc.c region->hopnum = 0; hopnum 301 drivers/infiniband/hw/hns/hns_roce_alloc.c region->hopnum = hopnum; hopnum 351 drivers/infiniband/hw/hns/hns_roce_device.h int hopnum; /* addressing hop num */ hopnum 1217 drivers/infiniband/hw/hns/hns_roce_device.h void hns_roce_init_buf_region(struct hns_roce_buf_region *region, int hopnum, hopnum 1215 drivers/infiniband/hw/hns/hns_roce_hem.c static bool hem_list_is_bottom_bt(int hopnum, int bt_level) hopnum 1224 drivers/infiniband/hw/hns/hns_roce_hem.c return bt_level >= (hopnum ? hopnum - 1 : hopnum); hopnum 1233 drivers/infiniband/hw/hns/hns_roce_hem.c static u32 hem_list_calc_ba_range(int hopnum, int bt_level, int unit) hopnum 1239 drivers/infiniband/hw/hns/hns_roce_hem.c if (hopnum <= bt_level) hopnum 1253 drivers/infiniband/hw/hns/hns_roce_hem.c max = hopnum - bt_level; hopnum 1276 drivers/infiniband/hw/hns/hns_roce_hem.c if (r->hopnum > 1) { hopnum 1277 drivers/infiniband/hw/hns/hns_roce_hem.c step = hem_list_calc_ba_range(r->hopnum, 1, unit); hopnum 1296 drivers/infiniband/hw/hns/hns_roce_hem.c const int hopnum = r->hopnum; hopnum 1305 drivers/infiniband/hw/hns/hns_roce_hem.c if (hopnum <= 1) hopnum 1308 drivers/infiniband/hw/hns/hns_roce_hem.c if (hopnum > HNS_ROCE_MAX_BT_LEVEL) { hopnum 1309 drivers/infiniband/hw/hns/hns_roce_hem.c dev_err(hr_dev->dev, "invalid hopnum %d!\n", hopnum); hopnum 1321 drivers/infiniband/hw/hns/hns_roce_hem.c for (level = 0; level < hopnum; level++) hopnum 1325 drivers/infiniband/hw/hns/hns_roce_hem.c for (level = 1; level < hopnum; level++) { hopnum 1332 drivers/infiniband/hw/hns/hns_roce_hem.c step = hem_list_calc_ba_range(hopnum, level, unit); hopnum 1348 drivers/infiniband/hw/hns/hns_roce_hem.c if (hem_list_is_bottom_bt(hopnum, level)) hopnum 1361 drivers/infiniband/hw/hns/hns_roce_hem.c for (level = 1; level < hopnum; level++) hopnum 1367 drivers/infiniband/hw/hns/hns_roce_hem.c for (level = 1; level < hopnum; level++) hopnum 1425 drivers/infiniband/hw/hns/hns_roce_hem.c if (hem_list_is_bottom_bt(r->hopnum, 0)) { hopnum 1438 drivers/infiniband/hw/hns/hns_roce_hem.c step = hem_list_calc_ba_range(r->hopnum, 1, unit);