Lines Matching refs:avail
526 size_t len, avail, total = 0; in k3_dma_prep_slave_sg() local
537 avail = sg_dma_len(sg); in k3_dma_prep_slave_sg()
538 if (avail > DMA_MAX_SIZE) in k3_dma_prep_slave_sg()
539 num += DIV_ROUND_UP(avail, DMA_MAX_SIZE) - 1; in k3_dma_prep_slave_sg()
549 avail = sg_dma_len(sg); in k3_dma_prep_slave_sg()
550 total += avail; in k3_dma_prep_slave_sg()
553 len = min_t(size_t, avail, DMA_MAX_SIZE); in k3_dma_prep_slave_sg()
566 avail -= len; in k3_dma_prep_slave_sg()
567 } while (avail); in k3_dma_prep_slave_sg()
583 size_t len, avail, total = 0; in k3_dma_prep_dma_cyclic() local
593 avail = buf_len; in k3_dma_prep_dma_cyclic()
594 if (avail > modulo) in k3_dma_prep_dma_cyclic()
595 num += DIV_ROUND_UP(avail, modulo) - 1; in k3_dma_prep_dma_cyclic()
603 avail = buf_len; in k3_dma_prep_dma_cyclic()
604 total = avail; in k3_dma_prep_dma_cyclic()
611 len = min_t(size_t, avail, modulo); in k3_dma_prep_dma_cyclic()
631 avail -= len; in k3_dma_prep_dma_cyclic()
632 } while (avail); in k3_dma_prep_dma_cyclic()