Lines Matching refs:kqp

1567 	rib_qp_t	*kqp = NULL;  in rib_clnt_create_chan()  local
1574 kqp = kmem_zalloc(sizeof (rib_qp_t), KM_SLEEP); in rib_clnt_create_chan()
1575 conn = qptoc(kqp); in rib_clnt_create_chan()
1576 kqp->hca = hca; in rib_clnt_create_chan()
1577 kqp->rdmaconn.c_rdmamod = &rib_mod; in rib_clnt_create_chan()
1578 kqp->rdmaconn.c_private = (caddr_t)kqp; in rib_clnt_create_chan()
1580 kqp->mode = RIB_CLIENT; in rib_clnt_create_chan()
1581 kqp->chan_flags = IBT_BLOCKING; in rib_clnt_create_chan()
1588 cv_init(&kqp->cb_conn_cv, NULL, CV_DEFAULT, NULL); in rib_clnt_create_chan()
1589 cv_init(&kqp->posted_rbufs_cv, NULL, CV_DEFAULT, NULL); in rib_clnt_create_chan()
1590 mutex_init(&kqp->posted_rbufs_lock, NULL, MUTEX_DRIVER, hca->iblock); in rib_clnt_create_chan()
1591 cv_init(&kqp->send_rbufs_cv, NULL, CV_DEFAULT, NULL); in rib_clnt_create_chan()
1592 mutex_init(&kqp->send_rbufs_lock, NULL, MUTEX_DRIVER, hca->iblock); in rib_clnt_create_chan()
1593 mutex_init(&kqp->replylist_lock, NULL, MUTEX_DRIVER, hca->iblock); in rib_clnt_create_chan()
1594 mutex_init(&kqp->rdlist_lock, NULL, MUTEX_DEFAULT, hca->iblock); in rib_clnt_create_chan()
1595 mutex_init(&kqp->cb_lock, NULL, MUTEX_DRIVER, hca->iblock); in rib_clnt_create_chan()
1596 cv_init(&kqp->rdmaconn.c_cv, NULL, CV_DEFAULT, NULL); in rib_clnt_create_chan()
1597 mutex_init(&kqp->rdmaconn.c_lock, NULL, MUTEX_DRIVER, hca->iblock); in rib_clnt_create_chan()
1602 kqp->rdmaconn.c_cc_type = RDMA_CC_CLNT; in rib_clnt_create_chan()
1603 cc_info = &kqp->rdmaconn.rdma_conn_cred_ctrl_u.c_clnt_cc; in rib_clnt_create_chan()
1608 *qp = kqp; in rib_clnt_create_chan()
1616 rib_qp_t *kqp = NULL; in rib_svc_create_chan() local
1624 kqp = kmem_zalloc(sizeof (rib_qp_t), KM_SLEEP); in rib_svc_create_chan()
1625 kqp->hca = hca; in rib_svc_create_chan()
1626 kqp->port_num = port; in rib_svc_create_chan()
1627 kqp->rdmaconn.c_rdmamod = &rib_mod; in rib_svc_create_chan()
1628 kqp->rdmaconn.c_private = (caddr_t)kqp; in rib_svc_create_chan()
1649 IBT_ACHAN_NO_FLAGS, &qp_attr, &kqp->qp_hdl, in rib_svc_create_chan()
1663 kqp->mode = RIB_SERVER; in rib_svc_create_chan()
1664 kqp->chan_flags = IBT_BLOCKING; in rib_svc_create_chan()
1665 kqp->q = q; /* server ONLY */ in rib_svc_create_chan()
1667 cv_init(&kqp->cb_conn_cv, NULL, CV_DEFAULT, NULL); in rib_svc_create_chan()
1668 cv_init(&kqp->posted_rbufs_cv, NULL, CV_DEFAULT, NULL); in rib_svc_create_chan()
1669 mutex_init(&kqp->replylist_lock, NULL, MUTEX_DEFAULT, hca->iblock); in rib_svc_create_chan()
1670 mutex_init(&kqp->posted_rbufs_lock, NULL, MUTEX_DRIVER, hca->iblock); in rib_svc_create_chan()
1671 cv_init(&kqp->send_rbufs_cv, NULL, CV_DEFAULT, NULL); in rib_svc_create_chan()
1672 mutex_init(&kqp->send_rbufs_lock, NULL, MUTEX_DRIVER, hca->iblock); in rib_svc_create_chan()
1673 mutex_init(&kqp->rdlist_lock, NULL, MUTEX_DEFAULT, hca->iblock); in rib_svc_create_chan()
1674 mutex_init(&kqp->cb_lock, NULL, MUTEX_DRIVER, hca->iblock); in rib_svc_create_chan()
1675 cv_init(&kqp->rdmaconn.c_cv, NULL, CV_DEFAULT, NULL); in rib_svc_create_chan()
1676 mutex_init(&kqp->rdmaconn.c_lock, NULL, MUTEX_DRIVER, hca->iblock); in rib_svc_create_chan()
1680 ibt_set_chan_private(kqp->qp_hdl, (void *)kqp); in rib_svc_create_chan()
1681 kqp->rdmaconn.c_state = C_CONNECTED; in rib_svc_create_chan()
1687 kqp->rdmaconn.c_cc_type = RDMA_CC_SRV; in rib_svc_create_chan()
1688 cc_info = &kqp->rdmaconn.rdma_conn_cred_ctrl_u.c_srv_cc; in rib_svc_create_chan()
1693 *qp = kqp; in rib_svc_create_chan()
1697 if (kqp) in rib_svc_create_chan()
1698 kmem_free(kqp, sizeof (rib_qp_t)); in rib_svc_create_chan()