Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/devfreq/
Dgovernor_passive.c51 || 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()
Ddevfreq.c133 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 …]
Dexynos-bus.c392 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/
Drpmpd.c107 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/
Dcpufreq_stats.c18 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()
Dintel_pstate.c1208 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/
Dgov_fair_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)(percentage * level * max_state) / (100 * tz->trips); in get_target_state()
Dthermal_netlink.h22 int thermal_notify_cdev_add(int cdev_id, const char *name, int max_state);
85 int max_state) in thermal_notify_cdev_add() argument
Dthermal_core.c638 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()
Dthermal_sysfs.c711 static DEVICE_ATTR_RO(max_state);
/kernel/linux/linux-5.10/drivers/acpi/
Dprocessor_thermal.c178 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/
Dintel_menlow.c49 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/
Dint3403_thermal.c41 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/
Dosm-l3.c45 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/
Dmlxreg-fan.rst68 (0..max_state)
69 max_state RO file for maximum cooling state of the cooling device
/kernel/linux/linux-5.10/tools/thermal/tmon/
Dsysfs.c99 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()
Dtmon.h53 unsigned long max_state; member
Dtui.c220 ptdata.cdi[j].max_state); in show_cooling_device()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c48 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/
Daspeed-pwm-tacho.c176 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()
Dnpcm750-pwm-fan.c187 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/
Dsysfs-api.rst278 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
Dintel_powerclamp.rst271 max_state:50
276 max_state will start the idle injection. Reading cur_state returns the
/kernel/linux/linux-5.10/include/linux/
Ddevfreq.h116 unsigned int max_state; member
/kernel/linux/linux-5.10/drivers/thermal/tegra/
Dsoctherm.c1539 unsigned long *max_state) in throt_get_cdev_max_state() argument
1541 *max_state = 1; in throt_get_cdev_max_state()

12