Lines Matching refs:dma_tx
61 struct spi_xmc4xxx_dma_stream dma_tx; member
80 if (dev_dma == data->dma_tx.dev_dma && dma_channel == data->dma_tx.dma_channel) { in spi_xmc4xxx_dma_callback()
353 struct spi_xmc4xxx_dma_stream *dma_tx = &data->dma_tx; in spi_xmc4xxx_transceive_dma() local
428 dma_tx->blk_cfg.source_address = (uint32_t)ctx->tx_buf; in spi_xmc4xxx_transceive_dma()
429 dma_tx->blk_cfg.source_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_xmc4xxx_transceive_dma()
431 dma_tx->blk_cfg.source_address = (uint32_t)&tx_dummy_data; in spi_xmc4xxx_transceive_dma()
432 dma_tx->blk_cfg.source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_xmc4xxx_transceive_dma()
435 dma_tx->blk_cfg.block_size = dma_len; in spi_xmc4xxx_transceive_dma()
437 ret = dma_config(dma_tx->dev_dma, dma_tx->dma_channel, &dma_tx->dma_cfg); in spi_xmc4xxx_transceive_dma()
448 ret = dma_start(dma_tx->dev_dma, dma_tx->dma_channel); in spi_xmc4xxx_transceive_dma()
463 dma_stop(dma_tx->dev_dma, dma_tx->dma_channel); in spi_xmc4xxx_transceive_dma()
485 if (data->dma_tx.dev_dma != NULL && data->dma_rx.dev_dma != NULL) { in spi_xmc4xxx_transceive_sync()
567 if (data->dma_tx.dev_dma != NULL) { in spi_xmc4xxx_init()
568 if (!device_is_ready(data->dma_tx.dev_dma)) { in spi_xmc4xxx_init()
571 data->dma_tx.blk_cfg.dest_address = in spi_xmc4xxx_init()
573 data->dma_tx.blk_cfg.dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_xmc4xxx_init()
574 data->dma_tx.dma_cfg.head_block = &data->dma_tx.blk_cfg; in spi_xmc4xxx_init()
575 data->dma_tx.dma_cfg.user_data = (void *)data; in spi_xmc4xxx_init()