Searched refs:hopnum (Results 1 - 14 of 14) sorted by relevance
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.c | 1059 static bool hem_list_is_bottom_bt(int hopnum, int bt_level) in hem_list_is_bottom_bt() argument 1062 * hopnum base address table levels in hem_list_is_bottom_bt() 1068 return bt_level >= (hopnum ? hopnum - 1 : hopnum); in hem_list_is_bottom_bt() 1073 * @hopnum: num of mutihop addressing 1077 static u32 hem_list_calc_ba_range(int hopnum, int bt_level, int unit) in hem_list_calc_ba_range() argument 1083 if (hopnum <= bt_level) in hem_list_calc_ba_range() 1086 * hopnum bt_level range in hem_list_calc_ba_range() 1097 max = hopnum in hem_list_calc_ba_range() 1140 const int hopnum = r->hopnum; hem_list_alloc_mid_bt() local [all...] |
H A D | hns_roce_mr.c | 125 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() 642 /* if hopnum is 0, buffer cannot store BAs, so skip write mtt */ in mtr_map_region() 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() 679 /* because the mtr only one root base address, when hopnum is 0 means in mtr_has_mtt() 851 * Only use the first page address as root ba when hopnum is 0, this in hns_roce_mtr_map() 985 r->hopnum = to_hr_hem_hopnum(attr->region[region_cnt].hopnum, in mtr_init_buf_cfg() [all...] |
H A D | hns_roce_device.h | 321 int hopnum; /* addressing hop num */ member 337 int hopnum; /* multi-hop addressing hop num */ member 1107 static inline u32 to_hr_hem_hopnum(u32 hopnum, u32 count) in to_hr_hem_hopnum() argument 1110 return hopnum == HNS_ROCE_HOP_NUM_0 ? 0 : hopnum; in to_hr_hem_hopnum()
|
H A D | hns_roce_srq.c | 196 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 D | hns_roce_qp.c | 509 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 D | hns_roce_cq.c | 154 buf_attr.region[0].hopnum = hr_dev->caps.cqe_hop_num; in alloc_cq_buf()
|
H A D | hns_roce_hw_v2.c | 5883 buf_attr.region[0].hopnum = eq->hop_num; in alloc_eq_buf()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.c | 1083 static bool hem_list_is_bottom_bt(int hopnum, int bt_level) in hem_list_is_bottom_bt() argument 1086 * hopnum base address table levels in hem_list_is_bottom_bt() 1092 return bt_level >= (hopnum ? hopnum - 1 : hopnum); in hem_list_is_bottom_bt() 1097 * @hopnum: num of mutihop addressing 1101 static u32 hem_list_calc_ba_range(int hopnum, int bt_level, int unit) in hem_list_calc_ba_range() argument 1107 if (hopnum <= bt_level) in hem_list_calc_ba_range() 1110 * hopnum bt_level range in hem_list_calc_ba_range() 1121 max = hopnum in hem_list_calc_ba_range() 1164 const int hopnum = r->hopnum; hem_list_alloc_mid_bt() local [all...] |
H A D | hns_roce_mr.c | 101 buf_attr.region[0].hopnum = mr->pbl_hop_num; in alloc_mr_pbl() 441 mtr->hem_cfg.region[0].hopnum = mr->pbl_hop_num; in hns_roce_map_mr_sg() 610 if (attr->region[i].hopnum != HNS_ROCE_HOP_NUM_0 && in mtr_has_mtt() 611 attr->region[i].hopnum > 0) in mtr_has_mtt() 614 /* because the mtr only one root base address, when hopnum is 0 means in mtr_has_mtt() 754 * Only use the first page address as root ba when hopnum is 0, this in hns_roce_mtr_map() 765 /* if hopnum is 0, no need to map pages in this region */ in hns_roce_mtr_map() 766 if (!r->hopnum) { in hns_roce_mtr_map() 903 r->hopnum = to_hr_hem_hopnum(attr->region[region_cnt].hopnum, in mtr_init_buf_cfg() 913 cal_pages_per_l1ba(unsigned int ba_per_bt, unsigned int hopnum) cal_pages_per_l1ba() argument [all...] |
H A D | hns_roce_device.h | 257 int hopnum; /* addressing hop num */ member 273 int hopnum; /* multi-hop addressing hop num */ member 1080 static inline u32 to_hr_hem_hopnum(u32 hopnum, u32 count) in to_hr_hem_hopnum() argument 1083 return hopnum == HNS_ROCE_HOP_NUM_0 ? 0 : hopnum; in to_hr_hem_hopnum()
|
H A D | hns_roce_srq.c | 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()
|
H A D | hns_roce_cq.c | 208 buf_attr.region[0].hopnum = hr_dev->caps.cqe_hop_num; in alloc_cq_buf()
|
H A D | hns_roce_qp.c | 659 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sq_hop_num; in set_wqe_buf_attr() 670 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sge_hop_num; in set_wqe_buf_attr() 681 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_rq_hop_num; in set_wqe_buf_attr()
|
H A D | hns_roce_hw_v2.c | 6362 buf_attr.region[0].hopnum = eq->hop_num; in alloc_eq_buf()
|
Completed in 38 milliseconds