Lines Matching refs:dma_cfg
340 struct dma_slave_config dma_cfg; in stm32_fmc2_nfc_select_chip() local
351 memset(&dma_cfg, 0, sizeof(dma_cfg)); in stm32_fmc2_nfc_select_chip()
352 dma_cfg.src_addr = nfc->data_phys_addr[nfc->cs_sel]; in stm32_fmc2_nfc_select_chip()
353 dma_cfg.dst_addr = nfc->data_phys_addr[nfc->cs_sel]; in stm32_fmc2_nfc_select_chip()
354 dma_cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_fmc2_nfc_select_chip()
355 dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_fmc2_nfc_select_chip()
356 dma_cfg.src_maxburst = 32; in stm32_fmc2_nfc_select_chip()
357 dma_cfg.dst_maxburst = 32; in stm32_fmc2_nfc_select_chip()
359 ret = dmaengine_slave_config(nfc->dma_tx_ch, &dma_cfg); in stm32_fmc2_nfc_select_chip()
365 ret = dmaengine_slave_config(nfc->dma_rx_ch, &dma_cfg); in stm32_fmc2_nfc_select_chip()
377 memset(&dma_cfg, 0, sizeof(dma_cfg)); in stm32_fmc2_nfc_select_chip()
378 dma_cfg.src_addr = nfc->io_phys_addr; in stm32_fmc2_nfc_select_chip()
379 dma_cfg.src_addr += chip->ecc.strength == FMC2_ECC_HAM ? in stm32_fmc2_nfc_select_chip()
381 dma_cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_fmc2_nfc_select_chip()
383 ret = dmaengine_slave_config(nfc->dma_ecc_ch, &dma_cfg); in stm32_fmc2_nfc_select_chip()