Lines Matching defs:pd

810 	struct ib_pd	*pd;
813 if ((pd = kmem_alloc(sizeof (struct ib_pd), KM_NOSLEEP)) == NULL) {
832 rtn = ibt_alloc_pd(device->hca_hdl, IBT_PD_NO_FLAGS, &pd->ibt_pd);
836 pd->device = device;
838 "ib_alloc_pd: device: 0x%p, pd: 0x%p, ibt_pd: 0x%p, "
839 "rtn: 0x%x", device, pd, pd->ibt_pd, rtn);
840 return (pd);
842 kmem_free(pd, sizeof (struct ib_pd));
845 "ib_alloc_pd: device: 0x%p, pd: 0x%p, ibt_pd: 0x%p => "
846 "ibt_alloc_pd failed w/ 0x%x", device, pd, pd->ibt_pd, rtn);
859 ib_dealloc_pd(struct ib_pd *pd)
861 ofs_client_t *ofs_client = (ofs_client_t *)pd->device->clnt_hdl;
865 if (pd->device->reg_state != IB_DEV_OPEN) {
868 "ib_dealloc_pd: pd: 0x%p => invalid device state (%d)",
869 pd, pd->device->reg_state);
874 "ib_dealloc_pd: pd: 0x%p", pd);
876 rtn = ibt_free_pd(pd->device->hca_hdl, pd->ibt_pd);
881 "ib_dealloc_pd: pd: 0x%p, device: 0x%p, ibt_pd: 0x%p, "
882 "rtn: 0x%x", pd, pd->device, pd->ibt_pd, rtn);
883 kmem_free(pd, sizeof (struct ib_pd));
888 "ib_dealloc_pd: pd: 0x%p => ibt_free_pd failed w/ 0x%x",
889 pd, rtn);
1066 ib_create_qp(struct ib_pd *pd, struct ib_qp_init_attr *qp_init_attr)
1068 ofs_client_t *ofs_client = pd->device->clnt_hdl;
1079 "ib_create_qp: pd: 0x%p => invalid cqs "
1080 "(send_cq=0x%p, recv_cq=0x%p)", pd,
1090 "ib_create_qp: pd: 0x%p => invalid qp_type",
1091 pd, qp_init_attr->qp_type);
1097 "ib_create_qp: pd: 0x%p, init_attr: 0x%p => "
1098 "no sufficient memory", pd, qp_init_attr);
1103 if (pd->device->reg_state != IB_DEV_OPEN) {
1107 "ib_create_qp: pd: 0x%p, init_attr: 0x%p => "
1108 "invalid device state (%d)", pd, qp_init_attr,
1109 pd->device->reg_state);
1114 "ib_create_qp: pd: 0x%p, event_handler: 0x%p, qp_context: 0x%p, "
1119 pd, qp_init_attr->event_handler, qp_init_attr->qp_context,
1138 attrs.qp_pd_hdl = pd->ibt_pd;
1148 rtn = ibt_alloc_qp(pd->device->hca_hdl, IBT_RC_RQP, &attrs,
1152 rtn = ibt_alloc_qp(pd->device->hca_hdl, IBT_UD_RQP, &attrs,
1156 rtn = ibt_alloc_special_qp(pd->device->hca_hdl,
1161 rtn = ibt_alloc_special_qp(pd->device->hca_hdl,
1182 qp->device = pd->device;
1183 qp->pd = pd;
1196 "ib_create_qp: device: 0x%p, pd: 0x%x, init_attr: 0x%p, "
1197 "rtn: 0x%x", pd->device, pd, qp_init_attr, rtn);
1203 "ib_create_qp: device: 0x%p, pd: 0x%x, init_attr: 0x%p => "
1204 "ibt_alloc_(special)_qp failed w/ rtn: 0x%x", pd->device, pd,