• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/hw/cxgb3/

Lines Matching defs:qhp

855 	struct iwch_qp *qhp;
859 qhp = to_iwch_qp(ib_qp);
860 rhp = qhp->rhp;
863 iwch_modify_qp(rhp, qhp, IWCH_QP_ATTR_NEXT_STATE, &attrs, 0);
864 wait_event(qhp->wait, !qhp->ep);
866 remove_handle(rhp, &rhp->qpidr, qhp->wq.qpid);
868 atomic_dec(&qhp->refcnt);
869 wait_event(qhp->wait, !atomic_read(&qhp->refcnt));
873 cxio_destroy_qp(&rhp->rdev, &qhp->wq,
876 PDBG("%s ib_qp %p qpid 0x%0x qhp %p\n", __func__,
877 ib_qp, qhp->wq.qpid, qhp);
878 kfree(qhp);
887 struct iwch_qp *qhp;
938 qhp = kzalloc(sizeof(*qhp), GFP_KERNEL);
939 if (!qhp)
941 qhp->wq.size_log2 = ilog2(wqsize);
942 qhp->wq.rq_size_log2 = ilog2(rqsize);
943 qhp->wq.sq_size_log2 = ilog2(sqsize);
944 if (cxio_create_qp(&rhp->rdev, !udata, &qhp->wq,
946 kfree(qhp);
954 qhp->rhp = rhp;
955 qhp->attr.pd = php->pdid;
956 qhp->attr.scq = ((struct iwch_cq *) attrs->send_cq)->cq.cqid;
957 qhp->attr.rcq = ((struct iwch_cq *) attrs->recv_cq)->cq.cqid;
958 qhp->attr.sq_num_entries = attrs->cap.max_send_wr;
959 qhp->attr.rq_num_entries = attrs->cap.max_recv_wr;
960 qhp->attr.sq_max_sges = attrs->cap.max_send_sge;
961 qhp->attr.sq_max_sges_rdma_write = attrs->cap.max_send_sge;
962 qhp->attr.rq_max_sges = attrs->cap.max_recv_sge;
963 qhp->attr.state = IWCH_QP_STATE_IDLE;
964 qhp->attr.next_state = IWCH_QP_STATE_IDLE;
966 qhp->attr.enable_rdma_read = 1;
967 qhp->attr.enable_rdma_write = 1;
968 qhp->attr.enable_bind = 1;
969 qhp->attr.max_ord = 1;
970 qhp->attr.max_ird = 1;
972 spin_lock_init(&qhp->lock);
973 init_waitqueue_head(&qhp->wait);
974 atomic_set(&qhp->refcnt, 1);
976 if (insert_handle(rhp, &rhp->qpidr, qhp, qhp->wq.qpid)) {
977 cxio_destroy_qp(&rhp->rdev, &qhp->wq,
979 kfree(qhp);
989 iwch_destroy_qp(&qhp->ibqp);
996 iwch_destroy_qp(&qhp->ibqp);
1000 uresp.qpid = qhp->wq.qpid;
1001 uresp.size_log2 = qhp->wq.size_log2;
1002 uresp.sq_size_log2 = qhp->wq.sq_size_log2;
1003 uresp.rq_size_log2 = qhp->wq.rq_size_log2;
1013 iwch_destroy_qp(&qhp->ibqp);
1017 mm1->addr = virt_to_phys(qhp->wq.queue);
1021 mm2->addr = qhp->wq.udb & PAGE_MASK;
1025 qhp->ibqp.qp_num = qhp->wq.qpid;
1026 init_timer(&(qhp->timer));
1028 "qpid 0x%0x qhp %p dma_addr 0x%llx size %d rq_addr 0x%x\n",
1029 __func__, qhp->attr.sq_num_entries, qhp->attr.rq_num_entries,
1030 qhp->wq.qpid, qhp, (unsigned long long) qhp->wq.dma_addr,
1031 1 << qhp->wq.size_log2, qhp->wq.rq_addr);
1032 return &qhp->ibqp;
1039 struct iwch_qp *qhp;
1054 qhp = to_iwch_qp(ibqp);
1055 rhp = qhp->rhp;
1071 return iwch_modify_qp(rhp, qhp, mask, &attrs, 0);