Home
last modified time | relevance | path

Searched refs:trips (Results 1 – 17 of 17) sorted by relevance

/drivers/thermal/
A Dthermal_of.c103 if (!trips) in thermal_of_trips_init()
106 count = of_get_child_count(trips); in thermal_of_trips_init()
115 for_each_child_of_node_scoped(trips, trip) { in thermal_of_trips_init()
372 struct thermal_trip *trips; in thermal_of_zone_register() local
387 trips = thermal_of_trips_init(np, &ntrips); in thermal_of_zone_register()
388 if (IS_ERR(trips)) { in thermal_of_zone_register()
390 ret = PTR_ERR(trips); in thermal_of_zone_register()
394 if (!trips) in thermal_of_zone_register()
415 tz = thermal_zone_device_register_with_trips(np->name, trips, ntrips, in thermal_of_zone_register()
425 kfree(trips); in thermal_of_zone_register()
[all …]
A Dimx_thermal.c117 static struct thermal_trip trips[] = { variable
283 if (data->alarm_temp == trips[IMX_TRIP_PASSIVE].temperature && in imx_get_temp()
284 *temp >= trips[IMX_TRIP_PASSIVE].temperature) in imx_get_temp()
286 if (data->alarm_temp == trips[IMX_TRIP_CRITICAL].temperature && in imx_get_temp()
287 *temp < trips[IMX_TRIP_PASSIVE].temperature) { in imx_get_temp()
345 if (temp < 0 || temp > trips[IMX_TRIP_CRITICAL].temperature) in imx_set_trip_temp()
349 trips[IMX_TRIP_PASSIVE].temperature = temp; in imx_set_trip_temp()
683 trips, in imx_thermal_probe()
684 ARRAY_SIZE(trips), in imx_thermal_probe()
699 trips[IMX_TRIP_PASSIVE].temperature / 1000); in imx_thermal_probe()
[all …]
A Dda9062-thermal.c144 static struct thermal_trip trips[] = { variable
200 trips, ARRAY_SIZE(trips), thermal, in da9062_thermal_probe()
A Dthermal_core.h152 struct thermal_trip_desc trips[] __counted_by(num_trips);
271 for (__td = __tz->trips; __td - __tz->trips < __tz->num_trips; __td++)
A Dthermal_trip.c89 return trip_to_trip_desc(trip) - tz->trips; in thermal_zone_trip_id()
A Dthermal_core.c1498 const struct thermal_trip *trips, in thermal_zone_device_register_with_trips() argument
1505 const struct thermal_trip *trip = trips; in thermal_zone_device_register_with_trips()
1532 if (num_trips > 0 && !trips) in thermal_zone_device_register_with_trips()
1541 tz = kzalloc(struct_size(tz, trips, num_trips), GFP_KERNEL); in thermal_zone_device_register_with_trips()
/drivers/thermal/testing/
A Dzone.c42 struct list_head trips; member
144 list_for_each_entry_safe(tt_trip, aux, &tt_zone->trips, list_node) { in tt_zone_free_trips()
199 INIT_LIST_HEAD(&tt_zone->trips); in tt_add_tz()
361 list_add_tail(&tt_trip->list_node, &tt_zone->trips); in tt_zone_add_trip()
390 struct thermal_trip *trips __free(kfree) = NULL; in tt_zone_register_tz()
400 trips = kcalloc(tt_zone->num_trips, sizeof(*trips), GFP_KERNEL); in tt_zone_register_tz()
401 if (!trips) in tt_zone_register_tz()
405 list_for_each_entry(tt_trip, &tt_zone->trips, list_node) in tt_zone_register_tz()
406 trips[i++] = tt_trip->trip; in tt_zone_register_tz()
410 tz = thermal_zone_device_register_with_trips("test_tz", trips, i, tt_zone, in tt_zone_register_tz()
/drivers/thermal/intel/
A Dintel_quark_dts_thermal.c334 struct thermal_trip trips[QRK_MAX_DTS_TRIPS] = { 0 }; in alloc_soc_dts() local
369 trips[QRK_DTS_ID_TP_CRITICAL].flags |= THERMAL_TRIP_FLAG_RW_TEMP; in alloc_soc_dts()
370 trips[QRK_DTS_ID_TP_HOT].flags |= THERMAL_TRIP_FLAG_RW_TEMP; in alloc_soc_dts()
373 trips[QRK_DTS_ID_TP_CRITICAL].temperature = get_trip_temp(QRK_DTS_ID_TP_CRITICAL); in alloc_soc_dts()
374 trips[QRK_DTS_ID_TP_CRITICAL].type = THERMAL_TRIP_CRITICAL; in alloc_soc_dts()
376 trips[QRK_DTS_ID_TP_HOT].temperature = get_trip_temp(QRK_DTS_ID_TP_HOT); in alloc_soc_dts()
377 trips[QRK_DTS_ID_TP_HOT].type = THERMAL_TRIP_HOT; in alloc_soc_dts()
380 trips, in alloc_soc_dts()
A Dx86_pkg_temp_thermal.c274 struct thermal_trip *trips, int num_trips) in pkg_temp_thermal_trips_init() argument
297 trips[i].temperature = thres_reg_value ? in pkg_temp_thermal_trips_init()
300 trips[i].type = THERMAL_TRIP_PASSIVE; in pkg_temp_thermal_trips_init()
301 trips[i].flags |= THERMAL_TRIP_FLAG_RW_TEMP; in pkg_temp_thermal_trips_init()
302 trips[i].priv = THERMAL_INT_TO_TRIP_PRIV(i); in pkg_temp_thermal_trips_init()
305 __func__, cpu, i, trips[i].temperature); in pkg_temp_thermal_trips_init()
313 struct thermal_trip trips[MAX_NUMBER_OF_TRIPS] = { 0 }; in pkg_temp_thermal_device_add() local
339 err = pkg_temp_thermal_trips_init(cpu, tj_max, trips, thres_count); in pkg_temp_thermal_device_add()
346 trips, thres_count, in pkg_temp_thermal_device_add()
A Dintel_soc_dts_iosf.c207 struct thermal_trip *trips) in add_dts_thermal_zone() argument
229 trips[i].flags &= ~THERMAL_TRIP_FLAG_RW_TEMP; in add_dts_thermal_zone()
233 dts->tzone = thermal_zone_device_register_with_trips(name, trips, in add_dts_thermal_zone()
310 struct thermal_trip trips[SOC_MAX_DTS_SENSORS][SOC_MAX_DTS_TRIPS] = { 0 }; in intel_soc_dts_iosf_init() local
337 set_trip(&trips[i][0], THERMAL_TRIP_PASSIVE, in intel_soc_dts_iosf_init()
346 set_trip(&trips[i][1], THERMAL_TRIP_CRITICAL, 0, temp, 1); in intel_soc_dts_iosf_init()
348 set_trip(&trips[i][1], THERMAL_TRIP_PASSIVE, in intel_soc_dts_iosf_init()
359 ret = add_dts_thermal_zone(i, &sensors->soc_dts[i], trips[i]); in intel_soc_dts_iosf_init()
/drivers/acpi/
A Dthermal.c116 struct acpi_thermal_trips trips; member
195 return active - tz->trips.active; in active_trip_index()
399 tz->trips.passive.tc1 = tmp; in passive_trip_params_init()
405 tz->trips.passive.tc2 = tmp; in passive_trip_params_init()
409 tz->trips.passive.delay = tmp; in passive_trip_params_init()
417 tz->trips.passive.delay = tmp * 100; in passive_trip_params_init()
428 acpi_trip = &tz->trips.passive.trip; in acpi_thermal_init_trip()
514 tz->trips.passive.tc2 * (tz->temp_dk - in thermal_get_trend()
845 acpi_trip = &tz->trips.passive.trip; in acpi_thermal_add()
847 passive_delay = tz->trips.passive.delay; in acpi_thermal_add()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
A Dcore_thermal.c112 struct thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member
133 struct thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member
362 module_tz->trips, in mlxsw_thermal_module_tz_init()
399 memcpy(module_tz->trips, default_thermal_module_trips, in mlxsw_thermal_module_init()
400 sizeof(thermal->trips)); in mlxsw_thermal_module_init()
479 gearbox_tz->trips, in mlxsw_thermal_gearbox_tz_init()
533 memcpy(gearbox_tz->trips, default_thermal_trips, in mlxsw_thermal_gearboxes_init()
534 sizeof(thermal->trips)); in mlxsw_thermal_gearboxes_init()
654 memcpy(thermal->trips, default_thermal_trips, sizeof(thermal->trips)); in mlxsw_thermal_init()
657 thermal->trips[i].priv = &thermal->cooling_states[i]; in mlxsw_thermal_init()
[all …]
/drivers/platform/x86/
A Dacerhdf.c141 static struct thermal_trip trips[] = { variable
345 trips[0].temperature = fanon; in acerhdf_check_param()
346 trips[0].hysteresis = fanon - fanoff; in acerhdf_check_param()
659 thz_dev = thermal_zone_device_register_with_trips("acerhdf", trips, ARRAY_SIZE(trips), in acerhdf_register_thermal()
/drivers/thermal/renesas/
A Drcar_thermal.c284 static struct thermal_trip trips[] = { variable
492 "rcar_thermal", trips, ARRAY_SIZE(trips), priv, in rcar_thermal_probe()
/drivers/net/wireless/intel/iwlwifi/mvm/
A Dtt.c671 mvm->tz_device.trips[i].temperature = THERMAL_TEMP_INVALID; in iwl_mvm_thermal_zone_register()
672 mvm->tz_device.trips[i].type = THERMAL_TRIP_PASSIVE; in iwl_mvm_thermal_zone_register()
673 mvm->tz_device.trips[i].flags = THERMAL_TRIP_FLAG_RW_TEMP; in iwl_mvm_thermal_zone_register()
676 mvm->tz_device.trips, in iwl_mvm_thermal_zone_register()
A Dmvm.h689 struct thermal_trip trips[IWL_MAX_DTS_TRIPS]; member
/drivers/net/wireless/intel/iwlwifi/mld/
A Dthermal.c247 struct thermal_trip trips[IWL_MAX_DTS_TRIPS] = { in iwl_mld_thermal_zone_register() local
259 thermal_zone_device_register_with_trips(name, trips, in iwl_mld_thermal_zone_register()

Completed in 45 milliseconds