Home
last modified time | relevance | path

Searched refs:ibpd (Results 1 – 25 of 36) sorted by relevance

12

/drivers/infiniband/hw/usnic/
Dusnic_ib.h45 struct ib_pd ibpd; member
94 struct usnic_ib_pd *to_upd(struct ib_pd *ibpd) in to_upd() argument
96 return container_of(ibpd, struct usnic_ib_pd, ibpd); in to_upd()
/drivers/infiniband/hw/amso1100/
Dc2_provider.h69 struct ib_pd ibpd; member
132 static inline struct c2_pd *to_c2pd(struct ib_pd *ibpd) in to_c2pd() argument
134 return container_of(ibpd, struct c2_pd, ibpd); in to_c2pd()
/drivers/infiniband/hw/mthca/
Dmthca_provider.h98 struct ib_pd ibpd; member
314 static inline struct mthca_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() argument
316 return container_of(ibpd, struct mthca_pd, ibpd); in to_mpd()
Dmthca_srq.c106 if (pd->ibpd.uobject) in mthca_tavor_init_srq_context()
108 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); in mthca_tavor_init_srq_context()
132 if (pd->ibpd.uobject) in mthca_arbel_init_srq_context()
134 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); in mthca_arbel_init_srq_context()
155 if (pd->ibpd.uobject) in mthca_alloc_srq_buf()
238 if (!pd->ibpd.uobject) { in mthca_alloc_srq()
300 if (!pd->ibpd.uobject) in mthca_alloc_srq()
307 if (!pd->ibpd.uobject && mthca_is_memfree(dev)) in mthca_alloc_srq()
/drivers/infiniband/hw/cxgb3/
Diwch_provider.h45 struct ib_pd ibpd; member
50 static inline struct iwch_pd *to_iwch_pd(struct ib_pd *ibpd) in to_iwch_pd() argument
52 return container_of(ibpd, struct iwch_pd, ibpd); in to_iwch_pd()
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c91 struct ib_ah *ocrdma_create_ah(struct ib_pd *ibpd, struct ib_ah_attr *attr) in ocrdma_create_ah() argument
96 struct ocrdma_pd *pd = get_ocrdma_pd(ibpd); in ocrdma_create_ah()
97 struct ocrdma_dev *dev = get_ocrdma_dev(ibpd->device); in ocrdma_create_ah()
Docrdma_verbs.c321 uctx->cntxt_pd->ibpd.device = &dev->ibdev; in ocrdma_alloc_ucontext_pd()
330 struct ocrdma_dev *dev = get_ocrdma_dev(pd->ibpd.device); in ocrdma_dealloc_ucontext_pd()
566 return &pd->ibpd; in ocrdma_alloc_pd()
579 int ocrdma_dealloc_pd(struct ib_pd *ibpd) in ocrdma_dealloc_pd() argument
581 struct ocrdma_pd *pd = get_ocrdma_pd(ibpd); in ocrdma_dealloc_pd()
582 struct ocrdma_dev *dev = get_ocrdma_dev(ibpd->device); in ocrdma_dealloc_pd()
629 struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *ibpd, int acc) in ocrdma_get_dma_mr() argument
633 struct ocrdma_pd *pd = get_ocrdma_pd(ibpd); in ocrdma_get_dma_mr()
634 struct ocrdma_dev *dev = get_ocrdma_dev(ibpd->device); in ocrdma_get_dma_mr()
780 struct ib_mr *ocrdma_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 len, in ocrdma_reg_user_mr() argument
[all …]
Docrdma.h294 struct ib_pd ibpd; member
415 static inline struct ocrdma_pd *get_ocrdma_pd(struct ib_pd *ibpd) in get_ocrdma_pd() argument
417 return container_of(ibpd, struct ocrdma_pd, ibpd); in get_ocrdma_pd()
/drivers/infiniband/hw/ipath/
Dipath_verbs.h172 struct ib_pd ibpd; member
660 static inline struct ipath_pd *to_ipd(struct ib_pd *ibpd) in to_ipd() argument
662 return container_of(ibpd, struct ipath_pd, ibpd); in to_ipd()
736 struct ib_qp *ipath_create_qp(struct ib_pd *ibpd,
794 struct ib_srq *ipath_create_srq(struct ib_pd *ibpd,
Dipath_srq.c101 struct ib_srq *ipath_create_srq(struct ib_pd *ibpd, in ipath_create_srq() argument
105 struct ipath_ibdev *dev = to_idev(ibpd->device); in ipath_create_srq()
155 ibpd->uobject->context, in ipath_create_srq()
Dipath_qp.c741 struct ib_qp *ipath_create_qp(struct ib_pd *ibpd, in ipath_create_qp() argument
860 dev = to_idev(ibpd->device); in ipath_create_qp()
901 ibpd->uobject->context, in ipath_create_qp()
Dipath_verbs.c1735 ret = &pd->ibpd; in ipath_alloc_pd()
1741 static int ipath_dealloc_pd(struct ib_pd *ibpd) in ipath_dealloc_pd() argument
1743 struct ipath_pd *pd = to_ipd(ibpd); in ipath_dealloc_pd()
1744 struct ipath_ibdev *dev = to_idev(ibpd->device); in ipath_dealloc_pd()
/drivers/infiniband/hw/mlx5/
Dmlx5_ib.h104 struct ib_pd ibpd; member
417 static inline struct mlx5_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() argument
419 return container_of(ibpd, struct mlx5_ib_pd, ibpd); in to_mpd()
/drivers/infiniband/hw/qib/
Dqib_verbs.h226 struct ib_pd ibpd; member
813 static inline struct qib_pd *to_ipd(struct ib_pd *ibpd) in to_ipd() argument
815 return container_of(ibpd, struct qib_pd, ibpd); in to_ipd()
910 struct ib_qp *qib_create_qp(struct ib_pd *ibpd,
992 struct ib_srq *qib_create_srq(struct ib_pd *ibpd,
Dqib_srq.c101 struct ib_srq *qib_create_srq(struct ib_pd *ibpd, in qib_create_srq() argument
105 struct qib_ibdev *dev = to_idev(ibpd->device); in qib_create_srq()
151 qib_create_mmap_info(dev, s, ibpd->uobject->context, in qib_create_srq()
Dqib_keys.c168 struct qib_ibdev *dev = to_idev(pd->ibpd.device); in qib_lkey_ok()
189 if (unlikely(!mr || mr->lkey != sge->lkey || mr->pd != &pd->ibpd)) in qib_lkey_ok()
267 struct qib_ibdev *dev = to_idev(pd->ibpd.device); in qib_rkey_ok()
Dqib_qp.c975 struct ib_qp *qib_create_qp(struct ib_pd *ibpd, in qib_create_qp() argument
1023 init_attr->port_num > ibpd->device->phys_port_cnt) { in qib_create_qp()
1108 dev = to_idev(ibpd->device); in qib_create_qp()
1148 ibpd->uobject->context, in qib_create_qp()
Dqib_verbs.c1768 ret = &pd->ibpd; in qib_alloc_pd()
1774 static int qib_dealloc_pd(struct ib_pd *ibpd) in qib_dealloc_pd() argument
1776 struct qib_pd *pd = to_ipd(ibpd); in qib_dealloc_pd()
1777 struct qib_ibdev *dev = to_idev(ibpd->device); in qib_dealloc_pd()
/drivers/infiniband/hw/nes/
Dnes.h475 static inline struct nes_pd *to_nespd(struct ib_pd *ibpd) in to_nespd() argument
477 return container_of(ibpd, struct nes_pd, ibpd); in to_nespd()
Dnes_verbs.c58 static struct ib_mw *nes_alloc_mw(struct ib_pd *ibpd, enum ib_mw_type type) in nes_alloc_mw() argument
60 struct nes_pd *nespd = to_nespd(ibpd); in nes_alloc_mw()
61 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_alloc_mw()
380 static struct ib_mr *nes_alloc_fast_reg_mr(struct ib_pd *ibpd, int max_page_list_len) in nes_alloc_fast_reg_mr() argument
382 struct nes_pd *nespd = to_nespd(ibpd); in nes_alloc_fast_reg_mr()
383 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_alloc_fast_reg_mr()
829 return &nespd->ibpd; in nes_alloc_pd()
836 static int nes_dealloc_pd(struct ib_pd *ibpd) in nes_dealloc_pd() argument
839 struct nes_pd *nespd = to_nespd(ibpd); in nes_dealloc_pd()
840 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_dealloc_pd()
[all …]
Dnes_verbs.h66 struct ib_pd ibpd; member
/drivers/infiniband/hw/mlx4/
Dmlx4_ib.h81 struct ib_pd ibpd; member
555 static inline struct mlx4_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() argument
557 return container_of(ibpd, struct mlx4_ib_pd, ibpd); in to_mpd()
/drivers/infiniband/hw/ehca/
Dehca_main.c721 struct ib_pd *ibpd; in ehca_probe() local
784 ibpd = ehca_alloc_pd(&shca->ib_device, (void *)(-1), NULL); in ehca_probe()
785 if (IS_ERR(ibpd)) { in ehca_probe()
787 ret = PTR_ERR(ibpd); in ehca_probe()
791 shca->pd = container_of(ibpd, struct ehca_pd, ib_pd); in ehca_probe()
/drivers/infiniband/hw/cxgb4/
Diw_cxgb4.h357 struct ib_pd ibpd; member
362 static inline struct c4iw_pd *to_c4iw_pd(struct ib_pd *ibpd) in to_c4iw_pd() argument
364 return container_of(ibpd, struct c4iw_pd, ibpd); in to_c4iw_pd()
Dprovider.c269 c4iw_deallocate_pd(&php->ibpd); in c4iw_allocate_pd()
279 return &php->ibpd; in c4iw_allocate_pd()

12