Lines Matching refs:hop_num

50 	int hop_num = 0;  in hns_roce_check_whether_mhop()  local
54 hop_num = hr_dev->caps.qpc_hop_num; in hns_roce_check_whether_mhop()
57 hop_num = hr_dev->caps.mpt_hop_num; in hns_roce_check_whether_mhop()
60 hop_num = hr_dev->caps.cqc_hop_num; in hns_roce_check_whether_mhop()
63 hop_num = hr_dev->caps.srqc_hop_num; in hns_roce_check_whether_mhop()
66 hop_num = hr_dev->caps.sccc_hop_num; in hns_roce_check_whether_mhop()
69 hop_num = hr_dev->caps.qpc_timer_hop_num; in hns_roce_check_whether_mhop()
72 hop_num = hr_dev->caps.cqc_timer_hop_num; in hns_roce_check_whether_mhop()
75 hop_num = hr_dev->caps.gmv_hop_num; in hns_roce_check_whether_mhop()
81 return hop_num; in hns_roce_check_whether_mhop()
110 static int hns_roce_get_bt_num(u32 table_type, u32 hop_num) in hns_roce_get_bt_num() argument
112 if (check_whether_bt_num_3(table_type, hop_num)) in hns_roce_get_bt_num()
114 else if (check_whether_bt_num_2(table_type, hop_num)) in hns_roce_get_bt_num()
116 else if (check_whether_bt_num_1(table_type, hop_num)) in hns_roce_get_bt_num()
135 mhop->hop_num = hr_dev->caps.qpc_hop_num; in get_hem_table_config()
143 mhop->hop_num = hr_dev->caps.mpt_hop_num; in get_hem_table_config()
151 mhop->hop_num = hr_dev->caps.cqc_hop_num; in get_hem_table_config()
159 mhop->hop_num = hr_dev->caps.sccc_hop_num; in get_hem_table_config()
167 mhop->hop_num = hr_dev->caps.qpc_timer_hop_num; in get_hem_table_config()
175 mhop->hop_num = hr_dev->caps.cqc_timer_hop_num; in get_hem_table_config()
183 mhop->hop_num = hr_dev->caps.srqc_hop_num; in get_hem_table_config()
191 mhop->hop_num = hr_dev->caps.gmv_hop_num; in get_hem_table_config()
222 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
242 table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
318 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in calc_hem_config()
335 table->type, mhop->hop_num); in calc_hem_config()
387 if ((check_whether_bt_num_3(table->type, mhop->hop_num) || in alloc_mhop_hem()
388 check_whether_bt_num_2(table->type, mhop->hop_num)) && in alloc_mhop_hem()
401 if (check_whether_bt_num_3(table->type, mhop->hop_num) && in alloc_mhop_hem()
431 if (mhop->hop_num == 2) in alloc_mhop_hem()
433 else if (mhop->hop_num == 1) in alloc_mhop_hem()
435 } else if (mhop->hop_num == 2) { in alloc_mhop_hem()
472 if (mhop->hop_num == HNS_ROCE_HOP_NUM_0) in set_mhop_hem()
475 step_idx = mhop->hop_num; in set_mhop_hem()
579 u32 hop_num = mhop->hop_num; in clear_mhop_hem() local
586 if (check_whether_bt_num_2(table->type, hop_num)) { in clear_mhop_hem()
590 } else if (check_whether_bt_num_3(table->type, hop_num)) { in clear_mhop_hem()
601 if (hop_num == HNS_ROCE_HOP_NUM_0) in clear_mhop_hem()
604 step_idx = hop_num; in clear_mhop_hem()
609 hop_num, ret); in clear_mhop_hem()
713 if (mhop.hop_num == 2) in hns_roce_table_find()
715 else if (mhop.hop_num == 1 || in hns_roce_table_find()
716 mhop.hop_num == HNS_ROCE_HOP_NUM_0) in hns_roce_table_find()
721 if (mhop.hop_num == 2) in hns_roce_table_find()
757 u32 hop_num; in hns_roce_init_hem_table() local
765 hop_num = mhop.hop_num; in hns_roce_init_hem_table()
779 if (check_whether_bt_num_3(type, hop_num)) { in hns_roce_init_hem_table()
797 if (check_whether_bt_num_2(type, hop_num) || in hns_roce_init_hem_table()
798 check_whether_bt_num_3(type, hop_num)) { in hns_roce_init_hem_table()