Lines Matching refs:sg_len
848 unsigned int sg_len, dma_addr_t dev_addr, in rcar_dmac_chan_prep_sg() argument
879 for_each_sg(sgl, sg, sg_len, i) { in rcar_dmac_chan_prep_sg()
1108 unsigned int sg_len, enum dma_transfer_direction dir, in rcar_dmac_prep_slave_sg() argument
1114 if (rchan->mid_rid < 0 || !sg_len) { in rcar_dmac_prep_slave_sg()
1117 __func__, sg_len, rchan->mid_rid); in rcar_dmac_prep_slave_sg()
1124 return rcar_dmac_chan_prep_sg(rchan, sgl, sg_len, rchan->map.addr, in rcar_dmac_prep_slave_sg()
1138 unsigned int sg_len; in rcar_dmac_prep_dma_cyclic() local
1152 sg_len = buf_len / period_len; in rcar_dmac_prep_dma_cyclic()
1153 if (sg_len > RCAR_DMAC_MAX_SG_LEN) { in rcar_dmac_prep_dma_cyclic()
1156 rchan->index, sg_len, RCAR_DMAC_MAX_SG_LEN); in rcar_dmac_prep_dma_cyclic()
1164 sgl = kcalloc(sg_len, sizeof(*sgl), GFP_NOWAIT); in rcar_dmac_prep_dma_cyclic()
1168 sg_init_table(sgl, sg_len); in rcar_dmac_prep_dma_cyclic()
1170 for (i = 0; i < sg_len; ++i) { in rcar_dmac_prep_dma_cyclic()
1179 desc = rcar_dmac_chan_prep_sg(rchan, sgl, sg_len, rchan->map.addr, in rcar_dmac_prep_dma_cyclic()