/linux-6.3-rc2/drivers/hwmon/ |
A D | emc2305.c | 30 #define EMC2305_PWM_DUTY2STATE(duty, max_state, pwm_max) \ argument 31 DIV_ROUND_CLOSEST((duty) * (max_state), (pwm_max)) 32 #define EMC2305_PWM_STATE2DUTY(state, max_state, pwm_max) \ argument 33 DIV_ROUND_CLOSEST((state) * (pwm_max), (max_state)) 102 u8 max_state; member 172 *state = data->max_state; in emc2305_get_max_state() 211 if (state > data->max_state) in emc2305_set_cur_state() 409 EMC2305_PWM_DUTY2STATE(val, data->max_state, in emc2305_write() 563 if (!pdata->max_state || pdata->max_state > EMC2305_FAN_MAX_STATE) in emc2305_probe() 565 data->max_state = pdata->max_state; in emc2305_probe() [all …]
|
/linux-6.3-rc2/drivers/soc/qcom/ |
A D | rpmpd.c | 109 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, 224 .max_state = RPM_SMD_LEVEL_TURBO, 327 .max_state = RPM_SMD_LEVEL_BINNING, 385 .max_state = RPM_SMD_LEVEL_TURBO, 599 if (state > pd->max_state) in rpmpd_set_performance() 600 state = pd->max_state; in rpmpd_set_performance() [all …]
|
/linux-6.3-rc2/drivers/thermal/ |
A D | devfreq_cooling.c | 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() 413 dfc->max_state = num_opps - 1; in of_devfreq_cooling_register_power()
|
A D | thermal_sysfs.c | 597 return sprintf(buf, "%ld\n", cdev->max_state); in max_state_show() 628 if (state > cdev->max_state) in cur_state_store() 643 static DEVICE_ATTR_RO(max_state); 697 stats->trans_table[stats->state * (cdev->max_state + 1) + new_state]++; in thermal_cooling_device_stats_update() 731 for (i = 0; i <= cdev->max_state; i++) { in time_in_state_ms_show() 746 int i, states = cdev->max_state + 1; in reset_store() 773 for (i = 0; i <= cdev->max_state; i++) { in trans_table_show() 783 for (i = 0; i <= cdev->max_state; i++) { in trans_table_show() 789 for (j = 0; j <= cdev->max_state; j++) { in trans_table_show() 793 stats->trans_table[i * (cdev->max_state + 1) + j]); in trans_table_show() [all …]
|
A D | thermal_netlink.h | 29 int thermal_notify_cdev_add(int cdev_id, const char *name, int max_state); 94 int max_state) in thermal_notify_cdev_add() argument
|
A D | gov_fair_share.c | 46 return (long)(percentage * level * cdev->max_state) / (100 * tz->num_trips); in get_target_state()
|
/linux-6.3-rc2/drivers/cpufreq/ |
A D | cpufreq_stats.c | 18 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() 286 stats->trans_table[old_index * stats->max_state + new_index]++; in cpufreq_stats_record_transition()
|
/linux-6.3-rc2/drivers/devfreq/ |
A D | devfreq.c | 190 devfreq->max_state = count; in set_freq_table() 192 devfreq->max_state, in set_freq_table() 839 devfreq->max_state = devfreq->profile->max_state; in devfreq_add_device() 875 devfreq->max_state, in devfreq_add_device() 885 devfreq->max_state, in devfreq_add_device() 1691 unsigned int max_state; in trans_stat_show() local 1695 max_state = df->max_state; in trans_stat_show() 1697 if (max_state == 0) in trans_stat_show() 1746 if (df->max_state == 0) in trans_stat_store() 1757 df->max_state, in trans_stat_store() [all …]
|
A D | sun8i-a33-mbus.c | 337 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()
|
A D | exynos-bus.c | 391 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()
|
A D | governor_passive.c | 147 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-6.3-rc2/drivers/acpi/ |
A D | processor_thermal.c | 181 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()
|
A D | fan_core.c | 155 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-6.3-rc2/drivers/thermal/intel/ |
A 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()
|
/linux-6.3-rc2/Documentation/hwmon/ |
A D | emc2305.rst | 35 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
|
A D | mlxreg-fan.rst | 68 (0..max_state) 69 max_state RO file for maximum cooling state of the cooling device
|
/linux-6.3-rc2/drivers/thermal/intel/int340x_thermal/ |
A 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-6.3-rc2/tools/lib/thermal/include/ |
A D | thermal.h | 30 int (*cdev_add)(const char *name, int cdev_id, int max_state, void *arg); 59 int max_state; member
|
/linux-6.3-rc2/drivers/interconnect/qcom/ |
A D | osm-l3.c | 48 unsigned int max_state; member 147 for (index = 0; index < qp->max_state - 1; index++) { in qcom_osm_l3_set() 234 qp->max_state = i; in qcom_osm_l3_probe()
|
/linux-6.3-rc2/include/linux/platform_data/ |
A D | emc2305.h | 16 u8 max_state; member
|
/linux-6.3-rc2/tools/thermal/tmon/ |
A 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()
|
A D | tmon.h | 53 unsigned long max_state; member
|
/linux-6.3-rc2/include/linux/ |
A D | devfreq.h | 120 unsigned int max_state; member 191 unsigned int max_state; member
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | core_thermal.c | 41 int max_state; member 65 .max_state = (4 * MLXSW_THERMAL_MAX_STATE) / 10, 69 .max_state = MLXSW_THERMAL_MAX_STATE, 73 .max_state = MLXSW_THERMAL_MAX_STATE, 216 state->max_state, in mlxsw_thermal_bind() 296 state->max_state, in mlxsw_thermal_module_bind()
|
/linux-6.3-rc2/tools/thermal/thermal-engine/ |
A D | thermal-engine.c | 167 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()
|