Lines Matching refs:hop_num

51 	int hop_num = 0;  in hns_roce_check_whether_mhop()  local
55 hop_num = hr_dev->caps.qpc_hop_num; in hns_roce_check_whether_mhop()
58 hop_num = hr_dev->caps.mpt_hop_num; in hns_roce_check_whether_mhop()
61 hop_num = hr_dev->caps.cqc_hop_num; in hns_roce_check_whether_mhop()
64 hop_num = hr_dev->caps.srqc_hop_num; in hns_roce_check_whether_mhop()
67 hop_num = hr_dev->caps.sccc_hop_num; in hns_roce_check_whether_mhop()
70 hop_num = hr_dev->caps.qpc_timer_hop_num; in hns_roce_check_whether_mhop()
73 hop_num = hr_dev->caps.cqc_timer_hop_num; in hns_roce_check_whether_mhop()
76 hop_num = hr_dev->caps.gmv_hop_num; in hns_roce_check_whether_mhop()
82 return hop_num ? true : false; in hns_roce_check_whether_mhop()
111 static int hns_roce_get_bt_num(u32 table_type, u32 hop_num) in hns_roce_get_bt_num() argument
113 if (check_whether_bt_num_3(table_type, hop_num)) in hns_roce_get_bt_num()
115 else if (check_whether_bt_num_2(table_type, hop_num)) in hns_roce_get_bt_num()
117 else if (check_whether_bt_num_1(table_type, hop_num)) in hns_roce_get_bt_num()
136 mhop->hop_num = hr_dev->caps.qpc_hop_num; in get_hem_table_config()
144 mhop->hop_num = hr_dev->caps.mpt_hop_num; in get_hem_table_config()
152 mhop->hop_num = hr_dev->caps.cqc_hop_num; in get_hem_table_config()
160 mhop->hop_num = hr_dev->caps.sccc_hop_num; in get_hem_table_config()
168 mhop->hop_num = hr_dev->caps.qpc_timer_hop_num; in get_hem_table_config()
176 mhop->hop_num = hr_dev->caps.cqc_timer_hop_num; in get_hem_table_config()
184 mhop->hop_num = hr_dev->caps.srqc_hop_num; in get_hem_table_config()
192 mhop->hop_num = hr_dev->caps.gmv_hop_num; in get_hem_table_config()
223 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
243 table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
356 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in calc_hem_config()
373 table->type, mhop->hop_num); in calc_hem_config()
426 if ((check_whether_bt_num_3(table->type, mhop->hop_num) || in alloc_mhop_hem()
427 check_whether_bt_num_2(table->type, mhop->hop_num)) && in alloc_mhop_hem()
440 if (check_whether_bt_num_3(table->type, mhop->hop_num) && in alloc_mhop_hem()
471 if (mhop->hop_num == 2) in alloc_mhop_hem()
473 else if (mhop->hop_num == 1) in alloc_mhop_hem()
475 } else if (mhop->hop_num == 2) { in alloc_mhop_hem()
512 if (mhop->hop_num == HNS_ROCE_HOP_NUM_0) in set_mhop_hem()
515 step_idx = mhop->hop_num; in set_mhop_hem()
620 u32 hop_num = mhop->hop_num; in clear_mhop_hem() local
626 if (check_whether_bt_num_2(table->type, hop_num)) { in clear_mhop_hem()
630 } else if (check_whether_bt_num_3(table->type, hop_num)) { in clear_mhop_hem()
641 if (hop_num == HNS_ROCE_HOP_NUM_0) in clear_mhop_hem()
644 step_idx = hop_num; in clear_mhop_hem()
647 ibdev_warn(ibdev, "failed to clear hop%u HEM.\n", hop_num); in clear_mhop_hem()
747 if (mhop.hop_num == 2) in hns_roce_table_find()
749 else if (mhop.hop_num == 1 || in hns_roce_table_find()
750 mhop.hop_num == HNS_ROCE_HOP_NUM_0) in hns_roce_table_find()
755 if (mhop.hop_num == 2) in hns_roce_table_find()
807 u32 hop_num; in hns_roce_init_hem_table() local
815 hop_num = mhop.hop_num; in hns_roce_init_hem_table()
829 if (check_whether_bt_num_3(type, hop_num)) { in hns_roce_init_hem_table()
847 if (check_whether_bt_num_2(type, hop_num) || in hns_roce_init_hem_table()
848 check_whether_bt_num_3(type, hop_num)) { in hns_roce_init_hem_table()