Lines Matching refs:sg_len
237 int sg_len) in st_fdma_alloc_desc() argument
242 fdesc = kzalloc(struct_size(fdesc, node, sg_len), GFP_NOWAIT); in st_fdma_alloc_desc()
247 fdesc->n_nodes = sg_len; in st_fdma_alloc_desc()
248 for (i = 0; i < sg_len; i++) { in st_fdma_alloc_desc()
453 int sg_len, i; in st_fdma_prep_dma_cyclic() local
473 sg_len = len / period_len; in st_fdma_prep_dma_cyclic()
474 fdesc = st_fdma_alloc_desc(fchan, sg_len); in st_fdma_prep_dma_cyclic()
482 for (i = 0; i < sg_len; i++) { in st_fdma_prep_dma_cyclic()
485 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_dma_cyclic()
507 unsigned int sg_len, enum dma_transfer_direction direction, in st_fdma_prep_slave_sg() argument
516 fchan = st_fdma_prep_common(chan, sg_len, direction); in st_fdma_prep_slave_sg()
523 fdesc = st_fdma_alloc_desc(fchan, sg_len); in st_fdma_prep_slave_sg()
531 for_each_sg(sgl, sg, sg_len, i) { in st_fdma_prep_slave_sg()
534 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_slave_sg()