Home
last modified time | relevance | path

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

123

/linux-6.1.9/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 …]
/linux-6.1.9/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.c32 DEFINE_PER_CPU(struct cpuidle_device *, cpuidle_devices);
33 DEFINE_PER_CPU(struct cpuidle_device, cpuidle_dev);
52 struct cpuidle_device *dev) in cpuidle_not_available()
64 struct cpuidle_device *dev = __this_cpu_read(cpuidle_devices); in cpuidle_play_dead()
80 struct cpuidle_device *dev, in find_deepest_state()
114 struct cpuidle_device *dev; in cpuidle_use_deepest_state()
132 struct cpuidle_device *dev, in cpuidle_find_deepest_state()
140 struct cpuidle_device *dev, int index) in enter_s2idle_proper()
178 int cpuidle_enter_s2idle(struct cpuidle_driver *drv, struct cpuidle_device *dev) in cpuidle_enter_s2idle()
202 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()
345 struct cpuidle_device *device;
427 struct cpuidle_device *dev = kobj_to_device(kobj); in cpuidle_state_store()
456 static inline void cpuidle_free_state_kobj(struct cpuidle_device *device, int i) in cpuidle_free_state_kobj()
469 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()
690 void cpuidle_coupled_unregister_device(struct cpuidle_device *dev) in cpuidle_coupled_unregister_device()
745 struct cpuidle_device *dev; in coupled_cpu_online()
761 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-tegra.c140 static int tegra_cpuidle_coupled_barrier(struct cpuidle_device *dev) in tegra_cpuidle_coupled_barrier()
163 static int tegra_cpuidle_state_enter(struct cpuidle_device *dev, in tegra_cpuidle_state_enter()
225 static int tegra_cpuidle_enter(struct cpuidle_device *dev, in tegra_cpuidle_enter()
253 static int tegra114_enter_s2idle(struct cpuidle_device *dev, in tegra114_enter_s2idle()
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-psci.c57 static int __psci_enter_domain_idle_state(struct cpuidle_device *dev, in __psci_enter_domain_idle_state()
99 static int psci_enter_domain_idle_state(struct cpuidle_device *dev, in psci_enter_domain_idle_state()
105 static int psci_enter_s2idle_domain_idle_state(struct cpuidle_device *dev, in psci_enter_s2idle_domain_idle_state()
195 static int psci_enter_idle_state(struct cpuidle_device *dev, in psci_enter_idle_state()
409 struct cpuidle_device *dev; in psci_cpuidle_probe()
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-riscv-sbi.c96 static int sbi_cpuidle_enter_state(struct cpuidle_device *dev, in sbi_cpuidle_enter_state()
109 static int __sbi_enter_domain_idle_state(struct cpuidle_device *dev, in __sbi_enter_domain_idle_state()
152 static int sbi_enter_domain_idle_state(struct cpuidle_device *dev, in sbi_enter_domain_idle_state()
158 static int sbi_enter_s2idle_domain_idle_state(struct cpuidle_device *dev, in sbi_enter_s2idle_domain_idle_state()
542 struct cpuidle_device *dev; in sbi_cpuidle_probe()
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()
/linux-6.1.9/drivers/cpuidle/governors/
Dhaltpoll.c50 struct cpuidle_device *dev, in haltpoll_select()
79 static void adjust_poll_limit(struct cpuidle_device *dev, u64 block_ns) in adjust_poll_limit()
115 static void haltpoll_reflect(struct cpuidle_device *dev, int index) in haltpoll_reflect()
129 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()
Dteo.c160 static void teo_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) in teo_update()
263 struct cpuidle_device *dev, int state_idx, in teo_find_shallower_state()
285 static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, in teo_select()
483 static void teo_reflect(struct cpuidle_device *dev, int state) in teo_reflect()
508 struct cpuidle_device *dev) in teo_enable_device()
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()
436 static void menu_reflect(struct cpuidle_device *dev, int index) in menu_reflect()
450 static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) in menu_update()
546 struct cpuidle_device *dev) in menu_enable_device()
/linux-6.1.9/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 …]
/linux-6.1.9/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()
/linux-6.1.9/drivers/acpi/
Dprocessor_idle.c51 static DEFINE_PER_CPU(struct cpuidle_device *, acpi_cpuidle_device);
587 static int acpi_idle_play_dead(struct cpuidle_device *dev, int index) in acpi_idle_play_dead()
685 static int __cpuidle acpi_idle_enter(struct cpuidle_device *dev, in acpi_idle_enter()
714 static int __cpuidle acpi_idle_enter_s2idle(struct cpuidle_device *dev, in acpi_idle_enter_s2idle()
744 struct cpuidle_device *dev) in acpi_processor_setup_cpuidle_cx()
870 struct cpuidle_device *dev) in acpi_processor_setup_cpuidle_cx()
1186 static int acpi_idle_lpi_enter(struct cpuidle_device *dev, in acpi_idle_lpi_enter()
1267 struct cpuidle_device *dev) in acpi_processor_setup_cpuidle_dev()
1293 struct cpuidle_device *dev; in acpi_processor_hotplug()
1318 struct cpuidle_device *dev; in acpi_processor_power_state_has_changed()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/kernel/sched/
Didle.c129 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()

123