Lines Matching refs:qp
230 struct c4iw_qp *qp = p; in dump_qp() local
235 if (id != qp->wq.sq.qid) in dump_qp()
242 if (qp->ep) { in dump_qp()
243 if (qp->ep->com.local_addr.ss_family == AF_INET) { in dump_qp()
245 &qp->ep->com.local_addr; in dump_qp()
247 &qp->ep->com.remote_addr; in dump_qp()
249 &qp->ep->com.mapped_local_addr; in dump_qp()
251 &qp->ep->com.mapped_remote_addr; in dump_qp()
257 qp->wq.sq.qid, qp->wq.rq.qid, in dump_qp()
258 (int)qp->attr.state, in dump_qp()
259 qp->wq.sq.flags & T4_SQ_ONCHIP, in dump_qp()
260 qp->ep->hwtid, (int)qp->ep->com.state, in dump_qp()
267 &qp->ep->com.local_addr; in dump_qp()
269 &qp->ep->com.remote_addr; in dump_qp()
272 &qp->ep->com.mapped_local_addr; in dump_qp()
275 &qp->ep->com.mapped_remote_addr; in dump_qp()
281 qp->wq.sq.qid, qp->wq.rq.qid, in dump_qp()
282 (int)qp->attr.state, in dump_qp()
283 qp->wq.sq.flags & T4_SQ_ONCHIP, in dump_qp()
284 qp->ep->hwtid, (int)qp->ep->com.state, in dump_qp()
295 qp->wq.sq.qid, qp->wq.rq.qid, in dump_qp()
296 (int)qp->attr.state, in dump_qp()
297 qp->wq.sq.flags & T4_SQ_ONCHIP); in dump_qp()
567 ep, ep->com.cm_id, ep->com.qp, in dump_ep()
591 ep, ep->com.cm_id, ep->com.qp, in dump_ep()
787 if (rdev->lldi.vr->qp.start != rdev->lldi.vr->cq.start || in c4iw_rdev_open()
788 rdev->lldi.vr->qp.size != rdev->lldi.vr->cq.size) { in c4iw_rdev_open()
791 pci_name(rdev->lldi.pdev), rdev->lldi.vr->qp.start, in c4iw_rdev_open()
792 rdev->lldi.vr->qp.size, rdev->lldi.vr->cq.size, in c4iw_rdev_open()
808 rdev->lldi.vr->qp.start, in c4iw_rdev_open()
809 rdev->lldi.vr->qp.size, in c4iw_rdev_open()
829 rdev->stats.qid.total = rdev->lldi.vr->qp.size; in c4iw_rdev_open()
918 infop->vr->rq.size > 0 && infop->vr->qp.size > 0 && in rdma_supported()
1239 struct c4iw_qp *qp = p; in disable_qp_db() local
1241 t4_disable_wq_db(&qp->wq); in disable_qp_db()
1261 struct c4iw_qp *qp = p; in enable_qp_db() local
1263 t4_enable_wq_db(&qp->wq); in enable_qp_db()
1267 static void resume_rc_qp(struct c4iw_qp *qp) in resume_rc_qp() argument
1269 spin_lock(&qp->lock); in resume_rc_qp()
1270 t4_ring_sq_db(&qp->wq, qp->wq.sq.wq_pidx_inc, NULL); in resume_rc_qp()
1271 qp->wq.sq.wq_pidx_inc = 0; in resume_rc_qp()
1272 t4_ring_rq_db(&qp->wq, qp->wq.rq.wq_pidx_inc, NULL); in resume_rc_qp()
1273 qp->wq.rq.wq_pidx_inc = 0; in resume_rc_qp()
1274 spin_unlock(&qp->lock); in resume_rc_qp()
1280 struct c4iw_qp *qp; in resume_a_chunk() local
1283 qp = list_first_entry(&ctx->dev->db_fc_list, struct c4iw_qp, in resume_a_chunk()
1285 list_del_init(&qp->db_fc_entry); in resume_a_chunk()
1286 resume_rc_qp(qp); in resume_a_chunk()
1342 struct c4iw_qp *qp = p; in add_and_ref_qp() local
1344 c4iw_qp_add_ref(&qp->ibqp); in add_and_ref_qp()
1345 qp_listp->qps[qp_listp->idx++] = qp; in add_and_ref_qp()
1370 struct c4iw_qp *qp = qp_list->qps[idx]; in recover_lost_dbs() local
1372 spin_lock_irq(&qp->rhp->lock); in recover_lost_dbs()
1373 spin_lock(&qp->lock); in recover_lost_dbs()
1374 ret = cxgb4_sync_txq_pidx(qp->rhp->rdev.lldi.ports[0], in recover_lost_dbs()
1375 qp->wq.sq.qid, in recover_lost_dbs()
1376 t4_sq_host_wq_pidx(&qp->wq), in recover_lost_dbs()
1377 t4_sq_wq_size(&qp->wq)); in recover_lost_dbs()
1382 pci_name(ctx->lldi.pdev), qp->wq.sq.qid); in recover_lost_dbs()
1383 spin_unlock(&qp->lock); in recover_lost_dbs()
1384 spin_unlock_irq(&qp->rhp->lock); in recover_lost_dbs()
1387 qp->wq.sq.wq_pidx_inc = 0; in recover_lost_dbs()
1389 ret = cxgb4_sync_txq_pidx(qp->rhp->rdev.lldi.ports[0], in recover_lost_dbs()
1390 qp->wq.rq.qid, in recover_lost_dbs()
1391 t4_rq_host_wq_pidx(&qp->wq), in recover_lost_dbs()
1392 t4_rq_wq_size(&qp->wq)); in recover_lost_dbs()
1398 pci_name(ctx->lldi.pdev), qp->wq.rq.qid); in recover_lost_dbs()
1399 spin_unlock(&qp->lock); in recover_lost_dbs()
1400 spin_unlock_irq(&qp->rhp->lock); in recover_lost_dbs()
1403 qp->wq.rq.wq_pidx_inc = 0; in recover_lost_dbs()
1404 spin_unlock(&qp->lock); in recover_lost_dbs()
1405 spin_unlock_irq(&qp->rhp->lock); in recover_lost_dbs()
1408 while (cxgb4_dbfifo_count(qp->rhp->rdev.lldi.ports[0], 1) > 0) { in recover_lost_dbs()