/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.h | 62 #define check_whether_bt_num_3(type, hop_num) \ 63 (type < HEM_TYPE_MTT && hop_num == 2) 65 #define check_whether_bt_num_2(type, hop_num) \ 66 ((type < HEM_TYPE_MTT && hop_num == 1) || \ 67 (type >= HEM_TYPE_MTT && hop_num == 2)) 69 #define check_whether_bt_num_1(type, hop_num) \ 70 ((type < HEM_TYPE_MTT && hop_num == HNS_ROCE_HOP_NUM_0) || \ 71 (type >= HEM_TYPE_MTT && hop_num == 1) || \ 72 (type >= HEM_TYPE_MTT && hop_num == HNS_ROCE_HOP_NUM_0)) 94 u32 hop_num; member [all...] |
H A D | hns_roce_hem.c | 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() 79 return hop_num ? true : false; in hns_roce_check_whether_mhop() 108 static int hns_roce_get_bt_num(u32 table_type, u32 hop_num) in hns_roce_get_bt_num() argument 612 u32 hop_num = mhop->hop_num; clear_mhop_hem() local 801 u32 hop_num; hns_roce_init_hem_table() local [all...] |
H A D | hns_roce_hw_v2.h | 143 #define check_whether_last_step(hop_num, step_idx) \ 144 ((step_idx == 0 && hop_num == HNS_ROCE_HOP_NUM_0) || \ 145 (step_idx == 1 && hop_num == 1) || \ 146 (step_idx == 2 && hop_num == 2))
|
H A D | hns_roce_hw_v2.c | 1910 static void calc_pg_sz(int obj_num, int obj_size, int hop_num, int ctx_bt_num, in calc_pg_sz() argument 1921 switch (hop_num) { in calc_pg_sz() 1941 pr_err("table %u not support hop_num = %u!\n", hem_type, in calc_pg_sz() 1942 hop_num); in calc_pg_sz() 3630 u32 hop_num; in hns_roce_v2_set_hem() local 3639 hop_num = mhop.hop_num; in hns_roce_v2_set_hem() 3642 if (hop_num == 2) { in hns_roce_v2_set_hem() 3646 } else if (hop_num == 1) { in hns_roce_v2_set_hem() 3648 } else if (hop_num in hns_roce_v2_set_hem() [all...] |
H A D | hns_roce_device.h | 740 int hop_num; member
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.h | 63 #define check_whether_bt_num_3(type, hop_num) \ 64 (type < HEM_TYPE_MTT && hop_num == 2) 66 #define check_whether_bt_num_2(type, hop_num) \ 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) \ 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 [all...] |
H A 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; in hns_roce_check_whether_mhop() 110 hns_roce_get_bt_num(u32 table_type, u32 hop_num) hns_roce_get_bt_num() argument 619 u32 hop_num = mhop->hop_num; clear_mhop_hem() local 814 u32 hop_num; hns_roce_init_hem_table() local [all...] |
H A D | hns_roce_hw_v2.h | 102 #define check_whether_last_step(hop_num, step_idx) \ 103 ((step_idx == 0 && hop_num == HNS_ROCE_HOP_NUM_0) || \ 104 (step_idx == 1 && hop_num == 1) || \ 105 (step_idx == 2 && hop_num == 2))
|
H A D | hns_roce_hw_v2.c | 1932 static void calc_pg_sz(u32 obj_num, u32 obj_size, u32 hop_num, u32 ctx_bt_num, in calc_pg_sz() argument 1943 switch (hop_num) { in calc_pg_sz() 1963 pr_err("table %u not support hop_num = %u!\n", hem_type, in calc_pg_sz() 1964 hop_num); in calc_pg_sz() 4059 u32 hop_num; in hns_roce_v2_set_hem() local 4068 hop_num = mhop.hop_num; in hns_roce_v2_set_hem() 4071 if (hop_num == 2) { in hns_roce_v2_set_hem() 4075 } else if (hop_num == 1) { in hns_roce_v2_set_hem() 4077 } else if (hop_num in hns_roce_v2_set_hem() [all...] |
H A D | hns_roce_device.h | 693 int hop_num; member
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/ |
H A D | qm.c | 188 #define QM_MK_CQC_DW3_V1(hop_num, pg_sz, buf_sz, cqe_sz) \ 189 (((hop_num) << QM_CQ_HOP_NUM_SHIFT) | \ 202 #define QM_MK_SQC_DW3_V1(hop_num, pg_sz, buf_sz, sqe_sz) \ 203 (((hop_num) << QM_SQ_HOP_NUM_SHIFT) | \
|
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/ |
H A D | qm.c | 233 #define QM_MK_CQC_DW3_V1(hop_num, pg_sz, buf_sz, cqe_sz) \ 234 (((hop_num) << QM_CQ_HOP_NUM_SHIFT) | \ 247 #define QM_MK_SQC_DW3_V1(hop_num, pg_sz, buf_sz, sqe_sz) \ 248 (((hop_num) << QM_SQ_HOP_NUM_SHIFT) | \
|