Searched refs:hop_num (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.1/drivers/infiniband/hw/hns/ |
D | hns_roce_hem.h | 63 #define check_whether_bt_num_3(type, hop_num) \ argument 64 (type < HEM_TYPE_MTT && hop_num == 2) 66 #define check_whether_bt_num_2(type, hop_num) \ argument 67 ((type < HEM_TYPE_MTT && hop_num == 1) || \ 68 (type >= HEM_TYPE_MTT && hop_num == 2)) 70 #define check_whether_bt_num_1(type, hop_num) \ argument 71 ((type < HEM_TYPE_MTT && hop_num == HNS_ROCE_HOP_NUM_0) || \ 72 (type >= HEM_TYPE_MTT && hop_num == 1) || \ 73 (type >= HEM_TYPE_MTT && hop_num == HNS_ROCE_HOP_NUM_0)) 95 u32 hop_num; member
|
D | hns_roce_hem.c | 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 ? true : false; in hns_roce_check_whether_mhop() [all …]
|
D | hns_roce_hw_v2.h | 129 #define check_whether_last_step(hop_num, step_idx) \ argument 130 ((step_idx == 0 && hop_num == HNS_ROCE_HOP_NUM_0) || \ 131 (step_idx == 1 && hop_num == 1) || \ 132 (step_idx == 2 && hop_num == 2))
|
D | hns_roce_hw_v2.c | 2045 static void calc_pg_sz(u32 obj_num, u32 obj_size, u32 hop_num, u32 ctx_bt_num, in calc_pg_sz() argument 2056 switch (hop_num) { in calc_pg_sz() 2077 hop_num); in calc_pg_sz() 4114 u32 hop_num; in hns_roce_v2_set_hem() local 4123 hop_num = mhop.hop_num; in hns_roce_v2_set_hem() 4126 if (hop_num == 2) { in hns_roce_v2_set_hem() 4130 } else if (hop_num == 1) { in hns_roce_v2_set_hem() 4132 } else if (hop_num == HNS_ROCE_HOP_NUM_0) { in hns_roce_v2_set_hem() 4139 if (check_whether_last_step(hop_num, step_idx)) { in hns_roce_v2_set_hem() 4150 else if (step_idx == 1 && hop_num == 2) in hns_roce_v2_set_hem() [all …]
|
D | hns_roce_device.h | 696 int hop_num; member
|
/Linux-v6.1/drivers/crypto/hisilicon/ |
D | qm.c | 265 #define QM_MK_CQC_DW3_V1(hop_num, pg_sz, buf_sz, cqe_sz) \ argument 266 (((hop_num) << QM_CQ_HOP_NUM_SHIFT) | \ 279 #define QM_MK_SQC_DW3_V1(hop_num, pg_sz, buf_sz, sqe_sz) \ argument 280 (((hop_num) << QM_SQ_HOP_NUM_SHIFT) | \
|