Lines Matching refs:dq
1730 struct defer_queue *dq = &pp->defer_queue; in nv_swncq_qc_to_dq() local
1733 WARN_ON(dq->tail - dq->head == ATA_MAX_QUEUE); in nv_swncq_qc_to_dq()
1734 dq->defer_bits |= (1 << qc->tag); in nv_swncq_qc_to_dq()
1735 dq->tag[dq->tail++ & (ATA_MAX_QUEUE - 1)] = qc->tag; in nv_swncq_qc_to_dq()
1741 struct defer_queue *dq = &pp->defer_queue; in nv_swncq_qc_from_dq() local
1744 if (dq->head == dq->tail) /* null queue */ in nv_swncq_qc_from_dq()
1747 tag = dq->tag[dq->head & (ATA_MAX_QUEUE - 1)]; in nv_swncq_qc_from_dq()
1748 dq->tag[dq->head++ & (ATA_MAX_QUEUE - 1)] = ATA_TAG_POISON; in nv_swncq_qc_from_dq()
1749 WARN_ON(!(dq->defer_bits & (1 << tag))); in nv_swncq_qc_from_dq()
1750 dq->defer_bits &= ~(1 << tag); in nv_swncq_qc_from_dq()
1768 struct defer_queue *dq = &pp->defer_queue; in nv_swncq_pp_reinit() local
1770 dq->head = 0; in nv_swncq_pp_reinit()
1771 dq->tail = 0; in nv_swncq_pp_reinit()
1772 dq->defer_bits = 0; in nv_swncq_pp_reinit()