Home
last modified time | relevance | path

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

/drivers/infiniband/hw/hns/
Dhns_roce_hem.h63 #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
Dhns_roce_hem.c51 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()
76 hop_num = hr_dev->caps.gmv_hop_num; in hns_roce_check_whether_mhop()
82 return hop_num ? true : false; in hns_roce_check_whether_mhop()
[all …]
Dhns_roce_hw_v2.h146 #define check_whether_last_step(hop_num, step_idx) \ argument
147 ((step_idx == 0 && hop_num == HNS_ROCE_HOP_NUM_0) || \
148 (step_idx == 1 && hop_num == 1) || \
149 (step_idx == 2 && hop_num == 2))
Dhns_roce_hw_v2.c2044 static void calc_pg_sz(u32 obj_num, u32 obj_size, u32 hop_num, u32 ctx_bt_num, in calc_pg_sz() argument
2055 switch (hop_num) { in calc_pg_sz()
2076 hop_num); in calc_pg_sz()
3893 u32 hop_num; in hns_roce_v2_set_hem() local
3902 hop_num = mhop.hop_num; in hns_roce_v2_set_hem()
3905 if (hop_num == 2) { in hns_roce_v2_set_hem()
3909 } else if (hop_num == 1) { in hns_roce_v2_set_hem()
3911 } else if (hop_num == HNS_ROCE_HOP_NUM_0) { in hns_roce_v2_set_hem()
3918 if (check_whether_last_step(hop_num, step_idx)) { in hns_roce_v2_set_hem()
3929 else if (step_idx == 1 && hop_num == 2) in hns_roce_v2_set_hem()
[all …]
Dhns_roce_device.h726 int hop_num; member
/drivers/misc/habanalabs/common/mmu/
Dmmu_v1.c850 int hop_num, u64 hop_addr, u64 virt_addr) in get_hop_pte_addr() argument
852 switch (hop_num) { in get_hop_pte_addr()
/drivers/crypto/hisilicon/
Dqm.c275 #define QM_MK_CQC_DW3_V1(hop_num, pg_sz, buf_sz, cqe_sz) \ argument
276 (((hop_num) << QM_CQ_HOP_NUM_SHIFT) | \
289 #define QM_MK_SQC_DW3_V1(hop_num, pg_sz, buf_sz, sqe_sz) \ argument
290 (((hop_num) << QM_SQ_HOP_NUM_SHIFT) | \