Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c1092 return bt_level >= (hopnum ? hopnum - 1 : hopnum); in hem_list_is_bottom_bt()
1107 if (hopnum <= bt_level) in hem_list_calc_ba_range()
1121 max = hopnum - bt_level; in hem_list_calc_ba_range()
1144 if (r->hopnum > 1) { in hns_roce_hem_list_calc_root_ba()
1164 const int hopnum = r->hopnum; in hem_list_alloc_mid_bt() local
1173 if (hopnum <= 1) in hem_list_alloc_mid_bt()
1176 if (hopnum > HNS_ROCE_MAX_BT_LEVEL) { in hem_list_alloc_mid_bt()
1189 for (level = 0; level < hopnum; level++) in hem_list_alloc_mid_bt()
1231 for (level = 1; level < hopnum; level++) in hem_list_alloc_mid_bt()
1237 for (level = 1; level < hopnum; level++) in hem_list_alloc_mid_bt()
[all …]
H A Dhns_roce_mr.c101 buf_attr.region[0].hopnum = mr->pbl_hop_num; in alloc_mr_pbl()
446 mtr->hem_cfg.region[0].hopnum = mr->pbl_hop_num; in hns_roce_map_mr_sg()
614 if (attr->region[i].hopnum != HNS_ROCE_HOP_NUM_0 && in mtr_has_mtt()
615 attr->region[i].hopnum > 0) in mtr_has_mtt()
770 if (!r->hopnum) { in hns_roce_mtr_map()
907 r->hopnum = to_hr_hem_hopnum(attr->region[region_cnt].hopnum, in mtr_init_buf_cfg()
917 static u64 cal_pages_per_l1ba(unsigned int ba_per_bt, unsigned int hopnum) in cal_pages_per_l1ba() argument
919 return int_pow(ba_per_bt, hopnum - 1); in cal_pages_per_l1ba()
941 if (re->hopnum == 0) in cal_best_bt_pg_sz()
944 pgs_per_l1ba = cal_pages_per_l1ba(ba_per_bt, re->hopnum); in cal_best_bt_pg_sz()
H A Dhns_roce_device.h263 int hopnum; /* addressing hop num */ member
279 int hopnum; /* multi-hop addressing hop num */ member
1086 static inline u32 to_hr_hem_hopnum(u32 hopnum, u32 count) in to_hr_hem_hopnum() argument
1089 return hopnum == HNS_ROCE_HOP_NUM_0 ? 0 : hopnum; in to_hr_hem_hopnum()
H A Dhns_roce_srq.c178 buf_attr.region[0].hopnum = hr_dev->caps.idx_hop_num; in alloc_srq_idx()
233 buf_attr.region[0].hopnum = hr_dev->caps.srqwqe_hop_num; in alloc_srq_wqe_buf()
H A Dhns_roce_qp.c661 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sq_hop_num; in set_wqe_buf_attr()
672 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sge_hop_num; in set_wqe_buf_attr()
683 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_rq_hop_num; in set_wqe_buf_attr()
H A Dhns_roce_cq.c208 buf_attr.region[0].hopnum = hr_dev->caps.cqe_hop_num; in alloc_cq_buf()
H A Dhns_roce_hw_v2.c6382 buf_attr.region[0].hopnum = eq->hop_num; in alloc_eq_buf()