Home
last modified time | relevance | path

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

/drivers/cpufreq/
Dcpufreq_times.c37 unsigned int max_state; member
52 unsigned int max_state; member
90 unsigned int max_state = READ_ONCE(next_offset); in find_or_register_uid_locked() local
91 size_t alloc_size = sizeof(*uid_entry) + max_state * in find_or_register_uid_locked()
96 if (uid_entry->max_state == max_state) in find_or_register_uid_locked()
104 temp->max_state = max_state; in find_or_register_uid_locked()
105 memset(temp->time_in_state + uid_entry->max_state, 0, in find_or_register_uid_locked()
106 (max_state - uid_entry->max_state) * in find_or_register_uid_locked()
120 uid_entry->max_state = max_state; in find_or_register_uid_locked()
135 freqs->offset + freqs->max_state <= index) in freq_index_invalid()
[all …]
Dcpufreq_stats.c23 unsigned int max_state; member
101 stats->trans_table[i*stats->max_state+j]); in show_trans_table()
133 for (index = 0; index < stats->max_state; index++) in freq_table_get_index()
196 stats->max_state = count; in cpufreq_stats_create_table()
241 stats->trans_table[old_index * stats->max_state + new_index]++; in cpufreq_stats_record_transition()
/drivers/devfreq/
Dgovernor_passive.c54 || devfreq->profile->max_state <= 0) in devfreq_passive_get_target_freq()
74 for (i = 0; i < parent_devfreq->profile->max_state; i++) in devfreq_passive_get_target_freq()
78 if (i == parent_devfreq->profile->max_state) { in devfreq_passive_get_target_freq()
84 if (i < devfreq->profile->max_state) { in devfreq_passive_get_target_freq()
87 count = devfreq->profile->max_state; in devfreq_passive_get_target_freq()
Ddevfreq.c81 for (lev = 0; lev < devfreq->profile->max_state; lev++) in devfreq_get_freq_level()
104 profile->max_state = count; in devfreq_set_freq_table()
106 profile->max_state, in devfreq_set_freq_table()
110 profile->max_state = 0; in devfreq_set_freq_table()
115 for (i = 0, freq = 0; i < profile->max_state; i++, freq++) { in devfreq_set_freq_table()
119 profile->max_state = 0; in devfreq_set_freq_table()
161 devfreq->profile->max_state) + lev]++; in devfreq_update_status()
567 if (!devfreq->profile->max_state && !devfreq->profile->freq_table) { in devfreq_add_device()
581 devfreq->profile->max_state * in devfreq_add_device()
582 devfreq->profile->max_state, in devfreq_add_device()
[all …]
Dexynos-bus.c392 int ret, max_state; in exynos_bus_probe() local
506 max_state = bus->devfreq->profile->max_state; in exynos_bus_probe()
508 max_freq = (bus->devfreq->profile->freq_table[max_state - 1] / 1000); in exynos_bus_probe()
/drivers/acpi/
Dprocessor_thermal.c185 int max_state = 0; in acpi_processor_max_state() local
191 max_state += cpufreq_get_max_state(pr->id); in acpi_processor_max_state()
193 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state()
195 return max_state; in acpi_processor_max_state()
/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)(percentage * 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.c1116 unsigned long max_state; in power_actor_get_min_power() local
1122 ret = cdev->ops->get_max_state(cdev, &max_state); in power_actor_get_min_power()
1126 return cdev->ops->state2power(cdev, tz, max_state, min_power); in power_actor_get_min_power()
1233 static DEVICE_ATTR(max_state, 0444,
1332 unsigned long max_state; in thermal_zone_bind_cooling_device() local
1350 ret = cdev->ops->get_max_state(cdev, &max_state); in thermal_zone_bind_cooling_device()
1356 upper = upper == THERMAL_NO_LIMIT ? max_state : upper; in thermal_zone_bind_cooling_device()
1358 if (lower > upper || upper > max_state) in thermal_zone_bind_cooling_device()
/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()
/drivers/thermal/int340x_thermal/
Dint3403_thermal.c49 unsigned long max_state; member
136 *state = obj->max_state; in int3403_get_max_state()
197 obj->max_state = p->package.count - 1; in int3403_cdev_add()
/drivers/thermal/tegra/
Dsoctherm.c911 unsigned long *max_state) in throt_get_cdev_max_state() argument
913 *max_state = 1; in throt_get_cdev_max_state()