Home
last modified time | relevance | path

Searched refs:max_state (Results 1 – 14 of 14) sorted by relevance

/linux-4.1.27/drivers/thermal/
Dfair_share.c64 unsigned long max_state; in get_target_state() local
66 cdev->ops->get_max_state(cdev, &max_state); in get_target_state()
68 return (long)(weight * level * max_state) / (100 * tz->trips); in get_target_state()
Ddb8500_thermal.c67 unsigned long max_state, upper, lower; in db8500_cdev_bind() local
70 cdev->ops->get_max_state(cdev, &max_state); in db8500_cdev_bind()
76 upper = lower = i > max_state ? max_state : i; in db8500_cdev_bind()
Dthermal_core.c907 static DEVICE_ATTR(max_state, 0444,
974 unsigned long max_state; in thermal_zone_bind_cooling_device() local
992 ret = cdev->ops->get_max_state(cdev, &max_state); in thermal_zone_bind_cooling_device()
998 upper = upper == THERMAL_NO_LIMIT ? max_state : upper; in thermal_zone_bind_cooling_device()
1000 if (lower > upper || upper > max_state) in thermal_zone_bind_cooling_device()
/linux-4.1.27/drivers/acpi/
Dprocessor_thermal.c189 int max_state = 0; in acpi_processor_max_state() local
195 max_state += cpufreq_get_max_state(pr->id); in acpi_processor_max_state()
197 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state()
199 return max_state; in acpi_processor_max_state()
/linux-4.1.27/drivers/cpufreq/
Dcpufreq_stats.c23 unsigned int max_state; member
95 stats->trans_table[i*stats->max_state+j]); in show_trans_table()
127 for (index = 0; index < stats->max_state; index++) in freq_table_get_index()
204 stats->max_state = count; in __cpufreq_stats_create_table()
297 stats->trans_table[old_index * stats->max_state + new_index]++; in cpufreq_stat_notifier_trans()
/linux-4.1.27/drivers/devfreq/
Ddevfreq.c80 for (lev = 0; lev < devfreq->profile->max_state; lev++) in devfreq_get_freq_level()
116 devfreq->profile->max_state) + lev]++; in devfreq_update_status()
482 devfreq->profile->max_state * in devfreq_add_device()
483 devfreq->profile->max_state, in devfreq_add_device()
486 devfreq->profile->max_state, in devfreq_add_device()
1002 unsigned int max_state = devfreq->profile->max_state; in trans_stat_show() local
1010 for (i = 0; i < max_state; i++) in trans_stat_show()
1016 for (i = 0; i < max_state; i++) { in trans_stat_show()
1025 for (j = 0; j < max_state; j++) in trans_stat_show()
1027 devfreq->trans_table[(i * max_state) + j]); in trans_stat_show()
/linux-4.1.27/drivers/platform/x86/
Dintel_menlow.c64 unsigned long *max_state) in memory_get_max_bandwidth() argument
85 *max_state = value - 1; in memory_get_max_bandwidth()
121 unsigned long max_state; in memory_set_cur_bandwidth() local
123 if (memory_get_max_bandwidth(cdev, &max_state)) in memory_set_cur_bandwidth()
126 if (state > max_state) in memory_set_cur_bandwidth()
/linux-4.1.27/drivers/thermal/int340x_thermal/
Dint3403_thermal.c48 unsigned long max_state; member
129 *state = obj->max_state; in int3403_get_max_state()
190 obj->max_state = p->package.count - 1; in int3403_cdev_add()
/linux-4.1.27/tools/thermal/tmon/
Dsysfs.c107 sysfs_get_ulong(path, "max_state", &cdi->max_state); in probe_cdev()
112 cdi->type, cdi->max_state, cdi->cur_state, cdi->instance); in probe_cdev()
548 if (ptdata.cdi[i].max_state < 10) { in set_ctrl_state()
553 cdev_state = state * ptdata.cdi[i].max_state/100; in set_ctrl_state()
Dtmon.h59 unsigned long max_state; member
Dtui.c229 ptdata.cdi[j].max_state); in show_cooling_device()
/linux-4.1.27/Documentation/thermal/
Dsysfs-api.txt109 and the cooling device can be in max_state.
183 |---max_state: Maximum cooling state of the cooling device
303 max_state
309 The value can any integer numbers between 0 and max_state:
311 - cur_state == max_state means the maximum cooling.
348 |---max_state: 8
353 |---max_state: 2
Dintel_powerclamp.txt268 max_state:50
/linux-4.1.27/include/linux/
Ddevfreq.h90 unsigned int max_state; member