Lines Matching refs:tlen
570 unsigned tlen = len; in sa11x0_dma_prep_slave_sg() local
578 if (tlen > DMA_MAX_SIZE) { in sa11x0_dma_prep_slave_sg()
579 unsigned mult = DIV_ROUND_UP(tlen, in sa11x0_dma_prep_slave_sg()
582 tlen = (tlen / mult) & ~DMA_ALIGN; in sa11x0_dma_prep_slave_sg()
586 txd->sg[j].len = tlen; in sa11x0_dma_prep_slave_sg()
588 addr += tlen; in sa11x0_dma_prep_slave_sg()
589 len -= tlen; in sa11x0_dma_prep_slave_sg()
633 size_t tlen, len = period; in sa11x0_dma_prep_dma_cyclic() local
636 tlen = len; in sa11x0_dma_prep_dma_cyclic()
638 if (tlen > DMA_MAX_SIZE) { in sa11x0_dma_prep_dma_cyclic()
639 unsigned mult = DIV_ROUND_UP(tlen, DMA_MAX_SIZE & ~DMA_ALIGN); in sa11x0_dma_prep_dma_cyclic()
640 tlen = (tlen / mult) & ~DMA_ALIGN; in sa11x0_dma_prep_dma_cyclic()
644 txd->sg[k].len = tlen; in sa11x0_dma_prep_dma_cyclic()
645 addr += tlen; in sa11x0_dma_prep_dma_cyclic()
646 len -= tlen; in sa11x0_dma_prep_dma_cyclic()