Lines Matching refs:sg_len
545 int sg_len) in fsl_edma_alloc_desc() argument
550 fsl_desc = kzalloc(struct_size(fsl_desc, tcd, sg_len), GFP_NOWAIT); in fsl_edma_alloc_desc()
555 fsl_desc->n_tcds = sg_len; in fsl_edma_alloc_desc()
556 for (i = 0; i < sg_len; i++) { in fsl_edma_alloc_desc()
581 int sg_len, i; in fsl_edma_prep_dma_cyclic() local
592 sg_len = buf_len / period_len; in fsl_edma_prep_dma_cyclic()
593 fsl_desc = fsl_edma_alloc_desc(fsl_chan, sg_len); in fsl_edma_prep_dma_cyclic()
614 for (i = 0; i < sg_len; i++) { in fsl_edma_prep_dma_cyclic()
619 last_sg = fsl_desc->tcd[(i + 1) % sg_len].ptcd; in fsl_edma_prep_dma_cyclic()
650 unsigned int sg_len, enum dma_transfer_direction direction, in fsl_edma_prep_slave_sg() argument
667 fsl_desc = fsl_edma_alloc_desc(fsl_chan, sg_len); in fsl_edma_prep_slave_sg()
685 for_each_sg(sgl, sg, sg_len, i) { in fsl_edma_prep_slave_sg()
727 if (i < sg_len - 1) { in fsl_edma_prep_slave_sg()