Lines Matching defs:tail
293 /* reset our notion of head and tail */
672 u16 tail;
714 tail = dd->ipath_sdma_descq_tail;
715 descqp = &dd->ipath_sdma_descq[tail].qw[0];
720 tx->txreq.start_idx = tail;
722 /* increment the tail */
723 if (++tail == dd->ipath_sdma_descq_cnt) {
724 tail = 0;
753 /* increment the tail */
754 if (++tail == dd->ipath_sdma_descq_cnt) {
755 tail = 0;
781 if (!tail)
791 /* Commit writes to memory and advance the tail on the chip */
793 ipath_write_kreg(dd, dd->ipath_kregs->kr_senddmatail, tail);
795 tx->txreq.next_descq_idx = tail;
797 dd->ipath_sdma_descq_tail = tail;
805 while (tail != dd->ipath_sdma_descq_tail) {
806 if (!tail)
807 tail = dd->ipath_sdma_descq_cnt - 1;
809 tail--;
810 unmap_desc(dd, tail);