Lines Matching full:opp

3  * Generic OPP Interface
22 #include "opp.h"
25 * The root of the list of all opp-tables. All opp_table structures branch off
30 /* Lock to allow exclusive modification to the device and opp lists */
67 * @dev: device pointer used to lookup OPP table
69 * Search OPP table for one containing matching device.
93 * dev_pm_opp_get_voltage() - Gets the voltage corresponding to an opp
94 * @opp: opp for which voltage has to be returned for
96 * Return: voltage in micro volt corresponding to the opp, else
101 unsigned long dev_pm_opp_get_voltage(struct dev_pm_opp *opp) in dev_pm_opp_get_voltage() argument
103 if (IS_ERR_OR_NULL(opp)) { in dev_pm_opp_get_voltage()
108 return opp->supplies[0].u_volt; in dev_pm_opp_get_voltage()
113 * dev_pm_opp_get_freq() - Gets the frequency corresponding to an available opp
114 * @opp: opp for which frequency has to be returned for
116 * Return: frequency in hertz corresponding to the opp, else
119 unsigned long dev_pm_opp_get_freq(struct dev_pm_opp *opp) in dev_pm_opp_get_freq() argument
121 if (IS_ERR_OR_NULL(opp)) { in dev_pm_opp_get_freq()
126 return opp->rate; in dev_pm_opp_get_freq()
131 * dev_pm_opp_get_level() - Gets the level corresponding to an available opp
132 * @opp: opp for which level value has to be returned for
134 * Return: level read from device tree corresponding to the opp, else
137 unsigned int dev_pm_opp_get_level(struct dev_pm_opp *opp) in dev_pm_opp_get_level() argument
139 if (IS_ERR_OR_NULL(opp) || !opp->available) { in dev_pm_opp_get_level()
144 return opp->level; in dev_pm_opp_get_level()
149 * dev_pm_opp_is_turbo() - Returns if opp is turbo OPP or not
150 * @opp: opp for which turbo mode is being verified
156 * Return: true if opp is turbo opp, else false.
158 bool dev_pm_opp_is_turbo(struct dev_pm_opp *opp) in dev_pm_opp_is_turbo() argument
160 if (IS_ERR_OR_NULL(opp) || !opp->available) { in dev_pm_opp_is_turbo()
165 return opp->turbo; in dev_pm_opp_is_turbo()
201 struct dev_pm_opp *opp; in dev_pm_opp_get_max_volt_latency() local
230 list_for_each_entry(opp, &opp_table->opp_list, node) { in dev_pm_opp_get_max_volt_latency()
231 if (!opp->available) in dev_pm_opp_get_max_volt_latency()
234 if (opp->supplies[i].u_volt_min < uV[i].min) in dev_pm_opp_get_max_volt_latency()
235 uV[i].min = opp->supplies[i].u_volt_min; in dev_pm_opp_get_max_volt_latency()
236 if (opp->supplies[i].u_volt_max > uV[i].max) in dev_pm_opp_get_max_volt_latency()
237 uV[i].max = opp->supplies[i].u_volt_max; in dev_pm_opp_get_max_volt_latency()
268 * switch from one OPP to other.
278 * dev_pm_opp_get_suspend_opp_freq() - Get frequency of suspend opp in Hz
281 * Return: This function returns the frequency of the OPP marked as suspend_opp
304 struct dev_pm_opp *opp; in _get_opp_count() local
309 list_for_each_entry(opp, &opp_table->opp_list, node) { in _get_opp_count()
310 if (opp->available) in _get_opp_count()
320 * dev_pm_opp_get_opp_count() - Get number of opps available in the opp table
334 dev_dbg(dev, "%s: OPP table not found (%d)\n", in dev_pm_opp_get_opp_count()
350 * @available: true/false - match for available opp
352 * Return: Searches for exact match in the opp table and returns pointer to the
353 * matching opp if found, else returns ERR_PTR in case of error and should
360 * match is for exact matching frequency and is available in the stored OPP
363 * This provides a mechanism to enable an opp which is not available currently
366 * The callers are required to call dev_pm_opp_put() for the returned OPP after
374 struct dev_pm_opp *temp_opp, *opp = ERR_PTR(-ERANGE); in dev_pm_opp_find_freq_exact() local
380 dev_err(dev, "%s: OPP table not found (%d)\n", __func__, r); in dev_pm_opp_find_freq_exact()
389 opp = temp_opp; in dev_pm_opp_find_freq_exact()
391 /* Increment the reference count of OPP */ in dev_pm_opp_find_freq_exact()
392 dev_pm_opp_get(opp); in dev_pm_opp_find_freq_exact()
400 return opp; in dev_pm_opp_find_freq_exact()
409 * Return: Searches for exact match in the opp table and returns pointer to the
410 * matching opp if found, else returns ERR_PTR in case of error and should
416 * The callers are required to call dev_pm_opp_put() for the returned OPP after
423 struct dev_pm_opp *temp_opp, *opp = ERR_PTR(-ERANGE); in dev_pm_opp_find_level_exact() local
429 dev_err(dev, "%s: OPP table not found (%d)\n", __func__, r); in dev_pm_opp_find_level_exact()
437 opp = temp_opp; in dev_pm_opp_find_level_exact()
439 /* Increment the reference count of OPP */ in dev_pm_opp_find_level_exact()
440 dev_pm_opp_get(opp); in dev_pm_opp_find_level_exact()
448 return opp; in dev_pm_opp_find_level_exact()
455 struct dev_pm_opp *temp_opp, *opp = ERR_PTR(-ERANGE); in _find_freq_ceil() local
461 opp = temp_opp; in _find_freq_ceil()
462 *freq = opp->rate; in _find_freq_ceil()
464 /* Increment the reference count of OPP */ in _find_freq_ceil()
465 dev_pm_opp_get(opp); in _find_freq_ceil()
472 return opp; in _find_freq_ceil()
480 * Search for the matching ceil *available* OPP from a starting freq
483 * Return: matching *opp and refreshes *freq accordingly, else returns
490 * The callers are required to call dev_pm_opp_put() for the returned OPP after
497 struct dev_pm_opp *opp; in dev_pm_opp_find_freq_ceil() local
508 opp = _find_freq_ceil(opp_table, freq); in dev_pm_opp_find_freq_ceil()
512 return opp; in dev_pm_opp_find_freq_ceil()
521 * Search for the matching floor *available* OPP from a starting freq
524 * Return: matching *opp and refreshes *freq accordingly, else returns
531 * The callers are required to call dev_pm_opp_put() for the returned OPP after
538 struct dev_pm_opp *temp_opp, *opp = ERR_PTR(-ERANGE); in dev_pm_opp_find_freq_floor() local
557 opp = temp_opp; in dev_pm_opp_find_freq_floor()
561 /* Increment the reference count of OPP */ in dev_pm_opp_find_freq_floor()
562 if (!IS_ERR(opp)) in dev_pm_opp_find_freq_floor()
563 dev_pm_opp_get(opp); in dev_pm_opp_find_freq_floor()
567 if (!IS_ERR(opp)) in dev_pm_opp_find_freq_floor()
568 *freq = opp->rate; in dev_pm_opp_find_freq_floor()
570 return opp; in dev_pm_opp_find_freq_floor()
575 * dev_pm_opp_find_freq_ceil_by_volt() - Find OPP with highest frequency for
580 * Search for OPP with highest (ceil) frequency and has voltage <= u_volt.
582 * Return: matching *opp, else returns ERR_PTR in case of error which should be
588 * The callers are required to call dev_pm_opp_put() for the returned OPP after
595 struct dev_pm_opp *temp_opp, *opp = ERR_PTR(-ERANGE); in dev_pm_opp_find_freq_ceil_by_volt() local
613 opp = temp_opp; in dev_pm_opp_find_freq_ceil_by_volt()
617 /* Increment the reference count of OPP */ in dev_pm_opp_find_freq_ceil_by_volt()
618 if (!IS_ERR(opp)) in dev_pm_opp_find_freq_ceil_by_volt()
619 dev_pm_opp_get(opp); in dev_pm_opp_find_freq_ceil_by_volt()
624 return opp; in dev_pm_opp_find_freq_ceil_by_volt()
727 struct dev_pm_opp *opp, struct device *dev, bool remove) in _set_opp_bw() argument
740 avg = opp->bandwidth[i].avg; in _set_opp_bw()
741 peak = opp->bandwidth[i].peak; in _set_opp_bw()
783 struct dev_pm_opp *opp, int i) in _set_required_opp() argument
785 unsigned int pstate = likely(opp) ? opp->required_opps[i]->pstate : 0; in _set_required_opp()
803 struct dev_pm_opp *opp, bool up) in _set_required_opps() argument
814 return _set_required_opp(dev, dev, opp, 0); in _set_required_opps()
827 ret = _set_required_opp(dev, genpd_virt_devs[i], opp, i); in _set_required_opps()
833 ret = _set_required_opp(dev, genpd_virt_devs[i], opp, i); in _set_required_opps()
845 * dev_pm_opp_set_bw() - sets bandwidth levels corresponding to an opp
847 * @opp: opp based on which the bandwidth levels are to be configured
849 * This configures the bandwidth to the levels specified by the OPP. However
850 * if the OPP specified is NULL the bandwidth levels are cleared out.
854 int dev_pm_opp_set_bw(struct device *dev, struct dev_pm_opp *opp) in dev_pm_opp_set_bw() argument
861 dev_err(dev, "%s: device opp table doesn't exist\n", __func__); in dev_pm_opp_set_bw()
865 if (opp) in dev_pm_opp_set_bw()
866 ret = _set_opp_bw(opp_table, opp, dev, false); in dev_pm_opp_set_bw()
884 * have OPP table for the device, while others don't and in _opp_set_rate_zero()
904 * dev_pm_opp_set_rate() - Configure new OPP based on frequency
908 * This configures the power-supplies to the levels specified by the OPP
911 * provided by the opp, should have already rounded to the target OPP's
918 struct dev_pm_opp *old_opp, *opp; in dev_pm_opp_set_rate() local
924 dev_err(dev, "%s: device opp doesn't exist\n", __func__); in dev_pm_opp_set_rate()
956 * For IO devices which require an OPP on some platforms/SoCs in dev_pm_opp_set_rate()
958 * we look for empty OPP tables with just a clock handle and in dev_pm_opp_set_rate()
970 dev_err(dev, "%s: failed to find current OPP for freq %lu (%ld)\n", in dev_pm_opp_set_rate()
975 opp = _find_freq_ceil(opp_table, &temp_freq); in dev_pm_opp_set_rate()
976 if (IS_ERR(opp)) { in dev_pm_opp_set_rate()
977 ret = PTR_ERR(opp); in dev_pm_opp_set_rate()
978 dev_err(dev, "%s: failed to find OPP for freq %lu (%d)\n", in dev_pm_opp_set_rate()
983 dev_dbg(dev, "%s: switching OPP: %lu Hz --> %lu Hz\n", __func__, in dev_pm_opp_set_rate()
988 ret = _set_required_opps(dev, opp_table, opp, true); in dev_pm_opp_set_rate()
996 opp->supplies); in dev_pm_opp_set_rate()
1000 opp->supplies); in dev_pm_opp_set_rate()
1008 ret = _set_required_opps(dev, opp_table, opp, false); in dev_pm_opp_set_rate()
1014 ret = _set_opp_bw(opp_table, opp, dev, false); in dev_pm_opp_set_rate()
1020 dev_pm_opp_put(opp); in dev_pm_opp_set_rate()
1030 /* OPP-dev Helpers */
1048 /* Initialize opp-dev */ in _add_opp_dev_unlocked()
1078 * Allocate a new OPP table. In the infrequent case where a new in _allocate_opp_table()
1204 * The OPP table is getting removed, drop the performance state in _opp_table_kref_release()
1225 void _opp_free(struct dev_pm_opp *opp) in _opp_free() argument
1227 kfree(opp); in _opp_free()
1230 static void _opp_kref_release(struct dev_pm_opp *opp, in _opp_kref_release() argument
1237 blocking_notifier_call_chain(&opp_table->head, OPP_EVENT_REMOVE, opp); in _opp_kref_release()
1238 _of_opp_free_required_opps(opp_table, opp); in _opp_kref_release()
1239 opp_debug_remove_one(opp); in _opp_kref_release()
1240 list_del(&opp->node); in _opp_kref_release()
1241 kfree(opp); in _opp_kref_release()
1246 struct dev_pm_opp *opp = container_of(kref, struct dev_pm_opp, kref); in _opp_kref_release_unlocked() local
1247 struct opp_table *opp_table = opp->opp_table; in _opp_kref_release_unlocked()
1249 _opp_kref_release(opp, opp_table); in _opp_kref_release_unlocked()
1254 struct dev_pm_opp *opp = container_of(kref, struct dev_pm_opp, kref); in _opp_kref_release_locked() local
1255 struct opp_table *opp_table = opp->opp_table; in _opp_kref_release_locked()
1257 _opp_kref_release(opp, opp_table); in _opp_kref_release_locked()
1261 void dev_pm_opp_get(struct dev_pm_opp *opp) in dev_pm_opp_get() argument
1263 kref_get(&opp->kref); in dev_pm_opp_get()
1266 void dev_pm_opp_put(struct dev_pm_opp *opp) in dev_pm_opp_put() argument
1268 kref_put_mutex(&opp->kref, _opp_kref_release_locked, in dev_pm_opp_put()
1269 &opp->opp_table->lock); in dev_pm_opp_put()
1273 static void dev_pm_opp_put_unlocked(struct dev_pm_opp *opp) in dev_pm_opp_put_unlocked() argument
1275 kref_put(&opp->kref, _opp_kref_release_unlocked); in dev_pm_opp_put_unlocked()
1279 * dev_pm_opp_remove() - Remove an OPP from OPP table
1281 * @freq: OPP to remove with matching 'freq'
1283 * This function removes an opp from the opp table.
1287 struct dev_pm_opp *opp; in dev_pm_opp_remove() local
1297 list_for_each_entry(opp, &opp_table->opp_list, node) { in dev_pm_opp_remove()
1298 if (opp->rate == freq) { in dev_pm_opp_remove()
1307 dev_pm_opp_put(opp); in dev_pm_opp_remove()
1312 dev_warn(dev, "%s: Couldn't find OPP with freq: %lu\n", in dev_pm_opp_remove()
1323 struct dev_pm_opp *opp, *tmp; in _opp_remove_all_static() local
1336 list_for_each_entry_safe(opp, tmp, &opp_table->opp_list, node) { in _opp_remove_all_static()
1337 if (!opp->dynamic) in _opp_remove_all_static()
1338 dev_pm_opp_put_unlocked(opp); in _opp_remove_all_static()
1351 * This function removes all dynamically created OPPs from the opp table.
1356 struct dev_pm_opp *opp, *temp; in dev_pm_opp_remove_all_dynamic() local
1364 list_for_each_entry_safe(opp, temp, &opp_table->opp_list, node) { in dev_pm_opp_remove_all_dynamic()
1365 if (opp->dynamic) { in dev_pm_opp_remove_all_dynamic()
1366 dev_pm_opp_put_unlocked(opp); in dev_pm_opp_remove_all_dynamic()
1383 struct dev_pm_opp *opp; in _opp_allocate() local
1388 supply_size = sizeof(*opp->supplies) * supply_count; in _opp_allocate()
1389 icc_size = sizeof(*opp->bandwidth) * table->path_count; in _opp_allocate()
1391 /* allocate new OPP node and supplies structures */ in _opp_allocate()
1392 opp = kzalloc(sizeof(*opp) + supply_size + icc_size, GFP_KERNEL); in _opp_allocate()
1394 if (!opp) in _opp_allocate()
1397 /* Put the supplies at the end of the OPP structure as an empty array */ in _opp_allocate()
1398 opp->supplies = (struct dev_pm_opp_supply *)(opp + 1); in _opp_allocate()
1400 opp->bandwidth = (struct dev_pm_opp_icc_bw *)(opp->supplies + supply_count); in _opp_allocate()
1401 INIT_LIST_HEAD(&opp->node); in _opp_allocate()
1403 return opp; in _opp_allocate()
1406 static bool _opp_supported_by_regulators(struct dev_pm_opp *opp, in _opp_supported_by_regulators() argument
1419 opp->supplies[i].u_volt_min, in _opp_supported_by_regulators()
1420 opp->supplies[i].u_volt_max)) { in _opp_supported_by_regulators()
1421 pr_warn("%s: OPP minuV: %lu maxuV: %lu, not supported by regulator\n", in _opp_supported_by_regulators()
1422 __func__, opp->supplies[i].u_volt_min, in _opp_supported_by_regulators()
1423 opp->supplies[i].u_volt_max); in _opp_supported_by_regulators()
1447 struct dev_pm_opp *opp; in _opp_is_duplicate() local
1451 * Insert new OPP in order of increasing frequency and discard if in _opp_is_duplicate()
1458 list_for_each_entry(opp, &opp_table->opp_list, node) { in _opp_is_duplicate()
1459 opp_cmp = _opp_compare_key(new_opp, opp); in _opp_is_duplicate()
1461 *head = &opp->node; in _opp_is_duplicate()
1470 __func__, opp->rate, opp->supplies[0].u_volt, in _opp_is_duplicate()
1471 opp->available, new_opp->rate, in _opp_is_duplicate()
1475 return opp->available && in _opp_is_duplicate()
1476 new_opp->supplies[0].u_volt == opp->supplies[0].u_volt ? -EBUSY : -EEXIST; in _opp_is_duplicate()
1485 * -EBUSY: For OPP with same freq/volt and is available. The callers of
1488 * kernel try to initialize the OPP table.
1489 * -EEXIST: For OPP with same freq but different volt or is unavailable. This
1519 dev_warn(dev, "%s: OPP not supported by regulators (%lu)\n", in _opp_add()
1527 * _opp_add_v1() - Allocate a OPP based on v1 bindings.
1528 * @opp_table: OPP table
1530 * @freq: Frequency in Hz for this OPP
1531 * @u_volt: Voltage in uVolts for this OPP
1534 * This function adds an opp definition to the opp table and returns status.
1535 * The opp is made available by default and it can be controlled using
1543 * Duplicate OPPs (both freq and volt are same) and opp->available
1545 * Duplicate OPPs (both freq and volt are same) and !opp->available
1559 /* populate the opp table */ in _opp_add_v1()
1596 * specify the hierarchy of versions it supports. OPP layer will then enable
1597 * OPPs, which are available for those versions, based on its 'opp-supported-hw'
1612 /* Another CPU that shares the OPP table has set the property ? */ in dev_pm_opp_set_supported_hw()
1631 * @opp_table: OPP table returned by dev_pm_opp_set_supported_hw().
1657 * which the extension will apply are opp-microvolt and opp-microamp. OPP core
1671 /* Another CPU that shares the OPP table has set the property ? */ in dev_pm_opp_set_prop_name()
1687 * @opp_table: OPP table returned by dev_pm_opp_set_prop_name().
1743 * In order to support OPP switching, OPP layer needs to know the name of the
1767 /* Another CPU that shares the OPP table has set the regulators ? */ in dev_pm_opp_set_regulators()
1817 * @opp_table: OPP table returned from dev_pm_opp_set_regulators().
1853 * In order to support OPP switching, OPP layer needs to get pointer to the
1856 * available, the OPP core needs to know the exact name of the clk to use.
1901 * @opp_table: OPP table returned from dev_pm_opp_set_clkname().
1916 * dev_pm_opp_register_set_opp_helper() - Register custom set OPP helper
1918 * @set_opp: Custom set OPP helper.
1921 * regulators per device), instead of the generic OPP set rate helper.
1943 /* Another CPU that shares the OPP table has set the helper ? */ in dev_pm_opp_register_set_opp_helper()
1954 * @opp_table: OPP table returned from dev_pm_opp_register_set_opp_helper().
1996 * and are required by the OPP core to set the performance state of the genpd.
2004 * Otherwise the original device structure will be used instead by the OPP core.
2025 * If the genpd's OPP table isn't already initialized, parsing of the in dev_pm_opp_attach_genpd()
2026 * required-opps fail for dev. We should retry this after genpd's OPP in dev_pm_opp_attach_genpd()
2044 dev_err(dev, "Index can't be greater than required-opp-count - 1, %s (%d : %d)\n", in dev_pm_opp_attach_genpd()
2081 * @opp_table: OPP table returned by dev_pm_opp_attach_genpd().
2084 * OPP table.
2101 * dev_pm_opp_xlate_performance_state() - Find required OPP's pstate for src_table.
2102 * @src_table: OPP table which has dst_table as one of its required OPP table.
2103 * @dst_table: Required OPP table of the src_table.
2106 * This Returns pstate of the OPP (present in @dst_table) pointed out by the
2107 * "required-opps" property of the OPP (present in @src_table) which has
2117 struct dev_pm_opp *opp; in dev_pm_opp_xlate_performance_state() local
2137 pr_err("%s: Couldn't find matching OPP table (%p: %p)\n", in dev_pm_opp_xlate_performance_state()
2144 list_for_each_entry(opp, &src_table->opp_list, node) { in dev_pm_opp_xlate_performance_state()
2145 if (opp->pstate == pstate) { in dev_pm_opp_xlate_performance_state()
2146 dest_pstate = opp->required_opps[i]->pstate; in dev_pm_opp_xlate_performance_state()
2151 pr_err("%s: Couldn't find matching OPP (%p: %p)\n", __func__, src_table, in dev_pm_opp_xlate_performance_state()
2161 * dev_pm_opp_add() - Add an OPP table from a table definitions
2163 * @freq: Frequency in Hz for this OPP
2164 * @u_volt: Voltage in uVolts for this OPP
2166 * This function adds an opp definition to the opp table and returns status.
2167 * The opp is made available by default and it can be controlled using
2172 * Duplicate OPPs (both freq and volt are same) and opp->available
2174 * Duplicate OPPs (both freq and volt are same) and !opp->available
2198 * _opp_set_availability() - helper to set the availability of an opp
2200 * @freq: OPP frequency to modify availability
2201 * @availability_req: availability status requested for this opp
2203 * Set the availability of an OPP, opp_{enable,disable} share a common logic
2214 struct dev_pm_opp *tmp_opp, *opp = ERR_PTR(-ENODEV); in _opp_set_availability() local
2221 dev_warn(dev, "%s: Device OPP not found (%d)\n", __func__, r); in _opp_set_availability()
2230 opp = tmp_opp; in _opp_set_availability()
2235 if (IS_ERR(opp)) { in _opp_set_availability()
2236 r = PTR_ERR(opp); in _opp_set_availability()
2241 if (opp->available == availability_req) in _opp_set_availability()
2244 opp->available = availability_req; in _opp_set_availability()
2246 dev_pm_opp_get(opp); in _opp_set_availability()
2249 /* Notify the change of the OPP availability */ in _opp_set_availability()
2252 opp); in _opp_set_availability()
2255 OPP_EVENT_DISABLE, opp); in _opp_set_availability()
2257 dev_pm_opp_put(opp); in _opp_set_availability()
2268 * dev_pm_opp_adjust_voltage() - helper to change the voltage of an OPP
2270 * @freq: OPP frequency to adjust voltage of
2271 * @u_volt: new OPP target voltage
2272 * @u_volt_min: new OPP min voltage
2273 * @u_volt_max: new OPP max voltage
2285 struct dev_pm_opp *tmp_opp, *opp = ERR_PTR(-ENODEV); in dev_pm_opp_adjust_voltage() local
2292 dev_warn(dev, "%s: Device OPP not found (%d)\n", __func__, r); in dev_pm_opp_adjust_voltage()
2301 opp = tmp_opp; in dev_pm_opp_adjust_voltage()
2306 if (IS_ERR(opp)) { in dev_pm_opp_adjust_voltage()
2307 r = PTR_ERR(opp); in dev_pm_opp_adjust_voltage()
2312 if (opp->supplies->u_volt == u_volt) in dev_pm_opp_adjust_voltage()
2315 opp->supplies->u_volt = u_volt; in dev_pm_opp_adjust_voltage()
2316 opp->supplies->u_volt_min = u_volt_min; in dev_pm_opp_adjust_voltage()
2317 opp->supplies->u_volt_max = u_volt_max; in dev_pm_opp_adjust_voltage()
2319 dev_pm_opp_get(opp); in dev_pm_opp_adjust_voltage()
2322 /* Notify the voltage change of the OPP */ in dev_pm_opp_adjust_voltage()
2324 opp); in dev_pm_opp_adjust_voltage()
2326 dev_pm_opp_put(opp); in dev_pm_opp_adjust_voltage()
2338 * dev_pm_opp_enable() - Enable a specific OPP
2340 * @freq: OPP frequency to enable
2342 * Enables a provided opp. If the operation is valid, this returns 0, else the
2343 * corresponding error value. It is meant to be used for users an OPP available
2357 * dev_pm_opp_disable() - Disable a specific OPP
2359 * @freq: OPP frequency to disable
2361 * Disables a provided opp. If the operation is valid, this returns
2363 * control by users to make this OPP not available until the circumstances are
2377 * dev_pm_opp_register_notifier() - Register OPP notifier for the device
2401 * dev_pm_opp_unregister_notifier() - Unregister OPP notifier for the device
2427 * @dev: device pointer used to lookup OPP table.
2450 * Drop the extra reference only if the OPP table was successfully added in dev_pm_opp_remove_table()