Searched refs:hop_num (Results 1 – 5 of 5) sorted by relevance
59 #define check_whether_bt_num_3(type, hop_num) \ argument60 (type < HEM_TYPE_MTT && hop_num == 2)62 #define check_whether_bt_num_2(type, hop_num) \ argument63 ((type < HEM_TYPE_MTT && hop_num == 1) || \64 (type >= HEM_TYPE_MTT && hop_num == 2))66 #define check_whether_bt_num_1(type, hop_num) \ argument67 ((type < HEM_TYPE_MTT && hop_num == HNS_ROCE_HOP_NUM_0) || \68 (type >= HEM_TYPE_MTT && hop_num == 1) || \69 (type >= HEM_TYPE_MTT && hop_num == HNS_ROCE_HOP_NUM_0))96 u32 hop_num; member
79 static int hns_roce_get_bt_num(u32 table_type, u32 hop_num) in hns_roce_get_bt_num() argument81 if (check_whether_bt_num_3(table_type, hop_num)) in hns_roce_get_bt_num()83 else if (check_whether_bt_num_2(table_type, hop_num)) in hns_roce_get_bt_num()85 else if (check_whether_bt_num_1(table_type, hop_num)) in hns_roce_get_bt_num()108 mhop->hop_num = hr_dev->caps.qpc_hop_num; in hns_roce_calc_hem_mhop()116 mhop->hop_num = hr_dev->caps.mpt_hop_num; in hns_roce_calc_hem_mhop()124 mhop->hop_num = hr_dev->caps.cqc_hop_num; in hns_roce_calc_hem_mhop()132 mhop->hop_num = hr_dev->caps.srqc_hop_num; in hns_roce_calc_hem_mhop()140 mhop->hop_num = hr_dev->caps.mtt_hop_num; in hns_roce_calc_hem_mhop()148 mhop->hop_num = hr_dev->caps.cqe_hop_num; in hns_roce_calc_hem_mhop()[all …]
110 #define check_whether_last_step(hop_num, step_idx) \ argument111 ((step_idx == 0 && hop_num == HNS_ROCE_HOP_NUM_0) || \112 (step_idx == 1 && hop_num == 1) || \113 (step_idx == 2 && hop_num == 2))
2342 u32 hop_num; in hns_roce_v2_set_hem() local2352 hop_num = mhop.hop_num; in hns_roce_v2_set_hem()2355 if (hop_num == 2) { in hns_roce_v2_set_hem()2359 } else if (hop_num == 1) { in hns_roce_v2_set_hem()2361 } else if (hop_num == HNS_ROCE_HOP_NUM_0) { in hns_roce_v2_set_hem()2389 if (check_whether_last_step(hop_num, step_idx)) { in hns_roce_v2_set_hem()2403 else if (step_idx == 1 && hop_num == 2) in hns_roce_v2_set_hem()4200 if (eq->hop_num == HNS_ROCE_HOP_NUM_0) in mhop_get_aeqe()4212 if (!eq->hop_num) in next_aeqe_sw_v2()4335 if (eq->hop_num == HNS_ROCE_HOP_NUM_0) in mhop_get_ceqe()[all …]
635 int hop_num; member