Lines Matching refs:hop_num

50 	int hop_num = 0;
54 hop_num = hr_dev->caps.qpc_hop_num;
57 hop_num = hr_dev->caps.mpt_hop_num;
60 hop_num = hr_dev->caps.cqc_hop_num;
63 hop_num = hr_dev->caps.srqc_hop_num;
66 hop_num = hr_dev->caps.sccc_hop_num;
69 hop_num = hr_dev->caps.qpc_timer_hop_num;
72 hop_num = hr_dev->caps.cqc_timer_hop_num;
75 hop_num = hr_dev->caps.gmv_hop_num;
81 return hop_num;
110 static int hns_roce_get_bt_num(u32 table_type, u32 hop_num)
112 if (check_whether_bt_num_3(table_type, hop_num))
114 else if (check_whether_bt_num_2(table_type, hop_num))
116 else if (check_whether_bt_num_1(table_type, hop_num))
135 mhop->hop_num = hr_dev->caps.qpc_hop_num;
143 mhop->hop_num = hr_dev->caps.mpt_hop_num;
151 mhop->hop_num = hr_dev->caps.cqc_hop_num;
159 mhop->hop_num = hr_dev->caps.sccc_hop_num;
167 mhop->hop_num = hr_dev->caps.qpc_timer_hop_num;
175 mhop->hop_num = hr_dev->caps.cqc_timer_hop_num;
183 mhop->hop_num = hr_dev->caps.srqc_hop_num;
191 mhop->hop_num = hr_dev->caps.gmv_hop_num;
222 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num);
241 dev_err(dev, "table %u not support hop_num = %u!\n",
242 table->type, mhop->hop_num);
318 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num);
334 ibdev_err(ibdev, "table %u not support mhop.hop_num = %u!\n",
335 table->type, mhop->hop_num);
387 if ((check_whether_bt_num_3(table->type, mhop->hop_num) ||
388 check_whether_bt_num_2(table->type, mhop->hop_num)) &&
401 if (check_whether_bt_num_3(table->type, mhop->hop_num) &&
431 if (mhop->hop_num == 2)
433 else if (mhop->hop_num == 1)
435 } else if (mhop->hop_num == 2) {
472 if (mhop->hop_num == HNS_ROCE_HOP_NUM_0)
475 step_idx = mhop->hop_num;
579 u32 hop_num = mhop->hop_num;
586 if (check_whether_bt_num_2(table->type, hop_num)) {
590 } else if (check_whether_bt_num_3(table->type, hop_num)) {
601 if (hop_num == HNS_ROCE_HOP_NUM_0)
604 step_idx = hop_num;
609 hop_num, ret);
713 if (mhop.hop_num == 2)
715 else if (mhop.hop_num == 1 ||
716 mhop.hop_num == HNS_ROCE_HOP_NUM_0)
721 if (mhop.hop_num == 2)
757 u32 hop_num;
765 hop_num = mhop.hop_num;
779 if (check_whether_bt_num_3(type, hop_num)) {
797 if (check_whether_bt_num_2(type, hop_num) ||
798 check_whether_bt_num_3(type, hop_num)) {