/linux-6.8/drivers/thermal/ |
D | thermal_of.c | 25 struct device_node *trips; in of_find_trip_id() local 29 trips = of_get_child_by_name(np, "trips"); in of_find_trip_id() 30 if (!trips) { in of_find_trip_id() 31 pr_err("Failed to find 'trips' node\n"); in of_find_trip_id() 38 for_each_child_of_node(trips, t) { in of_find_trip_id() 49 of_node_put(trips); in of_find_trip_id() 126 struct device_node *trips, *trip; in thermal_of_trips_init() local 129 trips = of_get_child_by_name(np, "trips"); in thermal_of_trips_init() 130 if (!trips) { in thermal_of_trips_init() 131 pr_err("Failed to find 'trips' node\n"); in thermal_of_trips_init() [all …]
|
D | thermal_trip.c | 8 * Thermal trips handling 119 dev_err(&tz->device, "Failed to set trips: %d\n", ret); in __thermal_zone_set_trips() 125 if (!tz || !tz->trips || trip_id < 0 || trip_id >= tz->num_trips || !trip) in __thermal_zone_get_trip() 128 *trip = tz->trips[trip_id]; in __thermal_zone_get_trip() 151 * zone's trips[] table. in thermal_zone_trip_id() 153 return trip - tz->trips; in thermal_zone_trip_id()
|
D | imx_thermal.c | 117 static struct thermal_trip trips[] = { variable 282 if (data->alarm_temp == trips[IMX_TRIP_PASSIVE].temperature && in imx_get_temp() 283 *temp >= trips[IMX_TRIP_PASSIVE].temperature) in imx_get_temp() 284 imx_set_alarm_temp(data, trips[IMX_TRIP_CRITICAL].temperature); in imx_get_temp() 285 if (data->alarm_temp == trips[IMX_TRIP_CRITICAL].temperature && in imx_get_temp() 286 *temp < trips[IMX_TRIP_PASSIVE].temperature) { in imx_get_temp() 287 imx_set_alarm_temp(data, trips[IMX_TRIP_PASSIVE].temperature); in imx_get_temp() 353 if (temp < 0 || temp > trips[IMX_TRIP_CRITICAL].temperature) in imx_set_trip_temp() 464 trips[IMX_TRIP_PASSIVE].temperature = data->temp_max - (1000 * 10); in imx_init_temp_grade() 465 trips[IMX_TRIP_CRITICAL].temperature = data->temp_max - (1000 * 5); in imx_init_temp_grade() [all …]
|
/linux-6.8/arch/arm64/boot/dts/ti/ |
D | k3-j721s2-thermal.dtsi | 10 trips { 24 trips { 38 trips { 52 trips { 66 trips { 80 trips { 94 trips {
|
D | k3-j784s4-thermal.dtsi | 10 trips { 24 trips { 38 trips { 52 trips { 66 trips { 80 trips { 94 trips {
|
D | k3-j721e-thermal.dtsi | 11 trips { 25 trips { 39 trips { 53 trips { 67 trips {
|
D | k3-am654-industrial-thermal.dtsi | 10 trips { 24 trips { 38 trips {
|
D | k3-j7200-thermal.dtsi | 11 trips { 25 trips { 39 trips {
|
D | k3-am62a-thermal.dtsi | 11 trips { 25 trips { 39 trips {
|
D | k3-am62p-thermal.dtsi | 11 trips { 25 trips { 39 trips {
|
D | k3-am64-thermal.dtsi | 11 trips { 25 trips {
|
/linux-6.8/drivers/thermal/intel/ |
D | x86_pkg_temp_thermal.c | 56 struct thermal_trip *trips; member 273 struct thermal_trip *trips; in pkg_temp_thermal_trips_init() local 278 trips = kzalloc(sizeof(*trips) * num_trips, GFP_KERNEL); in pkg_temp_thermal_trips_init() 279 if (!trips) in pkg_temp_thermal_trips_init() 295 kfree(trips); in pkg_temp_thermal_trips_init() 301 trips[i].temperature = thres_reg_value ? in pkg_temp_thermal_trips_init() 304 trips[i].type = THERMAL_TRIP_PASSIVE; in pkg_temp_thermal_trips_init() 307 __func__, cpu, i, trips[i].temperature); in pkg_temp_thermal_trips_init() 310 return trips; in pkg_temp_thermal_trips_init() 339 zonedev->trips = pkg_temp_thermal_trips_init(cpu, tj_max, thres_count); in pkg_temp_thermal_device_add() [all …]
|
D | intel_pch_thermal.c | 87 struct thermal_trip trips[PCH_MAX_TRIPS]; member 109 ptd->trips[trip].type = THERMAL_TRIP_PASSIVE; in pch_wpt_add_acpi_psv_trip() 110 ptd->trips[trip].temperature = temp; in pch_wpt_add_acpi_psv_trip() 223 ptd->trips[nr_trips].temperature = GET_WPT_TEMP(trip_temp); in intel_pch_thermal_probe() 224 ptd->trips[nr_trips++].type = THERMAL_TRIP_CRITICAL; in intel_pch_thermal_probe() 230 ptd->trips[nr_trips].temperature = GET_WPT_TEMP(trip_temp); in intel_pch_thermal_probe() 231 ptd->trips[nr_trips++].type = THERMAL_TRIP_HOT; in intel_pch_thermal_probe() 237 ptd->trips, nr_trips, in intel_pch_thermal_probe()
|
D | intel_quark_dts_thermal.c | 108 struct thermal_trip trips[QRK_MAX_DTS_TRIPS]; member 365 aux_entry->trips[QRK_DTS_ID_TP_CRITICAL].temperature = get_trip_temp(QRK_DTS_ID_TP_CRITICAL); in alloc_soc_dts() 366 aux_entry->trips[QRK_DTS_ID_TP_CRITICAL].type = THERMAL_TRIP_CRITICAL; in alloc_soc_dts() 368 aux_entry->trips[QRK_DTS_ID_TP_HOT].temperature = get_trip_temp(QRK_DTS_ID_TP_HOT); in alloc_soc_dts() 369 aux_entry->trips[QRK_DTS_ID_TP_HOT].type = THERMAL_TRIP_HOT; in alloc_soc_dts() 372 aux_entry->trips, in alloc_soc_dts()
|
/linux-6.8/Documentation/devicetree/bindings/thermal/ |
D | brcm,sr-thermal.txt | 37 trips { 49 trips { 61 trips { 73 trips { 85 trips { 97 trips {
|
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>;
|
D | thermal-zones.yaml | 123 trips: 193 crosses one of the temperature thresholds described in the trips 234 - trips 284 trips { 329 trips { 351 trips {
|
/linux-6.8/drivers/acpi/ |
D | thermal.c | 114 struct acpi_thermal_trips trips; member 188 return active - tz->trips.active; in active_trip_index() 210 * trips with thresholds greater than the override. in get_active_temp() 392 tz->trips.passive.tc1 = tmp; in passive_trip_params_init() 398 tz->trips.passive.tc2 = tmp; in passive_trip_params_init() 402 tz->trips.passive.delay = tmp; in passive_trip_params_init() 410 tz->trips.passive.delay = tmp * 100; in passive_trip_params_init() 421 acpi_trip = &tz->trips.passive.trip; in acpi_thermal_init_trip() 432 acpi_trip = &tz->trips.active[index].trip; in acpi_thermal_init_trip() 471 tz->trips.active[i].trip.temp_dk = THERMAL_TEMP_INVALID; in acpi_thermal_get_trip_points() [all …]
|
/linux-6.8/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_thermal.c | 95 /* Make sure all trips are writable */ 103 struct thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member 124 struct thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member 421 module_tz->trips, in mlxsw_thermal_module_tz_init() 462 memcpy(module_tz->trips, default_thermal_module_trips, in mlxsw_thermal_module_init() 463 sizeof(thermal->trips)); in mlxsw_thermal_module_init() 549 gearbox_tz->trips, in mlxsw_thermal_gearbox_tz_init() 604 memcpy(gearbox_tz->trips, default_thermal_trips, in mlxsw_thermal_gearboxes_init() 605 sizeof(thermal->trips)); in mlxsw_thermal_gearboxes_init() 722 memcpy(thermal->trips, default_thermal_trips, sizeof(thermal->trips)); in mlxsw_thermal_init() [all …]
|
/linux-6.8/arch/arm64/boot/dts/qcom/ |
D | sa8775p.dtsi | 2465 trips { 2486 trips { 2507 trips { 2528 trips { 2549 trips { 2570 trips { 2591 trips { 2612 trips { 2633 trips { 2654 trips { [all …]
|
D | pm8550vs.dtsi | 17 trips { 38 trips { 59 trips { 80 trips {
|
D | ipq9574.dtsi | 752 trips { 766 trips { 780 trips { 794 trips { 808 trips { 822 trips { 836 trips { 850 trips { 880 trips { 910 trips { [all …]
|
D | sa8775p-pmics.dtsi | 16 trips { 36 trips { 56 trips { 76 trips {
|
/linux-6.8/arch/arm/boot/dts/samsung/ |
D | exynos5422-odroidhc1.dts | 35 trips { 90 trips { 134 trips { 178 trips { 222 trips {
|
/linux-6.8/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | tt.c | 572 /* The driver holds array of temperature trips that are unsorted in iwl_mvm_send_temp_report_ths_cmd() 576 /* compress trips to cmd array, remove uninitialized values*/ in iwl_mvm_send_temp_report_ths_cmd() 578 if (mvm->tz_device.trips[i].temperature != INT_MIN) { in iwl_mvm_send_temp_report_ths_cmd() 580 cpu_to_le16((s16)(mvm->tz_device.trips[i].temperature / 1000)); in iwl_mvm_send_temp_report_ths_cmd() 591 /* we should save the indexes of trips because we sort in iwl_mvm_send_temp_report_ths_cmd() 597 mvm->tz_device.trips[j].temperature) in iwl_mvm_send_temp_report_ths_cmd() 671 /* make all trips writable */ 690 mvm->tz_device.trips, in iwl_mvm_thermal_zone_register() 714 mvm->tz_device.trips[i].temperature = INT_MIN; in iwl_mvm_thermal_zone_register() 715 mvm->tz_device.trips[i].type = THERMAL_TRIP_PASSIVE; in iwl_mvm_thermal_zone_register()
|