Lines Matching refs:pd
96 struct mthca_pd *pd,
103 context->state_pd = cpu_to_be32(pd->pd_num);
106 if (pd->ibpd.uobject)
108 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index);
114 struct mthca_pd *pd,
132 if (pd->ibpd.uobject)
134 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index);
137 context->eq_pd = cpu_to_be32(MTHCA_EQ_ASYNC << 24 | pd->pd_num);
147 static int mthca_alloc_srq_buf(struct mthca_dev *dev, struct mthca_pd *pd,
155 if (pd->ibpd.uobject)
164 &srq->queue, &srq->is_direct, pd, 1, &srq->mr);
199 int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd,
239 if (!pd->ibpd.uobject) {
255 err = mthca_alloc_srq_buf(dev, pd, srq);
265 mthca_arbel_init_srq_context(dev, pd, srq, mailbox->buf);
267 mthca_tavor_init_srq_context(dev, pd, srq, mailbox->buf);
309 if (!pd->ibpd.uobject)
316 if (!pd->ibpd.uobject && mthca_is_memfree(dev))