Lines Matching refs:device

49 /* The list of all device-devfreq governors */
51 /* The list of all device-devfreq */
61 * find_device_devfreq() - find devfreq struct using device pointer
62 * @dev: device pointer used to lookup device devfreq.
64 * Search the list of device devfreqs and return the matched device's
67 static struct devfreq *find_device_devfreq(struct device *dev)
373 * change order of between devfreq device and passive devfreq device.
394 * devfreq_update_target() - Reevaluate the device and configure frequency
397 * @freq: the new frequency of parent device. This argument
398 * is only used for devfreq device using passive governor.
436 * update_devfreq() - Reevaluate the device and configure frequency.
479 * Helper function for starting devfreq device load monitoring. By default,
483 * generated while adding a device to the devfreq framework.
519 * Helper function to stop devfreq device load monitoring. Function
521 * event when device is removed from devfreq framework.
544 * Helper function to suspend devfreq device load monitoring. Function
575 * Helper function to resume devfreq device load monitoring. Function
610 * devfreq_update_interval() - Update device devfreq monitoring interval
660 * devfreq_notifier_call() - Notify that the device frequency requirements
742 * devfreq_dev_release() - Callback for struct device to release the device.
743 * @dev: the devfreq device
747 static void devfreq_dev_release(struct device *dev)
797 * devfreq_add_device() - Add devfreq feature to the device
798 * @dev: the device to add devfreq feature.
799 * @profile: device-specific profile to run devfreq.
803 struct devfreq *devfreq_add_device(struct device *dev,
822 dev_err(dev, "%s: devfreq device already exists!\n",
949 dev_err(dev, "%s: Unable to find governor for the device\n",
960 "%s: Unable to start governor for the device\n",
991 * devfreq_remove_device() - Remove devfreq feature from a device.
1015 static int devm_devfreq_dev_match(struct device *dev, void *res, void *data)
1025 static void devm_devfreq_dev_release(struct device *dev, void *res)
1032 * @dev: the device to add devfreq feature.
1033 * @profile: device-specific profile to run devfreq.
1037 * This function manages automatically the memory of devfreq device using device
1039 * device.
1041 struct devfreq *devm_devfreq_add_device(struct device *dev,
1067 * devfreq_get_devfreq_by_node - Get the devfreq device from devicetree
1070 * return the instance of devfreq device
1093 * devfreq_get_devfreq_by_phandle - Get the devfreq device from devicetree
1094 * @dev - instance to the given device
1098 * return the instance of devfreq device
1100 struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev,
1128 struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev,
1139 * @dev: the device from which to remove devfreq feature.
1142 void devm_devfreq_remove_device(struct device *dev, struct devfreq *devfreq)
1150 * devfreq_suspend_device() - Suspend devfreq of a device.
1154 * (e.g., runtime_suspend, suspend) of the device driver that
1187 * devfreq_resume_device() - Resume devfreq of a device.
1191 * (e.g., runtime_resume, resume) of the device driver that
1228 * device must have precise state (frequency) after resume in order to provide
1241 "failed to suspend devfreq device\n");
1262 "failed to resume devfreq device\n");
1295 struct device *dev = devfreq->dev.parent;
1339 * @dev: device which adds devfreq governor
1344 int devm_devfreq_add_governor(struct device *dev,
1359 * devfreq_remove_governor() - Remove devfreq feature from a device.
1383 struct device *dev = devfreq->dev.parent;
1413 static ssize_t name_show(struct device *dev,
1421 static ssize_t governor_show(struct device *dev,
1432 static ssize_t governor_store(struct device *dev, struct device_attribute *attr,
1512 static ssize_t available_governors_show(struct device *d,
1532 * The devfreq device shows the registered governor except for
1558 static ssize_t cur_freq_show(struct device *dev, struct device_attribute *attr,
1575 static ssize_t target_freq_show(struct device *dev,
1584 static ssize_t min_freq_store(struct device *dev, struct device_attribute *attr,
1611 static ssize_t min_freq_show(struct device *dev, struct device_attribute *attr,
1625 static ssize_t max_freq_store(struct device *dev, struct device_attribute *attr,
1665 static ssize_t max_freq_show(struct device *dev, struct device_attribute *attr,
1679 static ssize_t available_frequencies_show(struct device *d,
1707 static ssize_t trans_stat_show(struct device *dev,
1779 static ssize_t trans_stat_store(struct device *dev,
1824 static ssize_t polling_interval_show(struct device *dev,
1835 static ssize_t polling_interval_store(struct device *dev,
1857 static ssize_t timer_show(struct device *dev,
1868 static ssize_t timer_store(struct device *dev, struct device_attribute *attr,
2058 * The following are helper functions for devfreq user device drivers with
2065 * @dev: The devfreq user device. (parent of devfreq)
2072 struct dev_pm_opp *devfreq_recommended_opp(struct device *dev,
2102 * @dev: The devfreq user device. (parent of devfreq)
2105 int devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq)
2115 * @dev: The devfreq user device. (parent of devfreq)
2121 int devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq)
2127 static void devm_devfreq_opp_release(struct device *dev, void *res)
2135 * @dev: The devfreq user device. (parent of devfreq)
2138 int devm_devfreq_register_opp_notifier(struct device *dev,
2164 * @dev: The devfreq user device. (parent of devfreq)
2167 void devm_devfreq_unregister_opp_notifier(struct device *dev,
2237 static void devm_devfreq_notifier_release(struct device *dev, void *res)
2247 * @dev: The devfreq user device. (parent of devfreq)
2252 int devm_devfreq_register_notifier(struct device *dev,
2283 * @dev: The devfreq user device. (parent of devfreq)
2288 void devm_devfreq_unregister_notifier(struct device *dev,