Searched refs:opp (Results 1 - 12 of 12) sorted by relevance

/drivers/base/power/
H A Dopp.c31 * | |- opp 1 (availability, freq, voltage)
32 * | |- opp 2 ..
34 * | `- opp n ..
38 * device 1, 2.. are represented by dev_opp structure while each opp
39 * is represented by the opp structure.
44 * @node: opp list node. The nodes are maintained throughout the lifetime
47 * RCU usage: opp list is traversed with RCU locks. node
50 * IMPORTANT: the opp nodes should be maintained in increasing
55 * @dev_opp: points back to the device_opp struct this opp belongs to
72 * struct device_opp - Device opp structur
151 dev_pm_opp_get_voltage(struct dev_pm_opp *opp) argument
181 dev_pm_opp_get_freq(struct dev_pm_opp *opp) argument
260 struct dev_pm_opp *temp_opp, *opp = ERR_PTR(-ERANGE); local
306 struct dev_pm_opp *temp_opp, *opp = ERR_PTR(-ERANGE); local
354 struct dev_pm_opp *temp_opp, *opp = ERR_PTR(-ERANGE); local
407 struct dev_pm_opp *opp, *new_opp; local
512 struct dev_pm_opp *new_opp, *tmp_opp, *opp = ERR_PTR(-ENODEV); local
[all...]
H A DMakefile4 obj-$(CONFIG_PM_OPP) += opp.o
/drivers/cpufreq/
H A Dcpufreq_opp.c29 * opp list is already initialized and ready for usage.
42 * Locking: The internal device_opp and opp structures are RCU protected.
50 struct dev_pm_opp *opp; local
71 opp = dev_pm_opp_find_freq_ceil(dev, &rate);
72 if (IS_ERR(opp)) {
73 ret = PTR_ERR(opp);
H A Dimx6q-cpufreq.c42 struct dev_pm_opp *opp; local
52 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz);
53 if (IS_ERR(opp)) {
56 return PTR_ERR(opp);
59 volt = dev_pm_opp_get_voltage(opp);
157 struct dev_pm_opp *opp; local
224 /* Make imx6_soc_volt array's size same as arm opp number */
256 /* use fixed soc opp volt if no valid soc opp info found in dtb */
287 opp
[all...]
H A Dcpufreq-dt.c41 struct dev_pm_opp *opp; local
62 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_Hz);
63 if (IS_ERR(opp)) {
67 return PTR_ERR(opp);
69 volt = dev_pm_opp_get_voltage(opp);
230 struct dev_pm_opp *opp; local
234 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &opp_freq);
235 if (IS_ERR(opp)) {
239 opp_uV = dev_pm_opp_get_voltage(opp);
H A Domap-cpufreq.c45 struct dev_pm_opp *opp; local
64 opp = dev_pm_opp_find_freq_ceil(mpu_dev, &freq);
65 if (IS_ERR(opp)) {
71 volt = dev_pm_opp_get_voltage(opp);
H A Dexynos5440-cpufreq.c119 struct dev_pm_opp *opp; local
123 opp = dev_pm_opp_find_freq_exact(dvfs_info->dev,
125 if (IS_ERR(opp)) {
130 return PTR_ERR(opp);
142 volt_id = dev_pm_opp_get_voltage(opp);
/drivers/devfreq/exynos/
H A Dexynos5_bus.c91 struct dev_pm_opp *opp; local
96 opp = devfreq_recommended_opp(dev, _freq, flags);
97 if (IS_ERR(opp)) {
100 return PTR_ERR(opp);
103 freq = dev_pm_opp_get_freq(opp);
104 volt = dev_pm_opp_get_voltage(opp);
182 dev_err(data->dev, "Cannot add opp entries.\n");
195 struct dev_pm_opp *opp; local
209 opp = dev_pm_opp_find_freq_floor(data->dev, &maxfreq);
210 if (IS_ERR(opp)) {
250 struct dev_pm_opp *opp; local
[all...]
H A Dexynos4_bus.c64 * struct busfreq_opp_info - opp information for bus
572 struct dev_pm_opp *opp; local
578 opp = devfreq_recommended_opp(dev, _freq, flags);
579 if (IS_ERR(opp)) {
581 return PTR_ERR(opp);
583 new_oppinfo.rate = dev_pm_opp_get_freq(opp);
584 new_oppinfo.volt = dev_pm_opp_get_voltage(opp);
760 dev_err(data->dev, "Cannot add opp entries.\n");
823 dev_err(data->dev, "Fail to add opp entries.\n");
836 struct dev_pm_opp *opp; local
901 struct dev_pm_opp *opp; local
[all...]
/drivers/sbus/char/
H A Dopenprom.c136 static int copyout(void __user *info, struct openpromio *opp, int len) argument
138 if (copy_to_user(info, opp, len))
306 struct openpromio *opp = NULL; local
312 bufsize = getstrings(argp, &opp);
314 bufsize = copyin(argp, &opp);
324 error = opromgetprop(argp, dp, opp, bufsize);
329 error = opromnxtprop(argp, dp, opp, bufsize);
334 error = opromsetopt(dp, opp, bufsize);
340 error = opromnext(argp, cmd, dp, opp, bufsize, data);
344 error = oprompci2node(argp, dp, opp, bufsiz
[all...]
/drivers/devfreq/
H A Ddevfreq.c971 struct dev_pm_opp *opp; local
977 opp = dev_pm_opp_find_freq_ceil(dev, &freq);
978 if (IS_ERR(opp))
1092 * Locking: This function must be called under rcu_read_lock(). opp is a rcu
1093 * protected pointer. The reason for the same is that the opp pointer which is
1102 struct dev_pm_opp *opp; local
1105 /* The freq is an upper bound. opp should be lower */
1106 opp = dev_pm_opp_find_freq_floor(dev, freq);
1108 /* If not available, use the closest opp */
1109 if (opp
[all...]
/drivers/mfd/
H A Ddb8500-prcmu.c898 * @opp: The new ARM operating point to which transition is to be made
903 int db8500_prcmu_set_arm_opp(u8 opp) argument
907 if (opp < ARM_NO_CHANGE || opp > ARM_EXTCLK)
918 writeb(opp, (tcdm_base + PRCM_REQ_MB1_ARM_OPP));
925 (mb1_transfer.ack.arm_opp != opp))
955 * @opp: The new DDR operating point to which transition is to be made
961 int db8500_prcmu_set_ddr_opp(u8 opp) argument
963 if (opp < DDR_100_OPP || opp > DDR_25_OP
1025 db8500_prcmu_set_ape_opp(u8 opp) argument
[all...]

Completed in 1675 milliseconds