| /Linux-v5.4/drivers/devfreq/ |
| D | governor_passive.c | 51 || devfreq->profile->max_state <= 0) in devfreq_passive_get_target_freq() 71 for (i = 0; i < parent_devfreq->profile->max_state; i++) in devfreq_passive_get_target_freq() 75 if (i == parent_devfreq->profile->max_state) { in devfreq_passive_get_target_freq() 81 if (i < devfreq->profile->max_state) { in devfreq_passive_get_target_freq() 84 count = devfreq->profile->max_state; in devfreq_passive_get_target_freq()
|
| D | devfreq.c | 110 for (lev = 0; lev < devfreq->profile->max_state; lev++) in devfreq_get_freq_level() 129 profile->max_state = count; in set_freq_table() 131 profile->max_state, in set_freq_table() 135 profile->max_state = 0; in set_freq_table() 139 for (i = 0, freq = 0; i < profile->max_state; i++, freq++) { in set_freq_table() 143 profile->max_state = 0; in set_freq_table() 186 devfreq->profile->max_state) + lev]++; in devfreq_update_status() 652 if (!devfreq->profile->max_state && !devfreq->profile->freq_table) { in devfreq_add_device() 690 devfreq->profile->max_state, in devfreq_add_device() 691 devfreq->profile->max_state), in devfreq_add_device() [all …]
|
| D | exynos-bus.c | 299 int ret, max_state; in exynos_bus_probe() local 415 max_state = bus->devfreq->profile->max_state; in exynos_bus_probe() 417 max_freq = (bus->devfreq->profile->freq_table[max_state - 1] / 1000); in exynos_bus_probe()
|
| /Linux-v5.4/drivers/soc/qcom/ |
| D | rpmpd.c | 106 unsigned int max_state; member 113 unsigned int max_state; member 139 .max_state = MAX_8996_RPMPD_STATE, 171 .max_state = RPM_SMD_LEVEL_BINNING, 197 .max_state = RPM_SMD_LEVEL_BINNING, 311 if (state > pd->max_state) in rpmpd_set_performance() 312 state = pd->max_state; in rpmpd_set_performance() 375 rpmpds[i]->max_state = desc->max_state; in rpmpd_probe()
|
| /Linux-v5.4/drivers/cpufreq/ |
| D | cpufreq_stats.c | 18 unsigned int max_state; member 37 unsigned int count = stats->max_state; in cpufreq_stats_clear_table() 117 stats->trans_table[i*stats->max_state+j]); in show_trans_table() 147 for (index = 0; index < stats->max_state; index++) in freq_table_get_index() 201 stats->max_state = count; in cpufreq_stats_create_table() 247 stats->trans_table[old_index * stats->max_state + new_index]++; in cpufreq_stats_record_transition()
|
| D | intel_pstate.c | 1091 int max_state, turbo_max, freq, i, perf_pct; in update_qos_request() local 1109 intel_pstate_get_hwp_max(i, &turbo_max, &max_state); in update_qos_request() 2044 int max_state, turbo_max; in intel_pstate_update_perf_limits() local 2052 intel_pstate_get_hwp_max(cpu->cpu, &turbo_max, &max_state); in intel_pstate_update_perf_limits() 2054 max_state = global.no_turbo || global.turbo_disabled ? in intel_pstate_update_perf_limits() 2059 max_policy_perf = max_state * policy->max / max_freq; in intel_pstate_update_perf_limits() 2063 min_policy_perf = max_state * policy->min / max_freq; in intel_pstate_update_perf_limits() 2069 policy->cpu, max_state, in intel_pstate_update_perf_limits() 2381 int max_state, turbo_max, min_freq, max_freq, ret; in intel_cpufreq_cpu_init() local 2408 intel_pstate_get_hwp_max(policy->cpu, &turbo_max, &max_state); in intel_cpufreq_cpu_init()
|
| /Linux-v5.4/drivers/thermal/ |
| D | fair_share.c | 52 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)(percentage * level * max_state) / (100 * tz->trips); in get_target_state()
|
| D | thermal_core.c | 565 unsigned long max_state; in power_actor_get_min_power() local 571 ret = cdev->ops->get_max_state(cdev, &max_state); in power_actor_get_min_power() 575 return cdev->ops->state2power(cdev, tz, max_state, min_power); in power_actor_get_min_power() 691 unsigned long max_state; in thermal_zone_bind_cooling_device() local 709 ret = cdev->ops->get_max_state(cdev, &max_state); in thermal_zone_bind_cooling_device() 715 upper = upper == THERMAL_NO_LIMIT ? max_state : upper; in thermal_zone_bind_cooling_device() 717 if (lower > upper || upper > max_state) in thermal_zone_bind_cooling_device()
|
| D | thermal_sysfs.c | 727 static DEVICE_ATTR_RO(max_state);
|
| /Linux-v5.4/drivers/acpi/ |
| D | processor_thermal.c | 180 int max_state = 0; in acpi_processor_max_state() local 186 max_state += cpufreq_get_max_state(pr->id); in acpi_processor_max_state() 188 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state() 190 return max_state; in acpi_processor_max_state()
|
| /Linux-v5.4/drivers/platform/x86/ |
| D | intel_menlow.c | 48 unsigned long *max_state) in memory_get_max_bandwidth() argument 69 *max_state = value - 1; in memory_get_max_bandwidth() 105 unsigned long max_state; in memory_set_cur_bandwidth() local 107 if (memory_get_max_bandwidth(cdev, &max_state)) in memory_set_cur_bandwidth() 110 if (state > max_state) in memory_set_cur_bandwidth()
|
| /Linux-v5.4/drivers/thermal/intel/int340x_thermal/ |
| D | int3403_thermal.c | 41 unsigned long max_state; member 128 *state = obj->max_state; in int3403_get_max_state() 190 obj->max_state = p->package.count - 1; in int3403_cdev_add()
|
| /Linux-v5.4/Documentation/hwmon/ |
| D | mlxreg-fan.rst | 68 (0..max_state) 69 max_state RO file for maximum cooling state of the cooling device
|
| /Linux-v5.4/tools/thermal/tmon/ |
| D | sysfs.c | 98 sysfs_get_ulong(path, "max_state", &cdi->max_state); in probe_cdev() 103 cdi->type, cdi->max_state, cdi->cur_state, cdi->instance); in probe_cdev() 541 if (ptdata.cdi[i].max_state < 10) { in set_ctrl_state() 546 cdev_state = state * ptdata.cdi[i].max_state/100; in set_ctrl_state()
|
| D | tmon.h | 50 unsigned long max_state; member
|
| D | tui.c | 220 ptdata.cdi[j].max_state); in show_cooling_device()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
| D | core_thermal.c | 56 int max_state; member 65 .max_state = (4 * MLXSW_THERMAL_MAX_STATE) / 10, 73 .max_state = MLXSW_THERMAL_MAX_STATE, 80 .max_state = MLXSW_THERMAL_MAX_STATE, 86 .max_state = MLXSW_THERMAL_MAX_STATE, 246 trip->max_state, in mlxsw_thermal_bind() 435 trip->max_state, in mlxsw_thermal_module_bind()
|
| /Linux-v5.4/drivers/hwmon/ |
| D | aspeed-pwm-tacho.c | 176 u8 max_state; member 763 *state = cdev->max_state; in aspeed_pwm_cz_get_max_state() 785 if (state > cdev->max_state) in aspeed_pwm_cz_set_cur_state() 820 cdev->max_state = num_levels - 1; in aspeed_create_pwm_cooling()
|
| D | npcm750-pwm-fan.c | 187 u8 max_state; member 783 *state = cdev->max_state; in npcm7xx_pwm_cz_get_max_state() 806 if (state > cdev->max_state) in npcm7xx_pwm_cz_set_cur_state() 838 cdev->max_state = num_levels - 1; in npcm7xx_create_pwm_cooling()
|
| /Linux-v5.4/include/linux/ |
| D | devfreq.h | 106 unsigned int max_state; member
|
| /Linux-v5.4/Documentation/driver-api/thermal/ |
| D | sysfs-api.rst | 278 and the cooling device can be in max_state. 403 |---max_state: Maximum cooling state of the cooling device 635 max_state 642 The value can any integer numbers between 0 and max_state: 645 - cur_state == max_state means the maximum cooling. 714 |---max_state: 8 719 |---max_state: 2
|
| D | intel_powerclamp.rst | 271 max_state:50 276 max_state will start the idle injection. Reading cur_state returns the
|
| /Linux-v5.4/drivers/thermal/tegra/ |
| D | soctherm.c | 1534 unsigned long *max_state) in throt_get_cdev_max_state() argument 1536 *max_state = 1; in throt_get_cdev_max_state()
|