/linux-master/drivers/thermal/ |
H A D | thermal_of.c | 25 struct device_node *trips; local 29 trips = of_get_child_by_name(np, "trips"); 30 if (!trips) { 31 pr_err("Failed to find 'trips' node\n"); 38 for_each_child_of_node(trips, t) { 49 of_node_put(trips); 128 struct device_node *trips, *trip; local 131 trips = of_get_child_by_name(np, "trips"); 476 struct thermal_trip *trips; local [all...] |
H A D | thermal_core.h | 124 for (__trip = __tz->trips; __trip - __tz->trips < __tz->num_trips; __trip++)
|
H A D | thermal_trip.c | 8 * Thermal trips handling 104 dev_err(&tz->device, "Failed to set trips: %d\n", ret); 113 *trip = tz->trips[trip_id]; 136 * zone's trips[] table. 138 return trip - tz->trips;
|
H A D | imx_thermal.c | 117 static struct thermal_trip trips[] = { variable in typeref:struct:thermal_trip 283 if (data->alarm_temp == trips[IMX_TRIP_PASSIVE].temperature && 284 *temp >= trips[IMX_TRIP_PASSIVE].temperature) 285 imx_set_alarm_temp(data, trips[IMX_TRIP_CRITICAL].temperature); 286 if (data->alarm_temp == trips[IMX_TRIP_CRITICAL].temperature && 287 *temp < trips[IMX_TRIP_PASSIVE].temperature) { 288 imx_set_alarm_temp(data, trips[IMX_TRIP_PASSIVE].temperature); 354 if (temp < 0 || temp > trips[IMX_TRIP_CRITICAL].temperature) 358 trips[IMX_TRIP_PASSIVE].temperature = temp; 466 trips[IMX_TRIP_PASSIV [all...] |
H A D | da9062-thermal.c | 144 static struct thermal_trip trips[] = { variable in typeref:struct:thermal_trip 200 trips, ARRAY_SIZE(trips), thermal,
|
H A D | thermal_core.c | 280 * - Non-critical trips will invoke the governor responsible for that zone; 281 * - Hot trips will produce a notification to userspace; 769 return thermal_bind_cdev_to_trip(tz, &tz->trips[trip_index], cdev, 828 return thermal_unbind_cdev_from_trip(tz, &tz->trips[trip_index], cdev); 1232 if (tz->trips[i].type == THERMAL_TRIP_CRITICAL) { 1233 *temp = tz->trips[i].temperature; 1248 * @trips: a pointer to an array of thermal trips 1271 const struct thermal_trip *trips, 1294 pr_err("Incorrect number of thermal trips\ 1270 thermal_zone_device_register_with_trips(const char *type, const struct thermal_trip *trips, int num_trips, void *devdata, const struct thermal_zone_device_ops *ops, const struct thermal_zone_params *tzp, int passive_delay, int polling_delay) argument [all...] |
H A D | rcar_thermal.c | 284 static struct thermal_trip trips[] = { variable in typeref:struct:thermal_trip 492 "rcar_thermal", trips, ARRAY_SIZE(trips), priv,
|
H A D | thermal_helpers.c | 53 trip = &tz->trips[trip_index];
|
H A D | thermal_sysfs.c | 91 switch (tz->trips[trip_id].type) { 123 trip = &tz->trips[trip_id]; 153 return sprintf(buf, "%d\n", tz->trips[trip_id].temperature); 174 trip = &tz->trips[trip_id]; 197 return sprintf(buf, "%d\n", tz->trips[trip_id].hysteresis); 507 /* we need one extra for trips and the NULL to terminate the array */
|
/linux-master/drivers/thermal/intel/ |
H A D | intel_quark_dts_thermal.c | 318 struct thermal_trip trips[QRK_MAX_DTS_TRIPS] = { 0 }; local 353 trips[QRK_DTS_ID_TP_CRITICAL].flags |= THERMAL_TRIP_FLAG_RW_TEMP; 354 trips[QRK_DTS_ID_TP_HOT].flags |= THERMAL_TRIP_FLAG_RW_TEMP; 357 trips[QRK_DTS_ID_TP_CRITICAL].temperature = get_trip_temp(QRK_DTS_ID_TP_CRITICAL); 358 trips[QRK_DTS_ID_TP_CRITICAL].type = THERMAL_TRIP_CRITICAL; 360 trips[QRK_DTS_ID_TP_HOT].temperature = get_trip_temp(QRK_DTS_ID_TP_HOT); 361 trips[QRK_DTS_ID_TP_HOT].type = THERMAL_TRIP_HOT; 364 trips,
|
H A D | intel_soc_dts_iosf.c | 40 /* Mask for two trips in status bits */ 205 struct thermal_trip *trips) 227 trips[i].flags &= ~THERMAL_TRIP_FLAG_RW_TEMP; 231 dts->tzone = thermal_zone_device_register_with_trips(name, trips, 307 struct thermal_trip trips[SOC_MAX_DTS_SENSORS][SOC_MAX_DTS_TRIPS] = { 0 }; local 334 set_trip(&trips[i][0], THERMAL_TRIP_PASSIVE, 343 set_trip(&trips[i][1], THERMAL_TRIP_CRITICAL, 0, temp); 345 set_trip(&trips[i][1], THERMAL_TRIP_PASSIVE, 356 ret = add_dts_thermal_zone(i, &sensors->soc_dts[i], trips[i]); 204 add_dts_thermal_zone(int id, struct intel_soc_dts_sensor_entry *dts, struct thermal_trip *trips) argument
|
H A D | x86_pkg_temp_thermal.c | 271 struct thermal_trip *trips, int num_trips) 294 trips[i].temperature = thres_reg_value ? 297 trips[i].type = THERMAL_TRIP_PASSIVE; 298 trips[i].flags |= THERMAL_TRIP_FLAG_RW_TEMP; 301 __func__, cpu, i, trips[i].temperature); 309 struct thermal_trip trips[MAX_NUMBER_OF_TRIPS] = { 0 }; local 334 err = pkg_temp_thermal_trips_init(cpu, tj_max, trips, thres_count); 341 trips, thres_count, 270 pkg_temp_thermal_trips_init(int cpu, int tj_max, struct thermal_trip *trips, int num_trips) argument
|
/linux-master/drivers/acpi/ |
H A D | thermal.c | 116 struct acpi_thermal_trips trips; member in struct:acpi_thermal 189 return active - tz->trips.active; 211 * trips with thresholds greater than the override. 393 tz->trips.passive.tc1 = tmp; 399 tz->trips.passive.tc2 = tmp; 403 tz->trips.passive.delay = tmp; 411 tz->trips.passive.delay = tmp * 100; 422 acpi_trip = &tz->trips.passive.trip; 433 acpi_trip = &tz->trips.active[index].trip; 467 tz->trips [all...] |
/linux-master/include/linux/ |
H A D | thermal.h | 169 * @trips: array of struct thermal_trip objects 206 struct thermal_trip trips[] __counted_by(num_trips); 325 const struct thermal_trip *trips, 384 const struct thermal_trip *trips, 382 thermal_zone_device_register_with_trips( const char *type, const struct thermal_trip *trips, int num_trips, void *devdata, const struct thermal_zone_device_ops *ops, const struct thermal_zone_params *tzp, int passive_delay, int polling_delay) argument
|
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_thermal.c | 106 struct thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member in struct:mlxsw_thermal_module 127 struct thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member in struct:mlxsw_thermal 424 module_tz->trips, 464 memcpy(module_tz->trips, default_thermal_module_trips, 465 sizeof(thermal->trips)); 551 gearbox_tz->trips, 605 memcpy(gearbox_tz->trips, default_thermal_trips, 606 sizeof(thermal->trips)); 723 memcpy(thermal->trips, default_thermal_trips, sizeof(thermal->trips)); [all...] |
/linux-master/drivers/platform/x86/ |
H A D | acerhdf.c | 141 static struct thermal_trip trips[] = { variable in typeref:struct:thermal_trip 345 trips[0].temperature = fanon; 346 trips[0].hysteresis = fanon - fanoff; 680 thz_dev = thermal_zone_device_register_with_trips("acerhdf", trips, ARRAY_SIZE(trips),
|
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | tt.c | 589 * The thermal core holds an array of temperature trips that are 594 /* compress trips to cmd array, remove uninitialized values*/ 690 mvm->tz_device.trips[i].temperature = THERMAL_TEMP_INVALID; 691 mvm->tz_device.trips[i].type = THERMAL_TRIP_PASSIVE; 692 mvm->tz_device.trips[i].flags = THERMAL_TRIP_FLAG_RW_TEMP; 695 mvm->tz_device.trips,
|
H A D | mvm.h | 545 * @trips: temperature thresholds for report 549 struct thermal_trip trips[IWL_MAX_DTS_TRIPS]; member in struct:iwl_mvm_thermal_device
|
/linux-master/arch/alpha/lib/ |
H A D | ev6-memcpy.S | 108 subq $18, 192, $2 # E : At least two more trips to go? 119 # fallback wh64 address if < 2 more trips
|
H A D | ev6-clear_user.S | 127 * Assumes the wh64 needs to be for 2 trips through the loop in the future 129 * through the loop, and if there are less than two trips left, the target 152 subq $0, 168, $5 # E : U L L U : two trips through the loop left?
|