Home
last modified time | relevance | path

Searched refs:ctrl_base (Results 1 – 25 of 28) sorted by relevance

12

/drivers/phy/broadcom/
Dphy-brcm-usb-init.c417 static u32 brcmusb_usb_mdio_read(void __iomem *ctrl_base, u32 reg, int mode) in brcmusb_usb_mdio_read() argument
422 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_read()
424 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_read()
428 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_read()
432 return brcm_usb_readl(USB_CTRL_REG(ctrl_base, MDIO2)) & 0xffff; in brcmusb_usb_mdio_read()
435 static void brcmusb_usb_mdio_write(void __iomem *ctrl_base, u32 reg, in brcmusb_usb_mdio_write() argument
441 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_write()
443 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_write()
448 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_write()
453 static void brcmusb_usb_phy_ldo_fix(void __iomem *ctrl_base) in brcmusb_usb_phy_ldo_fix() argument
[all …]
Dphy-brcm-sata.c73 void __iomem *ctrl_base; member
203 return priv->ctrl_base + (port->portnum * size); in brcm_sata_ctrl_base()
403 void __iomem *ctrl_base = brcm_sata_ctrl_base(port); in brcm_ns2_sata_init() local
434 writel(PHY_CTRL_1_RESET, ctrl_base + PHY_CTRL_1); in brcm_ns2_sata_init()
436 writel(0x0, ctrl_base + PHY_CTRL_1); in brcm_ns2_sata_init()
756 priv->ctrl_base = devm_ioremap_resource(dev, res); in brcm_sata_phy_probe()
757 if (IS_ERR(priv->ctrl_base)) in brcm_sata_phy_probe()
758 return PTR_ERR(priv->ctrl_base); in brcm_sata_phy_probe()
/drivers/staging/media/hantro/
Dimx8m_vpu_hw.c32 val = readl(vpu->ctrl_base + CTRL_SOFT_RESET); in imx8m_soft_reset()
34 writel(val, vpu->ctrl_base + CTRL_SOFT_RESET); in imx8m_soft_reset()
39 val = readl(vpu->ctrl_base + CTRL_SOFT_RESET); in imx8m_soft_reset()
41 writel(val, vpu->ctrl_base + CTRL_SOFT_RESET); in imx8m_soft_reset()
48 val = readl(vpu->ctrl_base + CTRL_CLOCK_ENABLE); in imx8m_clk_enable()
50 writel(val, vpu->ctrl_base + CTRL_CLOCK_ENABLE); in imx8m_clk_enable()
67 writel(0xffffffff, vpu->ctrl_base + CTRL_G1_DEC_FUSE); in imx8mq_runtime_resume()
68 writel(0xffffffff, vpu->ctrl_base + CTRL_G1_PP_FUSE); in imx8mq_runtime_resume()
69 writel(0xffffffff, vpu->ctrl_base + CTRL_G2_DEC_FUSE); in imx8mq_runtime_resume()
154 vpu->ctrl_base = vpu->reg_bases[vpu->variant->num_regs - 1]; in imx8mq_vpu_hw_init()
/drivers/fsi/
Dfsi-master-aspeed.c34 static const u32 ctrl_base = 0x80000000; variable
220 opb_readl(aspeed, ctrl_base + FSI_MRESP0, &mresp0); in check_errors()
221 opb_readl(aspeed, ctrl_base + FSI_MSTAP0, &mstap0); in check_errors()
222 opb_readl(aspeed, ctrl_base + FSI_MESRB0, &mesrb0); in check_errors()
234 ret = opb_writel(aspeed, ctrl_base + FSI_MRESP0, in check_errors()
332 ret = opb_writel(aspeed, ctrl_base + FSI_MCENP0 + (4 * idx), reg); in aspeed_master_link_enable()
336 ret = opb_writel(aspeed, ctrl_base + FSI_MSENP0 + (4 * idx), reg); in aspeed_master_link_enable()
393 opb_writel(aspeed, ctrl_base + FSI_MRESP0, reg); in aspeed_master_init()
398 opb_writel(aspeed, ctrl_base + FSI_MRESP0, reg); in aspeed_master_init()
401 opb_writel(aspeed, ctrl_base + FSI_MECTRL, reg); in aspeed_master_init()
[all …]
/drivers/video/fbdev/riva/
Dnv_driver.c319 (volatile U032 __iomem *)(par->ctrl_base + 0x00680000); in riva_common_setup()
321 (volatile U032 __iomem *)(par->ctrl_base + 0x00100000); in riva_common_setup()
323 (volatile U032 __iomem *)(par->ctrl_base + 0x00002000); in riva_common_setup()
325 (volatile U032 __iomem *)(par->ctrl_base + 0x00400000); in riva_common_setup()
327 (volatile U032 __iomem *)(par->ctrl_base + 0x00101000); in riva_common_setup()
329 (volatile U032 __iomem *)(par->ctrl_base + 0x00009000); in riva_common_setup()
331 (volatile U032 __iomem *)(par->ctrl_base + 0x00000000); in riva_common_setup()
333 (volatile U032 __iomem *)(par->ctrl_base + 0x00800000); in riva_common_setup()
334 par->riva.PCIO0 = par->ctrl_base + 0x00601000; in riva_common_setup()
335 par->riva.PDIO0 = par->ctrl_base + 0x00681000; in riva_common_setup()
[all …]
Drivafb.h48 u8 __iomem *ctrl_base; /* virtual control register base addr */ member
Dfbdev.c1967 default_par->ctrl_base = ioremap(rivafb_fix.mmio_start, in rivafb_probe()
1969 if (!default_par->ctrl_base) { in rivafb_probe()
1993 (u32 __iomem *)(default_par->ctrl_base + 0x00600000); in rivafb_probe()
1995 (u32 __iomem *)(default_par->ctrl_base + 0x00710000); in rivafb_probe()
2065 iounmap(default_par->ctrl_base); in rivafb_probe()
2093 iounmap(par->ctrl_base); in rivafb_remove()
/drivers/usb/musb/
Dmusb_dsps.c173 void __iomem *reg_base = musb->ctrl_base; in dsps_musb_enable()
199 void __iomem *reg_base = musb->ctrl_base; in dsps_musb_disable()
269 musb_writel(musb->ctrl_base, wrp->coreintr_set, in dsps_check_status()
311 musb_writel(musb->ctrl_base, wrp->epintr_status, epintr); in dsps_musb_clear_ep_rxintr()
317 void __iomem *reg_base = musb->ctrl_base; in dsps_interrupt()
419 glue->regset.base = musb->ctrl_base; in dsps_musb_dbg_init()
440 musb->ctrl_base = reg_base; in dsps_musb_init()
477 musb_writel(musb->ctrl_base, wrp->phy_utmi, val); in dsps_musb_init()
515 void __iomem *ctrl_base = musb->ctrl_base; in dsps_musb_set_mode() local
518 reg = musb_readl(ctrl_base, wrp->mode); in dsps_musb_set_mode()
[all …]
Ddavinci.c83 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_MASK_SET_REG, tmp); in davinci_musb_enable()
87 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_MASK_SET_REG, tmp); in davinci_musb_enable()
92 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_MASK_SET_REG, tmp); in davinci_musb_enable()
101 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_SET_REG, in davinci_musb_enable()
115 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_MASK_CLR_REG, in davinci_musb_disable()
119 musb_writel(musb->ctrl_base, DAVINCI_USB_EOI_REG, 0); in davinci_musb_disable()
213 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_SET_REG, in otg_timer()
249 void __iomem *tibase = musb->ctrl_base; in davinci_musb_interrupt()
359 void __iomem *tibase = musb->ctrl_base; in davinci_musb_init()
Dtusb6010.c46 void __iomem *tbase = musb->ctrl_base; in tusb_get_revision()
63 void __iomem *tbase = musb->ctrl_base; in tusb_print_revision()
96 void __iomem *tbase = musb->ctrl_base; in tusb_wbus_quirk()
328 void __iomem *tbase = musb->ctrl_base; in tusb_draw_power()
364 void __iomem *tbase = musb->ctrl_base; in tusb_set_clock_source()
391 void __iomem *tbase = musb->ctrl_base; in tusb_allow_idle()
428 void __iomem *tbase = musb->ctrl_base; in tusb_musb_vbus_status()
552 void __iomem *tbase = musb->ctrl_base; in tusb_musb_set_vbus()
629 void __iomem *tbase = musb->ctrl_base; in tusb_musb_set_mode()
821 void __iomem *tbase = musb->ctrl_base; in tusb_musb_interrupt()
[all …]
Dmusb_cppi41.c359 musb_writel(musb->ctrl_base, USB_CTRL_TX_MODE, new_mode); in cppi41_set_dma_mode()
362 musb_writel(musb->ctrl_base, USB_CTRL_RX_MODE, new_mode); in cppi41_set_dma_mode()
388 musb_writel(musb->ctrl_base, DA8XX_USB_MODE, new_mode); in da8xx_set_dma_mode()
407 musb_writel(controller->controller.musb->ctrl_base, in cppi41_set_autoreq_mode()
439 musb_writel(musb->ctrl_base, in cppi41_configure_channel()
449 musb_writel(musb->ctrl_base, in cppi41_configure_channel()
626 musb_writel(musb->ctrl_base, controller->tdown_reg, in cppi41_dma_channel_abort()
632 musb_writel(musb->ctrl_base, controller->tdown_reg, tdbit); in cppi41_dma_channel_abort()
Dda8xx.c86 void __iomem *reg_base = musb->ctrl_base; in da8xx_musb_enable()
105 void __iomem *reg_base = musb->ctrl_base; in da8xx_musb_disable()
164 musb_writel(musb->ctrl_base, DA8XX_USB_INTR_SRC_SET_REG, in otg_timer()
225 void __iomem *reg_base = musb->ctrl_base; in da8xx_musb_interrupt()
357 void __iomem *reg_base = musb->ctrl_base; in da8xx_musb_init()
448 void __iomem *reg_base = musb->ctrl_base; in da8xx_dma_controller_callback()
Dam35x.c83 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_enable()
103 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_disable()
152 musb_writel(musb->ctrl_base, CORE_INTR_SRC_SET_REG, in otg_timer()
200 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_interrupt()
333 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_init()
Dtusb6010_omap.c585 void __iomem *tbase = musb->ctrl_base; in tusb_dma_controller_create()
591 musb_writel(musb->ctrl_base, TUSB_DMA_INT_MASK, 0x7fffffff); in tusb_dma_controller_create()
592 musb_writel(musb->ctrl_base, TUSB_DMA_EP_MAP, 0); in tusb_dma_controller_create()
604 tusb_dma->tbase = musb->ctrl_base; in tusb_dma_controller_create()
Dcppi_dma.c601 cppi_rndis_update(tx, 0, musb->ctrl_base, rndis); in cppi_next_tx_segment()
770 void __iomem *tibase = musb->ctrl_base; in cppi_next_rx_segment()
811 cppi_rndis_update(rx, 1, musb->ctrl_base, is_rndis); in cppi_next_rx_segment()
1155 tibase = musb->ctrl_base; in cppi_interrupt()
/drivers/leds/
Dleds-sc27xx-bltc.c90 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_enable() local
102 return regmap_update_bits(regmap, ctrl_base, in sc27xx_led_enable()
110 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_disable() local
113 return regmap_update_bits(regmap, ctrl_base, in sc27xx_led_disable()
151 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_pattern_clear() local
161 err = regmap_update_bits(regmap, ctrl_base, in sc27xx_led_pattern_clear()
177 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_pattern_set() local
229 err = regmap_update_bits(regmap, ctrl_base, in sc27xx_led_pattern_set()
/drivers/spi/
Dspi-ti-qspi.c48 struct regmap *ctrl_base; member
534 if (qspi->ctrl_base) { in ti_qspi_enable_memory_map()
535 regmap_update_bits(qspi->ctrl_base, qspi->ctrl_reg, in ti_qspi_enable_memory_map()
548 if (qspi->ctrl_base) in ti_qspi_disable_memory_map()
549 regmap_update_bits(qspi->ctrl_base, qspi->ctrl_reg, in ti_qspi_disable_memory_map()
827 qspi->ctrl_base = in ti_qspi_probe()
830 if (IS_ERR(qspi->ctrl_base)) { in ti_qspi_probe()
831 ret = PTR_ERR(qspi->ctrl_base); in ti_qspi_probe()
/drivers/dma/
Ddma-jz4780.c150 void __iomem *ctrl_base; member
197 return readl(jzdma->ctrl_base + reg); in jz4780_dma_ctrl_readl()
203 writel(val, jzdma->ctrl_base + reg); in jz4780_dma_ctrl_writel()
868 jzdma->ctrl_base = devm_ioremap_resource(dev, res); in jz4780_dma_probe()
869 if (IS_ERR(jzdma->ctrl_base)) in jz4780_dma_probe()
870 return PTR_ERR(jzdma->ctrl_base); in jz4780_dma_probe()
877 jzdma->ctrl_base = jzdma->chn_base + JZ4780_DMA_CTRL_OFFSET; in jz4780_dma_probe()
Dfsl-qdma.c211 void __iomem *ctrl_base; member
589 void __iomem *block, *ctrl = fsl_qdma->ctrl_base; in fsl_qdma_halt()
771 void __iomem *block, *ctrl = fsl_qdma->ctrl_base; in fsl_qdma_queue_handler()
876 void __iomem *block, *ctrl = fsl_qdma->ctrl_base; in fsl_qdma_reg_init()
1189 fsl_qdma->ctrl_base = devm_ioremap_resource(&pdev->dev, res); in fsl_qdma_probe()
1190 if (IS_ERR(fsl_qdma->ctrl_base)) in fsl_qdma_probe()
1191 return PTR_ERR(fsl_qdma->ctrl_base); in fsl_qdma_probe()
/drivers/clk/samsung/
Dclk-cpu.c369 base = cpuclk->ctrl_base; in exynos_cpuclk_notifier_cb()
392 base = cpuclk->ctrl_base; in exynos5433_cpuclk_notifier_cb()
433 cpuclk->ctrl_base = ctx->reg_base + offset; in exynos_register_cpu_clock()
Dclk-cpu.h50 void __iomem *ctrl_base; member
/drivers/perf/
Darm-cci.c101 void __iomem *ctrl_base; member
375 rev = readl_relaxed(cci_pmu->ctrl_base + CCI_PID2) & CCI_PID2_REV_MASK; in probe_cci400_revision()
673 val = readl_relaxed(cci_pmu->ctrl_base + CCI_PMCR) | CCI_PMCR_CEN; in __cci_pmu_enable_nosync()
674 writel(val, cci_pmu->ctrl_base + CCI_PMCR); in __cci_pmu_enable_nosync()
690 val = readl_relaxed(cci_pmu->ctrl_base + CCI_PMCR) & ~CCI_PMCR_CEN; in __cci_pmu_disable()
691 writel(val, cci_pmu->ctrl_base + CCI_PMCR); in __cci_pmu_disable()
795 return (readl_relaxed(cci_pmu->ctrl_base + CCI_PMCR) & in pmu_get_max_counters()
1609 cci_pmu->ctrl_base = *(void __iomem **)dev->platform_data; in cci_pmu_alloc()
/drivers/net/ethernet/ti/
Ddavinci_emac.c318 void __iomem *ctrl_base; member
364 #define emac_ctrl_read(reg) ioread32((priv->ctrl_base + (reg)))
365 #define emac_ctrl_write(reg, val) iowrite32(val, (priv->ctrl_base + (reg)))
1843 priv->ctrl_base = in davinci_emac_probe()
1845 if (IS_ERR(priv->ctrl_base)) { in davinci_emac_probe()
1846 rc = PTR_ERR(priv->ctrl_base); in davinci_emac_probe()
1850 priv->ctrl_base = priv->remap_addr + pdata->ctrl_mod_reg_offset; in davinci_emac_probe()
/drivers/gpu/drm/msm/dsi/
Ddsi_host.c103 void __iomem *ctrl_base; member
192 return msm_readl(msm_host->ctrl_base + reg); in dsi_read()
196 msm_writel(data, msm_host->ctrl_base + reg); in dsi_write()
238 ret = dsi_get_version(msm_host->ctrl_base, &major, &minor); in dsi_get_config()
1576 if (!msm_host->ctrl_base) in dsi_host_irq()
1862 msm_host->ctrl_base = msm_ioremap(pdev, "dsi_ctrl", "DSI CTRL"); in msm_dsi_host_init()
1863 if (IS_ERR(msm_host->ctrl_base)) { in msm_dsi_host_init()
1865 ret = PTR_ERR(msm_host->ctrl_base); in msm_dsi_host_init()
1886 msm_host->ctrl_base += msm_host->cfg_hnd->cfg->io_offset; in msm_dsi_host_init()
/drivers/net/ethernet/hisilicon/
Dhix5hd2_gmac.c249 void __iomem *ctrl_base; member
315 writel_relaxed(val, priv->ctrl_base); in hix5hd2_config_port()
1127 priv->ctrl_base = devm_platform_ioremap_resource(pdev, 1); in hix5hd2_dev_probe()
1128 if (IS_ERR(priv->ctrl_base)) { in hix5hd2_dev_probe()
1129 ret = PTR_ERR(priv->ctrl_base); in hix5hd2_dev_probe()

12