Lines Matching refs:uv
108 static inline unsigned int mp8869_scale(unsigned int uv, u32 r1, u32 r2) in mp8869_scale() argument
110 u32 tmp = uv * r1 / r2; in mp8869_scale()
112 return uv + tmp; in mp8869_scale()
118 int ret, uv; in mp8869_get_voltage_sel() local
128 uv = rdev->desc->min_uV; in mp8869_get_voltage_sel()
129 uv = mp8869_scale(uv, di->r[0], di->r[1]); in mp8869_get_voltage_sel()
130 return regulator_map_voltage_linear(rdev, uv, uv); in mp8869_get_voltage_sel()
196 int ret, uv; in mp8867_get_voltage_sel() local
210 uv = regulator_list_voltage_linear(rdev, val); in mp8867_get_voltage_sel()
211 uv = mp8869_scale(uv, di->r[0], di->r[1]); in mp8867_get_voltage_sel()
212 return regulator_map_voltage_linear(rdev, uv, uv); in mp8867_get_voltage_sel()