Lines Matching refs:tail
362 qp->r_rq.wq->tail = 0; in ipath_reset_qp()
413 u32 tail; in ipath_error_qp() local
422 tail = wq->tail; in ipath_error_qp()
423 if (tail >= qp->r_rq.size) in ipath_error_qp()
424 tail = 0; in ipath_error_qp()
425 while (tail != head) { 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()
428 tail = 0; in ipath_error_qp()
431 wq->tail = tail; in ipath_error_qp()
692 u32 tail; in ipath_compute_aeth() local
698 tail = wq->tail; in ipath_compute_aeth()
699 if (tail >= qp->r_rq.size) in ipath_compute_aeth()
700 tail = 0; in ipath_compute_aeth()
706 credits = head - tail; in ipath_compute_aeth()