Lines Matching defs:thermal

3  *  of-thermal.c - Generic Thermal Management device tree support.
16 #include <linux/thermal.h>
22 /*** Private data structures to represent thermal device tree data ***/
53 * struct __thermal_zone - internal representation of a thermal zone
60 * @num_tbps: number of thermal bind params
61 * @tbps: an array of thermal bind params (0..num_tbps - 1)
63 * @ops: set of callbacks to handle the thermal zone based on DT
85 /*** DT thermal zone device callbacks ***/
112 * @tz: pointer to a thermal zone
133 * @tz: pointer to a thermal zone
155 * @tz: pointer to a thermal zone
176 * @tz: pointer to a thermal zone
206 static int of_thermal_bind(struct thermal_zone_device *thermal,
209 struct __thermal_zone *data = thermal->devdata;
227 ret = thermal_zone_bind_cooling_device(thermal,
241 static int of_thermal_unbind(struct thermal_zone_device *thermal,
244 struct __thermal_zone *data = thermal->devdata;
262 ret = thermal_zone_unbind_cooling_device(thermal,
315 /* thermal framework should take care of data->mask & (1 << trip) */
342 /* thermal framework should take care of data->mask & (1 << trip) */
402 * The thermal zone core will calculate the window if they have set the
417 * thermal_zone_of_get_sensor_id - get sensor ID from a DT thermal zone
418 * @tz_np: a valid thermal zone device node.
422 * This function will get sensor ID from a given thermal zone node and
436 "thermal-sensors",
437 "#thermal-sensor-cells",
461 * thermal_zone_of_sensor_register - registers a sensor to a DT thermal zone
470 * This function will search the list of thermal zones described in device
473 * sensor node, the sensor will be added to the DT thermal zone device.
475 * The thermal zone temperature is provided by the @get_temp function
478 * The thermal zone temperature trend is provided by the @get_trend function
485 * 02 - There must be a way to match the sensor with all thermal zones
499 np = of_find_node_by_name(NULL, "thermal-zones");
513 /* For now, thermal framework supports only 1 sensor per zone */
537 * thermal_zone_of_sensor_unregister - unregisters a sensor from a DT thermal zone
543 * thermal zone device registered with thermal_zone_of_sensor_register()
545 * thermal zone device callbacks.
646 * thermal zone device registered with devm_thermal_zone_of_sensor_register()
648 * thermal zone device callbacks.
666 * @trips: array of thermal zone trip points
671 * It needs the already parsed array of trip points of the thermal zone
759 * It maps 'enum thermal_trip_type' found in include/linux/thermal.h
842 * thermal_of_build_thermal_zone - parse and fill one thermal zone data
843 * @np: DT node containing a thermal zone node
845 * This function parses a thermal zone type of node represented by
849 * TODO: Missing properties to parse: thermal-sensor-names
864 pr_err("no thermal zone np\n");
887 * REVIST: for now, the thermal framework supports only
888 * one sensor per thermal zone. Thus, we are considering
1004 * Finds all zones parsed and added to the thermal framework and remove them
1012 np = of_find_node_by_name(NULL, "thermal-zones");
1014 pr_debug("unable to find thermal zones\n");
1034 * of_parse_thermal_zones - parse device tree thermal data
1037 * code to parse thermal data and populate the thermal framework
1038 * with hardware thermal zones info. This function only parses thermal zones.
1051 np = of_find_node_by_name(NULL, "thermal-zones");
1053 pr_debug("unable to find thermal zones\n");
1054 return 0; /* Run successfully on systems without thermal DT */
1065 pr_err("failed to build thermal zone %pOFn: %ld\n",