Lines Matching defs:dmacount
421 td->dmacount = 0; /* not VALID */
635 u32 dmacount = req->req.length;
643 dmacount |= (1 << DMA_DIRECTION);
644 if ((!ep->is_in && (dmacount % ep->ep.maxpacket) != 0)
646 dmacount |= (1 << END_OF_CHAIN);
650 dmacount |= (1 << VALID_BIT);
652 dmacount |= (1 << DMA_DONE_INTERRUPT_ENABLE);
659 td->dmacount = cpu_to_le32(dmacount);
690 writel (tmp, &dma->dmacount);
729 req->td->dmacount = cpu_to_le32 (req->req.length - tmp);
731 | tmp, &dma->dmacount);
761 req->td->dmacount |= cpu_to_le32 (1 << END_OF_CHAIN);
940 u32 dmacount,
944 req->req.actual = req->req.length - (DMA_BYTE_COUNT_MASK & dmacount);
964 tmp = le32_to_cpup (&req->td->dmacount);
974 tmp = readl (&ep->dma->dmacount);
1035 __le32 dmacount;
1039 dmacount = entry->td->dmacount;
1046 dmacount |= valid_bit;
1047 entry->td->dmacount = dmacount;
1052 prev->td->dmacount |= dma_done_ie;
1059 dmacount &= ~valid_bit;
1060 entry->td->dmacount = dmacount;
1141 req->td->dmacount = 0; /* invalidate */
1143 readl (&ep->dma->dmacount),
1157 if (req->td->dmacount & dma_done_ie)
1158 writel (readl (&ep->dma->dmacount)
1160 &ep->dma->dmacount);
1167 if (req->td->dmacount & dma_done_ie)
1168 prev->td->dmacount |= dma_done_ie;
1534 readl (&ep->dma->dmacount),
1632 "buf %p (dmacount %08x)\n",
1635 readl (&ep->dma->dmacount));
1653 le32_to_cpu (td->dmacount),
2141 count = readl (&ep->dma->dmacount);
2156 req->td->dmacount = 0;
2624 __le32 dmacount;
2633 dmacount = req->td->dmacount;
2634 dmacount &= cpu_to_le32 (
2637 if (dmacount && (dmacount & valid_bit) == 0)
2844 td->dmacount = 0; /* not VALID */