Home
last modified time | relevance | path

Searched refs:cpuidle_device (Results 1 – 25 of 50) sorted by relevance

12

/kernel/linux/linux-5.10/include/linux/
Dcpuidle.h24 struct cpuidle_device;
59 int (*enter) (struct cpuidle_device *dev,
63 int (*enter_dead) (struct cpuidle_device *dev, int index);
73 int (*enter_s2idle)(struct cpuidle_device *dev,
92 struct cpuidle_device { struct
115 DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices); argument
116 DECLARE_PER_CPU(struct cpuidle_device, cpuidle_dev);
143 struct cpuidle_device *dev);
146 struct cpuidle_device *dev,
149 struct cpuidle_device *dev, int index);
[all …]
/kernel/linux/linux-5.10/drivers/cpuidle/
Dcpuidle.h18 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 …]
Dcpuidle.c30 DEFINE_PER_CPU(struct cpuidle_device *, cpuidle_devices);
31 DEFINE_PER_CPU(struct cpuidle_device, cpuidle_dev);
50 struct cpuidle_device *dev) in cpuidle_not_available()
62 struct cpuidle_device *dev = __this_cpu_read(cpuidle_devices); in cpuidle_play_dead()
78 struct cpuidle_device *dev, in find_deepest_state()
112 struct cpuidle_device *dev; in cpuidle_use_deepest_state()
130 struct cpuidle_device *dev, in cpuidle_find_deepest_state()
138 struct cpuidle_device *dev, int index) in enter_s2idle_proper()
176 int cpuidle_enter_s2idle(struct cpuidle_driver *drv, struct cpuidle_device *dev) in cpuidle_enter_s2idle()
200 int cpuidle_enter_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, in cpuidle_enter_state()
[all …]
Dsysfs.c140 ssize_t (*show)(struct cpuidle_device *, char *);
141 ssize_t (*store)(struct cpuidle_device *, const char *, size_t count);
147 struct cpuidle_device *dev;
152 static inline struct cpuidle_device *to_cpuidle_device(struct kobject *kobj) in to_cpuidle_device()
164 struct cpuidle_device *dev = to_cpuidle_device(kobj); in cpuidle_show()
179 struct cpuidle_device *dev = to_cpuidle_device(kobj); in cpuidle_store()
344 struct cpuidle_device *device;
426 struct cpuidle_device *dev = kobj_to_device(kobj); in cpuidle_state_store()
455 static inline void cpuidle_free_state_kobj(struct cpuidle_device *device, int i) in cpuidle_free_state_kobj()
468 static int cpuidle_add_state_sysfs(struct cpuidle_device *device) in cpuidle_add_state_sysfs()
[all …]
Dcpuidle-haltpoll.c25 static struct cpuidle_device __percpu *haltpoll_cpuidle_devices;
28 static int default_enter_idle(struct cpuidle_device *dev, in default_enter_idle()
59 struct cpuidle_device *dev; in haltpoll_cpu_online()
76 struct cpuidle_device *dev; in haltpoll_cpu_offline()
120 haltpoll_cpuidle_devices = alloc_percpu(struct cpuidle_device); in haltpoll_init()
Dcpuidle-powernv.c49 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()
103 static int nap_loop(struct cpuidle_device *dev, in nap_loop()
114 static int fastsleep_loop(struct cpuidle_device *dev, in fastsleep_loop()
140 static int stop_loop(struct cpuidle_device *dev, in stop_loop()
163 struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); in powernv_cpuidle_cpu_online()
175 struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); in powernv_cpuidle_cpu_dead()
229 int (*idle_fn)(struct cpuidle_device *, in add_powernv_state() argument
Dcoupled.c149 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()
470 int cpuidle_enter_state_coupled(struct cpuidle_device *dev, in cpuidle_enter_state_coupled()
642 int cpuidle_coupled_register_device(struct cpuidle_device *dev) in cpuidle_coupled_register_device()
645 struct cpuidle_device *other_dev; in cpuidle_coupled_register_device()
691 void cpuidle_coupled_unregister_device(struct cpuidle_device *dev) in cpuidle_coupled_unregister_device()
746 struct cpuidle_device *dev; in coupled_cpu_online()
762 struct cpuidle_device *dev; in coupled_cpu_up_prepare()
Dcpuidle-pseries.c36 static int snooze_loop(struct cpuidle_device *dev, in snooze_loop()
217 static int dedicated_cede_loop(struct cpuidle_device *dev, in dedicated_cede_loop()
240 static int shared_cede_loop(struct cpuidle_device *dev, in shared_cede_loop()
300 struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); in pseries_cpuidle_cpu_online()
312 struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); in pseries_cpuidle_cpu_dead()
Dcpuidle-cps.c23 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()
Dcpuidle-tegra.c149 static int tegra_cpuidle_coupled_barrier(struct cpuidle_device *dev) in tegra_cpuidle_coupled_barrier()
172 static int tegra_cpuidle_state_enter(struct cpuidle_device *dev, in tegra_cpuidle_state_enter()
234 static 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()
Dcpuidle-arm.c34 static int arm_enter_idle_state(struct cpuidle_device *dev, in arm_enter_idle_state()
148 struct cpuidle_device *dev; in arm_idle_init()
Dcpuidle-exynos.c27 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()
Dcpuidle-big_little.c26 static int bl_enter_powerdown(struct cpuidle_device *dev,
123 static int bl_enter_powerdown(struct cpuidle_device *dev, in bl_enter_powerdown()
Dcpuidle-psci.c55 static int psci_enter_domain_idle_state(struct cpuidle_device *dev, in psci_enter_domain_idle_state()
124 static int psci_enter_idle_state(struct cpuidle_device *dev, in psci_enter_idle_state()
337 struct cpuidle_device *dev; in psci_cpuidle_probe()
/kernel/linux/linux-5.10/drivers/cpuidle/governors/
Dhaltpoll.c49 struct cpuidle_device *dev, in haltpoll_select()
78 static void adjust_poll_limit(struct cpuidle_device *dev, u64 block_ns) in adjust_poll_limit()
112 static void haltpoll_reflect(struct cpuidle_device *dev, int index) in haltpoll_reflect()
126 struct cpuidle_device *dev) in haltpoll_enable_device()
Dladder.c51 static inline void ladder_do_selection(struct cpuidle_device *dev, in ladder_do_selection()
67 struct cpuidle_device *dev, bool *dummy) in ladder_select_state()
133 struct cpuidle_device *dev) in ladder_enable_device()
167 static void ladder_reflect(struct cpuidle_device *dev, int index) in ladder_reflect()
Dmenu.c161 static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev);
265 static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, in menu_select()
431 static void menu_reflect(struct cpuidle_device *dev, int index) in menu_reflect()
445 static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) in menu_update()
541 struct cpuidle_device *dev) in menu_enable_device()
Dteo.c117 static void teo_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) in teo_update()
218 struct cpuidle_device *dev, int state_idx, in teo_find_shallower_state()
240 static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, in teo_select()
443 static void teo_reflect(struct cpuidle_device *dev, int state) in teo_reflect()
468 struct cpuidle_device *dev) in teo_enable_device()
/kernel/linux/linux-5.10/Documentation/driver-api/pm/
Dcpuidle.rst78 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 …]
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dcpuidle.h8 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()
/kernel/linux/linux-5.10/drivers/acpi/
Dprocessor_idle.c52 static DEFINE_PER_CPU(struct cpuidle_device *, acpi_cpuidle_device);
571 static int acpi_idle_play_dead(struct cpuidle_device *dev, int index) in acpi_idle_play_dead()
669 static int __cpuidle acpi_idle_enter(struct cpuidle_device *dev, in acpi_idle_enter()
698 static int __cpuidle acpi_idle_enter_s2idle(struct cpuidle_device *dev, in acpi_idle_enter_s2idle()
728 struct cpuidle_device *dev) in acpi_processor_setup_cpuidle_cx()
852 struct cpuidle_device *dev) in acpi_processor_setup_cpuidle_cx()
1165 static int acpi_idle_lpi_enter(struct cpuidle_device *dev, in acpi_idle_lpi_enter()
1246 struct cpuidle_device *dev) in acpi_processor_setup_cpuidle_dev()
1272 struct cpuidle_device *dev; in acpi_processor_hotplug()
1297 struct cpuidle_device *dev; in acpi_processor_power_state_has_changed()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
Dcpuidle34xx.c107 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()
Dcpuidle44xx.c85 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()
/kernel/linux/linux-5.10/kernel/sched/
Didle.c132 struct cpuidle_device *dev) in call_cpuidle_s2idle()
140 static int call_cpuidle(struct cpuidle_driver *drv, struct cpuidle_device *dev, in call_cpuidle()
172 struct cpuidle_device *dev = cpuidle_get_device(); in cpuidle_idle_call()
/kernel/linux/linux-5.10/drivers/firmware/psci/
Dpsci_checker.c233 static int suspend_cpu(struct cpuidle_device *dev, in suspend_cpu()
277 struct cpuidle_device *dev; in suspend_test_thread()
390 struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); in suspend_tests()

12