Home
last modified time | relevance | path

Searched refs:hop_num (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hem.h64 #define check_whether_bt_num_3(type, hop_num) \ argument
65 (type < HEM_TYPE_MTT && hop_num == 2)
67 #define check_whether_bt_num_2(type, hop_num) \ argument
68 ((type < HEM_TYPE_MTT && hop_num == 1) || \
69 (type >= HEM_TYPE_MTT && hop_num == 2))
71 #define check_whether_bt_num_1(type, hop_num) \ argument
72 ((type < HEM_TYPE_MTT && hop_num == HNS_ROCE_HOP_NUM_0) || \
73 (type >= HEM_TYPE_MTT && hop_num == 1) || \
74 (type >= HEM_TYPE_MTT && hop_num == HNS_ROCE_HOP_NUM_0))
101 u32 hop_num; member
Dhns_roce_hem.c44 int hop_num = 0; in hns_roce_check_whether_mhop() local
48 hop_num = hr_dev->caps.qpc_hop_num; in hns_roce_check_whether_mhop()
51 hop_num = hr_dev->caps.mpt_hop_num; in hns_roce_check_whether_mhop()
54 hop_num = hr_dev->caps.cqc_hop_num; in hns_roce_check_whether_mhop()
57 hop_num = hr_dev->caps.srqc_hop_num; in hns_roce_check_whether_mhop()
60 hop_num = hr_dev->caps.sccc_hop_num; in hns_roce_check_whether_mhop()
63 hop_num = hr_dev->caps.qpc_timer_hop_num; in hns_roce_check_whether_mhop()
66 hop_num = hr_dev->caps.cqc_timer_hop_num; in hns_roce_check_whether_mhop()
69 hop_num = hr_dev->caps.cqe_hop_num; in hns_roce_check_whether_mhop()
72 hop_num = hr_dev->caps.mtt_hop_num; in hns_roce_check_whether_mhop()
[all …]
Dhns_roce_hw_v2.h135 #define check_whether_last_step(hop_num, step_idx) \ argument
136 ((step_idx == 0 && hop_num == HNS_ROCE_HOP_NUM_0) || \
137 (step_idx == 1 && hop_num == 1) || \
138 (step_idx == 2 && hop_num == 2))
Dhns_roce_hw_v2.c3048 u32 hop_num; in hns_roce_v2_set_hem() local
3058 hop_num = mhop.hop_num; in hns_roce_v2_set_hem()
3061 if (hop_num == 2) { in hns_roce_v2_set_hem()
3065 } else if (hop_num == 1) { in hns_roce_v2_set_hem()
3067 } else if (hop_num == HNS_ROCE_HOP_NUM_0) { in hns_roce_v2_set_hem()
3082 if (check_whether_last_step(hop_num, step_idx)) { in hns_roce_v2_set_hem()
3096 else if (step_idx == 1 && hop_num == 2) in hns_roce_v2_set_hem()
5004 if (eq->hop_num == HNS_ROCE_HOP_NUM_0) in mhop_get_aeqe()
5016 if (!eq->hop_num) in next_aeqe_sw_v2()
5134 if (eq->hop_num == HNS_ROCE_HOP_NUM_0) in mhop_get_ceqe()
[all …]
Dhns_roce_device.h773 int hop_num; member
/Linux-v5.4/drivers/crypto/hisilicon/
Dqm.c149 #define QM_MK_CQC_DW3_V1(hop_num, pg_sz, buf_sz, cqe_sz) \ argument
150 (((hop_num) << QM_CQ_HOP_NUM_SHIFT) | \
163 #define QM_MK_SQC_DW3_V1(hop_num, pg_sz, buf_sz, sqe_sz) \ argument
164 (((hop_num) << QM_SQ_HOP_NUM_SHIFT) | \