Lines Matching +full:opp +full:- +full:table
2 * Generic OPP Interface
4 * Copyright (C) 2009-2010 Texas Instruments Incorporated.
28 /* Lock to allow exclusive modification to the device and opp lists */
34 * Internal data structure organization with the OPP layer library is as
37 * |- device 1 (represents voltage domain 1)
38 * | |- opp 1 (availability, freq, voltage)
39 * | |- opp 2 ..
41 * | `- opp n ..
42 * |- device 2 (represents the next voltage domain)
44 * `- device m (represents mth voltage domain)
45 * device 1, 2.. are represented by opp_table structure while each opp
46 * is represented by the opp structure.
50 * struct dev_pm_opp - Generic OPP description structure
51 * @node: opp table node. The nodes are maintained throughout the lifetime
54 * IMPORTANT: the opp nodes should be maintained in increasing
56 * @kref: for reference count of the OPP.
57 * @available: true/false - marks if this OPP as available or not
58 * @dynamic: not-created from static DT entries.
59 * @turbo: true if turbo (boost) OPP
60 * @suspend: true if suspend OPP
64 * @clock_latency_ns: Latency (in nanoseconds) of switching to this OPP's
65 * frequency from any other OPP's frequency.
66 * @opp_table: points back to the opp_table struct this opp belongs to
67 * @np: OPP's device node.
68 * @dentry: debugfs dentry pointer (per opp)
70 * This structure stores the OPP information for a given device.
97 * struct opp_device - devices managed by 'struct opp_table'
121 * struct opp_table - Device opp structure
122 * @node: table node - contains the devices with OPPs that
124 * table.
125 * @head: notifier head to notify the OPP availability changes.
127 * @opp_list: table of opps
128 * @kref: for reference count of the table.
130 * @np: struct device_node pointer for opp's DT node.
132 * @shared_opp: OPP is shared between multiple devices.
133 * @suspend_opp: Pointer to OPP to be used during device suspend.
139 * @regulator_count: Number of power supply regulators. Its value can be -1
140 * (uninitialized), 0 (no opp-microvolt property) or > 0 (has opp-microvolt
152 * meant for book keeping and private to OPP library.
189 /* Routines internal to opp core */
190 void dev_pm_opp_get(struct dev_pm_opp *opp);
198 void _opp_free(struct dev_pm_opp *opp);
211 void opp_debug_remove_one(struct dev_pm_opp *opp);
212 int opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table);
216 static inline void opp_debug_remove_one(struct dev_pm_opp *opp) {} in opp_debug_remove_one() argument
218 static inline int opp_debug_create_one(struct dev_pm_opp *opp, in opp_debug_create_one() argument