/Linux-v5.15/include/linux/ |
D | pm_domain.h | 109 struct generic_pm_domain { struct 128 int (*power_off)(struct generic_pm_domain *domain); argument 129 int (*power_on)(struct generic_pm_domain *domain); argument 132 unsigned int (*opp_to_performance_state)(struct generic_pm_domain *genpd, argument 134 int (*set_performance_state)(struct generic_pm_domain *genpd, argument 142 int (*attach_dev)(struct generic_pm_domain *domain, argument 144 void (*detach_dev)(struct generic_pm_domain *domain, argument 165 static inline struct generic_pm_domain *pd_to_genpd(struct dev_pm_domain *pd) in pd_to_genpd() argument 167 return container_of(pd, struct generic_pm_domain, domain); in pd_to_genpd() 171 struct generic_pm_domain *parent; [all …]
|
/Linux-v5.15/drivers/base/power/ |
D | domain.c | 46 void (*lock)(struct generic_pm_domain *genpd); 47 void (*lock_nested)(struct generic_pm_domain *genpd, int depth); 48 int (*lock_interruptible)(struct generic_pm_domain *genpd); 49 void (*unlock)(struct generic_pm_domain *genpd); 52 static void genpd_lock_mtx(struct generic_pm_domain *genpd) in genpd_lock_mtx() 57 static void genpd_lock_nested_mtx(struct generic_pm_domain *genpd, in genpd_lock_nested_mtx() 63 static int genpd_lock_interruptible_mtx(struct generic_pm_domain *genpd) in genpd_lock_interruptible_mtx() 68 static void genpd_unlock_mtx(struct generic_pm_domain *genpd) in genpd_unlock_mtx() 80 static void genpd_lock_spin(struct generic_pm_domain *genpd) in genpd_lock_spin() 89 static void genpd_lock_nested_spin(struct generic_pm_domain *genpd, in genpd_lock_nested_spin() [all …]
|
D | domain_governor.c | 120 static void update_domain_next_wakeup(struct generic_pm_domain *genpd, ktime_t now) in update_domain_next_wakeup() 155 static bool next_wakeup_allows_state(struct generic_pm_domain *genpd, in next_wakeup_allows_state() 172 struct generic_pm_domain *genpd = pd_to_genpd(pd); in __default_power_down_ok() 188 struct generic_pm_domain *sd = link->child; in __default_power_down_ok() 261 struct generic_pm_domain *genpd = pd_to_genpd(pd); in _default_power_down_ok() 338 struct generic_pm_domain *genpd = pd_to_genpd(pd); in cpu_power_down_ok()
|
/Linux-v5.15/include/linux/clk/ |
D | renesas.h | 17 struct generic_pm_domain; 21 int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev); 22 void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev); 29 int cpg_mssr_attach_dev(struct generic_pm_domain *unused, struct device *dev); 30 void cpg_mssr_detach_dev(struct generic_pm_domain *unused, struct device *dev);
|
/Linux-v5.15/drivers/firmware/arm_scmi/ |
D | scmi_pm_domain.c | 18 struct generic_pm_domain genpd; 26 static int scmi_pd_power(struct generic_pm_domain *domain, bool power_on) in scmi_pd_power() 46 static int scmi_pd_power_on(struct generic_pm_domain *domain) in scmi_pd_power_on() 51 static int scmi_pd_power_off(struct generic_pm_domain *domain) in scmi_pd_power_off() 56 static int scmi_pd_attach_dev(struct generic_pm_domain *pd, struct device *dev) in scmi_pd_attach_dev() 72 static void scmi_pd_detach_dev(struct generic_pm_domain *pd, struct device *dev) in scmi_pd_detach_dev() 84 struct generic_pm_domain **domains; in scmi_pm_domain_probe()
|
/Linux-v5.15/arch/arm/mach-ux500/ |
D | pm_domains.c | 18 static int pd_power_off(struct generic_pm_domain *domain) in pd_power_off() 30 static int pd_power_on(struct generic_pm_domain *domain) in pd_power_on() 42 static struct generic_pm_domain ux500_pm_domain_vape = { 48 static struct generic_pm_domain *ux500_pm_domains[NR_DOMAINS] = {
|
/Linux-v5.15/drivers/soc/xilinx/ |
D | zynqmp_pm_domains.c | 35 struct generic_pm_domain gpd; 72 static int zynqmp_gpd_power_on(struct generic_pm_domain *domain) in zynqmp_gpd_power_on() 101 static int zynqmp_gpd_power_off(struct generic_pm_domain *domain) in zynqmp_gpd_power_off() 152 static int zynqmp_gpd_attach_dev(struct generic_pm_domain *domain, in zynqmp_gpd_attach_dev() 185 static void zynqmp_gpd_detach_dev(struct generic_pm_domain *domain, in zynqmp_gpd_detach_dev() 211 static struct generic_pm_domain *zynqmp_gpd_xlate in zynqmp_gpd_xlate() 251 struct generic_pm_domain **domains; in zynqmp_gpd_probe()
|
/Linux-v5.15/drivers/firmware/imx/ |
D | scu-pd.c | 76 struct generic_pm_domain pd; 214 to_imx_sc_pd(struct generic_pm_domain *genpd) in to_imx_sc_pd() 236 static int imx_sc_pd_power(struct generic_pm_domain *domain, bool power_on) in imx_sc_pd_power() 261 static int imx_sc_pd_power_on(struct generic_pm_domain *domain) in imx_sc_pd_power_on() 266 static int imx_sc_pd_power_off(struct generic_pm_domain *domain) in imx_sc_pd_power_off() 271 static struct generic_pm_domain *imx_scu_pd_xlate(struct of_phandle_args *spec, in imx_scu_pd_xlate() 274 struct generic_pm_domain *domain = ERR_PTR(-ENOENT); in imx_scu_pd_xlate() 346 struct generic_pm_domain **domains; in imx_scu_init_pm_domains()
|
/Linux-v5.15/drivers/clk/mmp/ |
D | pwr-island.c | 17 struct generic_pm_domain genpd; 26 static int mmp_pm_domain_power_on(struct generic_pm_domain *genpd) in mmp_pm_domain_power_on() 67 static int mmp_pm_domain_power_off(struct generic_pm_domain *genpd) in mmp_pm_domain_power_off() 91 struct generic_pm_domain *mmp_pm_domain_register(const char *name, in mmp_pm_domain_register()
|
/Linux-v5.15/drivers/firmware/ |
D | scpi_pm_domain.c | 16 struct generic_pm_domain genpd; 51 static int scpi_pd_power_on(struct generic_pm_domain *domain) in scpi_pd_power_on() 58 static int scpi_pd_power_off(struct generic_pm_domain *domain) in scpi_pd_power_off() 71 struct generic_pm_domain **domains; in scpi_pm_domain_probe()
|
/Linux-v5.15/drivers/soc/tegra/ |
D | powergate-bpmp.c | 20 struct generic_pm_domain genpd; 26 to_tegra_powergate(struct generic_pm_domain *genpd) in to_tegra_powergate() 149 static int tegra_powergate_power_on(struct generic_pm_domain *domain) in tegra_powergate_power_on() 158 static int tegra_powergate_power_off(struct generic_pm_domain *domain) in tegra_powergate_power_off() 199 struct generic_pm_domain *genpd = &powergate->genpd; in tegra_powergate_remove() 257 struct generic_pm_domain **domains; in tegra_bpmp_add_powergates() 307 static struct generic_pm_domain * 310 struct generic_pm_domain *domain = ERR_PTR(-ENOENT); in tegra_powergate_xlate()
|
/Linux-v5.15/drivers/clk/qcom/ |
D | gdsc.h | 30 struct generic_pm_domain pd; 31 struct generic_pm_domain *parent; 73 int gdsc_gx_do_nothing_enable(struct generic_pm_domain *domain);
|
/Linux-v5.15/drivers/soc/samsung/ |
D | pm_domains.c | 32 struct generic_pm_domain pd; 36 static int exynos_pd_power(struct generic_pm_domain *domain, bool power_on) in exynos_pd_power() 66 static int exynos_pd_power_on(struct generic_pm_domain *domain) in exynos_pd_power_on() 71 static int exynos_pd_power_off(struct generic_pm_domain *domain) in exynos_pd_power_off()
|
/Linux-v5.15/drivers/soc/renesas/ |
D | rmobile-sysc.c | 33 struct generic_pm_domain genpd; 41 struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d) in to_rmobile_pd() 46 static int rmobile_pd_power_down(struct generic_pm_domain *genpd) in rmobile_pd_power_down() 104 static int rmobile_pd_power_up(struct generic_pm_domain *genpd) in rmobile_pd_power_up() 111 struct generic_pm_domain *genpd = &rmobile_pd->genpd; in rmobile_init_pm_domain() 280 struct generic_pm_domain *genpd_parent) in rmobile_add_pm_domains()
|
D | rcar-sysc.c | 177 struct generic_pm_domain genpd; 183 static inline struct rcar_sysc_pd *to_rcar_pd(struct generic_pm_domain *d) in to_rcar_pd() 188 static int rcar_sysc_pd_power_off(struct generic_pm_domain *genpd) in rcar_sysc_pd_power_off() 196 static int rcar_sysc_pd_power_on(struct generic_pm_domain *genpd) in rcar_sysc_pd_power_on() 208 struct generic_pm_domain *genpd = &pd->genpd; in rcar_sysc_pd_setup() 343 struct generic_pm_domain *domains[RCAR_PD_ALWAYS_ON + 1]; 463 struct generic_pm_domain *genpd; in rcar_sysc_power_cpu()
|
D | r8a779a0-sysc.c | 271 struct generic_pm_domain genpd; 277 static inline struct r8a779a0_sysc_pd *to_r8a779a0_pd(struct generic_pm_domain *d) in to_r8a779a0_pd() 282 static int r8a779a0_sysc_pd_power_off(struct generic_pm_domain *genpd) in r8a779a0_sysc_pd_power_off() 290 static int r8a779a0_sysc_pd_power_on(struct generic_pm_domain *genpd) in r8a779a0_sysc_pd_power_on() 300 struct generic_pm_domain *genpd = &pd->genpd; in r8a779a0_sysc_pd_setup() 364 struct generic_pm_domain *domains[R8A779A0_PD_ALWAYS_ON + 1];
|
/Linux-v5.15/drivers/soc/amlogic/ |
D | meson-gx-pwrc-vpu.c | 34 struct generic_pm_domain genpd; 43 struct meson_gx_pwrc_vpu *genpd_to_pd(struct generic_pm_domain *d) in genpd_to_pd() 48 static int meson_gx_pwrc_vpu_power_off(struct generic_pm_domain *genpd) in meson_gx_pwrc_vpu_power_off() 86 static int meson_g12a_pwrc_vpu_power_off(struct generic_pm_domain *genpd) in meson_g12a_pwrc_vpu_power_off() 144 static int meson_gx_pwrc_vpu_power_on(struct generic_pm_domain *genpd) in meson_gx_pwrc_vpu_power_on() 192 static int meson_g12a_pwrc_vpu_power_on(struct generic_pm_domain *genpd) in meson_g12a_pwrc_vpu_power_on()
|
D | meson-secure-pwrc.c | 22 struct generic_pm_domain base; 56 static int meson_secure_pwrc_off(struct generic_pm_domain *domain) in meson_secure_pwrc_off() 71 static int meson_secure_pwrc_on(struct generic_pm_domain *domain) in meson_secure_pwrc_on()
|
/Linux-v5.15/drivers/soc/ti/ |
D | ti_sci_pm_domains.c | 47 struct generic_pm_domain pd; 58 static int ti_sci_pd_power_off(struct generic_pm_domain *domain) in ti_sci_pd_power_off() 70 static int ti_sci_pd_power_on(struct generic_pm_domain *domain) in ti_sci_pd_power_on() 87 static struct generic_pm_domain *ti_sci_pd_xlate( in ti_sci_pd_xlate()
|
/Linux-v5.15/drivers/soc/bcm/bcm63xx/ |
D | bcm63xx-power.c | 20 struct generic_pm_domain genpd; 30 struct generic_pm_domain **genpd; 74 static int bcm63xx_power_on(struct generic_pm_domain *genpd) in bcm63xx_power_on() 82 static int bcm63xx_power_off(struct generic_pm_domain *genpd) in bcm63xx_power_off() 133 sizeof(struct generic_pm_domain *), in bcm63xx_power_probe()
|
/Linux-v5.15/drivers/soc/actions/ |
D | owl-sps.c | 36 struct generic_pm_domain *domains[]; 42 struct generic_pm_domain genpd; 57 static int owl_sps_power_on(struct generic_pm_domain *domain) in owl_sps_power_on() 66 static int owl_sps_power_off(struct generic_pm_domain *domain) in owl_sps_power_off()
|
/Linux-v5.15/drivers/soc/qcom/ |
D | rpmhpd.c | 44 struct generic_pm_domain pd; 45 struct generic_pm_domain *parent; 385 static int rpmhpd_power_on(struct generic_pm_domain *domain) in rpmhpd_power_on() 403 static int rpmhpd_power_off(struct generic_pm_domain *domain) in rpmhpd_power_off() 419 static int rpmhpd_set_performance_state(struct generic_pm_domain *domain, in rpmhpd_set_performance_state() 451 static unsigned int rpmhpd_get_performance_state(struct generic_pm_domain *genpd, in rpmhpd_get_performance_state()
|
/Linux-v5.15/drivers/soc/mediatek/ |
D | mtk-pm-domains.c | 36 struct generic_pm_domain genpd; 53 struct generic_pm_domain *domains[]; 203 static int scpsys_power_on(struct generic_pm_domain *genpd) in scpsys_power_on() 257 static int scpsys_power_off(struct generic_pm_domain *genpd) in scpsys_power_off() 295 generic_pm_domain *scpsys_add_one_domain(struct scpsys *scpsys, struct device_node *node) in scpsys_add_one_domain() 464 struct generic_pm_domain *child_pd, *parent_pd; in scpsys_add_subdomain() 539 struct generic_pm_domain *genpd; in scpsys_domain_cleanup() 612 struct generic_pm_domain *domain; in scpsys_probe()
|
/Linux-v5.15/drivers/soc/bcm/ |
D | raspberrypi-power.c | 27 struct generic_pm_domain base; 64 static int rpi_domain_off(struct generic_pm_domain *domain) in rpi_domain_off() 72 static int rpi_domain_on(struct generic_pm_domain *domain) in rpi_domain_on()
|
/Linux-v5.15/drivers/soc/imx/ |
D | gpc.c | 43 struct generic_pm_domain base; 54 to_imx_pm_domain(struct generic_pm_domain *genpd) in to_imx_pm_domain() 59 static int imx6_pm_domain_power_off(struct generic_pm_domain *genpd) in imx6_pm_domain_power_off() 87 static int imx6_pm_domain_power_on(struct generic_pm_domain *genpd) in imx6_pm_domain_power_on() 350 static struct generic_pm_domain *imx_gpc_onecell_domains[] = {
|