Home
last modified time | relevance | path

Searched refs:dma_cfg (Results 1 – 9 of 9) sorted by relevance

/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_platform.c35 struct sxgbe_dma_cfg *dma_cfg; in sxgbe_probe_config_dt() local
51 dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*dma_cfg), GFP_KERNEL); in sxgbe_probe_config_dt()
52 if (!dma_cfg) in sxgbe_probe_config_dt()
55 plat->dma_cfg = dma_cfg; in sxgbe_probe_config_dt()
56 of_property_read_u32(np, "samsung,pbl", &dma_cfg->pbl); in sxgbe_probe_config_dt()
57 if (of_property_read_u32(np, "samsung,burst-map", &dma_cfg->burst_map) == 0) in sxgbe_probe_config_dt()
58 dma_cfg->fixed_burst = true; in sxgbe_probe_config_dt()
Dsxgbe_main.c963 if (priv->plat->dma_cfg) { in sxgbe_init_dma_engine()
964 pbl = priv->plat->dma_cfg->pbl; in sxgbe_init_dma_engine()
965 fixed_burst = priv->plat->dma_cfg->fixed_burst; in sxgbe_init_dma_engine()
966 burst_map = priv->plat->dma_cfg->burst_map; in sxgbe_init_dma_engine()
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_platform.c215 struct stmmac_dma_cfg *dma_cfg; in stmmac_probe_config_dt() local
307 dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*dma_cfg), in stmmac_probe_config_dt()
309 if (!dma_cfg) { in stmmac_probe_config_dt()
313 plat->dma_cfg = dma_cfg; in stmmac_probe_config_dt()
314 of_property_read_u32(np, "snps,pbl", &dma_cfg->pbl); in stmmac_probe_config_dt()
315 dma_cfg->aal = of_property_read_bool(np, "snps,aal"); in stmmac_probe_config_dt()
316 dma_cfg->fixed_burst = in stmmac_probe_config_dt()
318 dma_cfg->mixed_burst = in stmmac_probe_config_dt()
Dstmmac_pci.c83 plat->dma_cfg->pbl = 32; in stmmac_default_data()
117 plat->dma_cfg->pbl = 16; in quark_default_data()
118 plat->dma_cfg->fixed_burst = 1; in quark_default_data()
180 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), in stmmac_pci_probe()
182 if (!plat->dma_cfg) in stmmac_pci_probe()
Dstmmac_main.c1600 if (priv->plat->dma_cfg) { in stmmac_init_dma_engine()
1601 pbl = priv->plat->dma_cfg->pbl; in stmmac_init_dma_engine()
1602 fixed_burst = priv->plat->dma_cfg->fixed_burst; in stmmac_init_dma_engine()
1603 mixed_burst = priv->plat->dma_cfg->mixed_burst; in stmmac_init_dma_engine()
1604 aal = priv->plat->dma_cfg->aal; in stmmac_init_dma_engine()
/drivers/dma/
Dste_dma40.c470 struct stedma40_chan_cfg dma_cfg; member
850 chan->dma_cfg.dir == DMA_DEV_TO_MEM)) in d40_log_lli_to_lcxa()
1233 u32 event = D40_TYPE_TO_EVENT(d40c->dma_cfg.dev_type); in d40_config_set_event()
1236 if ((d40c->dma_cfg.dir == DMA_DEV_TO_MEM) || in d40_config_set_event()
1237 (d40c->dma_cfg.dir == DMA_DEV_TO_DEV)) in d40_config_set_event()
1241 if (d40c->dma_cfg.dir != DMA_DEV_TO_MEM) in d40_config_set_event()
1335 return phy_map[d40c->dma_cfg.mode_opt]; in d40_get_prmo()
1337 return log_map[d40c->dma_cfg.mode_opt]; in d40_get_prmo()
1389 return num_elt * d40c->dma_cfg.dst_info.data_width; in d40_residue()
1826 int dev_type = d40c->dma_cfg.dev_type; in d40_allocate_channel()
[all …]
/drivers/mmc/host/
Dbfin_sdh.c118 unsigned int dma_cfg; in sdh_setup_data() local
124 dma_cfg = 0; in sdh_setup_data()
150 dma_cfg |= WNR; in sdh_setup_data()
157 dma_cfg |= DMAFLOW_ARRAY | RESTART | WDSIZE_32 | DMAEN; in sdh_setup_data()
159 dma_cfg |= PSIZE_32 | NDSIZE_3; in sdh_setup_data()
161 dma_cfg |= NDSIZE_5; in sdh_setup_data()
168 host->sg_cpu[i].cfg = dma_cfg; in sdh_setup_data()
189 set_dma_config(host->dma_ch, dma_cfg); in sdh_setup_data()
192 dma_cfg |= WDSIZE_32 | DMAEN; in sdh_setup_data()
197 set_dma_config(host->dma_ch, dma_cfg); in sdh_setup_data()
/drivers/ata/
Dpata_octeon_cf.c634 union cvmx_mio_boot_dma_cfgx dma_cfg; in octeon_cf_dma_finished() local
645 dma_cfg.u64 = cvmx_read_csr(cf_port->dma_base + DMA_CFG); in octeon_cf_dma_finished()
646 if (dma_cfg.s.size != 0xfffff) { in octeon_cf_dma_finished()
653 dma_cfg.u64 = 0; in octeon_cf_dma_finished()
654 dma_cfg.s.size = -1; in octeon_cf_dma_finished()
655 cvmx_write_csr(cf_port->dma_base + DMA_CFG, dma_cfg.u64); in octeon_cf_dma_finished()
695 union cvmx_mio_boot_dma_cfgx dma_cfg; in octeon_cf_interrupt() local
701 dma_cfg.u64 = cvmx_read_csr(cf_port->dma_base + DMA_CFG); in octeon_cf_interrupt()
708 if (dma_int.s.done && !dma_cfg.s.en) { in octeon_cf_interrupt()
1021 union cvmx_mio_boot_dma_cfgx dma_cfg; in octeon_cf_shutdown() local
[all …]
/drivers/staging/comedi/drivers/
Dni_660x.c263 unsigned int dma_cfg[NI660X_MAX_CHIPS]; member
314 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_set_dma_channel()
315 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL(mite_channel, in ni_660x_set_dma_channel()
317 ni_660x_write(dev, chip, devpriv->dma_cfg[chip] | in ni_660x_set_dma_channel()
330 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_unset_dma_channel()
331 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL_NONE(mite_channel); in ni_660x_unset_dma_channel()
332 ni_660x_write(dev, chip, devpriv->dma_cfg[chip], NI660X_DMA_CFG); in ni_660x_unset_dma_channel()
685 devpriv->dma_cfg[chip] = 0; in ni_660x_init_tio_chips()
687 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL_NONE(chan); in ni_660x_init_tio_chips()
688 ni_660x_write(dev, chip, devpriv->dma_cfg[chip], in ni_660x_init_tio_chips()