Home
last modified time | relevance | path

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

/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.h59 #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 Dhns_roce_hem.c50 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()
[all …]