Lines Matching refs:device

15 #include <linux/device.h>
25 * Returns opp descriptor node for a device node, caller must
35 /* Returns opp descriptor node for a device, caller must do of_node_put() */
36 struct device_node *dev_pm_opp_of_get_opp_desc_node(struct device *dev)
42 struct opp_table *_managed_opp(struct device *dev, int index)
154 struct device *dev,
211 void _of_init_opp_table(struct opp_table *opp_table, struct device *dev,
327 static int _bandwidth_supported(struct device *dev, struct opp_table *opp_table)
364 int dev_pm_opp_of_find_icc_paths(struct device *dev,
426 static bool _opp_is_supported(struct device *dev, struct opp_table *opp_table,
482 static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev,
624 * @dev: device pointer used to lookup OPP table.
628 void dev_pm_opp_of_remove_table(struct device *dev)
721 * @dev: device for which we do this operation
722 * @np: device node
743 struct device *dev, struct device_node *np)
795 /* OPP to select on device suspend */
834 static int _of_add_opp_table_v2(struct device *dev, struct opp_table *opp_table)
840 /* OPP table is already initialized for the device */
889 static int _of_add_opp_table_v1(struct device *dev, struct opp_table *opp_table)
949 * dev_pm_opp_of_add_table() - Initialize opp table from device tree
950 * @dev: device pointer used to lookup OPP table.
952 * Register the initial OPP table with the OPP library for given device.
961 * in device node.
965 int dev_pm_opp_of_add_table(struct device *dev)
991 * dev_pm_opp_of_add_table_indexed() - Initialize indexed opp table from device tree
992 * @dev: device pointer used to lookup OPP table.
995 * Register the initial OPP table with the OPP library for given device only
1005 * in device node.
1009 int dev_pm_opp_of_add_table_indexed(struct device *dev, int index)
1037 /* CPU device specific helpers */
1060 struct device *cpu_dev;
1069 pr_err("%s: failed to get cpu%d device\n", __func__,
1108 * @cpu_dev: CPU device for which we do this operation
1115 int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev,
1237 * P = C * V^2 * f with C being the device's capacitance and V and f
1244 struct device *dev)
1292 int dev_pm_opp_of_register_em(struct device *dev, struct cpumask *cpus)