Searched refs:max_state (Results 1 – 12 of 12) sorted by relevance
/drivers/cpufreq/ |
D | cpufreq_times.c | 37 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 …]
|
D | cpufreq_stats.c | 23 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/ |
D | governor_passive.c | 54 || 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()
|
D | devfreq.c | 81 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 …]
|
D | exynos-bus.c | 392 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/ |
D | processor_thermal.c | 185 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/ |
D | fair_share.c | 64 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()
|
D | db8500_thermal.c | 67 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()
|
D | thermal_core.c | 1116 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/ |
D | intel_menlow.c | 64 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/ |
D | int3403_thermal.c | 49 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/ |
D | soctherm.c | 911 unsigned long *max_state) in throt_get_cdev_max_state() argument 913 *max_state = 1; in throt_get_cdev_max_state()
|