Searched refs:hopnum (Results 1 – 5 of 5) sorted by relevance
1017 static bool hem_list_is_bottom_bt(int hopnum, int bt_level) in hem_list_is_bottom_bt() argument1026 return bt_level >= (hopnum ? hopnum - 1 : hopnum); in hem_list_is_bottom_bt()1035 static u64 hem_list_calc_ba_range(int hopnum, int bt_level, int unit) in hem_list_calc_ba_range() argument1041 if (hopnum <= bt_level) in hem_list_calc_ba_range()1055 max = hopnum - bt_level; in hem_list_calc_ba_range()1079 if (!r->hopnum) in hns_roce_hem_list_calc_root_ba()1082 if (r->hopnum > 1) { in hns_roce_hem_list_calc_root_ba()1083 step = hem_list_calc_ba_range(r->hopnum, 1, unit); in hns_roce_hem_list_calc_root_ba()1102 const int hopnum = r->hopnum; in hem_list_alloc_mid_bt() local1111 if (hopnum <= 1) in hem_list_alloc_mid_bt()[all …]
103 buf_attr.region[0].hopnum = mr->pbl_hop_num; in alloc_mr_pbl()122 mr->pbl_hop_num = buf_attr.region[0].hopnum; in alloc_mr_pbl()475 mtr->hem_cfg.region[0].hopnum = mr->pbl_hop_num; in hns_roce_map_mr_sg()529 if (attr->region[i].hopnum != HNS_ROCE_HOP_NUM_0 && in mtr_has_mtt()530 attr->region[i].hopnum > 0) in mtr_has_mtt()882 buf_attr->region[0].hopnum = hop_num; in get_best_hop_num()950 r->hopnum = to_hr_hem_hopnum(attr->region[i].hopnum, r->count); in mtr_init_buf_cfg()956 static u64 cal_pages_per_l1ba(unsigned int ba_per_bt, unsigned int hopnum) in cal_pages_per_l1ba() argument958 return int_pow(ba_per_bt, hopnum - 1); in cal_pages_per_l1ba()980 if (re->hopnum == 0) in cal_best_bt_pg_sz()[all …]
158 __entry->region0_hopnum = attr->region[0].hopnum;160 __entry->region1_hopnum = attr->region[1].hopnum;162 __entry->region2_hopnum = attr->region[2].hopnum;
178 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()
6910 buf_attr.region[0].hopnum = eq->hop_num; in alloc_eq_buf()