Lines Matching refs:sg_len
239 int sg_len) in st_fdma_alloc_desc() argument
244 fdesc = kzalloc(struct_size(fdesc, node, sg_len), GFP_NOWAIT); in st_fdma_alloc_desc()
249 fdesc->n_nodes = sg_len; in st_fdma_alloc_desc()
250 for (i = 0; i < sg_len; i++) { in st_fdma_alloc_desc()
455 int sg_len, i; in st_fdma_prep_dma_cyclic() local
475 sg_len = len / period_len; in st_fdma_prep_dma_cyclic()
476 fdesc = st_fdma_alloc_desc(fchan, sg_len); in st_fdma_prep_dma_cyclic()
484 for (i = 0; i < sg_len; i++) { in st_fdma_prep_dma_cyclic()
487 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_dma_cyclic()
509 unsigned int sg_len, enum dma_transfer_direction direction, in st_fdma_prep_slave_sg() argument
518 fchan = st_fdma_prep_common(chan, sg_len, direction); in st_fdma_prep_slave_sg()
525 fdesc = st_fdma_alloc_desc(fchan, sg_len); in st_fdma_prep_slave_sg()
533 for_each_sg(sgl, sg, sg_len, i) { in st_fdma_prep_slave_sg()
536 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_slave_sg()