Lines Matching refs:sg_len
241 int sg_len) in st_fdma_alloc_desc() argument
247 sizeof(struct st_fdma_sw_node) * sg_len, GFP_NOWAIT); in st_fdma_alloc_desc()
252 fdesc->n_nodes = sg_len; in st_fdma_alloc_desc()
253 for (i = 0; i < sg_len; i++) { in st_fdma_alloc_desc()
460 int sg_len, i; in st_fdma_prep_dma_cyclic() local
480 sg_len = len / period_len; in st_fdma_prep_dma_cyclic()
481 fdesc = st_fdma_alloc_desc(fchan, sg_len); in st_fdma_prep_dma_cyclic()
489 for (i = 0; i < sg_len; i++) { in st_fdma_prep_dma_cyclic()
492 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_dma_cyclic()
514 unsigned int sg_len, enum dma_transfer_direction direction, in st_fdma_prep_slave_sg() argument
523 fchan = st_fdma_prep_common(chan, sg_len, direction); in st_fdma_prep_slave_sg()
530 fdesc = st_fdma_alloc_desc(fchan, sg_len); in st_fdma_prep_slave_sg()
538 for_each_sg(sgl, sg, sg_len, i) { in st_fdma_prep_slave_sg()
541 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_slave_sg()