Searched refs:hop_num (Results 1 – 7 of 7) sorted by relevance
| /linux-6.15/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_hem.h | 59 #define check_whether_bt_num_3(type, hop_num) \ argument 60 ((type) < HEM_TYPE_MTT && (hop_num) == 2) 62 #define check_whether_bt_num_2(type, hop_num) \ argument 63 (((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) \ argument 67 (((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
|
| H A D | hns_roce_hem.c | 50 int hop_num = 0; in hns_roce_check_whether_mhop() local 81 return hop_num; in hns_roce_check_whether_mhop() 431 if (mhop->hop_num == 2) in alloc_mhop_hem() 475 step_idx = mhop->hop_num; in set_mhop_hem() 579 u32 hop_num = mhop->hop_num; in clear_mhop_hem() local 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() 721 if (mhop.hop_num == 2) in hns_roce_table_find() 757 u32 hop_num; in hns_roce_init_hem_table() local [all …]
|
| H A D | hns_roce_mr.c | 959 int hop_num = INVALID_HOPNUM; in get_best_hop_num() local 975 hop_num = j; in get_best_hop_num() 982 if (hop_num < 0) { in get_best_hop_num() 988 buf_attr->region[0].hopnum = hop_num; in get_best_hop_num()
|
| H A D | hns_roce_hw_v2.h | 107 #define check_whether_last_step(hop_num, step_idx) \ argument 108 ((step_idx == 0 && hop_num == HNS_ROCE_HOP_NUM_0) || \ 109 (step_idx == 1 && hop_num == 1) || \ 110 (step_idx == 2 && hop_num == 2))
|
| H A D | hns_roce_hw_v2.c | 2005 switch (hop_num) { in calc_pg_sz() 2026 hop_num); in calc_pg_sz() 4134 u32 hop_num; in hns_roce_v2_set_hem() local 4143 hop_num = mhop.hop_num; in hns_roce_v2_set_hem() 4146 if (hop_num == 2) { in hns_roce_v2_set_hem() 4150 } else if (hop_num == 1) { in hns_roce_v2_set_hem() 4152 } else if (hop_num == HNS_ROCE_HOP_NUM_0) { in hns_roce_v2_set_hem() 4166 else if (step_idx == 1 && hop_num == 2) in hns_roce_v2_set_hem() 6611 eq->hop_num = 0; in alloc_eq_buf() 6613 eq->hop_num = hr_dev->caps.eqe_hop_num; in alloc_eq_buf() [all …]
|
| H A D | hns_roce_device.h | 714 int hop_num; member
|
| /linux-6.15/drivers/crypto/hisilicon/ |
| H A D | qm.c | 251 #define QM_MK_CQC_DW3_V1(hop_num, pg_sz, buf_sz, cqe_sz) \ argument 252 (((hop_num) << QM_CQ_HOP_NUM_SHIFT) | \ 265 #define QM_MK_SQC_DW3_V1(hop_num, pg_sz, buf_sz, sqe_sz) \ argument 266 (((hop_num) << QM_SQ_HOP_NUM_SHIFT) | \
|