Lines Matching refs:uv
36 * @uv: microvolts DC to convert
39 * generate an output voltage equal to or greater than @uv microvolts DC.
41 static unsigned char omap_cpcap_uv_to_vsel(unsigned long uv)
43 if (uv < 600000)
44 uv = 600000;
45 else if (uv > 1450000)
46 uv = 1450000;
47 return DIV_ROUND_UP(uv - 600000, 12500);
100 * @uv: microvolts DC to convert
103 * generate an output voltage equal to or greater than @uv microvolts DC.
105 static unsigned char omap_max8952_uv_to_vsel(unsigned long uv)
107 if (uv < 770000)
108 uv = 770000;
109 else if (uv > 1400000)
110 uv = 1400000;
111 return DIV_ROUND_UP(uv - 770000, 10000);
166 * @uv: microvolts DC to convert
169 * generate an output voltage equal to or greater than @uv microvolts DC.
171 static unsigned char omap_fan535503_uv_to_vsel(unsigned long uv)
174 if (uv < 750000)
175 uv = 750000;
176 else if (uv > 1537500)
177 uv = 1537500;
179 vsel = DIV_ROUND_UP(uv - 750000, 12500);
185 * @uv: microvolts DC to convert
188 * generate an output voltage equal to or greater than @uv microvolts DC.
190 static unsigned char omap_fan535508_uv_to_vsel(unsigned long uv)
193 if (uv < 750000)
194 uv = 750000;
195 else if (uv > 1437500)
196 uv = 1437500;
198 vsel = DIV_ROUND_UP(uv - 750000, 12500);