Lines Matching refs:sg_len
561 struct scatterlist *sgl, unsigned int sg_len, dma_addr_t *addr, in shdma_prep_sg() argument
571 for_each_sg(sgl, sg, sg_len, i) in shdma_prep_sg()
588 for_each_sg(sgl, sg, sg_len, i) { in shdma_prep_sg()
662 struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, in shdma_prep_slave_sg() argument
677 if (slave_id < 0 || !sg_len) { in shdma_prep_slave_sg()
679 __func__, sg_len, slave_id); in shdma_prep_slave_sg()
685 return shdma_prep_sg(schan, sgl, sg_len, &slave_addr, in shdma_prep_slave_sg()
700 unsigned int sg_len = buf_len / period_len; in shdma_prep_dma_cyclic() local
711 if (sg_len > SHDMA_MAX_SG_LEN) { in shdma_prep_dma_cyclic()
713 sg_len, SHDMA_MAX_SG_LEN); in shdma_prep_dma_cyclic()
731 sgl = kmalloc_array(sg_len, sizeof(*sgl), GFP_KERNEL); in shdma_prep_dma_cyclic()
735 sg_init_table(sgl, sg_len); in shdma_prep_dma_cyclic()
737 for (i = 0; i < sg_len; i++) { in shdma_prep_dma_cyclic()
746 desc = shdma_prep_sg(schan, sgl, sg_len, &slave_addr, in shdma_prep_dma_cyclic()