Searched refs:hop_num (Results 1 – 4 of 4) 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))79 u32 hop_num; member
853 int hop_num = INVALID_HOPNUM; in get_best_hop_num() local869 hop_num = j; in get_best_hop_num()876 if (hop_num < 0) { in get_best_hop_num()882 buf_attr->region[0].hopnum = hop_num; in get_best_hop_num()
109 #define check_whether_last_step(hop_num, step_idx) \ argument110 ((step_idx == 0 && hop_num == HNS_ROCE_HOP_NUM_0) || \111 (step_idx == 1 && hop_num == 1) || \112 (step_idx == 2 && hop_num == 2))
2252 static void calc_pg_sz(u32 obj_num, u32 obj_size, u32 hop_num, u32 ctx_bt_num, in calc_pg_sz() argument2263 switch (hop_num) { in calc_pg_sz()2284 hop_num); in calc_pg_sz()4401 u32 hop_num; in hns_roce_v2_set_hem() local4410 hop_num = mhop.hop_num; in hns_roce_v2_set_hem()4413 if (hop_num == 2) { in hns_roce_v2_set_hem()4417 } else if (hop_num == 1) { in hns_roce_v2_set_hem()4419 } else if (hop_num == HNS_ROCE_HOP_NUM_0) { in hns_roce_v2_set_hem()4426 if (check_whether_last_step(hop_num, step_idx)) { in hns_roce_v2_set_hem()4433 else if (step_idx == 1 && hop_num == 2) in hns_roce_v2_set_hem()[all …]