/kernel/linux/linux-5.10/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 | 133 if (freq_table[0] < freq_table[devfreq->profile->max_state - 1]) { in get_freq_range() 135 *max_freq = freq_table[devfreq->profile->max_state - 1]; in get_freq_range() 137 *min_freq = freq_table[devfreq->profile->max_state - 1]; in get_freq_range() 168 for (lev = 0; lev < devfreq->profile->max_state; lev++) in devfreq_get_freq_level() 187 profile->max_state = count; in set_freq_table() 189 profile->max_state, in set_freq_table() 193 profile->max_state = 0; in set_freq_table() 197 for (i = 0, freq = 0; i < profile->max_state; i++, freq++) { in set_freq_table() 201 profile->max_state = 0; in set_freq_table() 245 (prev_lev * devfreq->profile->max_state) + lev]++; in devfreq_update_status() [all …]
|
D | exynos-bus.c | 392 int ret, max_state; in exynos_bus_probe() local 435 max_state = bus->devfreq->profile->max_state; in exynos_bus_probe() 437 max_freq = (bus->devfreq->profile->freq_table[max_state - 1] / 1000); in exynos_bus_probe()
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
D | rpmpd.c | 107 unsigned int max_state; member 114 unsigned int max_state; member 138 .max_state = RPM_SMD_LEVEL_TURBO_HIGH, 162 .max_state = MAX_8996_RPMPD_STATE, 194 .max_state = RPM_SMD_LEVEL_BINNING, 220 .max_state = RPM_SMD_LEVEL_BINNING, 336 if (state > pd->max_state) in rpmpd_set_performance() 337 state = pd->max_state; in rpmpd_set_performance() 403 rpmpds[i]->max_state = desc->max_state; in rpmpd_probe()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
D | cpufreq_stats.c | 18 unsigned int max_state; member 41 unsigned int count = stats->max_state; in cpufreq_stats_reset_table() 158 count = stats->trans_table[i * stats->max_state + j]; in show_trans_table() 190 for (index = 0; index < stats->max_state; index++) in freq_table_get_index() 244 stats->max_state = count; in cpufreq_stats_create_table() 289 stats->trans_table[old_index * stats->max_state + new_index]++; in cpufreq_stats_record_transition()
|
D | intel_pstate.c | 1208 int max_state, turbo_max, freq, i, perf_pct; in update_qos_request() local 1226 intel_pstate_get_hwp_max(cpu, &turbo_max, &max_state); in update_qos_request() 2212 int max_state, turbo_max; in intel_pstate_update_perf_limits() local 2221 intel_pstate_get_hwp_max(cpu, &turbo_max, &max_state); in intel_pstate_update_perf_limits() 2223 max_state = global.no_turbo || global.turbo_disabled ? in intel_pstate_update_perf_limits() 2227 max_freq = max_state * cpu->pstate.scaling; in intel_pstate_update_perf_limits() 2229 max_policy_perf = max_state * policy_max / max_freq; in intel_pstate_update_perf_limits() 2233 min_policy_perf = max_state * policy_min / max_freq; in intel_pstate_update_perf_limits() 2239 cpu->cpu, max_state, min_policy_perf, max_policy_perf); in intel_pstate_update_perf_limits() 2334 int max_state, turbo_max; in intel_pstate_verify_cpu_policy() local [all …]
|
/kernel/linux/linux-5.10/drivers/thermal/ |
D | gov_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_netlink.h | 22 int thermal_notify_cdev_add(int cdev_id, const char *name, int max_state); 85 int max_state) in thermal_notify_cdev_add() argument
|
D | thermal_core.c | 638 unsigned long max_state; in power_actor_get_min_power() local 644 ret = cdev->ops->get_max_state(cdev, &max_state); in power_actor_get_min_power() 648 return cdev->ops->state2power(cdev, max_state, min_power); in power_actor_get_min_power() 831 unsigned long max_state; in thermal_zone_bind_cooling_device() local 849 ret = cdev->ops->get_max_state(cdev, &max_state); in thermal_zone_bind_cooling_device() 855 upper = upper == THERMAL_NO_LIMIT ? max_state : upper; in thermal_zone_bind_cooling_device() 857 if (lower > upper || upper > max_state) in thermal_zone_bind_cooling_device()
|
D | thermal_sysfs.c | 711 static DEVICE_ATTR_RO(max_state);
|
/kernel/linux/linux-5.10/drivers/acpi/ |
D | processor_thermal.c | 178 int max_state = 0; in acpi_processor_max_state() local 184 max_state += cpufreq_get_max_state(pr->id); in acpi_processor_max_state() 186 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state() 188 return max_state; in acpi_processor_max_state()
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | intel_menlow.c | 49 unsigned long *max_state) in memory_get_max_bandwidth() argument 70 *max_state = value - 1; in memory_get_max_bandwidth() 106 unsigned long max_state; in memory_set_cur_bandwidth() local 108 if (memory_get_max_bandwidth(cdev, &max_state)) in memory_set_cur_bandwidth() 111 if (state > max_state) in memory_set_cur_bandwidth()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/interconnect/qcom/ |
D | osm-l3.c | 45 unsigned int max_state; member 171 for (index = 0; index < qp->max_state - 1; index++) { in qcom_icc_set() 256 qp->max_state = i; in qcom_osm_l3_probe()
|
/kernel/linux/linux-5.10/Documentation/hwmon/ |
D | mlxreg-fan.rst | 68 (0..max_state) 69 max_state RO file for maximum cooling state of the cooling device
|
/kernel/linux/linux-5.10/tools/thermal/tmon/ |
D | sysfs.c | 99 sysfs_get_ulong(path, "max_state", &cdi->max_state); in probe_cdev() 104 cdi->type, cdi->max_state, cdi->cur_state, cdi->instance); in probe_cdev() 543 if (ptdata.cdi[i].max_state < 10) { in set_ctrl_state() 548 cdev_state = state * ptdata.cdi[i].max_state/100; in set_ctrl_state()
|
D | tmon.h | 53 unsigned long max_state; member
|
D | tui.c | 220 ptdata.cdi[j].max_state); in show_cooling_device()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_thermal.c | 48 int max_state; member 57 .max_state = (4 * MLXSW_THERMAL_MAX_STATE) / 10, 65 .max_state = MLXSW_THERMAL_MAX_STATE, 72 .max_state = MLXSW_THERMAL_MAX_STATE, 78 .max_state = MLXSW_THERMAL_MAX_STATE, 240 trip->max_state, in mlxsw_thermal_bind() 396 trip->max_state, in mlxsw_thermal_module_bind()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/include/linux/ |
D | devfreq.h | 116 unsigned int max_state; member
|
/kernel/linux/linux-5.10/drivers/thermal/tegra/ |
D | soctherm.c | 1539 unsigned long *max_state) in throt_get_cdev_max_state() argument 1541 *max_state = 1; in throt_get_cdev_max_state()
|