Lines Matching refs:device
15 #include <linux/device.h>
28 * Returns opp descriptor node for a device node, caller must
38 /* Returns opp descriptor node for a device, caller must do of_node_put() */
39 struct device_node *dev_pm_opp_of_get_opp_desc_node(struct device *dev)
45 struct opp_table *_managed_opp(struct device *dev, int index)
162 struct device *dev,
223 void _of_init_opp_table(struct opp_table *opp_table, struct device *dev,
440 static int _bandwidth_supported(struct device *dev, struct opp_table *opp_table)
477 int dev_pm_opp_of_find_icc_paths(struct device *dev,
537 static bool _opp_is_supported(struct device *dev, struct opp_table *opp_table,
593 static u32 *_parse_named_prop(struct dev_pm_opp *opp, struct device *dev,
656 static u32 *opp_parse_microvolt(struct dev_pm_opp *opp, struct device *dev,
684 static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev,
748 * @dev: device pointer used to lookup OPP table.
752 void dev_pm_opp_of_remove_table(struct device *dev)
882 * @dev: device for which we do this operation
883 * @np: device node
904 struct device *dev, struct device_node *np)
952 /* OPP to select on device suspend */
992 static int _of_add_opp_table_v2(struct device *dev, struct opp_table *opp_table)
998 /* OPP table is already initialized for the device */
1041 static int _of_add_opp_table_v1(struct device *dev, struct opp_table *opp_table)
1100 static int _of_add_table_indexed(struct device *dev, int index)
1140 static int _devm_of_add_table_indexed(struct device *dev, int index)
1152 * devm_pm_opp_of_add_table() - Initialize opp table from device tree
1153 * @dev: device pointer used to lookup OPP table.
1155 * Register the initial OPP table with the OPP library for given device.
1157 * The opp_table structure will be freed after the device is destroyed.
1166 * in device node.
1170 int devm_pm_opp_of_add_table(struct device *dev)
1177 * dev_pm_opp_of_add_table() - Initialize opp table from device tree
1178 * @dev: device pointer used to lookup OPP table.
1180 * Register the initial OPP table with the OPP library for given device.
1189 * in device node.
1193 int dev_pm_opp_of_add_table(struct device *dev)
1200 * dev_pm_opp_of_add_table_indexed() - Initialize indexed opp table from device tree
1201 * @dev: device pointer used to lookup OPP table.
1204 * Register the initial OPP table with the OPP library for given device only
1209 int dev_pm_opp_of_add_table_indexed(struct device *dev, int index)
1216 * devm_pm_opp_of_add_table_indexed() - Initialize indexed opp table from device tree
1217 * @dev: device pointer used to lookup OPP table.
1222 int devm_pm_opp_of_add_table_indexed(struct device *dev, int index)
1228 /* CPU device specific helpers */
1251 struct device *cpu_dev;
1260 pr_err("%s: failed to get cpu%d device\n", __func__,
1299 * @cpu_dev: CPU device for which we do this operation
1306 int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev,
1438 _get_dt_power(struct device *dev, unsigned long *uW, unsigned long *kHz)
1466 * P = C * V^2 * f with C being the device's capacitance and V and f
1472 static int __maybe_unused _get_power(struct device *dev, unsigned long *uW,
1511 static bool _of_has_opp_microwatt_property(struct device *dev)
1540 int dev_pm_opp_of_register_em(struct device *dev, struct cpumask *cpus)