Lines Matching refs:block_config
333 struct dma_block_config *block_config; in dma_mcux_lpc_configure() local
349 block_config = config->head_block; in dma_mcux_lpc_configure()
361 if (block_config->source_gather_en && block_config->dest_scatter_en) { in dma_mcux_lpc_configure()
362 assert(block_config->source_gather_interval == in dma_mcux_lpc_configure()
363 block_config->dest_scatter_interval); in dma_mcux_lpc_configure()
405 if (block_config->source_gather_en) { in dma_mcux_lpc_configure()
406 src_inc = block_config->source_gather_interval / width; in dma_mcux_lpc_configure()
415 if (block_config->dest_scatter_en) { in dma_mcux_lpc_configure()
416 dst_inc = block_config->dest_scatter_interval / width; in dma_mcux_lpc_configure()
427 if (block_config->source_gather_en) { in dma_mcux_lpc_configure()
428 src_inc = block_config->source_gather_interval / width; in dma_mcux_lpc_configure()
443 if (block_config->dest_scatter_en) { in dma_mcux_lpc_configure()
444 dst_inc = block_config->dest_scatter_interval / width; in dma_mcux_lpc_configure()
459 if (block_config->source_addr_adj == DMA_ADDR_ADJ_NO_CHANGE) { in dma_mcux_lpc_configure()
463 if (block_config->dest_addr_adj == DMA_ADDR_ADJ_NO_CHANGE) { in dma_mcux_lpc_configure()
581 if ((block_config->block_size > max_xfer_bytes) || in dma_mcux_lpc_configure()
582 (block_config->next_block != NULL)) { in dma_mcux_lpc_configure()
586 if (block_config->block_size > max_xfer_bytes) { in dma_mcux_lpc_configure()
603 block_config->block_size); in dma_mcux_lpc_configure()
611 block_config->block_size); in dma_mcux_lpc_configure()
614 assert(block_config->source_address == ROUND_UP(block_config->source_address, width)); in dma_mcux_lpc_configure()
615 assert(block_config->dest_address == ROUND_UP(block_config->dest_address, width)); in dma_mcux_lpc_configure()
618 rw6xx_dma_addr_fixup(block_config); in dma_mcux_lpc_configure()
623 (void *)block_config->source_address, in dma_mcux_lpc_configure()
624 (void *)block_config->dest_address, in dma_mcux_lpc_configure()
629 if (block_config->block_size > max_xfer_bytes) { in dma_mcux_lpc_configure()
636 local_block.source_address = block_config->source_address in dma_mcux_lpc_configure()
639 local_block.source_address = block_config->source_address; in dma_mcux_lpc_configure()
642 local_block.dest_address = block_config->dest_address in dma_mcux_lpc_configure()
645 local_block.dest_address = block_config->dest_address; in dma_mcux_lpc_configure()
647 local_block.block_size = block_config->block_size - max_xfer_bytes; in dma_mcux_lpc_configure()
648 local_block.next_block = block_config->next_block; in dma_mcux_lpc_configure()
651 if (block_config->next_block == NULL) { in dma_mcux_lpc_configure()
662 block_config = block_config->next_block; in dma_mcux_lpc_configure()
664 while (block_config != NULL) { in dma_mcux_lpc_configure()
665 block_config->source_reload_en = reload; in dma_mcux_lpc_configure()
668 assert(block_config->source_address == in dma_mcux_lpc_configure()
669 ROUND_UP(block_config->source_address, width)); in dma_mcux_lpc_configure()
670 assert(block_config->dest_address == in dma_mcux_lpc_configure()
671 ROUND_UP(block_config->dest_address, width)); in dma_mcux_lpc_configure()
673 if (block_config->next_block == NULL) { in dma_mcux_lpc_configure()
677 if (dma_mcux_lpc_queue_descriptors(data, block_config, in dma_mcux_lpc_configure()
683 block_config = block_config->next_block; in dma_mcux_lpc_configure()