Searched refs:to_hr_dev (Results 1 – 11 of 11) sorted by relevance
| /Linux-v5.4/drivers/infiniband/hw/hns/ |
| D | hns_roce_pd.c | 63 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_alloc_pd() 68 ret = hns_roce_pd_alloc(to_hr_dev(ib_dev), &pd->pdn); in hns_roce_alloc_pd() 78 hns_roce_pd_free(to_hr_dev(ib_dev), pd->pdn); in hns_roce_alloc_pd() 89 hns_roce_pd_free(to_hr_dev(pd->device), to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
|
| D | hns_roce_main.c | 78 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_add_gid() 92 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_del_gid() 184 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_device() 229 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_port() 296 spin_lock_irqsave(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device() 298 spin_unlock_irqrestore(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device() 316 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_alloc_ucontext() 349 hns_roce_uar_free(to_hr_dev(ibcontext->device), &context->uar); in hns_roce_dealloc_ucontext() 355 struct hns_roce_dev *hr_dev = to_hr_dev(context->device); in hns_roce_mmap() 397 if (to_hr_dev(ib_dev)->caps.flags & HNS_ROCE_CAP_FLAG_ROCE_V1_V2) in hns_roce_port_immutable()
|
| D | hns_roce_srq.c | 37 struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device); in hns_roce_ib_srq_event() 181 struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device); in create_user_srq() 251 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_create_idx_que() 271 struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device); in create_kernel_srq() 360 struct hns_roce_dev *hr_dev = to_hr_dev(ib_srq->device); in hns_roce_create_srq() 442 struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device); in hns_roce_destroy_srq()
|
| D | hns_roce_mr.c | 997 ret = hns_roce_mr_alloc(to_hr_dev(pd->device), to_hr_pd(pd)->pdn, 0, in hns_roce_get_dma_mr() 1002 ret = hns_roce_mr_enable(to_hr_dev(pd->device), mr); in hns_roce_get_dma_mr() 1012 hns_roce_mr_free(to_hr_dev(pd->device), mr); in hns_roce_get_dma_mr() 1134 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_reg_user_mr() 1214 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in rereg_mr_trans() 1289 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_rereg_user_mr() 1358 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_dereg_mr() 1377 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_alloc_mr() 1418 hns_roce_mr_free(to_hr_dev(pd->device), mr); in hns_roce_alloc_mr() 1515 struct hns_roce_dev *hr_dev = to_hr_dev(ib_pd->device); in hns_roce_alloc_mw() [all …]
|
| D | hns_roce_restrack.c | 83 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_fill_res_cq_entry()
|
| D | hns_roce_ah.c | 45 struct hns_roce_dev *hr_dev = to_hr_dev(ibah->device); in hns_roce_create_ah()
|
| D | hns_roce_cq.c | 57 hr_dev = to_hr_dev(ibcq->device); in hns_roce_ib_cq_event() 413 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_ib_create_cq() 494 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_ib_destroy_cq()
|
| D | hns_roce_hw_v1.c | 65 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_send() 360 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_recv() 411 reg_val = roce_read(to_hr_dev(ibqp->device), in hns_roce_v1_post_recv() 420 roce_write(to_hr_dev(ibqp->device), in hns_roce_v1_post_recv() 950 hr_dev = to_hr_dev(lp_qp_work->ib_dev); in hns_roce_v1_recreate_lp_qp_work_fn() 1007 struct hns_roce_dev *hr_dev = to_hr_dev(hr_qp->ibqp.device); in hns_roce_v1_send_lp_wqe() 1049 hr_dev = to_hr_dev(mr_work->ib_dev); in hns_roce_v1_mr_free_work_fn() 2200 struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device); in hns_roce_v1_poll_one() 2575 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_m_sqp() 2720 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_m_qp() [all …]
|
| D | hns_roce_hw_v2.c | 164 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in set_rwqe_data_seg() 233 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_send() 617 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_recv() 2626 struct hns_roce_dev *hr_dev = to_hr_dev(ibcq->device); in hns_roce_v2_req_notify_cq() 2724 hr_dev = to_hr_dev(hr_cq->ib_cq.device); in hns_roce_v2_poll_one() 3259 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in modify_qp_reset_to_init() 3669 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in modify_qp_init_to_rtr() 3914 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in modify_qp_rtr_to_rts() 4060 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_set_path() 4163 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_set_abs_fields() [all …]
|
| D | hns_roce_qp.c | 1018 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_create_qp() 1128 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_check_qp_attr() 1175 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_modify_qp()
|
| D | hns_roce_device.h | 1049 static inline struct hns_roce_dev *to_hr_dev(struct ib_device *ib_dev) in to_hr_dev() function
|