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);
2073 struct c4iw_dev *rhp;
2079 rhp = qhp->rhp;
2084 c4iw_modify_qp(rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, &attrs, 1);
2086 c4iw_modify_qp(rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, &attrs, 0);
2089 xa_lock_irq(&rhp->qps);
2090 __xa_erase(&rhp->qps, qhp->wq.sq.qid);
2093 xa_unlock_irq(&rhp->qps);
2094 free_ird(rhp, qhp->attr.max_ird);
2103 destroy_qp(&rhp->rdev, &qhp->wq,
2104 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !qhp->srq);
2115 struct c4iw_dev *rhp;
2134 rhp = php->rhp;
2135 schp = get_chp(rhp, ((struct c4iw_cq *)attrs->send_cq)->cq.cqid);
2136 rchp = get_chp(rhp, ((struct c4iw_cq *)attrs->recv_cq)->cq.cqid);
2144 if (attrs->cap.max_recv_wr > rhp->rdev.hw_queue.t4_max_rq_size)
2151 if (attrs->cap.max_send_wr > rhp->rdev.hw_queue.t4_max_sq_size)
2169 (sqsize + rhp->rdev.hw_queue.t4_eq_status_entries) *
2175 (rqsize + rhp->rdev.hw_queue.t4_eq_status_entries) *
2186 ret = create_qp(&rhp->rdev, &qhp->wq, &schp->cq, &rchp->cq,
2187 ucontext ? &ucontext->uctx : &rhp->rdev.uctx,
2196 qhp->rhp = rhp;
2221 ret = xa_insert_irq(&rhp->qps, qhp->wq.sq.qid, qhp, GFP_KERNEL);
2261 if (rhp->rdev.lldi.write_w_imm_support)
2263 uresp.qid_mask = rhp->rdev.qpmask;
2317 (pci_resource_start(rhp->rdev.lldi.pdev, 0) +
2357 xa_erase_irq(&rhp->qps, qhp->wq.sq.qid);
2359 destroy_qp(&rhp->rdev, &qhp->wq,
2360 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !attrs->srq);
2371 struct c4iw_dev *rhp;
2387 rhp = qhp->rhp;
2412 if (!is_t4(to_c4iw_qp(ibqp)->rhp->rdev.lldi.adapter_type) &&
2416 return c4iw_modify_qp(rhp, qhp, mask, &attrs, 0);
2429 event.device = &srq->rhp->ibdev;
2485 struct c4iw_rdev *rdev = &srq->rhp->rdev;
2522 struct c4iw_rdev *rdev = &srq->rhp->rdev;
2675 struct c4iw_dev *rhp;
2688 rhp = php->rhp;
2690 if (!rhp->rdev.lldi.vr->srq.size)
2692 if (attrs->attr.max_wr > rhp->rdev.hw_queue.t4_max_rq_size)
2710 srq->idx = c4iw_alloc_srq_idx(&rhp->rdev);
2723 srq->rhp = rhp;
2728 (rqsize + rhp->rdev.hw_queue.t4_eq_status_entries) *
2734 &rhp->rdev.uctx, srq->wr_waitp);
2739 if (CHELSIO_CHIP_VERSION(rhp->rdev.lldi.adapter_type) > CHELSIO_T6)
2755 uresp.qid_mask = rhp->rdev.qpmask;
2791 free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx,
2796 c4iw_free_srq_idx(&rhp->rdev, srq->idx);
2804 struct c4iw_dev *rhp;
2809 rhp = srq->rhp;
2814 free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx,
2816 c4iw_free_srq_idx(&rhp->rdev, srq->idx);