Lines Matching refs:vsel
151 static unsigned long tps65912_vsel_to_uv_range0(u8 vsel) in tps65912_vsel_to_uv_range0() argument
155 uv = ((vsel * 12500) + 500000); in tps65912_vsel_to_uv_range0()
159 static unsigned long tps65912_vsel_to_uv_range1(u8 vsel) in tps65912_vsel_to_uv_range1() argument
163 uv = ((vsel * 12500) + 700000); in tps65912_vsel_to_uv_range1()
167 static unsigned long tps65912_vsel_to_uv_range2(u8 vsel) in tps65912_vsel_to_uv_range2() argument
171 uv = ((vsel * 25000) + 500000); in tps65912_vsel_to_uv_range2()
175 static unsigned long tps65912_vsel_to_uv_range3(u8 vsel) in tps65912_vsel_to_uv_range3() argument
179 if (vsel == 0x3f) in tps65912_vsel_to_uv_range3()
182 uv = ((vsel * 50000) + 500000); in tps65912_vsel_to_uv_range3()
187 static unsigned long tps65912_vsel_to_uv_ldo(u8 vsel) in tps65912_vsel_to_uv_ldo() argument
191 if (vsel <= 32) in tps65912_vsel_to_uv_ldo()
192 uv = ((vsel * 25000) + 800000); in tps65912_vsel_to_uv_ldo()
193 else if (vsel > 32 && vsel <= 60) in tps65912_vsel_to_uv_ldo()
194 uv = (((vsel - 32) * 50000) + 1600000); in tps65912_vsel_to_uv_ldo()
195 else if (vsel > 60) in tps65912_vsel_to_uv_ldo()
196 uv = (((vsel - 60) * 100000) + 3000000); in tps65912_vsel_to_uv_ldo()
413 int reg, vsel; in tps65912_get_voltage_sel() local
419 vsel = tps65912_reg_read(mfd, reg); in tps65912_get_voltage_sel()
420 vsel &= 0x3F; in tps65912_get_voltage_sel()
422 return vsel; in tps65912_get_voltage_sel()