/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/ |
H A D | hns_roce_pd.c | 48 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_alloc_pd() 78 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_dealloc_pd() 148 struct hns_roce_dev *hr_dev = to_hr_dev(ib_xrcd->device); in hns_roce_alloc_xrcd() 164 struct hns_roce_dev *hr_dev = to_hr_dev(ib_xrcd->device); in hns_roce_dealloc_xrcd()
|
H A D | hns_roce_restrack.c | 45 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_fill_res_cq_entry_raw() 98 struct hns_roce_dev *hr_dev = to_hr_dev(ib_qp->device); in hns_roce_fill_res_qp_entry_raw() 147 struct hns_roce_dev *hr_dev = to_hr_dev(ib_mr->device); in hns_roce_fill_res_mr_entry_raw()
|
H A D | hns_roce_main.c | 65 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_add_gid() 79 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_del_gid() 167 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_device() 216 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_port() 289 spin_lock_irqsave(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device() 291 spin_unlock_irqrestore(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device() 361 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_alloc_ucontext() 433 struct hns_roce_dev *hr_dev = to_hr_dev(ibcontext->device); in hns_roce_dealloc_ucontext() 495 if (to_hr_dev(ib_dev)->caps.flags & HNS_ROCE_CAP_FLAG_ROCE_V1_V2) in hns_roce_port_immutable() 507 u64 fw_ver = to_hr_dev(devic in hns_roce_get_fw_ver() [all...] |
H A D | hns_roce_srq.c | 37 struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device); in hns_roce_ib_srq_event() 293 struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device); in set_srq_basic_param() 394 struct hns_roce_dev *hr_dev = to_hr_dev(ib_srq->device); in hns_roce_create_srq() 446 struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device); in hns_roce_destroy_srq()
|
H A D | hns_roce_cq.c | 317 struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device); in set_cq_param() 333 struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device); in set_cqe_size() 359 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_create_cq() 438 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_destroy_cq()
|
H A D | hns_roce_mr.c | 189 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_get_dma_mr() 226 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_reg_user_mr() 270 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_rereg_user_mr() 341 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_dereg_mr() 356 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_alloc_mr() 420 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_map_mr_sg() 530 struct hns_roce_dev *hr_dev = to_hr_dev(ibmw->device); in hns_roce_alloc_mw() 566 struct hns_roce_dev *hr_dev = to_hr_dev(ibmw->device); in hns_roce_dealloc_mw()
|
H A D | hns_roce_ah.c | 59 struct hns_roce_dev *hr_dev = to_hr_dev(ibah->device); in hns_roce_create_ah()
|
H A D | hns_roce_hw_v2.c | 194 struct ib_device *ibdev = &(to_hr_dev(qp->ibqp.device))->ib_dev; in fill_ext_sge_inl_data() 270 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in check_inl_data_len() 287 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in set_rc_inl() 440 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in fill_ud_av() 573 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in set_rc_wqe() 692 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_send() 817 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_recv() 955 struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device); in hns_roce_v2_post_srq_recv() 3365 struct hns_roce_dev *hr_dev = to_hr_dev(hr_qp->ibqp.device); in free_mr_post_send_lp_wqe() 3489 struct hns_roce_dev *hr_dev = to_hr_dev(hr_c in __hns_roce_v2_cq_clean() [all...] |
H A D | hns_roce_qp.c | 1212 struct hns_roce_dev *hr_dev = to_hr_dev(ibdev); in hns_roce_create_qp() 1278 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_check_qp_attr() 1324 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_modify_qp()
|
H A D | hns_roce_device.h | 981 static inline struct hns_roce_dev *to_hr_dev(struct ib_device *ib_dev) in to_hr_dev() function
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
H A D | hns_roce_pd.c | 66 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() 88 hns_roce_pd_free(to_hr_dev(pd->device), to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
|
H A 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() 299 spin_lock_irqsave(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device() 301 spin_unlock_irqrestore(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device() 313 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() 399 if (to_hr_dev(ib_de in hns_roce_port_immutable() [all...] |
H A D | hns_roce_mr.c | 231 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_get_dma_mr() 247 ret = hns_roce_mr_enable(to_hr_dev(pd->device), mr); in hns_roce_get_dma_mr() 266 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_reg_user_mr() 307 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in rereg_mr_trans() 334 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_rereg_user_mr() 402 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_dereg_mr() 419 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_alloc_mr() 483 struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device); in hns_roce_map_mr_sg() 593 struct hns_roce_dev *hr_dev = to_hr_dev(ibmw->device); in hns_roce_alloc_mw() 624 struct hns_roce_dev *hr_dev = to_hr_dev(ibm in hns_roce_dealloc_mw() [all...] |
H A D | hns_roce_restrack.c | 82 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_fill_res_cq_entry()
|
H A D | hns_roce_cq.c | 230 struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device); in set_cqe_size() 245 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_create_cq() 336 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_destroy_cq()
|
H A D | hns_roce_srq.c | 37 struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device); in hns_roce_ib_srq_event() 287 struct hns_roce_dev *hr_dev = to_hr_dev(ib_srq->device); in hns_roce_create_srq() 374 struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device); in hns_roce_destroy_srq()
|
H A D | hns_roce_ah.c | 60 struct hns_roce_dev *hr_dev = to_hr_dev(ibah->device); in hns_roce_create_ah()
|
H A D | hns_roce_hw_v2.c | 169 struct ib_device *ibdev = &(to_hr_dev(qp->ibqp.device))->ib_dev; in fill_ext_sge_inl_data() 247 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in check_inl_data_len() 264 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in set_rc_inl() 435 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in set_ud_wqe() 645 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_send() 730 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_recv() 867 struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device); in hns_roce_v2_post_srq_recv() 3127 struct hns_roce_dev *hr_dev = to_hr_dev(ibcq->device); in hns_roce_v2_req_notify_cq() 3309 struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device); in hns_roce_v2_poll_one() 3517 struct hns_roce_dev *hr_dev = to_hr_dev(ibc in hns_roce_v2_poll_cq() [all...] |
H A D | hns_roce_hw_v1.c | 65 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_send() 349 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_recv() 405 reg_val = roce_read(to_hr_dev(ibqp->device), in hns_roce_v1_post_recv() 414 roce_write(to_hr_dev(ibqp->device), in hns_roce_v1_post_recv() 998 hr_dev = to_hr_dev(lp_qp_work->ib_dev); in hns_roce_v1_recreate_lp_qp_work_fn() 1052 struct hns_roce_dev *hr_dev = to_hr_dev(hr_qp->ibqp.device); in hns_roce_v1_send_lp_wqe() 1081 struct hns_roce_dev *hr_dev = to_hr_dev(mr_work->ib_dev); in hns_roce_v1_mr_free_work_fn() 2182 struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device); in hns_roce_v1_poll_one() 2577 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_m_sqp() 2736 struct hns_roce_dev *hr_dev = to_hr_dev(ibq in hns_roce_v1_m_qp() [all...] |
H A D | hns_roce_qp.c | 1024 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_create_qp() 1102 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_check_qp_attr() 1148 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_modify_qp()
|
H A D | hns_roce_device.h | 1013 static inline struct hns_roce_dev *to_hr_dev(struct ib_device *ib_dev) in to_hr_dev() function
|