Home
last modified time | relevance | path

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

12

/drivers/infiniband/hw/usnic/
Dusnic_ib.h60 struct ib_pd ibpd; member
109 struct usnic_ib_pd *to_upd(struct ib_pd *ibpd) in to_upd() argument
111 return container_of(ibpd, struct usnic_ib_pd, ibpd); in to_upd()
/drivers/staging/rdma/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_verbs.c496 uctx->cntxt_pd->ibpd.device = &dev->ibdev; in ocrdma_alloc_ucontext_pd()
504 struct ocrdma_dev *dev = get_ocrdma_dev(pd->ibpd.device); in ocrdma_dealloc_ucontext_pd()
740 return &pd->ibpd; in ocrdma_alloc_pd()
752 int ocrdma_dealloc_pd(struct ib_pd *ibpd) in ocrdma_dealloc_pd() argument
754 struct ocrdma_pd *pd = get_ocrdma_pd(ibpd); in ocrdma_dealloc_pd()
755 struct ocrdma_dev *dev = get_ocrdma_dev(ibpd->device); in ocrdma_dealloc_pd()
802 struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *ibpd, int acc) in ocrdma_get_dma_mr() argument
806 struct ocrdma_pd *pd = get_ocrdma_pd(ibpd); in ocrdma_get_dma_mr()
807 struct ocrdma_dev *dev = get_ocrdma_dev(ibpd->device); in ocrdma_get_dma_mr()
953 struct ib_mr *ocrdma_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 len, in ocrdma_reg_user_mr() argument
[all …]
Docrdma_ah.c114 struct ib_ah *ocrdma_create_ah(struct ib_pd *ibpd, struct ib_ah_attr *attr) in ocrdma_create_ah() argument
122 struct ocrdma_pd *pd = get_ocrdma_pd(ibpd); in ocrdma_create_ah()
123 struct ocrdma_dev *dev = get_ocrdma_dev(ibpd->device); in ocrdma_create_ah()
Docrdma.h349 struct ib_pd ibpd; member
469 static inline struct ocrdma_pd *get_ocrdma_pd(struct ib_pd *ibpd) in get_ocrdma_pd() argument
471 return container_of(ibpd, struct ocrdma_pd, ibpd); in get_ocrdma_pd()
/drivers/staging/rdma/ipath/
Dipath_verbs.h172 struct ib_pd ibpd; member
666 static inline struct ipath_pd *to_ipd(struct ib_pd *ibpd) in to_ipd() argument
668 return container_of(ibpd, struct ipath_pd, ibpd); in to_ipd()
744 struct ib_qp *ipath_create_qp(struct ib_pd *ibpd,
802 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()
/drivers/staging/rdma/hfi1/
Dkeys.c192 struct hfi1_ibdev *dev = to_idev(pd->ibpd.device); in hfi1_lkey_ok()
212 if (unlikely(!mr || mr->lkey != sge->lkey || mr->pd != &pd->ibpd)) in hfi1_lkey_ok()
289 struct hfi1_ibdev *dev = to_idev(pd->ibpd.device); in hfi1_rkey_ok()
Dsrq.c118 struct ib_srq *hfi1_create_srq(struct ib_pd *ibpd, in hfi1_create_srq() argument
122 struct hfi1_ibdev *dev = to_idev(ibpd->device); in hfi1_create_srq()
168 hfi1_create_mmap_info(dev, s, ibpd->uobject->context, in hfi1_create_srq()
Dverbs.h238 struct ib_pd ibpd; member
805 static inline struct hfi1_pd *to_ipd(struct ib_pd *ibpd) in to_ipd() argument
807 return container_of(ibpd, struct hfi1_pd, ibpd); in to_ipd()
979 struct ib_srq *hfi1_create_srq(struct ib_pd *ibpd,
Dqp.h179 struct ib_qp *hfi1_create_qp(struct ib_pd *ibpd,
/drivers/infiniband/hw/qib/
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_verbs.h226 struct ib_pd ibpd; member
821 static inline struct qib_pd *to_ipd(struct ib_pd *ibpd) in to_ipd() argument
823 return container_of(ibpd, struct qib_pd, ibpd); in to_ipd()
920 struct ib_qp *qib_create_qp(struct ib_pd *ibpd,
1002 struct ib_srq *qib_create_srq(struct ib_pd *ibpd,
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()
/drivers/infiniband/hw/mlx5/
Dmlx5_ib.h104 struct ib_pd ibpd; member
466 static inline struct mlx5_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() argument
468 return container_of(ibpd, struct mlx5_ib_pd, ibpd); in to_mpd()
/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.c59 static struct ib_mw *nes_alloc_mw(struct ib_pd *ibpd, enum ib_mw_type type) in nes_alloc_mw() argument
61 struct nes_pd *nespd = to_nespd(ibpd); in nes_alloc_mw()
62 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_alloc_mw()
381 static struct ib_mr *nes_alloc_mr(struct ib_pd *ibpd, in nes_alloc_mr() argument
385 struct nes_pd *nespd = to_nespd(ibpd); in nes_alloc_mr()
386 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_alloc_mr()
809 return &nespd->ibpd; in nes_alloc_pd()
816 static int nes_dealloc_pd(struct ib_pd *ibpd) in nes_dealloc_pd() argument
819 struct nes_pd *nespd = to_nespd(ibpd); in nes_dealloc_pd()
820 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_dealloc_pd()
[all …]
Dnes_verbs.h66 struct ib_pd ibpd; member
/drivers/staging/rdma/ehca/
Dehca_main.c744 struct ib_pd *ibpd; in ehca_probe() local
807 ibpd = ehca_alloc_pd(&shca->ib_device, (void *)(-1), NULL); in ehca_probe()
808 if (IS_ERR(ibpd)) { in ehca_probe()
810 ret = PTR_ERR(ibpd); in ehca_probe()
814 shca->pd = container_of(ibpd, struct ehca_pd, ib_pd); in ehca_probe()
/drivers/infiniband/hw/mlx4/
Dmlx4_ib.h94 struct ib_pd ibpd; member
620 static inline struct mlx4_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() argument
622 return container_of(ibpd, struct mlx4_ib_pd, ibpd); in to_mpd()
/drivers/infiniband/hw/cxgb4/
Diw_cxgb4.h355 struct ib_pd ibpd; member
360 static inline struct c4iw_pd *to_c4iw_pd(struct ib_pd *ibpd) in to_c4iw_pd() argument
362 return container_of(ibpd, struct c4iw_pd, ibpd); in to_c4iw_pd()

12