Lines Matching full:devfreq
2 * devfreq-event: a framework to provide raw data and events of devfreq devices
11 * This driver is based on drivers/devfreq/devfreq.c.
14 #include <linux/devfreq-event.h>
25 /* The list of all devfreq event list */
32 * devfreq_event_enable_edev() - Enable the devfreq-event dev and increase
33 * the enable_count of devfreq-event dev.
34 * @edev : the devfreq-event device
37 * devfreq-event device. The devfreq-event device should be enabled before
38 * using it by devfreq device.
63 * devfreq_event_disable_edev() - Disable the devfreq-event dev and decrease
64 * the enable_count of the devfreq-event dev.
65 * @edev : the devfreq-event device
68 * devfreq-event device. After the devfreq-event device is disabled,
69 * devfreq device can't use the devfreq-event device for get/set/reset
101 * devfreq_event_is_enabled() - Check whether devfreq-event dev is enabled or
103 * @edev : the devfreq-event device
105 * Note that this function check whether devfreq-event dev is enabled or not.
106 * If return true, the devfreq-event dev is enabeld. If return false, the
107 * devfreq-event dev is disabled.
128 * devfreq_event_set_event() - Set event to devfreq-event dev to start.
129 * @edev : the devfreq-event device
131 * Note that this function set the event to the devfreq-event device to start
156 * devfreq_event_get_event() - Get {load|total}_count from devfreq-event dev.
157 * @edev : the devfreq-event device
158 * @edata : the calculated data of devfreq-event device
160 * Note that this function get the calculated event data from devfreq-event dev
161 * after stoping the progress of whole sequence of devfreq-event dev.
190 * devfreq_event_reset_event() - Reset all opeations of devfreq-event dev.
191 * @edev : the devfreq-event device
193 * Note that this function stop all operations of devfreq-event dev and reset
194 * the current event data to make the devfreq-event device into initial state.
216 * devfreq_event_get_edev_by_phandle() - Get the devfreq-event dev from
219 * @index : the index into list of devfreq-event device
221 * Note that this function return the pointer of devfreq-event device.
232 node = of_parse_phandle(dev->of_node, "devfreq-events", index); in devfreq_event_get_edev_by_phandle()
262 * devfreq_event_get_edev_count() - Get the count of devfreq-event dev
265 * Note that this function return the count of devfreq-event devices.
276 count = of_property_count_elems_of_size(dev->of_node, "devfreq-events", in devfreq_event_get_edev_count()
280 "failed to get the count of devfreq-event in %pOF node\n", in devfreq_event_get_edev_count()
297 * devfreq_event_add_edev() - Add new devfreq-event device.
298 * @dev : the device owning the devfreq-event device being created
299 * @desc : the devfreq-event device's decriptor which include essential
300 * data for devfreq-event device.
302 * Note that this function add new devfreq-event device to devfreq-event class
303 * list and register the device of the devfreq-event device.
351 * devfreq_event_remove_edev() - Remove the devfreq-event device registered.
352 * @dev : the devfreq-event device
354 * Note that this function remove the registered devfreq-event device.
390 * @dev : the device owning the devfreq-event device being created
391 * @desc : the devfreq-event device's decriptor which include essential
392 * data for devfreq-event device.
394 * Note that this function manages automatically the memory of devfreq-event
396 * for memory of devfreq-event device.
423 * @dev : the device owning the devfreq-event device being created
424 * @edev : the devfreq-event device
426 * Note that this function manages automatically the memory of devfreq-event
438 * Device attributes for devfreq-event class.
473 devfreq_event_class = class_create(THIS_MODULE, "devfreq-event"); in devfreq_event_init()