Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c1138 static bool hem_list_is_bottom_bt(int hopnum, int bt_level) in hem_list_is_bottom_bt() argument
1147 return bt_level >= (hopnum ? hopnum - 1 : hopnum); in hem_list_is_bottom_bt()
1156 static u32 hem_list_calc_ba_range(int hopnum, int bt_level, int unit) in hem_list_calc_ba_range() argument
1162 if (hopnum <= bt_level) in hem_list_calc_ba_range()
1176 max = hopnum - bt_level; in hem_list_calc_ba_range()
1199 if (r->hopnum > 1) { in hns_roce_hem_list_calc_root_ba()
1200 step = hem_list_calc_ba_range(r->hopnum, 1, unit); in hns_roce_hem_list_calc_root_ba()
1219 const int hopnum = r->hopnum; in hem_list_alloc_mid_bt() local
1228 if (hopnum <= 1) in hem_list_alloc_mid_bt()
1231 if (hopnum > HNS_ROCE_MAX_BT_LEVEL) { in hem_list_alloc_mid_bt()
[all …]
H A Dhns_roce_mr.c125 buf_attr.region[0].hopnum = mr->pbl_hop_num; in alloc_mr_pbl()
504 mtr->hem_cfg.region[0].hopnum = mr->pbl_hop_num; in hns_roce_map_mr_sg()
643 if (!region->hopnum) in mtr_map_region()
675 if (attr->region[i].hopnum != HNS_ROCE_HOP_NUM_0 && in mtr_has_mtt()
676 attr->region[i].hopnum > 0) in mtr_has_mtt()
985 r->hopnum = to_hr_hem_hopnum(attr->region[region_cnt].hopnum, in mtr_init_buf_cfg()
H A Dhns_roce_device.h323 int hopnum; /* addressing hop num */ member
339 int hopnum; /* multi-hop addressing hop num */ member
1109 static inline u32 to_hr_hem_hopnum(u32 hopnum, u32 count) in to_hr_hem_hopnum() argument
1112 return hopnum == HNS_ROCE_HOP_NUM_0 ? 0 : hopnum; in to_hr_hem_hopnum()
H A Dhns_roce_srq.c196 buf_attr.region[0].hopnum = hr_dev->caps.srqwqe_hop_num; in alloc_srq_buf()
228 buf_attr.region[0].hopnum = hr_dev->caps.idx_hop_num; in alloc_srq_idx()
H A Dhns_roce_qp.c509 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sq_hop_num; in set_wqe_buf_attr()
520 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sge_hop_num; in set_wqe_buf_attr()
531 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_rq_hop_num; in set_wqe_buf_attr()
H A Dhns_roce_cq.c154 buf_attr.region[0].hopnum = hr_dev->caps.cqe_hop_num; in alloc_cq_buf()
H A Dhns_roce_hw_v2.c5874 buf_attr.region[0].hopnum = eq->hop_num; in alloc_eq_buf()