Lines Matching refs:rhp

720 			cxgb4_read_sge_timestamp(qhp->rhp->rdev.lldi.ports[0]);
744 cxgb4_read_sge_timestamp(qhp->rhp->rdev.lldi.ports[0]);
807 PBL_OFF(&mhp->rhp->rdev, mhp->attr.pbl_addr)>>3));
916 xa_lock_irqsave(&qhp->rhp->qps, flags);
918 if (qhp->rhp->db_state == NORMAL)
921 add_to_fc_list(&qhp->rhp->db_fc_list, &qhp->db_fc_entry);
925 xa_unlock_irqrestore(&qhp->rhp->qps, flags);
933 xa_lock_irqsave(&qhp->rhp->qps, flags);
935 if (qhp->rhp->db_state == NORMAL)
938 add_to_fc_list(&qhp->rhp->db_fc_list, &qhp->db_fc_entry);
942 xa_unlock_irqrestore(&qhp->rhp->qps, flags);
1085 struct c4iw_dev *rhp;
1093 rhp = qhp->rhp;
1121 if (qhp->rhp->rdev.lldi.write_cmpl_support &&
1122 CHELSIO_CHIP_VERSION(qhp->rhp->rdev.lldi.adapter_type) >=
1164 if (unlikely(!rhp->rdev.lldi.write_w_imm_support)) {
1180 c4iw_invalidate_mr(rhp, wr->sg_list[0].lkey);
1196 if (rhp->rdev.lldi.fr_nsmr_tpte_wr_support &&
1205 rhp->rdev.lldi.ulptx_memwrite_dsgl);
1218 c4iw_invalidate_mr(rhp, wr->ex.invalidate_rkey);
1237 rhp->rdev.lldi.ports[0]);
1251 if (!rhp->rdev.status_page->db_off) {
1312 qhp->rhp->rdev.lldi.ports[0]);
1331 if (!qhp->rhp->rdev.status_page->db_off) {
1590 c4iw_ofld_send(&qhp->rhp->rdev, skb);
1692 static int rdma_fini(struct c4iw_dev *rhp, struct c4iw_qp *qhp,
1718 ret = c4iw_ref_send_wait(&rhp->rdev, skb, ep->com.wr_waitp,
1749 static int rdma_init(struct c4iw_dev *rhp, struct c4iw_qp *qhp)
1763 ret = alloc_ird(rhp, qhp->attr.max_ird);
1810 rhp->rdev.lldi.vr->rq.start);
1821 ret = c4iw_ref_send_wait(&rhp->rdev, skb, qhp->ep->com.wr_waitp,
1826 free_ird(rhp, qhp->attr.max_ird);
1832 int c4iw_modify_qp(struct c4iw_dev *rhp, struct c4iw_qp *qhp,
1871 if (attrs->max_ird > cur_max_read_depth(rhp)) {
1918 ret = rdma_init(rhp, qhp);
1942 ret = rdma_fini(rhp, qhp, ep);
1958 ret = rdma_fini(rhp, qhp, ep);
2072 struct c4iw_dev *rhp;
2078 rhp = qhp->rhp;
2083 c4iw_modify_qp(rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, &attrs, 1);
2085 c4iw_modify_qp(rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, &attrs, 0);
2088 xa_lock_irq(&rhp->qps);
2089 __xa_erase(&rhp->qps, qhp->wq.sq.qid);
2092 xa_unlock_irq(&rhp->qps);
2093 free_ird(rhp, qhp->attr.max_ird);
2102 destroy_qp(&rhp->rdev, &qhp->wq,
2103 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !qhp->srq);
2113 struct c4iw_dev *rhp;
2130 rhp = php->rhp;
2131 schp = get_chp(rhp, ((struct c4iw_cq *)attrs->send_cq)->cq.cqid);
2132 rchp = get_chp(rhp, ((struct c4iw_cq *)attrs->recv_cq)->cq.cqid);
2140 if (attrs->cap.max_recv_wr > rhp->rdev.hw_queue.t4_max_rq_size)
2147 if (attrs->cap.max_send_wr > rhp->rdev.hw_queue.t4_max_sq_size)
2159 (sqsize + rhp->rdev.hw_queue.t4_eq_status_entries) *
2165 (rqsize + rhp->rdev.hw_queue.t4_eq_status_entries) *
2176 ret = create_qp(&rhp->rdev, &qhp->wq, &schp->cq, &rchp->cq,
2177 ucontext ? &ucontext->uctx : &rhp->rdev.uctx,
2186 qhp->rhp = rhp;
2211 ret = xa_insert_irq(&rhp->qps, qhp->wq.sq.qid, qhp, GFP_KERNEL);
2251 if (rhp->rdev.lldi.write_w_imm_support)
2253 uresp.qid_mask = rhp->rdev.qpmask;
2307 (pci_resource_start(rhp->rdev.lldi.pdev, 0) +
2347 xa_erase_irq(&rhp->qps, qhp->wq.sq.qid);
2349 destroy_qp(&rhp->rdev, &qhp->wq,
2350 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !attrs->srq);
2359 struct c4iw_dev *rhp;
2378 rhp = qhp->rhp;
2403 if (!is_t4(to_c4iw_qp(ibqp)->rhp->rdev.lldi.adapter_type) &&
2407 return c4iw_modify_qp(rhp, qhp, mask, &attrs, 0);
2420 event.device = &srq->rhp->ibdev;
2476 struct c4iw_rdev *rdev = &srq->rhp->rdev;
2513 struct c4iw_rdev *rdev = &srq->rhp->rdev;
2666 struct c4iw_dev *rhp;
2682 rhp = php->rhp;
2684 if (!rhp->rdev.lldi.vr->srq.size)
2686 if (attrs->attr.max_wr > rhp->rdev.hw_queue.t4_max_rq_size)
2704 srq->idx = c4iw_alloc_srq_idx(&rhp->rdev);
2717 srq->rhp = rhp;
2722 (rqsize + rhp->rdev.hw_queue.t4_eq_status_entries) *
2728 &rhp->rdev.uctx, srq->wr_waitp);
2733 if (CHELSIO_CHIP_VERSION(rhp->rdev.lldi.adapter_type) > CHELSIO_T6)
2749 uresp.qid_mask = rhp->rdev.qpmask;
2785 free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx,
2790 c4iw_free_srq_idx(&rhp->rdev, srq->idx);
2798 struct c4iw_dev *rhp;
2803 rhp = srq->rhp;
2808 free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx,
2810 c4iw_free_srq_idx(&rhp->rdev, srq->idx);