Lines Matching refs:sconfig

386 static int sanitize_config(struct dma_slave_config *sconfig,  in sanitize_config()  argument
391 if ((sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) || in sanitize_config()
392 !sconfig->dst_maxburst) in sanitize_config()
395 if (sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) in sanitize_config()
396 sconfig->src_addr_width = sconfig->dst_addr_width; in sanitize_config()
398 if (!sconfig->src_maxburst) in sanitize_config()
399 sconfig->src_maxburst = sconfig->dst_maxburst; in sanitize_config()
404 if ((sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) || in sanitize_config()
405 !sconfig->src_maxburst) in sanitize_config()
408 if (sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) in sanitize_config()
409 sconfig->dst_addr_width = sconfig->src_addr_width; in sanitize_config()
411 if (!sconfig->dst_maxburst) in sanitize_config()
412 sconfig->dst_maxburst = sconfig->src_maxburst; in sanitize_config()
433 size_t len, struct dma_slave_config *sconfig, in generate_ndma_promise() argument
439 ret = sanitize_config(sconfig, direction); in generate_ndma_promise()
455 sconfig->src_maxburst, sconfig->dst_maxburst, in generate_ndma_promise()
456 sconfig->src_addr_width, sconfig->dst_addr_width); in generate_ndma_promise()
459 ret = convert_burst(sconfig->src_maxburst); in generate_ndma_promise()
465 ret = convert_burst(sconfig->dst_maxburst); in generate_ndma_promise()
471 ret = convert_buswidth(sconfig->src_addr_width); in generate_ndma_promise()
477 ret = convert_buswidth(sconfig->dst_addr_width); in generate_ndma_promise()
500 size_t len, struct dma_slave_config *sconfig) in generate_ddma_promise() argument
516 ret = convert_burst(sconfig->src_maxburst); in generate_ddma_promise()
522 ret = convert_burst(sconfig->dst_maxburst); in generate_ddma_promise()
528 ret = convert_buswidth(sconfig->src_addr_width); in generate_ddma_promise()
534 ret = convert_buswidth(sconfig->dst_addr_width); in generate_ddma_promise()
615 struct dma_slave_config *sconfig = &vchan->cfg; in sun4i_dma_prep_dma_memcpy() local
628 sconfig->src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sun4i_dma_prep_dma_memcpy()
629 sconfig->dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sun4i_dma_prep_dma_memcpy()
630 sconfig->src_maxburst = 8; in sun4i_dma_prep_dma_memcpy()
631 sconfig->dst_maxburst = 8; in sun4i_dma_prep_dma_memcpy()
634 promise = generate_ddma_promise(chan, src, dest, len, sconfig); in sun4i_dma_prep_dma_memcpy()
636 promise = generate_ndma_promise(chan, src, dest, len, sconfig, in sun4i_dma_prep_dma_memcpy()
666 struct dma_slave_config *sconfig = &vchan->cfg; in sun4i_dma_prep_dma_cyclic() local
699 dest = sconfig->dst_addr; in sun4i_dma_prep_dma_cyclic()
704 src = sconfig->src_addr; in sun4i_dma_prep_dma_cyclic()
751 plength, sconfig, dir); in sun4i_dma_prep_dma_cyclic()
772 struct dma_slave_config *sconfig = &vchan->cfg; in sun4i_dma_prep_slave_sg() local
818 dstaddr = sconfig->dst_addr; in sun4i_dma_prep_slave_sg()
820 srcaddr = sconfig->src_addr; in sun4i_dma_prep_slave_sg()
839 sconfig); in sun4i_dma_prep_slave_sg()
843 sconfig, dir); in sun4i_dma_prep_slave_sg()