/linux-6.1.9/arch/arm/mach-hisi/ |
D | hotplug.c | 73 static void __iomem *ctrl_base; variable 84 ctrl_base + SCPERPWREN); in set_cpu_hi3620() 88 writel_relaxed(0x01 << cpu, ctrl_base + SCCPUCOREEN); in set_cpu_hi3620() 93 writel_relaxed(val << cpu, ctrl_base + SCCPURSTDIS); in set_cpu_hi3620() 96 writel_relaxed(val << cpu, ctrl_base + SCCPURSTEN); in set_cpu_hi3620() 101 ctrl_base + SCISODIS); in set_cpu_hi3620() 105 val = readl_relaxed(ctrl_base + SCPERCTRL0); in set_cpu_hi3620() 107 writel_relaxed(val, ctrl_base + SCPERCTRL0); in set_cpu_hi3620() 112 writel_relaxed(val << cpu, ctrl_base + SCCPURSTDIS); in set_cpu_hi3620() 115 val = readl_relaxed(ctrl_base + SCPERCTRL0); in set_cpu_hi3620() [all …]
|
D | platsmp.c | 21 static void __iomem *ctrl_base; variable 26 if (!cpu || !ctrl_base) in hi3xxx_set_cpu_jump() 28 writel_relaxed(__pa_symbol(jump_addr), ctrl_base + ((cpu - 1) << 2)); in hi3xxx_set_cpu_jump() 34 if (!cpu || !ctrl_base) in hi3xxx_get_cpu_jump() 36 return readl_relaxed(ctrl_base + ((cpu - 1) << 2)); in hi3xxx_get_cpu_jump() 62 if (!ctrl_base) { in hi3xxx_smp_prepare_cpus() 68 ctrl_base = of_iomap(np, 0); in hi3xxx_smp_prepare_cpus() 69 if (!ctrl_base) { in hi3xxx_smp_prepare_cpus() 79 ctrl_base += offset; in hi3xxx_smp_prepare_cpus() 165 ctrl_base = of_iomap(node, 0); in hip01_boot_secondary() [all …]
|
/linux-6.1.9/drivers/phy/broadcom/ |
D | phy-brcm-usb-init.c | 440 static u32 brcmusb_usb_mdio_read(void __iomem *ctrl_base, u32 reg, int mode) in brcmusb_usb_mdio_read() argument 445 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_read() 447 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_read() 451 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_read() 455 return brcm_usb_readl(USB_CTRL_REG(ctrl_base, MDIO2)) & 0xffff; in brcmusb_usb_mdio_read() 458 static void brcmusb_usb_mdio_write(void __iomem *ctrl_base, u32 reg, in brcmusb_usb_mdio_write() argument 464 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_write() 466 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_write() 471 brcm_usb_writel(data, USB_CTRL_REG(ctrl_base, MDIO)); in brcmusb_usb_mdio_write() 476 static void brcmusb_usb_phy_ldo_fix(void __iomem *ctrl_base) in brcmusb_usb_phy_ldo_fix() argument [all …]
|
D | phy-brcm-sata.c | 74 void __iomem *ctrl_base; member 208 return priv->ctrl_base + (port->portnum * size); in brcm_sata_ctrl_base() 431 void __iomem *ctrl_base = brcm_sata_ctrl_base(port); in brcm_ns2_sata_init() local 462 writel(PHY_CTRL_1_RESET, ctrl_base + PHY_CTRL_1); in brcm_ns2_sata_init() 464 writel(0x0, ctrl_base + PHY_CTRL_1); in brcm_ns2_sata_init() 780 priv->ctrl_base = devm_platform_ioremap_resource_byname(pdev, "phy-ctrl"); in brcm_sata_phy_probe() 781 if (IS_ERR(priv->ctrl_base)) in brcm_sata_phy_probe() 782 return PTR_ERR(priv->ctrl_base); in brcm_sata_phy_probe()
|
/linux-6.1.9/drivers/fsi/ |
D | fsi-master-aspeed.c | 34 static const u32 ctrl_base = 0x80000000; variable 228 opb_readl(aspeed, ctrl_base + FSI_MRESP0, &mresp0); in check_errors() 229 opb_readl(aspeed, ctrl_base + FSI_MSTAP0, &mstap0); in check_errors() 230 opb_readl(aspeed, ctrl_base + FSI_MESRB0, &mesrb0); in check_errors() 242 ret = opb_writel(aspeed, ctrl_base + FSI_MRESP0, in check_errors() 340 ret = opb_writel(aspeed, ctrl_base + FSI_MCENP0 + (4 * idx), reg); in aspeed_master_link_enable() 344 ret = opb_writel(aspeed, ctrl_base + FSI_MSENP0 + (4 * idx), reg); in aspeed_master_link_enable() 401 opb_writel(aspeed, ctrl_base + FSI_MRESP0, reg); in aspeed_master_init() 406 opb_writel(aspeed, ctrl_base + FSI_MRESP0, reg); in aspeed_master_init() 409 opb_writel(aspeed, ctrl_base + FSI_MECTRL, reg); in aspeed_master_init() [all …]
|
/linux-6.1.9/drivers/video/fbdev/riva/ |
D | nv_driver.c | 319 (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 …]
|
D | rivafb.h | 48 u8 __iomem *ctrl_base; /* virtual control register base addr */ member
|
/linux-6.1.9/arch/arm/mach-omap2/ |
D | omap_phy_internal.c | 36 void __iomem *ctrl_base; in omap4430_phy_power_down() local 41 ctrl_base = ioremap(OMAP443X_SCM_BASE, SZ_1K); in omap4430_phy_power_down() 42 if (!ctrl_base) { in omap4430_phy_power_down() 48 writel_relaxed(PHY_PD, ctrl_base + CONTROL_DEV_CONF); in omap4430_phy_power_down() 50 iounmap(ctrl_base); in omap4430_phy_power_down()
|
/linux-6.1.9/arch/mips/pci/ |
D | pci-ar724x.c | 41 void __iomem *ctrl_base; member 60 reset = __raw_readl(apc->ctrl_base + AR724X_PCI_REG_RESET); in ar724x_pci_check_link() 236 base = apc->ctrl_base; in ar724x_pci_irq_handler() 256 base = apc->ctrl_base; in ar724x_pci_irq_unmask() 277 base = apc->ctrl_base; in ar724x_pci_irq_mask() 311 base = apc->ctrl_base; in ar724x_pci_irq_init() 349 app = __raw_readl(apc->ctrl_base + AR724X_PCI_REG_APP); in ar724x_pci_hw_init() 351 __raw_writel(app, apc->ctrl_base + AR724X_PCI_REG_APP); in ar724x_pci_hw_init() 375 apc->ctrl_base = devm_platform_ioremap_resource_byname(pdev, "ctrl_base"); in ar724x_pci_probe() 376 if (IS_ERR(apc->ctrl_base)) in ar724x_pci_probe() [all …]
|
/linux-6.1.9/drivers/media/platform/verisilicon/ |
D | imx8m_vpu_hw.c | 33 val = readl(vpu->ctrl_base + CTRL_SOFT_RESET); in imx8m_soft_reset() 35 writel(val, vpu->ctrl_base + CTRL_SOFT_RESET); in imx8m_soft_reset() 40 val = readl(vpu->ctrl_base + CTRL_SOFT_RESET); in imx8m_soft_reset() 42 writel(val, vpu->ctrl_base + CTRL_SOFT_RESET); in imx8m_soft_reset() 49 val = readl(vpu->ctrl_base + CTRL_CLOCK_ENABLE); in imx8m_clk_enable() 51 writel(val, vpu->ctrl_base + CTRL_CLOCK_ENABLE); in imx8m_clk_enable() 68 writel(0xffffffff, vpu->ctrl_base + CTRL_G1_DEC_FUSE); in imx8mq_runtime_resume() 69 writel(0xffffffff, vpu->ctrl_base + CTRL_G1_PP_FUSE); in imx8mq_runtime_resume() 70 writel(0xffffffff, vpu->ctrl_base + CTRL_G2_DEC_FUSE); in imx8mq_runtime_resume() 255 vpu->ctrl_base = vpu->reg_bases[vpu->variant->num_regs - 1]; in imx8mq_vpu_hw_init()
|
/linux-6.1.9/drivers/mailbox/ |
D | mailbox-mpfs.c | 65 void __iomem *ctrl_base; member 77 status = readl_relaxed(mbox->ctrl_base + SERVICES_SR_OFFSET); in mpfs_mbox_busy() 123 writel_relaxed(tx_trigger, mbox->ctrl_base + SERVICES_CR_OFFSET); in mpfs_mbox_send_data() 153 status = readl_relaxed(mbox->ctrl_base + SERVICES_SR_OFFSET); in mpfs_mbox_rx_data() 227 mbox->ctrl_base = devm_platform_get_and_ioremap_resource(pdev, 0, ®s); in mpfs_mbox_probe() 228 if (IS_ERR(mbox->ctrl_base)) in mpfs_mbox_probe() 229 return PTR_ERR(mbox->ctrl_base); in mpfs_mbox_probe() 237 mbox->mbox_base = mbox->ctrl_base + MAILBOX_REG_OFFSET; in mpfs_mbox_probe()
|
/linux-6.1.9/arch/arm/mm/ |
D | cache-uniphier.c | 73 void __iomem *ctrl_base; member 224 writel_relaxed(val, data->ctrl_base + UNIPHIER_SSCC); in __uniphier_cache_enable() 374 data->ctrl_base = of_iomap(np, 0); in __uniphier_cache_init() 375 if (!data->ctrl_base) { in __uniphier_cache_init() 395 data->way_ctrl_base = data->ctrl_base + 0xc00; in __uniphier_cache_init() 412 data->way_ctrl_base = data->ctrl_base + 0x870; in __uniphier_cache_init() 416 data->way_ctrl_base = data->ctrl_base + 0x840; in __uniphier_cache_init() 445 iounmap(data->ctrl_base); in __uniphier_cache_init()
|
/linux-6.1.9/drivers/leds/ |
D | leds-sc27xx-bltc.c | 90 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()
|
/linux-6.1.9/drivers/usb/musb/ |
D | musb_dsps.c | 174 void __iomem *reg_base = musb->ctrl_base; in dsps_musb_enable() 200 void __iomem *reg_base = musb->ctrl_base; in dsps_musb_disable() 270 musb_writel(musb->ctrl_base, wrp->coreintr_set, in dsps_check_status() 312 musb_writel(musb->ctrl_base, wrp->epintr_status, epintr); in dsps_musb_clear_ep_rxintr() 318 void __iomem *reg_base = musb->ctrl_base; in dsps_interrupt() 420 glue->regset.base = musb->ctrl_base; in dsps_musb_dbg_init() 441 musb->ctrl_base = reg_base; in dsps_musb_init() 478 musb_writel(musb->ctrl_base, wrp->phy_utmi, val); in dsps_musb_init() 516 void __iomem *ctrl_base = musb->ctrl_base; in dsps_musb_set_mode() local 519 reg = musb_readl(ctrl_base, wrp->mode); in dsps_musb_set_mode() [all …]
|
D | davinci.c | 83 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()
|
D | tusb6010.c | 46 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() 553 void __iomem *tbase = musb->ctrl_base; in tusb_musb_set_vbus() 630 void __iomem *tbase = musb->ctrl_base; in tusb_musb_set_mode() 822 void __iomem *tbase = musb->ctrl_base; in tusb_musb_interrupt() [all …]
|
D | da8xx.c | 86 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()
|
D | musb_cppi41.c | 359 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()
|
D | am35x.c | 83 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()
|
/linux-6.1.9/sound/pci/ |
D | sis7019.c | 83 void __iomem *ctrl_base; member 193 void __iomem *base = voice->ctrl_base; in sis_update_sso() 505 void __iomem *ctrl_base = voice->ctrl_base; in sis_pcm_playback_prepare() local 546 writel(format, ctrl_base + SIS_PLAY_DMA_FORMAT_CSO); in sis_pcm_playback_prepare() 547 writel(dma_addr, ctrl_base + SIS_PLAY_DMA_BASE); in sis_pcm_playback_prepare() 548 writel(control, ctrl_base + SIS_PLAY_DMA_CONTROL); in sis_pcm_playback_prepare() 549 writel(sso_eso, ctrl_base + SIS_PLAY_DMA_SSO_ESO); in sis_pcm_playback_prepare() 562 readl(ctrl_base); in sis_pcm_playback_prepare() 642 cso = readl(voice->ctrl_base + SIS_PLAY_DMA_FORMAT_CSO); in sis_pcm_pointer() 703 void __iomem *play_base = timing->ctrl_base; in sis_prepare_timing_voice() [all …]
|
/linux-6.1.9/drivers/spi/ |
D | spi-ti-qspi.c | 48 struct regmap *ctrl_base; member 533 if (qspi->ctrl_base) { in ti_qspi_enable_memory_map() 534 regmap_update_bits(qspi->ctrl_base, qspi->ctrl_reg, in ti_qspi_enable_memory_map() 547 if (qspi->ctrl_base) in ti_qspi_disable_memory_map() 548 regmap_update_bits(qspi->ctrl_base, qspi->ctrl_reg, in ti_qspi_disable_memory_map() 829 qspi->ctrl_base = in ti_qspi_probe() 832 if (IS_ERR(qspi->ctrl_base)) { in ti_qspi_probe() 833 ret = PTR_ERR(qspi->ctrl_base); in ti_qspi_probe()
|
/linux-6.1.9/drivers/clk/samsung/ |
D | clk-cpu.h | 50 void __iomem *ctrl_base; member
|
D | clk-cpu.c | 369 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()
|
/linux-6.1.9/drivers/dma/ |
D | dma-jz4780.c | 152 void __iomem *ctrl_base; member 199 return readl(jzdma->ctrl_base + reg); in jz4780_dma_ctrl_readl() 205 writel(val, jzdma->ctrl_base + reg); in jz4780_dma_ctrl_writel() 885 jzdma->ctrl_base = devm_ioremap_resource(dev, res); in jz4780_dma_probe() 886 if (IS_ERR(jzdma->ctrl_base)) in jz4780_dma_probe() 887 return PTR_ERR(jzdma->ctrl_base); in jz4780_dma_probe() 894 jzdma->ctrl_base = jzdma->chn_base + JZ4780_DMA_CTRL_OFFSET; in jz4780_dma_probe()
|
/linux-6.1.9/arch/arm/kernel/ |
D | hw_breakpoint.c | 329 int i, max_slots, ctrl_base, val_base; in arch_install_hw_breakpoint() local 337 ctrl_base = ARM_BASE_BCR; in arch_install_hw_breakpoint() 343 ctrl_base = ARM_BASE_WCR; in arch_install_hw_breakpoint() 369 ctrl_base = ARM_BASE_BCR + core_num_brps; in arch_install_hw_breakpoint() 378 write_wb_reg(ctrl_base + i, ctrl); in arch_install_hw_breakpoint()
|