Home
last modified time | relevance | path

Searched refs:gov (Results 1 – 19 of 19) sorted by relevance

/drivers/watchdog/
Dwatchdog_pretimeout.c36 struct watchdog_governor *gov; member
45 if (sysfs_streq(gov_name, priv->gov->name)) in find_governor_by_name()
59 count += sysfs_emit_at(buf, count, "%s\n", priv->gov->name); in watchdog_pretimeout_available_governors_get()
71 if (wdd->gov) in watchdog_pretimeout_governor_get()
72 count = sysfs_emit(buf, "%s\n", wdd->gov->name); in watchdog_pretimeout_governor_get()
92 wdd->gov = priv->gov; in watchdog_pretimeout_governor_set()
105 if (!wdd->gov) { in watchdog_notify_pretimeout()
110 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout()
115 int watchdog_register_governor(struct watchdog_governor *gov) in watchdog_register_governor() argument
126 if (find_governor_by_name(gov->name)) { in watchdog_register_governor()
[all …]
Dwatchdog_pretimeout.h16 int watchdog_register_governor(struct watchdog_governor *gov);
17 void watchdog_unregister_governor(struct watchdog_governor *gov);
/drivers/cpuidle/
Dgovernor.c33 struct cpuidle_governor *gov; in cpuidle_find_governor() local
35 list_for_each_entry(gov, &cpuidle_governors, governor_list) in cpuidle_find_governor()
36 if (!strncasecmp(str, gov->name, CPUIDLE_NAME_LEN)) in cpuidle_find_governor()
37 return gov; in cpuidle_find_governor()
47 int cpuidle_switch_governor(struct cpuidle_governor *gov) in cpuidle_switch_governor() argument
51 if (!gov) in cpuidle_switch_governor()
54 if (gov == cpuidle_curr_governor) in cpuidle_switch_governor()
64 cpuidle_curr_governor = gov; in cpuidle_switch_governor()
66 if (gov) { in cpuidle_switch_governor()
70 printk(KERN_INFO "cpuidle: using governor %s\n", gov->name); in cpuidle_switch_governor()
[all …]
Ddriver.c266 struct cpuidle_governor *gov; in cpuidle_register_driver() local
276 gov = cpuidle_find_governor(drv->governor); in cpuidle_register_driver()
277 if (gov) { in cpuidle_register_driver()
279 if (cpuidle_switch_governor(gov) < 0) in cpuidle_register_driver()
Dsysfs.c82 struct cpuidle_governor *gov; in store_current_governor() local
90 list_for_each_entry(gov, &cpuidle_governors, governor_list) { in store_current_governor()
91 if (!strncmp(gov->name, gov_name, CPUIDLE_NAME_LEN)) { in store_current_governor()
92 ret = cpuidle_switch_governor(gov); in store_current_governor()
Dcpuidle.h27 extern int cpuidle_switch_governor(struct cpuidle_governor *gov);
/drivers/cpufreq/
Dcpufreq_governor.c236 struct dbs_governor *gov; in dbs_work_handler() local
240 gov = dbs_governor_of(policy); in dbs_work_handler()
247 gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy)); in dbs_work_handler()
350 struct dbs_governor *gov) in alloc_policy_dbs_info() argument
356 policy_dbs = gov->alloc(); in alloc_policy_dbs_info()
376 struct dbs_governor *gov) in free_policy_dbs_info() argument
388 gov->free(policy_dbs); in free_policy_dbs_info()
393 struct dbs_governor *gov = dbs_governor_of(policy); in cpufreq_dbs_governor_init() local
402 policy_dbs = alloc_policy_dbs_info(policy, gov); in cpufreq_dbs_governor_init()
409 dbs_data = gov->gdbs_data; in cpufreq_dbs_governor_init()
[all …]
Dcpufreq.c1079 struct cpufreq_governor *gov = NULL; in cpufreq_init_policy() local
1085 gov = get_governor(policy->last_governor); in cpufreq_init_policy()
1086 if (gov) { in cpufreq_init_policy()
1088 gov->name, policy->cpu); in cpufreq_init_policy()
1090 gov = get_governor(default_governor); in cpufreq_init_policy()
1093 if (!gov) { in cpufreq_init_policy()
1094 gov = cpufreq_default_governor(); in cpufreq_init_policy()
1095 __module_get(gov->owner); in cpufreq_init_policy()
1118 ret = cpufreq_set_policy(policy, gov, pol); in cpufreq_init_policy()
1119 if (gov) in cpufreq_init_policy()
[all …]
Dcpufreq_governor.h127 struct cpufreq_governor gov; member
146 return container_of(policy->governor, struct dbs_governor, gov); in dbs_governor_of()
Dcpufreq_conservative.c315 .gov = CPUFREQ_DBS_GOVERNOR_INITIALIZER("conservative"),
325 #define CPU_FREQ_GOV_CONSERVATIVE (cs_governor.gov)
Dcpufreq_ondemand.c401 .gov = CPUFREQ_DBS_GOVERNOR_INITIALIZER("ondemand"),
411 #define CPU_FREQ_GOV_ONDEMAND (od_dbs_gov.gov)
/drivers/soc/renesas/
Drmobile-sysc.c34 struct dev_power_governor *gov; member
112 struct dev_power_governor *gov = rmobile_pd->gov; in rmobile_init_pm_domain() local
124 pm_genpd_init(genpd, gov ? : &simple_qos_governor, false); in rmobile_init_pm_domain()
243 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
/drivers/thermal/
Dthermal_core.c202 struct thermal_governor *gov; in thermal_zone_device_set_policy() local
208 gov = __find_governor(strim(policy)); in thermal_zone_device_set_policy()
209 if (!gov) in thermal_zone_device_set_policy()
212 ret = thermal_set_governor(tz, gov); in thermal_zone_device_set_policy()
267 struct thermal_governor **gov; in thermal_register_governors() local
269 for_each_governor_table(gov) { in thermal_register_governors()
270 if (gov == governor) in thermal_register_governors()
272 thermal_unregister_governor(*gov); in thermal_register_governors()
526 struct thermal_governor *gov; in for_each_thermal_governor() local
530 list_for_each_entry(gov, &thermal_governor_list, governor_list) { in for_each_thermal_governor()
[all …]
/drivers/devfreq/
Dimx-bus.c90 const char *gov = DEVFREQ_GOV_USERSPACE; in imx_bus_probe() local
126 gov, NULL); in imx_bus_probe()
Ddevfreq.c790 const struct devfreq_governor *gov);
792 const struct devfreq_governor *gov);
1901 const struct devfreq_governor *gov) in create_sysfs_files() argument
1903 if (IS_SUPPORTED_ATTR(gov->attrs, POLLING_INTERVAL)) in create_sysfs_files()
1905 if (IS_SUPPORTED_ATTR(gov->attrs, TIMER)) in create_sysfs_files()
1911 const struct devfreq_governor *gov) in remove_sysfs_files() argument
1913 if (IS_SUPPORTED_ATTR(gov->attrs, POLLING_INTERVAL)) in remove_sysfs_files()
1916 if (IS_SUPPORTED_ATTR(gov->attrs, TIMER)) in remove_sysfs_files()
Dimx8m-ddrc.c370 const char *gov = DEVFREQ_GOV_USERSPACE; in imx8m_ddrc_probe() local
426 gov, NULL); in imx8m_ddrc_probe()
/drivers/base/power/
Ddomain.c658 if (genpd->gov && genpd->gov->power_down_ok) { in genpd_power_off()
659 if (!genpd->gov->power_down_ok(&genpd->domain)) in genpd_power_off()
664 if (!genpd->gov) in genpd_power_off()
888 suspend_ok = genpd->gov ? genpd->gov->suspend_ok : NULL; in genpd_runtime_suspend()
1962 struct dev_power_governor *gov, bool is_off) in pm_genpd_init() argument
1974 genpd->gov = gov; in pm_genpd_init()
2019 } else if (!gov && genpd->state_count > 1) { in pm_genpd_init()
/drivers/net/ethernet/packetengines/
DKconfig38 <http://cesdis.gsfc.nasa.gov/linux/drivers/yellowfin.html> for more
/drivers/atm/
Dnicstarmac.copyright16 * R. D. Rechenmacher <ron@fnal.gov>, Aug. 6, 1997