Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_mr.c300 u32 mhop_num; in hns_roce_loop_free() local
306 mhop_num = hr_dev->caps.pbl_hop_num; in hns_roce_loop_free()
309 if (mhop_num == 3 && err_loop_index == 2) { in hns_roce_loop_free()
324 } else if (mhop_num == 3 && err_loop_index == 1) { in hns_roce_loop_free()
336 } else if (mhop_num == 2 && err_loop_index == 1) { in hns_roce_loop_free()
342 mhop_num, err_loop_index); in hns_roce_loop_free()
512 u32 mhop_num; in hns_roce_mhop_alloc() local
514 mhop_num = (mr->type == MR_TYPE_FRMR ? 1 : hr_dev->caps.pbl_hop_num); in hns_roce_mhop_alloc()
517 if (mhop_num == HNS_ROCE_HOP_NUM_0) in hns_roce_mhop_alloc()
520 if (mhop_num == 1) in hns_roce_mhop_alloc()
[all …]
Dhns_roce_hw_v2.c5319 u32 mhop_num; in hns_roce_mhop_free_eq() local
5324 mhop_num = hr_dev->caps.eqe_hop_num; in hns_roce_mhop_free_eq()
5328 if (mhop_num == HNS_ROCE_HOP_NUM_0) { in hns_roce_mhop_free_eq()
5335 if (mhop_num == 1) { in hns_roce_mhop_free_eq()
5347 } else if (mhop_num == 2) { in hns_roce_mhop_free_eq()
5555 u32 mhop_num; in hns_roce_mhop_alloc_eq() local
5565 mhop_num = hr_dev->caps.eqe_hop_num; in hns_roce_mhop_alloc_eq()
5573 if (mhop_num == HNS_ROCE_HOP_NUM_0) { in hns_roce_mhop_alloc_eq()
5597 if (mhop_num == 2) { in hns_roce_mhop_alloc_eq()
5612 if (mhop_num == 1) { in hns_roce_mhop_alloc_eq()
[all …]