Searched refs:hop_num (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/infiniband/hw/hns/ |
A 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
|
A D | hns_roce_hem.c | 51 int hop_num = 0; in hns_roce_check_whether_mhop() local 82 return hop_num ? true : false; in hns_roce_check_whether_mhop() 471 if (mhop->hop_num == 2) in alloc_mhop_hem() 473 else if (mhop->hop_num == 1) in alloc_mhop_hem() 515 step_idx = mhop->hop_num; in set_mhop_hem() 620 u32 hop_num = mhop->hop_num; in clear_mhop_hem() local 644 step_idx = hop_num; in clear_mhop_hem() 747 if (mhop.hop_num == 2) in hns_roce_table_find() 755 if (mhop.hop_num == 2) in hns_roce_table_find() 807 u32 hop_num; in hns_roce_init_hem_table() local [all …]
|
A D | hns_roce_hw_v2.h | 146 #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))
|
A D | hns_roce_hw_v2.c | 2029 switch (hop_num) { in calc_pg_sz() 2050 hop_num); in calc_pg_sz() 3904 u32 hop_num; in hns_roce_v2_set_hem() local 3913 hop_num = mhop.hop_num; in hns_roce_v2_set_hem() 3916 if (hop_num == 2) { in hns_roce_v2_set_hem() 3920 } else if (hop_num == 1) { in hns_roce_v2_set_hem() 3922 } else if (hop_num == HNS_ROCE_HOP_NUM_0) { in hns_roce_v2_set_hem() 3940 else if (step_idx == 1 && hop_num == 2) in hns_roce_v2_set_hem() 5970 eq->hop_num = 0; in alloc_eq_buf() 5972 eq->hop_num = hr_dev->caps.eqe_hop_num; in alloc_eq_buf() [all …]
|
A D | hns_roce_device.h | 732 int hop_num; member
|
/linux/drivers/misc/habanalabs/common/mmu/ |
A D | mmu_v1.c | 850 int hop_num, u64 hop_addr, u64 virt_addr) in get_hop_pte_addr() argument 852 switch (hop_num) { in get_hop_pte_addr()
|
/linux/drivers/crypto/hisilicon/ |
A D | qm.c | 277 #define QM_MK_CQC_DW3_V1(hop_num, pg_sz, buf_sz, cqe_sz) \ argument 278 (((hop_num) << QM_CQ_HOP_NUM_SHIFT) | \ 291 #define QM_MK_SQC_DW3_V1(hop_num, pg_sz, buf_sz, sqe_sz) \ argument 292 (((hop_num) << QM_SQ_HOP_NUM_SHIFT) | \
|
Completed in 58 milliseconds