Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/stmicro/stmmac/
A Ddwmac1000_dma.c75 struct stmmac_dma_cfg *dma_cfg, u32 chan) in dwmac1000_dma_init_channel() argument
77 int txpbl = dma_cfg->txpbl ?: dma_cfg->pbl; in dwmac1000_dma_init_channel()
78 int rxpbl = dma_cfg->rxpbl ?: dma_cfg->pbl; in dwmac1000_dma_init_channel()
88 if (dma_cfg->pblx8) in dwmac1000_dma_init_channel()
96 if (dma_cfg->fixed_burst) in dwmac1000_dma_init_channel()
100 if (dma_cfg->mixed_burst) in dwmac1000_dma_init_channel()
103 if (dma_cfg->atds) in dwmac1000_dma_init_channel()
106 if (dma_cfg->aal) in dwmac1000_dma_init_channel()
117 struct stmmac_dma_cfg *dma_cfg, in dwmac1000_dma_init_rx() argument
126 struct stmmac_dma_cfg *dma_cfg, in dwmac1000_dma_init_tx() argument
A Ddwmac4_dma.c74 struct stmmac_dma_cfg *dma_cfg, in dwmac4_dma_init_rx_chan() argument
79 u32 rxpbl = dma_cfg->rxpbl ?: dma_cfg->pbl; in dwmac4_dma_init_rx_chan()
100 u32 txpbl = dma_cfg->txpbl ?: dma_cfg->pbl; in dwmac4_dma_init_tx_chan()
127 if (dma_cfg->pblx8) in dwmac4_dma_init_channel()
145 if (dma_cfg->pblx8) in dwmac410_dma_init_channel()
161 if (dma_cfg->fixed_burst) in dwmac4_dma_init()
165 if (dma_cfg->mixed_burst) in dwmac4_dma_init()
168 if (dma_cfg->aal) in dwmac4_dma_init()
171 if (dma_cfg->eame) in dwmac4_dma_init()
178 if (dma_cfg->multi_msi_en) { in dwmac4_dma_init()
[all …]
A Ddwmac-loongson.c115 plat->dma_cfg->pbl = 32; in loongson_default_data()
116 plat->dma_cfg->pblx8 = true; in loongson_default_data()
211 int txpbl = dma_cfg->txpbl ?: dma_cfg->pbl; in loongson_dwmac_dma_init_channel()
212 int rxpbl = dma_cfg->rxpbl ?: dma_cfg->pbl; in loongson_dwmac_dma_init_channel()
217 if (dma_cfg->pblx8) in loongson_dwmac_dma_init_channel()
226 if (dma_cfg->fixed_burst) in loongson_dwmac_dma_init_channel()
230 if (dma_cfg->mixed_burst) in loongson_dwmac_dma_init_channel()
233 if (dma_cfg->atds) in loongson_dwmac_dma_init_channel()
236 if (dma_cfg->aal) in loongson_dwmac_dma_init_channel()
537 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), GFP_KERNEL); in loongson_dwmac_probe()
[all …]
A Dstmmac_pci.c61 plat->dma_cfg->pbl = 32; in stmmac_default_data()
62 plat->dma_cfg->pblx8 = true; in stmmac_default_data()
117 plat->dma_cfg->pbl = 32; in snps_gmac5_default_data()
118 plat->dma_cfg->pblx8 = true; in snps_gmac5_default_data()
172 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), in stmmac_pci_probe()
174 if (!plat->dma_cfg) in stmmac_pci_probe()
A Dstmmac_platform.c437 struct stmmac_dma_cfg *dma_cfg; in stmmac_probe_config_dt() local
580 dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*dma_cfg), in stmmac_probe_config_dt()
582 if (!dma_cfg) { in stmmac_probe_config_dt()
586 plat->dma_cfg = dma_cfg; in stmmac_probe_config_dt()
588 of_property_read_u32(np, "snps,pbl", &dma_cfg->pbl); in stmmac_probe_config_dt()
589 if (!dma_cfg->pbl) in stmmac_probe_config_dt()
590 dma_cfg->pbl = DEFAULT_DMA_PBL; in stmmac_probe_config_dt()
591 of_property_read_u32(np, "snps,txpbl", &dma_cfg->txpbl); in stmmac_probe_config_dt()
592 of_property_read_u32(np, "snps,rxpbl", &dma_cfg->rxpbl); in stmmac_probe_config_dt()
593 dma_cfg->pblx8 = !of_property_read_bool(np, "snps,no-pbl-x8"); in stmmac_probe_config_dt()
[all …]
A Ddwmac100_dma.c22 struct stmmac_dma_cfg *dma_cfg) in dwmac100_dma_init() argument
25 writel(DMA_BUS_MODE_DEFAULT | (dma_cfg->pbl << DMA_BUS_MODE_PBL_SHIFT), in dwmac100_dma_init()
33 struct stmmac_dma_cfg *dma_cfg, in dwmac100_dma_init_rx() argument
41 struct stmmac_dma_cfg *dma_cfg, in dwmac100_dma_init_tx() argument
A Ddwxgmac2_dma.c23 struct stmmac_dma_cfg *dma_cfg) in dwxgmac2_dma_init() argument
27 if (dma_cfg->aal) in dwxgmac2_dma_init()
30 if (dma_cfg->eame) in dwxgmac2_dma_init()
38 struct stmmac_dma_cfg *dma_cfg, u32 chan) in dwxgmac2_dma_init_chan() argument
42 if (dma_cfg->pblx8) in dwxgmac2_dma_init_chan()
51 struct stmmac_dma_cfg *dma_cfg, in dwxgmac2_dma_init_rx_chan() argument
54 u32 rxpbl = dma_cfg->rxpbl ?: dma_cfg->pbl; in dwxgmac2_dma_init_rx_chan()
68 struct stmmac_dma_cfg *dma_cfg, in dwxgmac2_dma_init_tx_chan() argument
71 u32 txpbl = dma_cfg->txpbl ?: dma_cfg->pbl; in dwxgmac2_dma_init_tx_chan()
A Ddwmac-intel.c521 plat->dma_cfg->pbl = 32; in intel_mgbe_common_data()
522 plat->dma_cfg->pblx8 = true; in intel_mgbe_common_data()
523 plat->dma_cfg->fixed_burst = 0; in intel_mgbe_common_data()
524 plat->dma_cfg->mixed_burst = 0; in intel_mgbe_common_data()
525 plat->dma_cfg->aal = 0; in intel_mgbe_common_data()
526 plat->dma_cfg->dche = true; in intel_mgbe_common_data()
929 plat->dma_cfg->pbl = 16; in quark_default_data()
930 plat->dma_cfg->pblx8 = true; in quark_default_data()
931 plat->dma_cfg->fixed_burst = 1; in quark_default_data()
1049 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), in intel_eth_pci_probe()
[all …]
/linux/drivers/net/ethernet/samsung/sxgbe/
A Dsxgbe_platform.c31 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()
/linux/drivers/usb/musb/
A Dtusb6010_omap.c197 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()
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()
294 dma_cfg.dst_port_window_size = port_window; in tusb_omap_dma_program()
295 dma_cfg.dst_maxburst = port_window; in tusb_omap_dma_program()
[all …]
/linux/drivers/dma/
A Dep93xx_dma.c197 struct ep93xx_dma_chan_cfg dma_cfg; member
528 switch (edmac->dma_cfg.port) { in m2m_hw_setup()
939 switch (edmac->dma_cfg.port) { in ep93xx_dma_alloc_chan_resources()
1442 echan->dma_cfg = *cfg; in ep93xx_m2p_dma_filter()
1451 struct ep93xx_dma_chan_cfg dma_cfg; in ep93xx_m2p_dma_of_xlate() local
1461 dma_cfg.port = port; in ep93xx_m2p_dma_of_xlate()
1462 dma_cfg.dir = direction; in ep93xx_m2p_dma_of_xlate()
1472 echan->dma_cfg = *cfg; in ep93xx_m2m_dma_filter()
1482 struct ep93xx_dma_chan_cfg dma_cfg; in ep93xx_m2m_dma_of_xlate() local
1497 dma_cfg.port = port; in ep93xx_m2m_dma_of_xlate()
[all …]
A Dste_dma40.c499 struct stedma40_chan_cfg dma_cfg; member
881 chan->dma_cfg.dir == DMA_DEV_TO_MEM)) in d40_log_lli_to_lcxa()
1856 int dev_type = d40c->dma_cfg.dev_type; in d40_allocate_channel()
1888 i = d40c->dma_cfg.phy_channel; in d40_allocate_channel()
1926 if (d40c->dma_cfg.use_fixed_channel) { in d40_allocate_channel()
1927 i = d40c->dma_cfg.phy_channel; in d40_allocate_channel()
1986 d40c->dma_cfg = dma40_memcpy_conf_log; in d40_config_memcpy()
1989 d40_log_cfg(&d40c->dma_cfg, in d40_config_memcpy()
2204 cfg = &chan->dma_cfg; in d40_prep_desc()
2304 d40c->dma_cfg = *info; in stedma40_filter()
[all …]
/linux/drivers/mmc/host/
A Dowl-mmc.c112 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()
633 owl_host->dma_cfg.src_addr = res->start + OWL_REG_SD_DAT; in owl_mmc_probe()
634 owl_host->dma_cfg.dst_addr = res->start + OWL_REG_SD_DAT; in owl_mmc_probe()
635 owl_host->dma_cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in owl_mmc_probe()
636 owl_host->dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in owl_mmc_probe()
637 owl_host->dma_cfg.device_fc = false; in owl_mmc_probe()
A Dcavium-thunderx.c174 u64 dma_cfg; in thunder_mmc_remove() local
181 dma_cfg = readq(host->dma_base + MIO_EMM_DMA_CFG(host)); in thunder_mmc_remove()
182 dma_cfg &= ~MIO_EMM_DMA_CFG_EN; in thunder_mmc_remove()
183 writeq(dma_cfg, host->dma_base + MIO_EMM_DMA_CFG(host)); in thunder_mmc_remove()
A Dcavium-octeon.c302 u64 dma_cfg; in octeon_mmc_remove() local
309 dma_cfg = readq(host->dma_base + MIO_EMM_DMA_CFG(host)); in octeon_mmc_remove()
310 dma_cfg &= ~MIO_EMM_DMA_CFG_EN; in octeon_mmc_remove()
311 writeq(dma_cfg, host->dma_base + MIO_EMM_DMA_CFG(host)); in octeon_mmc_remove()
/linux/drivers/ata/
A Dpata_octeon_cf.c595 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
666 if (dma_int.s.done && !dma_cfg.s.en) { in octeon_cf_interrupt()
975 union cvmx_mio_boot_dma_cfgx dma_cfg; in octeon_cf_shutdown() local
982 dma_cfg.u64 = 0; in octeon_cf_shutdown()
[all …]
/linux/drivers/spi/
A Dspi-stm32-qspi.c700 struct dma_slave_config dma_cfg; in stm32_qspi_dma_setup() local
704 memset(&dma_cfg, 0, sizeof(dma_cfg)); in stm32_qspi_dma_setup()
706 dma_cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in stm32_qspi_dma_setup()
707 dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in stm32_qspi_dma_setup()
708 dma_cfg.src_addr = qspi->phys_base + QSPI_DR; in stm32_qspi_dma_setup()
709 dma_cfg.dst_addr = qspi->phys_base + QSPI_DR; in stm32_qspi_dma_setup()
710 dma_cfg.src_maxburst = 4; in stm32_qspi_dma_setup()
711 dma_cfg.dst_maxburst = 4; in stm32_qspi_dma_setup()
720 if (dmaengine_slave_config(qspi->dma_chrx, &dma_cfg)) { in stm32_qspi_dma_setup()
732 if (dmaengine_slave_config(qspi->dma_chtx, &dma_cfg)) { in stm32_qspi_dma_setup()
/linux/drivers/comedi/drivers/
A Dni_660x.c264 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/
A Dstm32_fmc2_nand.c351 struct dma_slave_config dma_cfg; in stm32_fmc2_nfc_select_chip() local
362 memset(&dma_cfg, 0, sizeof(dma_cfg)); in stm32_fmc2_nfc_select_chip()
363 dma_cfg.dst_addr = nfc->data_phys_addr[nfc->cs_sel]; in stm32_fmc2_nfc_select_chip()
364 dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_fmc2_nfc_select_chip()
365 dma_cfg.dst_maxburst = nfc->tx_dma_max_burst / in stm32_fmc2_nfc_select_chip()
366 dma_cfg.dst_addr_width; in stm32_fmc2_nfc_select_chip()
376 memset(&dma_cfg, 0, sizeof(dma_cfg)); in stm32_fmc2_nfc_select_chip()
379 dma_cfg.src_maxburst = nfc->rx_dma_max_burst / in stm32_fmc2_nfc_select_chip()
380 dma_cfg.src_addr_width; in stm32_fmc2_nfc_select_chip()
394 memset(&dma_cfg, 0, sizeof(dma_cfg)); in stm32_fmc2_nfc_select_chip()
[all …]
/linux/drivers/staging/media/atomisp/pci/runtime/isys/src/
A Dvirtual_isys.c468 &channel_cfg->dma_cfg); in calculate_input_system_channel_cfg()
708 cfg->dma_cfg.channel = channel->dma_channel; in calculate_ibuf_ctrl_cfg()
709 cfg->dma_cfg.cmd = _DMA_V2_MOVE_A2B_NO_SYNC_CHK_COMMAND; in calculate_ibuf_ctrl_cfg()
711 cfg->dma_cfg.shift_returned_items = 0; in calculate_ibuf_ctrl_cfg()
712 cfg->dma_cfg.elems_per_word_in_ibuf = 0; in calculate_ibuf_ctrl_cfg()
713 cfg->dma_cfg.elems_per_word_in_dest = 0; in calculate_ibuf_ctrl_cfg()
/linux/drivers/leds/
A Dleds-sun50i-a100.c390 struct dma_slave_config dma_cfg = {}; in sun50i_a100_ledc_probe() local
477 dma_cfg.dst_addr = mem->start + LEDC_DATA_REG; in sun50i_a100_ledc_probe()
478 dma_cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sun50i_a100_ledc_probe()
479 dma_cfg.dst_maxburst = LEDC_FIFO_DEPTH / 2; in sun50i_a100_ledc_probe()
481 ret = dmaengine_slave_config(priv->dma_chan, &dma_cfg); in sun50i_a100_ledc_probe()
/linux/include/linux/
A Dsxgbe_platform.h45 struct sxgbe_dma_cfg *dma_cfg; member
/linux/arch/mips/loongson32/common/
A Dplatform.c136 .dma_cfg = &ls1x_eth_dma_cfg,
173 .dma_cfg = &ls1x_eth_dma_cfg,
/linux/drivers/staging/media/atomisp/pci/css_2401_system/
A Dibuf_ctrl_global.h59 } dma_cfg; member
/linux/sound/soc/qcom/qdsp6/
A Dq6afe.c521 struct afe_param_id_cdc_dma_cfg dma_cfg; member
1468 struct afe_param_id_cdc_dma_cfg *dma_cfg = &pcfg->dma_cfg; in q6afe_cdc_dma_port_prepare() local
1470 dma_cfg->cdc_dma_cfg_minor_version = AFE_API_VERSION_CODEC_DMA_CONFIG; in q6afe_cdc_dma_port_prepare()
1471 dma_cfg->sample_rate = cfg->sample_rate; in q6afe_cdc_dma_port_prepare()
1472 dma_cfg->bit_width = cfg->bit_width; in q6afe_cdc_dma_port_prepare()
1473 dma_cfg->data_format = cfg->data_format; in q6afe_cdc_dma_port_prepare()
1474 dma_cfg->num_channels = cfg->num_channels; in q6afe_cdc_dma_port_prepare()
1476 dma_cfg->active_channels_mask = (1 << cfg->num_channels) - 1; in q6afe_cdc_dma_port_prepare()

Completed in 65 milliseconds

12