Home
last modified time | relevance | path

Searched refs:r_rq (Results 1 – 9 of 9) sorted by relevance

/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_qp.c360 if (qp->r_rq.wq) { in ipath_reset_qp()
361 qp->r_rq.wq->head = 0; in ipath_reset_qp()
362 qp->r_rq.wq->tail = 0; in ipath_reset_qp()
410 if (qp->r_rq.wq) { in ipath_error_qp()
415 spin_lock(&qp->r_rq.lock); in ipath_error_qp()
418 wq = qp->r_rq.wq; in ipath_error_qp()
420 if (head >= qp->r_rq.size) in ipath_error_qp()
423 if (tail >= qp->r_rq.size) in ipath_error_qp()
426 wc.wr_id = get_rwqe_ptr(&qp->r_rq, tail)->wr_id; in ipath_error_qp()
427 if (++tail >= qp->r_rq.size) in ipath_error_qp()
[all …]
Dipath_verbs.c478 struct ipath_rwq *wq = qp->r_rq.wq; in ipath_post_receive()
494 if ((unsigned) wr->num_sge > qp->r_rq.max_sge) { in ipath_post_receive()
500 spin_lock_irqsave(&qp->r_rq.lock, flags); in ipath_post_receive()
502 if (next >= qp->r_rq.size) in ipath_post_receive()
505 spin_unlock_irqrestore(&qp->r_rq.lock, flags); in ipath_post_receive()
511 wqe = get_rwqe_ptr(&qp->r_rq, wq->head); in ipath_post_receive()
519 spin_unlock_irqrestore(&qp->r_rq.lock, flags); in ipath_post_receive()
Dipath_ud.c114 rq = &qp->r_rq; in ipath_ud_loopback()
Dipath_verbs.h435 struct ipath_rq r_rq; /* receive work queue */ member
Dipath_ruc.c184 rq = &qp->r_rq; in ipath_get_rwqe()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_qp.c411 if (qp->r_rq.wq) { in qib_reset_qp()
412 qp->r_rq.wq->head = 0; in qib_reset_qp()
413 qp->r_rq.wq->tail = 0; in qib_reset_qp()
529 if (qp->r_rq.wq) { in qib_error_qp()
534 spin_lock(&qp->r_rq.lock); in qib_error_qp()
537 wq = qp->r_rq.wq; in qib_error_qp()
539 if (head >= qp->r_rq.size) in qib_error_qp()
542 if (tail >= qp->r_rq.size) in qib_error_qp()
545 wc.wr_id = get_rwqe_ptr(&qp->r_rq, tail)->wr_id; in qib_error_qp()
546 if (++tail >= qp->r_rq.size) in qib_error_qp()
[all …]
Dqib_verbs.c498 struct qib_rwq *wq = qp->r_rq.wq; in qib_post_receive()
514 if ((unsigned) wr->num_sge > qp->r_rq.max_sge) { in qib_post_receive()
520 spin_lock_irqsave(&qp->r_rq.lock, flags); in qib_post_receive()
522 if (next >= qp->r_rq.size) in qib_post_receive()
525 spin_unlock_irqrestore(&qp->r_rq.lock, flags); in qib_post_receive()
531 wqe = get_rwqe_ptr(&qp->r_rq, wq->head); in qib_post_receive()
539 spin_unlock_irqrestore(&qp->r_rq.lock, flags); in qib_post_receive()
Dqib_verbs.h481 struct qib_rq r_rq; /* receive work queue */ member
Dqib_ruc.c156 rq = &qp->r_rq; in qib_get_rwqe()