Searched refs:hopnum (Results 1 – 7 of 7) sorted by relevance
1026 static bool hem_list_is_bottom_bt(int hopnum, int bt_level) in hem_list_is_bottom_bt() argument1035 return bt_level >= (hopnum ? hopnum - 1 : hopnum); in hem_list_is_bottom_bt()1044 static u64 hem_list_calc_ba_range(int hopnum, int bt_level, int unit) in hem_list_calc_ba_range() argument1050 if (hopnum <= bt_level) in hem_list_calc_ba_range()1064 max = hopnum - bt_level; in hem_list_calc_ba_range()1087 if (r->hopnum > 1) { in hns_roce_hem_list_calc_root_ba()1088 step = hem_list_calc_ba_range(r->hopnum, 1, unit); in hns_roce_hem_list_calc_root_ba()1107 const int hopnum = r->hopnum; in hem_list_alloc_mid_bt() local1116 if (hopnum <= 1) in hem_list_alloc_mid_bt()1119 if (hopnum > HNS_ROCE_MAX_BT_LEVEL) { in hem_list_alloc_mid_bt()[all …]
102 buf_attr.region[0].hopnum = mr->pbl_hop_num; in alloc_mr_pbl()121 mr->pbl_hop_num = buf_attr.region[0].hopnum; in alloc_mr_pbl()466 mtr->hem_cfg.region[0].hopnum = mr->pbl_hop_num; in hns_roce_map_mr_sg()634 if (attr->region[i].hopnum != HNS_ROCE_HOP_NUM_0 && in mtr_has_mtt()635 attr->region[i].hopnum > 0) in mtr_has_mtt()817 if (!r->hopnum) { in hns_roce_mtr_map()992 buf_attr->region[0].hopnum = hop_num; in get_best_hop_num()1060 r->hopnum = to_hr_hem_hopnum(attr->region[i].hopnum, r->count); in mtr_init_buf_cfg()1066 static u64 cal_pages_per_l1ba(unsigned int ba_per_bt, unsigned int hopnum) in cal_pages_per_l1ba() argument1068 return int_pow(ba_per_bt, hopnum - 1); in cal_pages_per_l1ba()[all …]
269 int hopnum; /* addressing hop num */ member290 int hopnum; /* multi-hop addressing hop num */ member1134 static inline u32 to_hr_hem_hopnum(u32 hopnum, u32 count) in to_hr_hem_hopnum() argument1137 return hopnum == HNS_ROCE_HOP_NUM_0 ? 0 : hopnum; in to_hr_hem_hopnum()
179 buf_attr.region[0].hopnum = hr_dev->caps.idx_hop_num; in alloc_srq_idx()234 buf_attr.region[0].hopnum = hr_dev->caps.srqwqe_hop_num; in alloc_srq_wqe_buf()
662 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sq_hop_num; in set_wqe_buf_attr()673 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sge_hop_num; in set_wqe_buf_attr()684 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_rq_hop_num; in set_wqe_buf_attr()
207 buf_attr.region[0].hopnum = hr_dev->caps.cqe_hop_num; in alloc_cq_buf()
6512 buf_attr.region[0].hopnum = eq->hop_num; in alloc_eq_buf()