Lines Matching refs:vsel
27 static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel) in omap_cpcap_vsel_to_uv() argument
29 if (vsel > 0x44) in omap_cpcap_vsel_to_uv()
30 vsel = 0x44; in omap_cpcap_vsel_to_uv()
31 return (((vsel * 125) + 6000)) * 100; in omap_cpcap_vsel_to_uv()
91 static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel) in omap_max8952_vsel_to_uv() argument
93 if (vsel > 0x3F) in omap_max8952_vsel_to_uv()
94 vsel = 0x3F; in omap_max8952_vsel_to_uv()
95 return (((vsel * 100) + 7700)) * 100; in omap_max8952_vsel_to_uv()
138 static unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel) in omap_fan535503_vsel_to_uv() argument
141 vsel &= 0x3F; in omap_fan535503_vsel_to_uv()
143 return (((vsel * 125) + 7500)) * 100; in omap_fan535503_vsel_to_uv()
153 static unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel) in omap_fan535508_vsel_to_uv() argument
156 vsel &= 0x3F; in omap_fan535508_vsel_to_uv()
158 if (vsel > 0x37) in omap_fan535508_vsel_to_uv()
159 vsel = 0x37; in omap_fan535508_vsel_to_uv()
160 return (((vsel * 125) + 7500)) * 100; in omap_fan535508_vsel_to_uv()
173 unsigned char vsel; in omap_fan535503_uv_to_vsel() local
179 vsel = DIV_ROUND_UP(uv - 750000, 12500); in omap_fan535503_uv_to_vsel()
180 return vsel | 0xC0; in omap_fan535503_uv_to_vsel()
192 unsigned char vsel; in omap_fan535508_uv_to_vsel() local
198 vsel = DIV_ROUND_UP(uv - 750000, 12500); in omap_fan535508_uv_to_vsel()
199 return vsel | 0xC0; in omap_fan535508_uv_to_vsel()