Home
last modified time | relevance | path

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

/drivers/thermal/
Dfair_share.c52 unsigned long max_state; in get_target_state() local
54 cdev->ops->get_max_state(cdev, &max_state); in get_target_state()
56 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.c834 static DEVICE_ATTR(max_state, 0444,
1139 unsigned long max_state; in thermal_zone_bind_cooling_device() local
1157 cdev->ops->get_max_state(cdev, &max_state); in thermal_zone_bind_cooling_device()
1161 upper = upper == THERMAL_NO_LIMIT ? max_state : upper; in thermal_zone_bind_cooling_device()
1163 if (lower > upper || upper > max_state) in thermal_zone_bind_cooling_device()
/drivers/acpi/
Dprocessor_thermal.c204 int max_state = 0; in acpi_processor_max_state() local
210 max_state += cpufreq_get_max_state(pr->id); in acpi_processor_max_state()
212 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state()
214 return max_state; in acpi_processor_max_state()
/drivers/devfreq/
Ddevfreq.c80 for (lev = 0; lev < devfreq->profile->max_state; lev++) in devfreq_get_freq_level()
108 devfreq->profile->max_state) + lev]++; in devfreq_update_status()
472 devfreq->profile->max_state * in devfreq_add_device()
473 devfreq->profile->max_state, in devfreq_add_device()
476 devfreq->profile->max_state, in devfreq_add_device()
909 unsigned int max_state = devfreq->profile->max_state; in show_trans_table() local
917 for (i = 0; i < max_state; i++) in show_trans_table()
923 for (i = 0; i < max_state; i++) { in show_trans_table()
932 for (j = 0; j < max_state; j++) in show_trans_table()
934 devfreq->trans_table[(i * max_state) + j]); in show_trans_table()
/drivers/platform/x86/
Dintel_menlow.c66 unsigned long *max_state) in memory_get_max_bandwidth() argument
87 *max_state = value - 1; in memory_get_max_bandwidth()
123 unsigned long max_state; in memory_set_cur_bandwidth() local
125 if (memory_get_max_bandwidth(cdev, &max_state)) in memory_set_cur_bandwidth()
128 if (state > max_state) in memory_set_cur_bandwidth()
/drivers/cpufreq/
Dcpufreq_stats.c35 unsigned int max_state; member
256 stat->trans_table[i*stat->max_state+j]); in show_trans_table()
294 for (index = 0; index < stat->max_state; index++) in freq_table_get_index()
410 stat->max_state = count; in cpufreq_stats_create_table()
665 stat->trans_table[old_index * stat->max_state + new_index]++; in cpufreq_stat_notifier_trans()