Lines Matching refs:sg_len
429 int sg_len) in fsl_edma_alloc_desc() argument
434 fsl_desc = kzalloc(struct_size(fsl_desc, tcd, sg_len), GFP_NOWAIT); in fsl_edma_alloc_desc()
439 fsl_desc->n_tcds = sg_len; in fsl_edma_alloc_desc()
440 for (i = 0; i < sg_len; i++) { in fsl_edma_alloc_desc()
464 int sg_len, i; in fsl_edma_prep_dma_cyclic() local
474 sg_len = buf_len / period_len; in fsl_edma_prep_dma_cyclic()
475 fsl_desc = fsl_edma_alloc_desc(fsl_chan, sg_len); in fsl_edma_prep_dma_cyclic()
496 for (i = 0; i < sg_len; i++) { in fsl_edma_prep_dma_cyclic()
501 last_sg = fsl_desc->tcd[(i + 1) % sg_len].ptcd; in fsl_edma_prep_dma_cyclic()
527 unsigned int sg_len, enum dma_transfer_direction direction, in fsl_edma_prep_slave_sg() argument
543 fsl_desc = fsl_edma_alloc_desc(fsl_chan, sg_len); in fsl_edma_prep_slave_sg()
561 for_each_sg(sgl, sg, sg_len, i) { in fsl_edma_prep_slave_sg()
563 last_sg = fsl_desc->tcd[(i + 1) % sg_len].ptcd; in fsl_edma_prep_slave_sg()
578 if (i < sg_len - 1) { in fsl_edma_prep_slave_sg()