Lines Matching refs:vsel
157 static unsigned long tps65912_vsel_to_uv_range0(u8 vsel) in tps65912_vsel_to_uv_range0() argument
161 uv = ((vsel * 12500) + 500000); in tps65912_vsel_to_uv_range0()
165 static unsigned long tps65912_vsel_to_uv_range1(u8 vsel) in tps65912_vsel_to_uv_range1() argument
169 uv = ((vsel * 12500) + 700000); in tps65912_vsel_to_uv_range1()
173 static unsigned long tps65912_vsel_to_uv_range2(u8 vsel) in tps65912_vsel_to_uv_range2() argument
177 uv = ((vsel * 25000) + 500000); in tps65912_vsel_to_uv_range2()
181 static unsigned long tps65912_vsel_to_uv_range3(u8 vsel) in tps65912_vsel_to_uv_range3() argument
185 if (vsel == 0x3f) in tps65912_vsel_to_uv_range3()
188 uv = ((vsel * 50000) + 500000); in tps65912_vsel_to_uv_range3()
402 int reg, vsel; in tps65912_get_voltage_sel() local
408 vsel = tps65912_reg_read(mfd, reg); in tps65912_get_voltage_sel()
409 vsel &= 0x3F; in tps65912_get_voltage_sel()
411 return vsel; in tps65912_get_voltage_sel()