| /drivers/hwmon/ |
| A D | emc2305.c | 37 DIV_ROUND_CLOSEST((duty) * (max_state), (pwm_max)) 114 u8 max_state; member 185 *state = data->max_state; in emc2305_get_max_state() 224 if (state > data->max_state) in emc2305_set_cur_state() 324 data->max_state, EMC2305_FAN_MAX); in emc2305_set_single_tz() 339 EMC2305_PWM_DUTY2STATE(pwm, data->max_state, in emc2305_set_single_tz() 342 EMC2305_PWM_DUTY2STATE(pwm, data->max_state, in emc2305_set_single_tz() 642 if (!pdata->max_state || pdata->max_state > EMC2305_FAN_MAX_STATE) in emc2305_probe() 644 data->max_state = pdata->max_state; in emc2305_probe() 661 data->max_state = EMC2305_FAN_MAX_STATE; in emc2305_probe() [all …]
|
| A D | aspeed-pwm-tacho.c | 177 u8 max_state; member 777 *state = cdev->max_state; in aspeed_pwm_cz_get_max_state() 799 if (state > cdev->max_state) in aspeed_pwm_cz_set_cur_state() 834 cdev->max_state = num_levels - 1; in aspeed_create_pwm_cooling()
|
| A D | npcm750-pwm-fan.c | 191 u8 max_state; member 800 *state = cdev->max_state; in npcm7xx_pwm_cz_get_max_state() 823 if (state > cdev->max_state) in npcm7xx_pwm_cz_set_cur_state() 855 cdev->max_state = num_levels - 1; in npcm7xx_create_pwm_cooling()
|
| /drivers/pmdomain/qcom/ |
| A D | rpmpd.c | 60 unsigned int max_state; member 68 unsigned int max_state; member 645 .max_state = RPM_SMD_LEVEL_TURBO, 702 .max_state = RPM_SMD_LEVEL_TURBO, 718 .max_state = RPM_SMD_LEVEL_TURBO, 814 .max_state = RPM_SMD_LEVEL_BINNING, 844 .max_state = RPM_SMD_LEVEL_TURBO, 863 .max_state = RPM_SMD_LEVEL_TURBO, 1063 if (state > pd->max_state) in rpmpd_set_performance() 1064 state = pd->max_state; in rpmpd_set_performance() [all …]
|
| /drivers/thermal/ |
| A D | devfreq_cooling.c | 56 size_t max_state; member 69 *state = dfc->max_state; in devfreq_cooling_get_max_state() 99 if (state > dfc->max_state) in devfreq_cooling_set_cur_state() 103 perf_idx = dfc->max_state - state; in devfreq_cooling_set_cur_state() 217 state = dfc->max_state - dfc->capped_state; in devfreq_cooling_get_requested_power() 272 if (state > dfc->max_state) in devfreq_cooling_state2power() 275 perf_idx = dfc->max_state - state; in devfreq_cooling_state2power() 321 for (i = dfc->max_state; i > 0; i--) { in devfreq_cooling_power2state() 330 *state = dfc->max_state - i; in devfreq_cooling_power2state() 444 dfc->max_state = num_opps - 1; in of_devfreq_cooling_register_power()
|
| A D | thermal_sysfs.c | 516 return sprintf(buf, "%ld\n", cdev->max_state); in max_state_show() 547 if (state > cdev->max_state) in cur_state_store() 563 static DEVICE_ATTR_RO(max_state); 619 stats->trans_table[stats->state * (cdev->max_state + 1) + new_state]++; in thermal_cooling_device_stats_update() 666 for (i = 0; i <= cdev->max_state; i++) { in time_in_state_ms_show() 689 states = cdev->max_state + 1; in reset_store() 722 for (i = 0; i <= cdev->max_state; i++) { in trans_table_show() 732 for (i = 0; i <= cdev->max_state; i++) { in trans_table_show() 738 for (j = 0; j <= cdev->max_state; j++) { in trans_table_show() 742 stats->trans_table[i * (cdev->max_state + 1) + j]); in trans_table_show() [all …]
|
| A D | pcie_cooling.c | 35 *state = cdev->max_state - (port->subordinate->cur_bus_speed - PCIE_SPEED_2_5GT); in pcie_cooling_get_cur_level() 46 speed = (cdev->max_state - state) + PCIE_SPEED_2_5GT; in pcie_cooling_set_cur_level()
|
| A D | thermal_core.c | 838 cool_spec->upper = cdev->max_state; in thermal_bind_cdev_to_trip() 844 if (cool_spec->lower > cool_spec->upper || cool_spec->upper > cdev->max_state) in thermal_bind_cdev_to_trip() 1097 ret = cdev->ops->get_max_state(cdev, &cdev->max_state); in __thermal_cooling_device_register() 1126 if (current_state <= cdev->max_state) in __thermal_cooling_device_register() 1283 if (cdev->ops->get_max_state(cdev, &cdev->max_state)) in thermal_cooling_device_update() 1289 if (ti->upper == cdev->max_state) in thermal_cooling_device_update() 1292 if (ti->upper < cdev->max_state) { in thermal_cooling_device_update() 1294 ti->upper = cdev->max_state; in thermal_cooling_device_update() 1299 ti->upper = cdev->max_state; in thermal_cooling_device_update() 1310 if (cdev->ops->get_cur_state(cdev, &state) || state > cdev->max_state) in thermal_cooling_device_update()
|
| A D | gov_fair_share.c | 82 dividend *= cdev->max_state; in fair_share_throttle()
|
| A D | thermal_netlink.c | 422 .cdev_max_state = cdev->max_state }; in thermal_notify_cdev_add()
|
| /drivers/platform/x86/ |
| A D | msi-ec.c | 115 .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, 743 .max_state = 3, 820 .max_state = 3, [all …]
|
| A D | msi-ec.h | 103 int max_state; member
|
| /drivers/devfreq/ |
| A D | devfreq.c | 187 devfreq->max_state = count; in set_freq_table() 189 devfreq->max_state, in set_freq_table() 858 devfreq->max_state = devfreq->profile->max_state; in devfreq_add_device() 892 devfreq->max_state, in devfreq_add_device() 902 devfreq->max_state, in devfreq_add_device() 1704 unsigned int max_state; in trans_stat_show() local 1708 max_state = df->max_state; in trans_stat_show() 1710 if (max_state == 0) in trans_stat_show() 1777 if (df->max_state == 0) in trans_stat_store() 1788 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() 396 priv->profile.max_state = max_state; in sun8i_a33_mbus_probe() 403 for (i = 0; i < max_state; ++i) { in sun8i_a33_mbus_probe()
|
| A D | exynos-bus.c | 379 int ret, max_state; in exynos_bus_probe() local 434 max_state = bus->devfreq->max_state; in exynos_bus_probe() 436 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()
|
| /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() 287 stats->trans_table[old_index * stats->max_state + new_index]++; in cpufreq_stats_record_transition()
|
| /drivers/acpi/ |
| A D | processor_thermal.c | 220 int max_state = 0; in acpi_processor_max_state() local 226 max_state += cpufreq_get_max_state(pr->id); in acpi_processor_max_state() 228 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state() 230 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()
|
| /drivers/thermal/intel/int340x_thermal/ |
| A D | int3403_thermal.c | 30 unsigned long max_state; member 117 *state = obj->max_state; in int3403_get_max_state() 179 obj->max_state = p->package.count - 1; in int3403_cdev_add()
|
| /drivers/net/ethernet/mellanox/mlxsw/ |
| A D | core_thermal.c | 39 int max_state; member 87 .max_state = (4 * MLXSW_THERMAL_MAX_STATE) / 10, 91 .max_state = MLXSW_THERMAL_MAX_STATE, 95 .max_state = MLXSW_THERMAL_MAX_STATE, 180 c->upper = state->max_state; in mlxsw_thermal_should_bind() 230 c->upper = state->max_state; in mlxsw_thermal_module_should_bind()
|
| /drivers/interconnect/qcom/ |
| A D | osm-l3.c | 41 unsigned int max_state; member 126 for (index = 0; index < qp->max_state - 1; index++) { in qcom_osm_l3_set() 211 qp->max_state = i; in qcom_osm_l3_probe()
|
| /drivers/gpu/drm/msm/ |
| A D | msm_gpu_devfreq.c | 177 msm_devfreq_profile.max_state = 0; in msm_devfreq_init()
|
| /drivers/thermal/tegra/ |
| A D | soctherm.c | 1496 unsigned long *max_state) in throt_get_cdev_max_state() argument 1498 *max_state = 1; in throt_get_cdev_max_state()
|
| /drivers/gpu/drm/amd/display/dc/dml2/ |
| A D | display_mode_core_structs.h | 819 …struct soc_state_bounding_box_st max_state; //<brief The MAX power state; some algo needs to know … member
|