/linux-6.12.1/include/linux/ |
D | cpuidle.h | 25 struct cpuidle_device; 60 int (*enter) (struct cpuidle_device *dev, 64 int (*enter_dead) (struct cpuidle_device *dev, int index); 74 int (*enter_s2idle)(struct cpuidle_device *dev, 93 struct cpuidle_device { struct 116 DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices); argument 117 DECLARE_PER_CPU(struct cpuidle_device, cpuidle_dev); 173 struct cpuidle_device *dev); 176 struct cpuidle_device *dev, 179 struct cpuidle_device *dev, int index); [all …]
|
/linux-6.12.1/drivers/cpuidle/ |
D | cpuidle.h | 18 extern int cpuidle_enter_state(struct cpuidle_device *dev, 35 extern int cpuidle_add_device_sysfs(struct cpuidle_device *device); 36 extern void cpuidle_remove_device_sysfs(struct cpuidle_device *device); 37 extern int cpuidle_add_sysfs(struct cpuidle_device *dev); 38 extern void cpuidle_remove_sysfs(struct cpuidle_device *dev); 43 int cpuidle_enter_state_coupled(struct cpuidle_device *dev, 45 int cpuidle_coupled_register_device(struct cpuidle_device *dev); 46 void cpuidle_coupled_unregister_device(struct cpuidle_device *dev); 59 static inline int cpuidle_enter_state_coupled(struct cpuidle_device *dev, in cpuidle_enter_state_coupled() 65 static inline int cpuidle_coupled_register_device(struct cpuidle_device *dev) in cpuidle_coupled_register_device() [all …]
|
D | cpuidle.c | 33 DEFINE_PER_CPU(struct cpuidle_device *, cpuidle_devices); 34 DEFINE_PER_CPU(struct cpuidle_device, cpuidle_dev); 53 struct cpuidle_device *dev) in cpuidle_not_available() 65 struct cpuidle_device *dev = __this_cpu_read(cpuidle_devices); in cpuidle_play_dead() 81 struct cpuidle_device *dev, in find_deepest_state() 115 struct cpuidle_device *dev; in cpuidle_use_deepest_state() 133 struct cpuidle_device *dev, in cpuidle_find_deepest_state() 141 struct cpuidle_device *dev, int index) in enter_s2idle_proper() 187 int cpuidle_enter_s2idle(struct cpuidle_driver *drv, struct cpuidle_device *dev) in cpuidle_enter_s2idle() 211 noinstr int cpuidle_enter_state(struct cpuidle_device *dev, in cpuidle_enter_state() [all …]
|
D | cpuidle-haltpoll.c | 25 static struct cpuidle_device __percpu *haltpoll_cpuidle_devices; 28 static __cpuidle int default_enter_idle(struct cpuidle_device *dev, in default_enter_idle() 58 struct cpuidle_device *dev; in haltpoll_cpu_online() 75 struct cpuidle_device *dev; in haltpoll_cpu_offline() 119 haltpoll_cpuidle_devices = alloc_percpu(struct cpuidle_device); in haltpoll_init()
|
D | sysfs.c | 147 ssize_t (*show)(struct cpuidle_device *, char *); 148 ssize_t (*store)(struct cpuidle_device *, const char *, size_t count); 154 struct cpuidle_device *dev; 159 static inline struct cpuidle_device *to_cpuidle_device(struct kobject *kobj) in to_cpuidle_device() 171 struct cpuidle_device *dev = to_cpuidle_device(kobj); in cpuidle_show() 186 struct cpuidle_device *dev = to_cpuidle_device(kobj); in cpuidle_store() 352 struct cpuidle_device *device; 434 struct cpuidle_device *dev = kobj_to_device(kobj); in cpuidle_state_store() 463 static inline void cpuidle_free_state_kobj(struct cpuidle_device *device, int i) in cpuidle_free_state_kobj() 476 static int cpuidle_add_state_sysfs(struct cpuidle_device *device) in cpuidle_add_state_sysfs() [all …]
|
D | cpuidle-powernv.c | 49 static u64 get_snooze_timeout(struct cpuidle_device *dev, in get_snooze_timeout() 68 static int snooze_loop(struct cpuidle_device *dev, in snooze_loop() 105 static int nap_loop(struct cpuidle_device *dev, in nap_loop() 116 static int fastsleep_loop(struct cpuidle_device *dev, in fastsleep_loop() 142 static int stop_loop(struct cpuidle_device *dev, in stop_loop() 166 struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); in powernv_cpuidle_cpu_online() 178 struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); in powernv_cpuidle_cpu_dead() 232 int (*idle_fn)(struct cpuidle_device *, in add_powernv_state() argument
|
D | coupled.c | 149 void cpuidle_coupled_parallel_barrier(struct cpuidle_device *dev, atomic_t *a) in cpuidle_coupled_parallel_barrier() 293 static inline int cpuidle_coupled_get_state(struct cpuidle_device *dev, in cpuidle_coupled_get_state() 465 int cpuidle_enter_state_coupled(struct cpuidle_device *dev, in cpuidle_enter_state_coupled() 635 int cpuidle_coupled_register_device(struct cpuidle_device *dev) in cpuidle_coupled_register_device() 638 struct cpuidle_device *other_dev; in cpuidle_coupled_register_device() 683 void cpuidle_coupled_unregister_device(struct cpuidle_device *dev) in cpuidle_coupled_unregister_device() 738 struct cpuidle_device *dev; in coupled_cpu_online() 754 struct cpuidle_device *dev; in coupled_cpu_up_prepare()
|
D | cpuidle-pseries.c | 37 int snooze_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, in snooze_loop() 220 int dedicated_cede_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, in dedicated_cede_loop() 243 int shared_cede_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, in shared_cede_loop() 304 struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); in pseries_cpuidle_cpu_online() 316 struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); in pseries_cpuidle_cpu_dead()
|
D | cpuidle-cps.c | 23 static int cps_nc_enter(struct cpuidle_device *dev, in cps_nc_enter() 105 struct cpuidle_device *device; in cps_cpuidle_unregister() 118 struct cpuidle_device *device; in cps_cpuidle_init()
|
D | cpuidle-tegra.c | 140 static int tegra_cpuidle_coupled_barrier(struct cpuidle_device *dev) in tegra_cpuidle_coupled_barrier() 163 static __cpuidle int tegra_cpuidle_state_enter(struct cpuidle_device *dev, in tegra_cpuidle_state_enter() 229 static __cpuidle int tegra_cpuidle_enter(struct cpuidle_device *dev, in tegra_cpuidle_enter() 262 static int tegra114_enter_s2idle(struct cpuidle_device *dev, in tegra114_enter_s2idle()
|
D | cpuidle-psci.c | 53 static __cpuidle int __psci_enter_domain_idle_state(struct cpuidle_device *dev, in __psci_enter_domain_idle_state() 91 static int psci_enter_domain_idle_state(struct cpuidle_device *dev, in psci_enter_domain_idle_state() 97 static int psci_enter_s2idle_domain_idle_state(struct cpuidle_device *dev, in psci_enter_s2idle_domain_idle_state() 191 static __cpuidle int psci_enter_idle_state(struct cpuidle_device *dev, in psci_enter_idle_state() 411 struct cpuidle_device *dev; in psci_cpuidle_probe()
|
D | cpuidle-arm.c | 34 static __cpuidle int arm_enter_idle_state(struct cpuidle_device *dev, in arm_enter_idle_state() 148 struct cpuidle_device *dev; in arm_idle_init()
|
D | cpuidle-exynos.c | 27 static int exynos_enter_coupled_lowpower(struct cpuidle_device *dev, in exynos_enter_coupled_lowpower() 58 static int exynos_enter_lowpower(struct cpuidle_device *dev, in exynos_enter_lowpower()
|
D | cpuidle-riscv-sbi.c | 77 static __cpuidle int sbi_cpuidle_enter_state(struct cpuidle_device *dev, in sbi_cpuidle_enter_state() 90 static __cpuidle int __sbi_enter_domain_idle_state(struct cpuidle_device *dev, in __sbi_enter_domain_idle_state() 133 static int sbi_enter_domain_idle_state(struct cpuidle_device *dev, in sbi_enter_domain_idle_state() 139 static int sbi_enter_s2idle_domain_idle_state(struct cpuidle_device *dev, in sbi_enter_s2idle_domain_idle_state() 502 struct cpuidle_device *dev; in sbi_cpuidle_probe()
|
D | cpuidle-big_little.c | 26 static int bl_enter_powerdown(struct cpuidle_device *dev, 125 static __cpuidle int bl_enter_powerdown(struct cpuidle_device *dev, in bl_enter_powerdown()
|
/linux-6.12.1/drivers/cpuidle/governors/ |
D | haltpoll.c | 50 struct cpuidle_device *dev, in haltpoll_select() 79 static void adjust_poll_limit(struct cpuidle_device *dev, u64 block_ns) in adjust_poll_limit() 120 static void haltpoll_reflect(struct cpuidle_device *dev, int index) in haltpoll_reflect() 134 struct cpuidle_device *dev) in haltpoll_enable_device()
|
D | ladder.c | 52 static inline void ladder_do_selection(struct cpuidle_device *dev, in ladder_do_selection() 68 struct cpuidle_device *dev, bool *dummy) in ladder_select_state() 134 struct cpuidle_device *dev) in ladder_enable_device() 168 static void ladder_reflect(struct cpuidle_device *dev, int index) in ladder_reflect()
|
D | teo.c | 143 static void teo_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) in teo_update() 254 struct cpuidle_device *dev, int state_idx, in teo_find_shallower_state() 277 static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, in teo_select() 504 static void teo_reflect(struct cpuidle_device *dev, int state) in teo_reflect() 529 struct cpuidle_device *dev) in teo_enable_device()
|
D | menu.c | 156 static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev); 255 static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, in menu_select() 440 static void menu_reflect(struct cpuidle_device *dev, int index) in menu_reflect() 454 static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) in menu_update() 550 struct cpuidle_device *dev) in menu_enable_device()
|
/linux-6.12.1/Documentation/driver-api/pm/ |
D | cpuidle.rst | 78 int (*enable) (struct cpuidle_driver *drv, struct cpuidle_device *dev); 81 (logical) CPU represented by the struct cpuidle_device object pointed 97 void (*disable) (struct cpuidle_driver *drv, struct cpuidle_device *dev); 100 by the struct cpuidle_device object pointed to by the ``dev`` 110 int (*select) (struct cpuidle_driver *drv, struct cpuidle_device *dev, 114 CPU represented by the struct cpuidle_device object pointed to by the 140 void (*reflect) (struct cpuidle_device *dev, int index); 207 void (*enter) (struct cpuidle_device *dev, struct cpuidle_driver *drv, 210 The first two arguments of it point to the struct cpuidle_device object 243 However, it also is necessary to register struct cpuidle_device objects for [all …]
|
/linux-6.12.1/arch/arm/include/asm/ |
D | cpuidle.h | 8 extern int arm_cpuidle_simple_enter(struct cpuidle_device *dev, 12 static inline int arm_cpuidle_simple_enter(struct cpuidle_device *dev, in arm_cpuidle_simple_enter()
|
/linux-6.12.1/drivers/acpi/ |
D | processor_idle.c | 50 static DEFINE_PER_CPU(struct cpuidle_device *, acpi_cpuidle_device); 581 static int acpi_idle_play_dead(struct cpuidle_device *dev, int index) in acpi_idle_play_dead() 678 static int __cpuidle acpi_idle_enter(struct cpuidle_device *dev, in acpi_idle_enter() 707 static int __cpuidle acpi_idle_enter_s2idle(struct cpuidle_device *dev, in acpi_idle_enter_s2idle() 737 struct cpuidle_device *dev) in acpi_processor_setup_cpuidle_cx() 863 struct cpuidle_device *dev) in acpi_processor_setup_cpuidle_cx() 1179 static int acpi_idle_lpi_enter(struct cpuidle_device *dev, in acpi_idle_lpi_enter() 1261 struct cpuidle_device *dev) in acpi_processor_setup_cpuidle_dev() 1287 struct cpuidle_device *dev; in acpi_processor_hotplug() 1312 struct cpuidle_device *dev; in acpi_processor_power_state_has_changed() [all …]
|
/linux-6.12.1/arch/arm/mach-omap2/ |
D | cpuidle44xx.c | 85 static int omap_enter_idle_simple(struct cpuidle_device *dev, in omap_enter_idle_simple() 93 static int omap_enter_idle_smp(struct cpuidle_device *dev, in omap_enter_idle_smp() 119 static int omap_enter_idle_coupled(struct cpuidle_device *dev, in omap_enter_idle_coupled()
|
D | cpuidle34xx.c | 107 static int omap3_enter_idle(struct cpuidle_device *dev, in omap3_enter_idle() 169 static int next_valid_state(struct cpuidle_device *dev, in next_valid_state() 219 static int omap3_enter_idle_bm(struct cpuidle_device *dev, in omap3_enter_idle_bm()
|
/linux-6.12.1/kernel/sched/ |
D | idle.c | 129 struct cpuidle_device *dev) in call_cpuidle_s2idle() 137 static int call_cpuidle(struct cpuidle_driver *drv, struct cpuidle_device *dev, in call_cpuidle() 169 struct cpuidle_device *dev = cpuidle_get_device(); in cpuidle_idle_call()
|