Lines Matching +full:opp +full:- +full:shared

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Generic OPP Interface
5 * Copyright (C) 2009-2010 Texas Instruments Incorporated.
26 /* Lock to allow exclusive modification to the device and opp lists */
31 /* OPP Config flags */
40 * struct opp_config_data - data for set config operations
41 * @opp_table: OPP table
42 * @flags: OPP config flags
45 * This structure stores the OPP config information for each OPP table
55 * struct dev_pm_opp_icc_bw - Interconnect bandwidth values
56 * @avg: Average bandwidth corresponding to this OPP (in icc units)
57 * @peak: Peak bandwidth corresponding to this OPP (in icc units)
67 * Internal data structure organization with the OPP layer library is as
70 * |- device 1 (represents voltage domain 1)
71 * | |- opp 1 (availability, freq, voltage)
72 * | |- opp 2 ..
74 * | `- opp n ..
75 * |- device 2 (represents the next voltage domain)
77 * `- device m (represents mth voltage domain)
78 * device 1, 2.. are represented by opp_table structure while each opp
79 * is represented by the opp structure.
83 * struct dev_pm_opp - Generic OPP description structure
84 * @node: opp table node. The nodes are maintained throughout the lifetime
87 * IMPORTANT: the opp nodes should be maintained in increasing
89 * @kref: for reference count of the OPP.
90 * @available: true/false - marks if this OPP as available or not
91 * @dynamic: not-created from static DT entries.
92 * @turbo: true if turbo (boost) OPP
93 * @suspend: true if suspend OPP
94 * @removed: flag indicating that OPP's reference is dropped by OPP core.
99 * @clock_latency_ns: Latency (in nanoseconds) of switching to this OPP's
100 * frequency from any other OPP's frequency.
101 * @required_opps: List of OPPs that are required by this OPP.
102 * @opp_table: points back to the opp_table struct this opp belongs to
103 * @np: OPP's device node.
104 * @dentry: debugfs dentry pointer (per opp)
106 * This structure stores the OPP information for a given device.
137 * struct opp_device - devices managed by 'struct opp_table'
161 * struct opp_table - Device opp structure
162 * @node: table node - contains the devices with OPPs that
165 * @head: notifier head to notify the OPP availability changes.
170 * @np: struct device_node pointer for opp's DT node.
173 * @shared_opp: OPP is shared between multiple devices.
175 * @current_opp: Currently configured OPP for the table.
176 * @suspend_opp: Pointer to OPP to be used during device suspend.
177 * @required_opp_tables: List of device OPP tables that are required by OPPs in
179 * @required_devs: List of devices for required OPP tables.
190 * @regulator_count: Number of power supply regulators. Its value can be -1
191 * (uninitialized), 0 (no opp-microvolt property) or > 0 (has opp-microvolt
196 * @is_genpd: Marks if the OPP table belongs to a genpd.
203 * a device. This structure is not meant to be shared to users as it is
204 * meant for book keeping and private to OPP library.
252 /* Routines internal to opp core */
259 void _opp_free(struct dev_pm_opp *opp);
265 void _required_opps_available(struct dev_pm_opp *opp, int count);
269 return unlikely(!list_empty(&opp_table->lazy)); in lazy_linking_pending()
276 void _of_clear_opp(struct opp_table *opp_table, struct dev_pm_opp *opp);
281 static inline void _of_clear_opp(struct opp_table *opp_table, struct dev_pm_opp *opp) {} in _of_clear_opp() argument
285 void opp_debug_remove_one(struct dev_pm_opp *opp);
286 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table);
290 static inline void opp_debug_remove_one(struct dev_pm_opp *opp) {} in opp_debug_remove_one() argument
292 static inline void opp_debug_create_one(struct dev_pm_opp *opp, in opp_debug_create_one() argument