Home
last modified time | relevance | path

Searched refs:to_hr_dev (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_pd.c64 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_alloc_pd()
73 ret = hns_roce_pd_alloc(to_hr_dev(ib_dev), &pd->pdn); in hns_roce_alloc_pd()
84 hns_roce_pd_free(to_hr_dev(ib_dev), pd->pdn); in hns_roce_alloc_pd()
97 hns_roce_pd_free(to_hr_dev(pd->device), to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
Dhns_roce_main.c79 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_add_gid()
98 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_del_gid()
195 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_device()
228 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_get_netdev()
247 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_port()
312 spin_lock_irqsave(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device()
314 spin_unlock_irqrestore(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device()
332 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_alloc_ucontext()
373 hns_roce_uar_free(to_hr_dev(ibcontext->device), &context->uar); in hns_roce_dealloc_ucontext()
426 struct hns_roce_dev *hr_dev = to_hr_dev(context->device); in hns_roce_mmap()
[all …]
Dhns_roce_cq.c56 hr_dev = to_hr_dev(ibcq->device); in hns_roce_ib_cq_event()
315 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_ib_create_cq()
456 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_ib_destroy_cq()
Dhns_roce_ah.c46 struct hns_roce_dev *hr_dev = to_hr_dev(ibpd->device); in hns_roce_create_ah()
Dhns_roce_mr.c859 ret = hns_roce_mr_alloc(to_hr_dev(pd->device), to_hr_pd(pd)->pdn, 0, in hns_roce_get_dma_mr()
864 ret = hns_roce_mr_enable(to_hr_dev(pd->device), mr); in hns_roce_get_dma_mr()
874 hns_roce_mr_free(to_hr_dev(pd->device), mr); in hns_roce_get_dma_mr()
990 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_reg_user_mr()
1066 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_rereg_user_mr()
1187 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_dereg_mr()
Dhns_roce_hw_v1.c65 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_send()
363 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_recv()
414 reg_val = roce_read(to_hr_dev(ibqp->device), in hns_roce_v1_post_recv()
423 roce_write(to_hr_dev(ibqp->device), in hns_roce_v1_post_recv()
943 hr_dev = to_hr_dev(lp_qp_work->ib_dev); in hns_roce_v1_recreate_lp_qp_work_fn()
1000 struct hns_roce_dev *hr_dev = to_hr_dev(hr_qp->ibqp.device); in hns_roce_v1_send_lp_wqe()
1042 hr_dev = to_hr_dev(mr_work->ib_dev); in hns_roce_v1_mr_free_work_fn()
2233 struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device); in hns_roce_v1_poll_one()
2611 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_m_sqp()
2756 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_m_qp()
[all …]
Dhns_roce_hw_v2.c109 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in set_rwqe_data_seg()
177 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_send()
558 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_recv()
2074 hr_dev = to_hr_dev(hr_cq->ib_cq.device); in hns_roce_v2_poll_one()
2520 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in modify_qp_reset_to_init()
2973 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in modify_qp_init_to_rtr()
3246 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in modify_qp_rtr_to_rts()
3443 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_modify_qp()
3701 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_query_qp()
3903 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_destroy_qp()
[all …]
Dhns_roce_qp.c841 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_create_qp()
929 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_modify_qp()
Dhns_roce_device.h840 static inline struct hns_roce_dev *to_hr_dev(struct ib_device *ib_dev) in to_hr_dev() function