Home
last modified time | relevance | path

Searched refs:max_state (Results 1 - 25 of 55) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/hwmon/
H A Demc2305.c30 #define EMC2305_PWM_DUTY2STATE(duty, max_state, pwm_max) \
31 DIV_ROUND_CLOSEST((duty) * (max_state), (pwm_max))
32 #define EMC2305_PWM_STATE2DUTY(state, max_state, pwm_max) \
33 DIV_ROUND_CLOSEST((state) * (pwm_max), (max_state))
93 * @max_state: maximum cooling state of the cooling device
102 u8 max_state; member
172 *state = data->max_state; in emc2305_get_max_state()
184 val = EMC2305_PWM_STATE2DUTY(state, data->max_state, EMC2305_FAN_MAX); in __emc2305_set_cur_state()
211 if (state > data->max_state) in emc2305_set_cur_state()
284 data->cdev_data[channel].cur_state = EMC2305_PWM_DUTY2STATE(val, data->max_state, in emc2305_set_pwm()
[all...]
/kernel/linux/linux-6.6/drivers/pmdomain/qcom/
H A Drpmpd.c58 unsigned int max_state; member
66 unsigned int max_state; member
529 .max_state = RPM_SMD_LEVEL_TURBO,
541 .max_state = MAX_CORNER_RPMPD_STATE,
558 .max_state = MAX_CORNER_RPMPD_STATE,
572 .max_state = MAX_CORNER_RPMPD_STATE,
588 .max_state = RPM_SMD_LEVEL_TURBO,
603 .max_state = RPM_SMD_LEVEL_TURBO_HIGH,
621 .max_state = MAX_CORNER_RPMPD_STATE,
637 .max_state
[all...]
/kernel/linux/linux-5.10/drivers/devfreq/
H A 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()
H A 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) in devfreq_update_status()
1644 unsigned int max_state; trans_stat_show() local
[all...]
/kernel/linux/linux-5.10/drivers/soc/qcom/
H A 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()
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A 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()
68 * P1. max_state: Maximum throttle state exposed by the cooling device.
H A 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()
84 thermal_notify_cdev_add(int cdev_id, const char *name, int max_state) thermal_notify_cdev_add() argument
/kernel/linux/linux-6.6/drivers/thermal/
H A Ddevfreq_cooling.c36 * @max_state: It is the last index, that is, one less than the number of the
56 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()
412 /* max_state i in of_devfreq_cooling_register_power()
[all...]
H A Dthermal_sysfs.c598 return sprintf(buf, "%ld\n", cdev->max_state); in max_state_show()
628 /* Requested state should be less than max_state + 1 */ in cur_state_store()
629 if (state > cdev->max_state) in cur_state_store()
644 static DEVICE_ATTR_RO(max_state);
700 stats->trans_table[stats->state * (cdev->max_state + 1) + new_state]++; in thermal_cooling_device_stats_update()
750 for (i = 0; i <= cdev->max_state; i++) { in time_in_state_ms_show()
776 states = cdev->max_state + 1; in reset_store()
814 for (i = 0; i <= cdev->max_state; i++) { in trans_table_show()
826 for (i = 0; i <= cdev->max_state; i++) { in trans_table_show()
832 for (j = 0; j <= cdev->max_state; in trans_table_show()
[all...]
H A Dthermal_netlink.h29 int thermal_notify_cdev_add(int cdev_id, const char *name, int max_state);
94 int max_state) in thermal_notify_cdev_add()
93 thermal_notify_cdev_add(int cdev_id, const char *name, int max_state) thermal_notify_cdev_add() argument
/kernel/linux/linux-5.10/drivers/acpi/
H A 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/cpufreq/
H A 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()
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dcpufreq_stats.c18 unsigned int max_state; member
41 unsigned int count = stats->max_state; in cpufreq_stats_reset_table()
156 count = stats->trans_table[i * stats->max_state + j]; in show_trans_table()
188 for (index = 0; index < stats->max_state; index++) in freq_table_get_index()
242 stats->max_state = count; in cpufreq_stats_create_table()
287 stats->trans_table[old_index * stats->max_state + new_index]++; in cpufreq_stats_record_transition()
/kernel/linux/linux-6.6/drivers/devfreq/
H A 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()
853 if (!devfreq->profile->max_state || !devfreq->profile->freq_table) { in devfreq_add_device()
861 devfreq->max_state in devfreq_add_device()
1713 unsigned int max_state; trans_stat_show() local
[all...]
H A 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()
/kernel/linux/linux-6.6/drivers/acpi/
H A Dprocessor_thermal.c189 int max_state = 0; in acpi_processor_max_state() local
195 max_state += cpufreq_get_max_state(pr->id); in acpi_processor_max_state()
197 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state()
199 return max_state; in acpi_processor_max_state()
/kernel/linux/linux-6.6/drivers/platform/x86/
H A Dmsi-ec.c115 .max_state = 3,
195 .max_state = 3,
273 .max_state = 3,
351 .max_state = 3,
428 .max_state = 3,
507 .max_state = 3,
586 .max_state = 3,
666 .max_state = 3,
/kernel/linux/linux-5.10/drivers/thermal/intel/int340x_thermal/
H A 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-6.6/drivers/thermal/intel/int340x_thermal/
H A 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/platform/x86/
H A Dintel_menlow.c49 unsigned long *max_state) in memory_get_max_bandwidth()
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()
48 memory_get_max_bandwidth(struct thermal_cooling_device *cdev, unsigned long *max_state) memory_get_max_bandwidth() argument
/kernel/linux/linux-6.6/tools/lib/thermal/include/
H A Dthermal.h30 int (*cdev_add)(const char *name, int cdev_id, int max_state, void *arg);
59 int max_state; member
/kernel/linux/linux-6.6/include/linux/platform_data/
H A Demc2305.h10 * @max_state: maximum cooling state of the cooling device;
16 u8 max_state; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A 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/interconnect/qcom/
H A 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-6.6/drivers/interconnect/qcom/
H A Dosm-l3.c42 unsigned int max_state; member
141 for (index = 0; index < qp->max_state - 1; index++) { in qcom_osm_l3_set()
228 qp->max_state = i; in qcom_osm_l3_probe()

Completed in 22 milliseconds

123