| /linux/drivers/usb/musb/ |
| H A D | tusb6010_omap.c | 197 struct dma_slave_config dma_cfg; in tusb_omap_dma_program() local 270 memset(&dma_cfg, 0, sizeof(dma_cfg)); in tusb_omap_dma_program() 274 dma_cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in tusb_omap_dma_program() 275 dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in tusb_omap_dma_program() 278 dma_cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in tusb_omap_dma_program() 279 dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in tusb_omap_dma_program() 290 dma_cfg.src_addr = fifo_addr; in tusb_omap_dma_program() 291 dma_cfg.dst_addr = fifo_addr; in tusb_omap_dma_program() 292 dma_cfg.src_port_window_size = port_window; in tusb_omap_dma_program() 293 dma_cfg.src_maxburst = port_window; in tusb_omap_dma_program() [all …]
|
| /linux/drivers/dma/ |
| H A D | ep93xx_dma.c | 197 struct ep93xx_dma_chan_cfg dma_cfg; member 383 writel(edmac->dma_cfg.port & 0xf, edmac->regs + M2P_PPALLOC); in m2p_hw_setup() 522 if (edmac->dma_cfg.dir == DMA_MEM_TO_MEM) { in m2m_hw_setup() 528 switch (edmac->dma_cfg.port) { in m2m_hw_setup() 538 if (edmac->dma_cfg.dir == DMA_MEM_TO_DEV) { in m2m_hw_setup() 554 if (edmac->dma_cfg.dir == DMA_MEM_TO_DEV) { in m2m_hw_setup() 634 if (edmac->dma_cfg.dir == DMA_MEM_TO_MEM) { in m2m_hw_submit() 696 if (done && edmac->dma_cfg.dir == DMA_MEM_TO_MEM) { in m2m_hw_interrupt() 932 if (edmac->dma_cfg.port > EP93XX_DMA_IRDA) in ep93xx_dma_alloc_chan_resources() 934 if (edmac->dma_cfg.dir != ep93xx_dma_chan_direction(chan)) in ep93xx_dma_alloc_chan_resources() [all …]
|
| H A D | ste_dma40.c | 499 struct stedma40_chan_cfg dma_cfg; member 881 chan->dma_cfg.dir == DMA_DEV_TO_MEM)) in d40_log_lli_to_lcxa() 1264 u32 event = D40_TYPE_TO_EVENT(d40c->dma_cfg.dev_type); in d40_config_set_event() 1267 if ((d40c->dma_cfg.dir == DMA_DEV_TO_MEM) || in d40_config_set_event() 1268 (d40c->dma_cfg.dir == DMA_DEV_TO_DEV)) in d40_config_set_event() 1272 if (d40c->dma_cfg.dir != DMA_DEV_TO_MEM) in d40_config_set_event() 1366 return phy_map[d40c->dma_cfg.mode_opt]; in d40_get_prmo() 1368 return log_map[d40c->dma_cfg.mode_opt]; in d40_get_prmo() 1420 return num_elt * d40c->dma_cfg.dst_info.data_width; in d40_residue() 1853 int dev_type = d40c->dma_cfg.dev_type; in d40_allocate_channel() [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | owl-mmc.c | 112 struct dma_slave_config dma_cfg; member 311 owl_host->dma_cfg.direction = DMA_MEM_TO_DEV; in owl_mmc_prepare_data() 314 owl_host->dma_cfg.direction = DMA_DEV_TO_MEM; in owl_mmc_prepare_data() 320 dmaengine_slave_config(owl_host->dma, &owl_host->dma_cfg); in owl_mmc_prepare_data() 323 owl_host->dma_cfg.direction, in owl_mmc_prepare_data() 625 owl_host->dma_cfg.src_addr = res->start + OWL_REG_SD_DAT; in owl_mmc_probe() 626 owl_host->dma_cfg.dst_addr = res->start + OWL_REG_SD_DAT; in owl_mmc_probe() 627 owl_host->dma_cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in owl_mmc_probe() 628 owl_host->dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in owl_mmc_probe() 629 owl_host->dma_cfg.device_fc = false; in owl_mmc_probe()
|
| H A D | cavium-thunderx.c | 173 u64 dma_cfg; in thunder_mmc_remove() local 180 dma_cfg = readq(host->dma_base + MIO_EMM_DMA_CFG(host)); in thunder_mmc_remove() 181 dma_cfg &= ~MIO_EMM_DMA_CFG_EN; in thunder_mmc_remove() 182 writeq(dma_cfg, host->dma_base + MIO_EMM_DMA_CFG(host)); in thunder_mmc_remove()
|
| H A D | cavium.c | 518 u64 dma_cfg, addr; in prepare_dma_single() local 527 dma_cfg = FIELD_PREP(MIO_EMM_DMA_CFG_EN, 1) | in prepare_dma_single() 530 dma_cfg |= FIELD_PREP(MIO_EMM_DMA_CFG_ENDIAN, 1); in prepare_dma_single() 532 dma_cfg |= FIELD_PREP(MIO_EMM_DMA_CFG_SIZE, in prepare_dma_single() 537 dma_cfg |= FIELD_PREP(MIO_EMM_DMA_CFG_ADR, addr); in prepare_dma_single() 538 writeq(dma_cfg, host->dma_base + MIO_EMM_DMA_CFG(host)); in prepare_dma_single()
|
| /linux/drivers/ata/ |
| H A D | pata_octeon_cf.c | 595 union cvmx_mio_boot_dma_cfgx dma_cfg; in octeon_cf_dma_finished() local 604 dma_cfg.u64 = cvmx_read_csr(cf_port->dma_base + DMA_CFG); in octeon_cf_dma_finished() 605 if (dma_cfg.s.size != 0xfffff) { in octeon_cf_dma_finished() 612 dma_cfg.u64 = 0; in octeon_cf_dma_finished() 613 dma_cfg.s.size = -1; in octeon_cf_dma_finished() 614 cvmx_write_csr(cf_port->dma_base + DMA_CFG, dma_cfg.u64); in octeon_cf_dma_finished() 653 union cvmx_mio_boot_dma_cfgx dma_cfg; in octeon_cf_interrupt() local 659 dma_cfg.u64 = cvmx_read_csr(cf_port->dma_base + DMA_CFG); in octeon_cf_interrupt() 666 if (dma_int.s.done && !dma_cfg.s.en) { in octeon_cf_interrupt() 974 union cvmx_mio_boot_dma_cfgx dma_cfg; in octeon_cf_shutdown() local [all …]
|
| /linux/drivers/comedi/drivers/ |
| H A D | ni_660x.c | 264 unsigned int dma_cfg[NI660X_MAX_CHIPS]; member 316 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_set_dma_channel() 317 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL(mite_channel, in ni_660x_set_dma_channel() 319 ni_660x_write(dev, chip, devpriv->dma_cfg[chip] | in ni_660x_set_dma_channel() 331 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_unset_dma_channel() 332 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL_NONE(mite_channel); in ni_660x_unset_dma_channel() 333 ni_660x_write(dev, chip, devpriv->dma_cfg[chip], NI660X_DMA_CFG); in ni_660x_unset_dma_channel() 984 devpriv->dma_cfg[chip] = 0; in ni_660x_init_tio_chips() 986 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL_NONE(chan); in ni_660x_init_tio_chips() 987 ni_660x_write(dev, chip, devpriv->dma_cfg[chip], in ni_660x_init_tio_chips()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | stm32_fmc2_nand.c | 352 struct dma_slave_config dma_cfg; in stm32_fmc2_nfc_select_chip() local 363 memset(&dma_cfg, 0, sizeof(dma_cfg)); in stm32_fmc2_nfc_select_chip() 364 dma_cfg.dst_addr = nfc->data_phys_addr[nfc->cs_sel]; in stm32_fmc2_nfc_select_chip() 365 dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_fmc2_nfc_select_chip() 366 dma_cfg.dst_maxburst = nfc->tx_dma_max_burst / in stm32_fmc2_nfc_select_chip() 367 dma_cfg.dst_addr_width; in stm32_fmc2_nfc_select_chip() 369 ret = dmaengine_slave_config(nfc->dma_tx_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->data_phys_addr[nfc->cs_sel]; in stm32_fmc2_nfc_select_chip() 379 dma_cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_fmc2_nfc_select_chip() [all …]
|
| /linux/drivers/leds/ |
| H A D | leds-sun50i-a100.c | 390 struct dma_slave_config dma_cfg = {}; in sun50i_a100_ledc_probe() local 472 dma_cfg.dst_addr = mem->start + LEDC_DATA_REG; in sun50i_a100_ledc_probe() 473 dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sun50i_a100_ledc_probe() 474 dma_cfg.dst_maxburst = LEDC_FIFO_DEPTH / 2; in sun50i_a100_ledc_probe() 476 ret = dmaengine_slave_config(priv->dma_chan, &dma_cfg); in sun50i_a100_ledc_probe()
|
| /linux/include/linux/ |
| H A D | sxgbe_platform.h | 45 struct sxgbe_dma_cfg *dma_cfg; member
|
| /linux/sound/soc/qcom/qdsp6/ |
| H A D | q6afe.c | 611 struct afe_param_id_cdc_dma_cfg dma_cfg; member 1643 struct afe_param_id_cdc_dma_cfg *dma_cfg = &pcfg->dma_cfg; in q6afe_cdc_dma_port_prepare() local 1645 dma_cfg->cdc_dma_cfg_minor_version = AFE_API_VERSION_CODEC_DMA_CONFIG; in q6afe_cdc_dma_port_prepare() 1646 dma_cfg->sample_rate = cfg->sample_rate; in q6afe_cdc_dma_port_prepare() 1647 dma_cfg->bit_width = cfg->bit_width; in q6afe_cdc_dma_port_prepare() 1648 dma_cfg->data_format = cfg->data_format; in q6afe_cdc_dma_port_prepare() 1649 dma_cfg->num_channels = cfg->num_channels; in q6afe_cdc_dma_port_prepare() 1651 dma_cfg->active_channels_mask = (1 << cfg->num_channels) - 1; in q6afe_cdc_dma_port_prepare()
|
| H A D | q6afe.h | 242 struct q6afe_cdc_dma_cfg dma_cfg; member
|
| H A D | q6afe-dai.c | 293 struct q6afe_cdc_dma_cfg *cfg = &dai_data->port_config[dai->id].dma_cfg; in q6dma_set_channel_map() 362 struct q6afe_cdc_dma_cfg *cfg = &dai_data->port_config[dai->id].dma_cfg; in q6dma_hw_params() 428 &dai_data->port_config[dai->id].dma_cfg); in q6afe_dai_prepare()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_main.c | 2994 stmmac_init_tx_chan(priv, priv->ioaddr, priv->plat->dma_cfg, in stmmac_tx_err() 3250 if (!priv->plat->dma_cfg || !priv->plat->dma_cfg->pbl) { in stmmac_init_dma_engine() 3256 priv->plat->dma_cfg->atds = 1; in stmmac_init_dma_engine() 3269 stmmac_dma_init(priv, priv->ioaddr, priv->plat->dma_cfg); in stmmac_init_dma_engine() 3276 stmmac_init_chan(priv, priv->ioaddr, priv->plat->dma_cfg, chan); in stmmac_init_dma_engine() 3284 stmmac_init_rx_chan(priv, priv->ioaddr, priv->plat->dma_cfg, in stmmac_init_dma_engine() 3298 stmmac_init_tx_chan(priv, priv->ioaddr, priv->plat->dma_cfg, in stmmac_init_dma_engine() 6973 stmmac_init_rx_chan(priv, priv->ioaddr, priv->plat->dma_cfg, in stmmac_enable_rx_queue() 7035 stmmac_init_tx_chan(priv, priv->ioaddr, priv->plat->dma_cfg, in stmmac_enable_tx_queue() 7116 stmmac_init_chan(priv, priv->ioaddr, priv->plat->dma_cfg, chan); in stmmac_xdp_open() [all …]
|
| /linux/drivers/net/ethernet/samsung/sxgbe/ |
| H A D | sxgbe_main.c | 958 if (priv->plat->dma_cfg) { in sxgbe_init_dma_engine() 959 pbl = priv->plat->dma_cfg->pbl; in sxgbe_init_dma_engine() 960 fixed_burst = priv->plat->dma_cfg->fixed_burst; in sxgbe_init_dma_engine() 961 burst_map = priv->plat->dma_cfg->burst_map; in sxgbe_init_dma_engine()
|
| /linux/Documentation/networking/device_drivers/ethernet/stmicro/ |
| H A D | stmmac.rst | 366 struct stmmac_dma_cfg *dma_cfg;
|
| /linux/sound/hda/codecs/ |
| H A D | ca0132.c | 2710 unsigned int dma_cfg = 0; in dsp_dma_setup() local 2742 dma_cfg = addr_field + incr_field; in dsp_dma_setup() 2744 dma_cfg); in dsp_dma_setup() 2779 chip_addx, count, dma_cfg, adr_ofs, xfr_cnt); in dsp_dma_setup()
|