Lines Matching refs:device

46 /* The list of all device-devfreq governors */
48 /* The list of all device-devfreq */
58 * find_device_devfreq() - find devfreq struct using device pointer
59 * @dev: device pointer used to lookup device devfreq.
61 * Search the list of device devfreqs and return the matched device's
64 static struct devfreq *find_device_devfreq(struct device *dev)
391 * update_devfreq() - Reevaluate the device and configure frequency.
455 * Helper function for starting devfreq device load monitoring. By
458 * event when device is added to devfreq framework.
487 * Helper function to stop devfreq device load monitoring. Function
489 * event when device is removed from devfreq framework.
505 * Helper function to suspend devfreq device load monitoring. Function
537 * Helper function to resume devfreq device load monitoring. Function
572 * devfreq_update_interval() - Update device devfreq monitoring interval
623 * devfreq_notifier_call() - Notify that the device frequency requirements
697 * devfreq_dev_release() - Callback for struct device to release the device.
698 * @dev: the devfreq device
702 static void devfreq_dev_release(struct device *dev)
742 * devfreq_remove_device() - Remove devfreq feature from a device.
763 * devfreq_add_device() - Add devfreq feature to the device
764 * @dev: the device to add devfreq feature.
765 * @profile: device-specific profile to run devfreq.
770 struct devfreq *devfreq_add_device(struct device *dev, struct devfreq_dev_profile *profile, const char *governor_name,
786 dev_err(dev, "%s: devfreq device already exists!\n", __func__);
900 dev_err(dev, "%s: Unable to find governor for the device\n", __func__);
908 dev_err(dev, "%s: Unable to start governor for the device\n", __func__);
930 static int devm_devfreq_dev_match(struct device *dev, void *res, void *data)
941 static void devm_devfreq_dev_release(struct device *dev, void *res)
948 * @dev: the device to add devfreq feature.
949 * @profile: device-specific profile to run devfreq.
954 * This function manages automatically the memory of devfreq device using device
956 * device.
958 struct devfreq *devm_devfreq_add_device(struct device *dev, struct devfreq_dev_profile *profile,
983 * devfreq_get_devfreq_by_node - Get the devfreq device from devicetree
986 * return the instance of devfreq device
1010 * devfreq_get_devfreq_by_phandle - Get the devfreq device from devicetree
1011 * @dev - instance to the given device
1015 * return the instance of devfreq device
1017 struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev, const char *phandle_name, int index)
1047 struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev, const char *phandle_name, int index)
1057 * @dev: the device from which to remove devfreq feature.
1060 void devm_devfreq_remove_device(struct device *dev, struct devfreq *devfreq)
1067 * devfreq_suspend_device() - Suspend devfreq of a device.
1071 * (e.g., runtime_suspend, suspend) of the device driver that
1107 * devfreq_resume_device() - Resume devfreq of a device.
1111 * (e.g., runtime_resume, resume) of the device driver that
1151 * device must have precise state (frequency) after resume in order to provide
1164 dev_err(&devfreq->dev, "failed to suspend devfreq device\n");
1186 dev_warn(&devfreq->dev, "failed to resume devfreq device\n");
1220 struct device *dev = devfreq->dev.parent;
1248 * devfreq_remove_governor() - Remove devfreq feature from a device.
1272 struct device *dev = devfreq->dev.parent;
1297 static ssize_t name_show(struct device *dev, struct device_attribute *attr, char *buf)
1304 static ssize_t governor_show(struct device *dev, struct device_attribute *attr, char *buf)
1315 static ssize_t governor_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
1375 static ssize_t available_governors_show(struct device *d, struct device_attribute *attr, char *buf)
1393 * The devfreq device shows the registered governor except for
1421 static ssize_t cur_freq_show(struct device *dev, struct device_attribute *attr, char *buf)
1438 static ssize_t target_freq_show(struct device *dev, struct device_attribute *attr, char *buf)
1446 static ssize_t polling_interval_show(struct device *dev, struct device_attribute *attr, char *buf)
1457 static ssize_t polling_interval_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
1479 static ssize_t min_freq_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
1507 static ssize_t min_freq_show(struct device *dev, struct device_attribute *attr, char *buf)
1520 static ssize_t max_freq_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
1563 static ssize_t max_freq_show(struct device *dev, struct device_attribute *attr, char *buf)
1576 static ssize_t available_frequencies_show(struct device *d, struct device_attribute *attr, char *buf)
1604 static ssize_t trans_stat_show(struct device *dev, struct device_attribute *attr, char *buf)
1653 static ssize_t trans_stat_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
1682 static ssize_t timer_show(struct device *dev, struct device_attribute *attr, char *buf)
1693 static ssize_t timer_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
1745 static ssize_t load_show(struct device *dev, struct device_attribute *attr, char *buf)
1880 * The following are helper functions for devfreq user device drivers with
1887 * @dev: The devfreq user device. (parent of devfreq)
1894 struct dev_pm_opp *devfreq_recommended_opp(struct device *dev, unsigned long *freq, u32 flags)
1922 * @dev: The devfreq user device. (parent of devfreq)
1925 int devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq)
1935 * @dev: The devfreq user device. (parent of devfreq)
1941 int devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq)
1947 static void devm_devfreq_opp_release(struct device *dev, void *res)
1955 * @dev: The devfreq user device. (parent of devfreq)
1958 int devm_devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq)
1984 * @dev: The devfreq user device. (parent of devfreq)
1987 void devm_devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq)
2051 static void devm_devfreq_notifier_release(struct device *dev, void *res)
2061 * @dev: The devfreq user device. (parent of devfreq)
2066 int devm_devfreq_register_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb,
2095 * @dev: The devfreq user device. (parent of devfreq)
2100 void devm_devfreq_unregister_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb,