Lines Matching full:zone
16 * controlled. Each power zone can have one or more constraints.
28 * limits. If disabled power zone can only be monitored
75 * struct powercap_zone_ops - Define power zone callbacks
83 * @set_enable: Enable/Disable power zone controls.
92 * This structure defines zone callbacks to be implemented by client drivers.
112 * struct powercap_zone- Defines instance of a power cap zone
114 * @name: Power zone name.
115 * @control_type_inst: Control type instance for this zone.
116 * @ops: Pointer to the zone operation structure.
121 * @private_data: Private data pointer if any for this zone.
131 * @constraints: List of constraints for this zone.
133 * This defines a power zone instance. The fields of this structure are
190 * @power_zone: Pointer to the power zone for this constraint.
206 * powercap_set_zone_data() - Set private data for a zone
207 * @power_zone: A pointer to the valid zone instance.
210 * Allows client drivers to associate some private data to zone instance.
220 * powercap_get_zone_data() - Get private data for a zone
221 * @power_zone: A pointer to the valid zone instance.
223 * Allows client drivers to get private data associate with a zone,
267 /* Zone register/unregister API */
270 * powercap_register_zone() - Register a power zone
271 * @power_zone: Pointer to client allocated memory for the power zone structure
276 * @control_type: A control_type instance under which this zone operates.
277 * @name: A name for this zone.
278 * @parent: A pointer to the parent power zone instance if any or NULL
279 * @ops: Pointer to zone operation callback structure.
280 * @no_constraints: Number of constraints for this zone
283 * Register a power zone under a given control type. A power zone must register
284 * a pointer to a structure representing zone callbacks.
285 * A power zone can be located under a parent power zone, in which case @parent
286 * should point to it. Otherwise, if @parent is NULL, the new power zone will
288 * For each power zone there may be a number of constraints that appear in the
289 * sysfs under that zone as attributes with unique numeric IDs.
302 * powercap_unregister_zone() - Unregister a zone device
304 * @power_zone: A pointer to the valid zone instance for a control_type
306 * Used to unregister a zone device for a control_type. Caller should
307 * make sure that children for this zone are unregistered first.