Lines Matching refs:opp
43 information. The library is located in drivers/base/power/opp.c and the header
72 dev_pm_opp_find_freq_exact is meant to be used to find the opp pointer which can then
73 be used for dev_pm_opp_enable/disable functions to make an opp available as required.
111 and manages this information in the opp struct. This function may be
123 pr_err("%s: unable to register mpu opp(%d)\n", r);
136 functions return the matching pointer representing the opp if a match is
147 opp = dev_pm_opp_find_freq_exact(dev, 1000000000, false);
150 if (IS_ERR(opp)) {
164 Example: To find the highest opp for a device:
174 Example 1: To find the lowest opp for a device:
185 opp = dev_pm_opp_find_freq_ceil(dev, &freq);
187 if (!IS_ERR(opp))
212 opp = dev_pm_opp_find_freq_exact(dev, 1000000000, false);
215 if (!IS_ERR(opp))
228 opp = dev_pm_opp_find_freq_exact(dev, 1000000000, true);
231 if (!IS_ERR(opp))
244 dev_pm_opp_get_voltage - Retrieve the voltage represented by the opp pointer.
253 opp = dev_pm_opp_find_freq_ceil(dev, &freq);
254 v = dev_pm_opp_get_voltage(opp);
261 dev_pm_opp_get_freq - Retrieve the freq represented by the opp pointer.
263 we could pass opp pointers instead of doing additional parameters to
297 while (!IS_ERR(opp = dev_pm_opp_find_freq_ceil(dev, &freq))) {
315 | |- opp 1 (availability, freq, voltage)
316 | |- opp 2 ..
318 | `- opp n ..
348 dev_pm_opp_add --> | opp | <-------
354 domain_info<---- dev_pm_opp_find_freq_exact -----> | opp |
359 | opp | <---