Lines Matching refs:uv
130 static inline unsigned int mp8869_scale(unsigned int uv, u32 r1, u32 r2) in mp8869_scale() argument
132 u32 tmp = uv * r1 / r2; in mp8869_scale()
134 return uv + tmp; in mp8869_scale()
140 int ret, uv; in mp8869_get_voltage_sel() local
150 uv = rdev->desc->min_uV; in mp8869_get_voltage_sel()
151 uv = mp8869_scale(uv, di->r[0], di->r[1]); in mp8869_get_voltage_sel()
152 return regulator_map_voltage_linear(rdev, uv, uv); in mp8869_get_voltage_sel()
218 int ret, uv; in mp8867_get_voltage_sel() local
232 uv = regulator_list_voltage_linear(rdev, val); in mp8867_get_voltage_sel()
233 uv = mp8869_scale(uv, di->r[0], di->r[1]); in mp8867_get_voltage_sel()
234 return regulator_map_voltage_linear(rdev, uv, uv); in mp8867_get_voltage_sel()