Lines Matching refs:cfg
270 struct dma_slave_config cfg = {}; in tmio_mmc_request_dma() local
289 cfg.direction = DMA_MEM_TO_DEV; in tmio_mmc_request_dma()
290 cfg.dst_addr = res->start + (CTL_SD_DATA_PORT << host->bus_shift); in tmio_mmc_request_dma()
291 cfg.dst_addr_width = host->dma->dma_buswidth; in tmio_mmc_request_dma()
292 if (!cfg.dst_addr_width) in tmio_mmc_request_dma()
293 cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in tmio_mmc_request_dma()
294 cfg.src_addr = 0; in tmio_mmc_request_dma()
295 ret = dmaengine_slave_config(host->chan_tx, &cfg); in tmio_mmc_request_dma()
308 cfg.direction = DMA_DEV_TO_MEM; in tmio_mmc_request_dma()
309 cfg.src_addr = cfg.dst_addr + host->pdata->dma_rx_offset; in tmio_mmc_request_dma()
310 cfg.src_addr_width = host->dma->dma_buswidth; in tmio_mmc_request_dma()
311 if (!cfg.src_addr_width) in tmio_mmc_request_dma()
312 cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in tmio_mmc_request_dma()
313 cfg.dst_addr = 0; in tmio_mmc_request_dma()
314 ret = dmaengine_slave_config(host->chan_rx, &cfg); in tmio_mmc_request_dma()