/linux-5.19.10/arch/arm/kernel/ |
D | smp_scu.c | 29 unsigned int __init scu_get_core_count(void __iomem *scu_base) in scu_get_core_count() argument 31 unsigned int ncores = readl_relaxed(scu_base + SCU_CONFIG); in scu_get_core_count() 38 void scu_enable(void __iomem *scu_base) in scu_enable() argument 45 scu_ctrl = readl_relaxed(scu_base + 0x30); in scu_enable() 47 writel_relaxed(scu_ctrl | 0x1, scu_base + 0x30); in scu_enable() 51 scu_ctrl = readl_relaxed(scu_base + SCU_CTRL); in scu_enable() 63 writel_relaxed(scu_ctrl, scu_base + SCU_CTRL); in scu_enable() 73 static int scu_set_power_mode_internal(void __iomem *scu_base, in scu_set_power_mode_internal() argument 83 val = readb_relaxed(scu_base + SCU_CPU_STATUS + cpu); in scu_set_power_mode_internal() 86 writeb_relaxed(val, scu_base + SCU_CPU_STATUS + cpu); in scu_set_power_mode_internal() [all …]
|
/linux-5.19.10/arch/arm/include/asm/ |
D | smp_scu.h | 32 int scu_get_cpu_power_mode(void __iomem *scu_base, unsigned int logical_cpu); 34 static inline unsigned int scu_get_core_count(void __iomem *scu_base) in scu_get_core_count() argument 38 static inline int scu_power_mode(void __iomem *scu_base, unsigned int mode) in scu_power_mode() argument 42 static inline int scu_cpu_power_enable(void __iomem *scu_base, in scu_cpu_power_enable() argument 47 static inline int scu_get_cpu_power_mode(void __iomem *scu_base, in scu_get_cpu_power_mode() argument 55 void scu_enable(void __iomem *scu_base); 57 static inline void scu_enable(void __iomem *scu_base) {} in scu_enable() argument
|
/linux-5.19.10/arch/arm/mach-bcm/ |
D | bcm63xx_smp.c | 38 void __iomem *scu_base; in scu_a9_enable() local 53 scu_base = ioremap((phys_addr_t)config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable() 54 if (!scu_base) { in scu_a9_enable() 60 scu_enable(scu_base); in scu_a9_enable() 62 ncores = scu_base ? scu_get_core_count(scu_base) : 1; in scu_a9_enable() 94 iounmap(scu_base); /* That's the last we'll need of this */ in scu_a9_enable()
|
D | platsmp.c | 50 void __iomem *scu_base; in scu_a9_enable() local 64 scu_base = ioremap((phys_addr_t)config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable() 65 if (!scu_base) { in scu_a9_enable() 71 scu_enable(scu_base); in scu_a9_enable() 73 iounmap(scu_base); /* That's the last we'll need of this */ in scu_a9_enable()
|
/linux-5.19.10/arch/arm/mach-ux500/ |
D | platsmp.c | 34 static void __iomem *scu_base; in ux500_smp_prepare_cpus() local 55 scu_base = of_iomap(np, 0); in ux500_smp_prepare_cpus() 57 if (!scu_base) { in ux500_smp_prepare_cpus() 62 scu_enable(scu_base); in ux500_smp_prepare_cpus() 63 ncores = scu_get_core_count(scu_base); in ux500_smp_prepare_cpus() 66 iounmap(scu_base); in ux500_smp_prepare_cpus()
|
/linux-5.19.10/arch/arm/mach-versatile/ |
D | platsmp-realview.c | 38 void __iomem *scu_base; in realview_smp_prepare_cpus() local 48 scu_base = of_iomap(np, 0); in realview_smp_prepare_cpus() 50 if (!scu_base) { in realview_smp_prepare_cpus() 55 scu_enable(scu_base); in realview_smp_prepare_cpus() 56 ncores = scu_get_core_count(scu_base); in realview_smp_prepare_cpus() 60 iounmap(scu_base); in realview_smp_prepare_cpus()
|
/linux-5.19.10/arch/arm/mach-npcm/ |
D | platsmp.c | 58 void __iomem *scu_base; in npcm7xx_smp_prepare_cpus() local 65 scu_base = of_iomap(scu_np, 0); in npcm7xx_smp_prepare_cpus() 66 if (!scu_base) { in npcm7xx_smp_prepare_cpus() 71 scu_enable(scu_base); in npcm7xx_smp_prepare_cpus() 73 iounmap(scu_base); in npcm7xx_smp_prepare_cpus()
|
/linux-5.19.10/arch/arm/mach-oxnas/ |
D | platsmp.c | 63 void __iomem *scu_base; in ox820_smp_prepare_cpus() local 66 scu_base = of_iomap(np, 0); in ox820_smp_prepare_cpus() 68 if (!scu_base) in ox820_smp_prepare_cpus() 84 scu_enable(scu_base); in ox820_smp_prepare_cpus() 88 iounmap(scu_base); in ox820_smp_prepare_cpus()
|
/linux-5.19.10/arch/arm/mach-berlin/ |
D | platsmp.c | 61 void __iomem *scu_base; in berlin_smp_prepare_cpus() local 65 scu_base = of_iomap(np, 0); in berlin_smp_prepare_cpus() 67 if (!scu_base) in berlin_smp_prepare_cpus() 80 scu_enable(scu_base); in berlin_smp_prepare_cpus() 96 iounmap(scu_base); in berlin_smp_prepare_cpus()
|
/linux-5.19.10/arch/arm/mach-omap2/ |
D | pm33xx-core.c | 38 static void __iomem *scu_base; variable 50 scu_base = ioremap(scu_a9_get_base(), SZ_256); in am43xx_map_scu() 52 if (!scu_base) in am43xx_map_scu() 199 scu_power_mode(scu_base, SCU_PM_POWEROFF); in am43xx_suspend() 201 scu_power_mode(scu_base, SCU_PM_NORMAL); in am43xx_suspend() 238 if (!scu_base) in am43xx_cpu_suspend() 241 scu_power_mode(scu_base, SCU_PM_DORMANT); in am43xx_cpu_suspend() 243 scu_power_mode(scu_base, SCU_PM_NORMAL); in am43xx_cpu_suspend()
|
D | omap-smp.c | 47 void __iomem *scu_base; member 71 return cfg.scu_base; in omap4_get_scu_base() 270 cfg.scu_base = OMAP2_L4_IO_ADDRESS(scu_a9_get_base()); in omap4_smp_init_cpus() 271 BUG_ON(!cfg.scu_base); in omap4_smp_init_cpus() 272 ncores = scu_get_core_count(cfg.scu_base); in omap4_smp_init_cpus() 390 if (cfg.scu_base) in omap4_smp_prepare_cpus() 391 scu_enable(cfg.scu_base); in omap4_smp_prepare_cpus()
|
/linux-5.19.10/arch/arm/mach-meson/ |
D | platsmp.c | 35 static void __iomem *scu_base; variable 94 scu_base = of_iomap(node, 0); in meson_smp_prepare_cpus() 96 if (!scu_base) { in meson_smp_prepare_cpus() 101 scu_enable(scu_base); in meson_smp_prepare_cpus() 131 scu_cpu_power_enable(scu_base, cpu); in meson_smp_begin_secondary_boot() 301 scu_power_mode(scu_base, SCU_PM_POWEROFF); in meson8_smp_cpu_die() 317 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8_smp_cpu_kill() 359 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8b_smp_cpu_kill()
|
/linux-5.19.10/arch/arm/mach-hisi/ |
D | platsmp.c | 42 void __iomem *scu_base = NULL; in hisi_enable_scu_a9() local 46 scu_base = ioremap(base, SZ_4K); in hisi_enable_scu_a9() 47 if (!scu_base) { in hisi_enable_scu_a9() 51 scu_enable(scu_base); in hisi_enable_scu_a9() 52 iounmap(scu_base); in hisi_enable_scu_a9()
|
/linux-5.19.10/arch/arm/mach-imx/ |
D | platsmp.c | 21 static void __iomem *scu_base; variable 40 scu_base = IMX_IO_ADDRESS(base); in imx_scu_map_io() 58 ncores = scu_get_core_count(scu_base); in imx_smp_init_cpus() 66 scu_enable(scu_base); in imx_smp_prepare()
|
/linux-5.19.10/arch/arm/mach-sti/ |
D | platsmp.c | 52 void __iomem *scu_base; in sti_smp_prepare_cpus() local 59 scu_base = of_iomap(np, 0); in sti_smp_prepare_cpus() 60 scu_enable(scu_base); in sti_smp_prepare_cpus()
|
/linux-5.19.10/drivers/clk/ |
D | clk-aspeed.c | 44 static void __iomem *scu_base; variable 445 scu_base + ASPEED_CLK_SELECTION, 15, 0, in aspeed_clk_probe() 450 0, scu_base + ASPEED_CLK_SELECTION, 12, 3, 0, in aspeed_clk_probe() 459 scu_base + ASPEED_CLK_SELECTION, 16, 3, 0, in aspeed_clk_probe() 475 scu_base + ASPEED_MAC_CLK_DLY, 29, 0, in aspeed_clk_probe() 483 scu_base + ASPEED_MAC_CLK_DLY, 30, 0, in aspeed_clk_probe() 492 scu_base + ASPEED_CLK_SELECTION, 20, 3, 0, in aspeed_clk_probe() 501 scu_base + ASPEED_CLK_SELECTION_2, 0, 2, 0, in aspeed_clk_probe() 517 scu_base + ASPEED_CLK_SELECTION, 2, 0x3, 0, in aspeed_clk_probe() 524 scu_base + ASPEED_CLK_SELECTION, 28, in aspeed_clk_probe() [all …]
|
/linux-5.19.10/arch/arm/mach-mvebu/ |
D | board-v7.c | 36 static void __iomem *scu_base; variable 47 scu_base = of_iomap(np, 0); in mvebu_scu_enable() 48 scu_enable(scu_base); in mvebu_scu_enable() 55 return scu_base; in mvebu_get_scu_base()
|
/linux-5.19.10/arch/arm/mach-spear/ |
D | platsmp.c | 39 static void __iomem *scu_base = IOMEM(VA_SCU_BASE); variable 100 unsigned int i, ncores = scu_get_core_count(scu_base); in spear13xx_smp_init_cpus() 115 scu_enable(scu_base); in spear13xx_smp_prepare_cpus()
|
/linux-5.19.10/arch/arm/mach-exynos/ |
D | platsmp.c | 171 static void __iomem *scu_base; in exynos_scu_enable() local 173 if (!scu_base) { in exynos_scu_enable() 176 scu_base = of_iomap(np, 0); in exynos_scu_enable() 179 scu_base = ioremap(scu_a9_get_base(), SZ_4K); in exynos_scu_enable() 182 scu_enable(scu_base); in exynos_scu_enable()
|
/linux-5.19.10/drivers/gpu/drm/gma500/ |
D | oaktrail_hdmi.c | 209 static void scu_busy_loop(void __iomem *scu_base) in scu_busy_loop() argument 214 status = readl(scu_base + 0x04); in scu_busy_loop() 217 status = readl(scu_base + 0x04); in scu_busy_loop()
|
/linux-5.19.10/drivers/scsi/isci/ |
D | host.c | 1292 static void __iomem *scu_base(struct isci_host *isci_host) in scu_base() function 1621 void __iomem *scu_base, in sci_controller_construct() argument 1628 ihost->scu_registers = scu_base; in sci_controller_construct() 2345 status = sci_controller_construct(ihost, scu_base(ihost), smu_base(ihost)); in isci_host_init()
|