Lines Matching refs:sg_len
929 unsigned int sg_len, dma_addr_t dev_addr, in rcar_dmac_chan_prep_sg() argument
964 for_each_sg(sgl, sg, sg_len, i) { in rcar_dmac_chan_prep_sg()
1201 unsigned int sg_len, enum dma_transfer_direction dir, in rcar_dmac_prep_slave_sg() argument
1207 if (rchan->mid_rid < 0 || !sg_len || !sg_dma_len(sgl)) { in rcar_dmac_prep_slave_sg()
1210 __func__, sg_len, rchan->mid_rid); in rcar_dmac_prep_slave_sg()
1217 return rcar_dmac_chan_prep_sg(rchan, sgl, sg_len, rchan->map.addr, in rcar_dmac_prep_slave_sg()
1231 unsigned int sg_len; in rcar_dmac_prep_dma_cyclic() local
1245 sg_len = buf_len / period_len; in rcar_dmac_prep_dma_cyclic()
1246 if (sg_len > RCAR_DMAC_MAX_SG_LEN) { in rcar_dmac_prep_dma_cyclic()
1249 rchan->index, sg_len, RCAR_DMAC_MAX_SG_LEN); in rcar_dmac_prep_dma_cyclic()
1257 sgl = kmalloc_array(sg_len, sizeof(*sgl), GFP_NOWAIT); in rcar_dmac_prep_dma_cyclic()
1261 sg_init_table(sgl, sg_len); in rcar_dmac_prep_dma_cyclic()
1263 for (i = 0; i < sg_len; ++i) { in rcar_dmac_prep_dma_cyclic()
1272 desc = rcar_dmac_chan_prep_sg(rchan, sgl, sg_len, rchan->map.addr, in rcar_dmac_prep_dma_cyclic()