/linux/drivers/acpi/ |
A D | thermal.c | 169 struct acpi_thermal_trips trips; member 486 tz->trips.hot.flags.valid | in acpi_thermal_get_trip_points() 585 tz->trips.hot.temperature, in thermal_get_trip_temp() 661 + (tz->trips.passive.tc2 in thermal_get_trend() 710 if (tz->trips.hot.flags.valid) in acpi_thermal_cooling_device_cb() 792 int trips = 0; in acpi_thermal_register_thermal_zone() local 798 trips++; in acpi_thermal_register_thermal_zone() 801 trips++; in acpi_thermal_register_thermal_zone() 804 trips++; in acpi_thermal_register_thermal_zone() 807 tz->trips.active[i].flags.valid; i++, trips++); in acpi_thermal_register_thermal_zone() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | core_thermal.c | 299 *p_type = thermal->trips[trip].type; in mlxsw_thermal_get_trip_type() 323 thermal->trips[trip].temp = temp; in mlxsw_thermal_set_trip_temp() 341 thermal->trips[trip].hyst = hyst; in mlxsw_thermal_set_trip_hyst() 486 *p_type = tz->trips[trip].type; in mlxsw_thermal_module_trip_type_get() 499 *p_temp = tz->trips[trip].temp; in mlxsw_thermal_module_trip_temp_get() 512 tz->trips[trip].temp = temp; in mlxsw_thermal_module_trip_temp_set() 522 *p_hyst = tz->trips[trip].hyst; in mlxsw_thermal_module_trip_hyst_get() 532 tz->trips[trip].hyst = hyst; in mlxsw_thermal_module_trip_hyst_set() 716 sizeof(thermal->trips)); in mlxsw_thermal_module_init() 864 sizeof(thermal->trips)); in mlxsw_thermal_gearboxes_init() [all …]
|
/linux/drivers/thermal/ |
A D | thermal_of.c | 74 struct thermal_trip *trips; member 169 return data->trips; in of_thermal_get_trip_points() 281 *type = data->trips[trip].type; in of_thermal_get_trip_type() 678 struct thermal_trip *trips, in thermal_of_populate_bind_params() argument 701 if (trip == trips[i].np) { in thermal_of_populate_bind_params() 911 tz->trips = kcalloc(tz->ntrips, sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone() 912 if (!tz->trips) { in thermal_of_build_thermal_zone() 970 of_node_put(tz->trips[i].np); in thermal_of_build_thermal_zone() 971 kfree(tz->trips); in thermal_of_build_thermal_zone() 996 of_node_put(tz->trips[i].np); in of_thermal_free_zone() [all …]
|
A D | uniphier_thermal.c | 251 const struct thermal_trip *trips; in uniphier_tm_probe() local 300 trips = of_thermal_get_trip_points(tdev->tz_dev); in uniphier_tm_probe() 309 if (trips[i].type == THERMAL_TRIP_CRITICAL && in uniphier_tm_probe() 310 trips[i].temperature < crit_temp) in uniphier_tm_probe() 311 crit_temp = trips[i].temperature; in uniphier_tm_probe() 312 uniphier_tm_set_alert(tdev, i, trips[i].temperature); in uniphier_tm_probe()
|
A D | gov_fair_share.c | 28 if (tz->trips == 0 || !tz->ops->get_trip_temp) in get_trip_level() 31 for (count = 0; count < tz->trips; count++) { in get_trip_level() 56 return (long)(percentage * level * max_state) / (100 * tz->trips); in get_target_state()
|
A D | thermal_sysfs.c | 419 if (tz->trips <= 0) in create_trip_attrs() 422 tz->trip_type_attrs = kcalloc(tz->trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs() 427 tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs() 435 tz->trip_hyst_attrs = kcalloc(tz->trips, in create_trip_attrs() 445 attrs = kcalloc(tz->trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); in create_trip_attrs() 454 for (indx = 0; indx < tz->trips; indx++) { in create_trip_attrs() 481 attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs() 499 attrs[indx + tz->trips * 2] = in create_trip_attrs() 502 attrs[tz->trips * 3] = NULL; in create_trip_attrs() 543 if (tz->trips) { in thermal_zone_create_device_groups() [all …]
|
A D | thermal_core.c | 508 for (count = 0; count < tz->trips; count++) in thermal_zone_device_update() 633 if (trip >= tz->trips || trip < 0) in thermal_zone_bind_cooling_device() 814 for (i = 0; i < tz->trips; i++) { in __bind() 1059 for (i = 0; i < tz->trips; i++) in __unbind() 1186 thermal_zone_device_register(const char *type, int trips, int mask, in thermal_zone_device_register() argument 1210 if (trips > THERMAL_MAX_TRIPS || trips < 0 || mask >> trips) { in thermal_zone_device_register() 1220 if (trips > 0 && (!ops->get_trip_type || !ops->get_trip_temp)) in thermal_zone_device_register() 1250 tz->trips = trips; in thermal_zone_device_register() 1268 for (count = 0; count < trips; count++) { in thermal_zone_device_register()
|
A D | thermal_helpers.c | 93 for (count = 0; count < tz->trips; count++) { in thermal_zone_get_temp() 141 for (i = 0; i < tz->trips; i++) { in thermal_zone_set_trips()
|
A D | armada_thermal.c | 788 const struct thermal_trip *trips = of_thermal_get_trip_points(tz); in armada_configure_overheat_int() local 792 if (!trips) in armada_configure_overheat_int() 796 if (trips[i].type == THERMAL_TRIP_CRITICAL) in armada_configure_overheat_int() 807 trips[i].temperature, in armada_configure_overheat_int() 808 trips[i].hysteresis); in armada_configure_overheat_int()
|
/linux/Documentation/devicetree/bindings/thermal/ |
A D | brcm,sr-thermal.txt | 37 trips { 49 trips { 61 trips { 73 trips { 85 trips { 97 trips {
|
A D | db8500-thermal.txt | 9 - num-trips : number of total trip points, this is required, set it 0 if none, 19 Usually the num-trips and tripN-*** are separated in board related dts files. 28 num-trips = <3>;
|
A D | thermal-zones.yaml | 107 trips: 176 crosses one of the temperature thresholds described in the trips 267 trips { 312 trips { 334 trips {
|
/linux/arch/arm64/boot/dts/ti/ |
A D | k3-am654-industrial-thermal.dtsi | 10 trips { 24 trips { 38 trips {
|
/linux/arch/arm/boot/dts/ |
A D | exynos5422-odroidhc1.dts | 33 trips { 88 trips { 132 trips { 176 trips { 220 trips {
|
A D | exynos5422-odroidxu3-common.dtsi | 56 trips { 145 trips { 218 trips { 291 trips { 364 trips {
|
A D | qcom-ipq8064.dtsi | 57 trips { 77 trips { 97 trips { 117 trips { 137 trips { 157 trips { 177 trips { 197 trips { 217 trips { 237 trips { [all …]
|
A D | rk3288-veyron-mickey.dts | 42 /delete-node/ trips; 45 trips { 148 /delete-node/ trips; 151 trips {
|
/linux/arch/arm64/boot/dts/exynos/ |
A D | exynos5433-tmu.dtsi | 16 trips { 104 trips { 147 trips { 190 trips { 266 trips {
|
/linux/arch/arm64/boot/dts/qcom/ |
A D | sm8350.dtsi | 1678 trips { 1722 trips { 1766 trips { 1810 trips { 1854 trips { 1898 trips { 1942 trips { 1986 trips { 2030 trips { 2074 trips { [all …]
|
A D | sm8250-mtp.dts | 33 trips { 47 trips { 61 trips { 75 trips { 89 trips { 103 trips { 117 trips {
|
A D | msm8998.dtsi | 515 trips { 536 trips { 557 trips { 578 trips { 599 trips { 620 trips { 641 trips { 662 trips { 683 trips { 698 trips { [all …]
|
A D | sm8150.dtsi | 3692 trips { 3736 trips { 3780 trips { 3824 trips { 3868 trips { 3912 trips { 3956 trips { 4000 trips { 4044 trips { 4088 trips { [all …]
|
/linux/drivers/thermal/qcom/ |
A D | qcom-spmi-temp-alarm.c | 302 const struct thermal_trip *trips; in qpnp_tm_get_critical_trip_temp() local 309 trips = of_thermal_get_trip_points(chip->tz_dev); in qpnp_tm_get_critical_trip_temp() 310 if (!trips) in qpnp_tm_get_critical_trip_temp() 315 trips[i].type == THERMAL_TRIP_CRITICAL) in qpnp_tm_get_critical_trip_temp() 316 return trips[i].temperature; in qpnp_tm_get_critical_trip_temp()
|
/linux/arch/arm64/boot/dts/marvell/ |
A D | armada-ap80x.dtsi | 321 trips { 338 trips { 371 trips { 404 trips { 437 trips {
|
/linux/arch/arm64/boot/dts/broadcom/stingray/ |
A D | stingray.dtsi | 628 trips { 640 trips { 652 trips { 664 trips { 676 trips { 688 trips {
|