Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/hwmon/
Demc2305.c31 #define EMC2305_PWM_DUTY2STATE(duty, max_state, pwm_max) \ argument
32 DIV_ROUND_CLOSEST((duty) * (max_state), (pwm_max))
33 #define EMC2305_PWM_STATE2DUTY(state, max_state, pwm_max) \ argument
34 DIV_ROUND_CLOSEST((state) * (pwm_max), (max_state))
101 u8 max_state; member
171 *state = data->max_state; in emc2305_get_max_state()
182 if (state > data->max_state) in emc2305_set_cur_state()
193 val = EMC2305_PWM_STATE2DUTY(state, data->max_state, EMC2305_FAN_MAX); in emc2305_set_cur_state()
272 data->cdev_data[channel].cur_state = EMC2305_PWM_DUTY2STATE(val, data->max_state, in emc2305_set_pwm()
307 EMC2305_PWM_DUTY2STATE(data->pwm_min[cdev_idx], data->max_state, in emc2305_set_single_tz()
[all …]
/Linux-v6.1/drivers/soc/qcom/
Drpmpd.c109 unsigned int max_state; member
116 unsigned int max_state; member
139 .max_state = RPM_SMD_LEVEL_TURBO,
155 .max_state = MAX_CORNER_RPMPD_STATE,
181 .max_state = MAX_CORNER_RPMPD_STATE,
201 .max_state = MAX_CORNER_RPMPD_STATE,
224 .max_state = RPM_SMD_LEVEL_TURBO,
246 .max_state = RPM_SMD_LEVEL_TURBO_HIGH,
271 .max_state = MAX_CORNER_RPMPD_STATE,
295 .max_state = MAX_CORNER_RPMPD_STATE,
[all …]
/Linux-v6.1/drivers/thermal/
Ddevfreq_cooling.c56 size_t max_state; member
69 *state = dfc->max_state; in devfreq_cooling_get_max_state()
98 if (state > dfc->max_state) in devfreq_cooling_set_cur_state()
102 perf_idx = dfc->max_state - state; in devfreq_cooling_set_cur_state()
250 if (state > dfc->max_state) in devfreq_cooling_state2power()
253 perf_idx = dfc->max_state - state; in devfreq_cooling_state2power()
291 for (i = dfc->max_state; i > 0; i--) { in devfreq_cooling_power2state()
299 *state = dfc->max_state - i; in devfreq_cooling_power2state()
413 dfc->max_state = num_opps - 1; in of_devfreq_cooling_register_power()
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->num_trips); in get_target_state()
Dthermal_netlink.h28 int thermal_notify_cdev_add(int cdev_id, const char *name, int max_state);
93 int max_state) in thermal_notify_cdev_add() argument
/Linux-v6.1/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()
288 stats->trans_table[old_index * stats->max_state + new_index]++; in cpufreq_stats_record_transition()
/Linux-v6.1/drivers/devfreq/
Ddevfreq.c136 if (freq_table[0] < freq_table[devfreq->max_state - 1]) { in devfreq_get_freq_range()
138 *max_freq = freq_table[devfreq->max_state - 1]; in devfreq_get_freq_range()
140 *min_freq = freq_table[devfreq->max_state - 1]; in devfreq_get_freq_range()
172 for (lev = 0; lev < devfreq->max_state; lev++) in devfreq_get_freq_level()
190 devfreq->max_state = count; in set_freq_table()
192 devfreq->max_state, in set_freq_table()
198 for (i = 0, freq = 0; i < devfreq->max_state; i++, freq++) { in set_freq_table()
245 (prev_lev * devfreq->max_state) + lev]++; in devfreq_update_status()
832 if (!devfreq->profile->max_state || !devfreq->profile->freq_table) { in devfreq_add_device()
840 devfreq->max_state = devfreq->profile->max_state; in devfreq_add_device()
[all …]
Dsun8i-a33-mbus.c337 unsigned int max_state; in sun8i_a33_mbus_probe() local
345 max_state = variant->max_dram_divider - variant->min_dram_divider + 1; in sun8i_a33_mbus_probe()
347 priv = devm_kzalloc(dev, struct_size(priv, freq_table, max_state), GFP_KERNEL); in sun8i_a33_mbus_probe()
405 priv->profile.max_state = max_state; in sun8i_a33_mbus_probe()
414 for (i = 0; i < max_state; ++i) { in sun8i_a33_mbus_probe()
Dexynos-bus.c391 int ret, max_state; in exynos_bus_probe() local
446 max_state = bus->devfreq->max_state; in exynos_bus_probe()
448 max_freq = (bus->devfreq->freq_table[max_state - 1] / 1000); in exynos_bus_probe()
Dgovernor_passive.c147 for (i = 0; i < parent_devfreq->max_state; i++) in get_target_freq_with_devfreq()
151 if (i == parent_devfreq->max_state) in get_target_freq_with_devfreq()
154 if (i < devfreq->max_state) { in get_target_freq_with_devfreq()
157 count = devfreq->max_state; in get_target_freq_with_devfreq()
/Linux-v6.1/drivers/acpi/
Dprocessor_thermal.c181 int max_state = 0; in acpi_processor_max_state() local
187 max_state += cpufreq_get_max_state(pr->id); in acpi_processor_max_state()
189 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state()
191 return max_state; in acpi_processor_max_state()
Dfan_core.c155 int max_state; in fan_set_state_acpi4() local
158 max_state = 100 / fan->fif.step_size; in fan_set_state_acpi4()
160 max_state = fan->fps_count - 1; in fan_set_state_acpi4()
162 if (state > max_state) in fan_set_state_acpi4()
/Linux-v6.1/drivers/thermal/intel/
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()
/Linux-v6.1/Documentation/hwmon/
Demc2305.rst35 cur_state RW file for the current cooling state of the cooling device (0..max_state)
36 max_state RO file for the maximum cooling state of the cooling device
Dmlxreg-fan.rst68 (0..max_state)
69 max_state RO file for maximum cooling state of the cooling device
/Linux-v6.1/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()
/Linux-v6.1/tools/lib/thermal/include/
Dthermal.h30 int (*cdev_add)(const char *name, int cdev_id, int max_state, void *arg);
59 int max_state; member
/Linux-v6.1/include/linux/platform_data/
Demc2305.h16 u8 max_state; member
/Linux-v6.1/drivers/interconnect/qcom/
Dosm-l3.c47 unsigned int max_state; member
205 for (index = 0; index < qp->max_state - 1; index++) { in qcom_osm_l3_set()
292 qp->max_state = i; in qcom_osm_l3_probe()
/Linux-v6.1/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
/Linux-v6.1/include/linux/
Ddevfreq.h120 unsigned int max_state; member
191 unsigned int max_state; member
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c44 int max_state; member
53 .max_state = (4 * MLXSW_THERMAL_MAX_STATE) / 10,
61 .max_state = MLXSW_THERMAL_MAX_STATE,
67 .max_state = MLXSW_THERMAL_MAX_STATE,
208 trip->max_state, in mlxsw_thermal_bind()
348 trip->max_state, in mlxsw_thermal_module_bind()
/Linux-v6.1/tools/thermal/thermal-engine/
Dthermal-engine.c167 static int cdev_add(const char *name, int cdev_id, int max_state, __maybe_unused void *arg) in cdev_add() argument
169 INFO("Cooling device '%s'/%d (max state=%d) added\n", name, cdev_id, max_state); in cdev_add()
/Linux-v6.1/Documentation/ABI/testing/
Dsysfs-class-thermal210 What: /sys/class/thermal/cooling_deviceX/max_state
219 The value can any integer numbers between 0 and max_state:
222 - cur_state == max_state means the maximum cooling.

12