Home
last modified time | relevance | path

Searched refs:vsel (Results 1 – 17 of 17) sorted by relevance

/drivers/regulator/
Dtps65217-regulator.c61 static int tps65217_vsel_to_uv1(unsigned int vsel) in tps65217_vsel_to_uv1() argument
65 if (vsel > 63) in tps65217_vsel_to_uv1()
68 if (vsel <= 24) in tps65217_vsel_to_uv1()
69 uV = vsel * 25000 + 900000; in tps65217_vsel_to_uv1()
70 else if (vsel <= 52) in tps65217_vsel_to_uv1()
71 uV = (vsel - 24) * 50000 + 1500000; in tps65217_vsel_to_uv1()
72 else if (vsel < 56) in tps65217_vsel_to_uv1()
73 uV = (vsel - 52) * 100000 + 2900000; in tps65217_vsel_to_uv1()
80 static int tps65217_uv_to_vsel1(int uV, unsigned int *vsel) in tps65217_uv_to_vsel1() argument
86 *vsel = DIV_ROUND_UP(uV - 900000, 25000); in tps65217_uv_to_vsel1()
[all …]
Dtps65912-regulator.c151 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
[all …]
Dtwl-regulator.c471 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl4030ldo_get_voltage_sel() local
473 if (vsel < 0) in twl4030ldo_get_voltage_sel()
474 return vsel; in twl4030ldo_get_voltage_sel()
476 vsel &= info->table_len - 1; in twl4030ldo_get_voltage_sel()
477 return vsel; in twl4030ldo_get_voltage_sel()
500 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl4030smps_set_voltage() local
506 VREG_VOLTAGE_SMPS_4030, vsel); in twl4030smps_set_voltage()
515 int vsel; in twl4030smps_get_voltage() local
520 vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, in twl4030smps_get_voltage()
523 return vsel * 12500 + 600000; in twl4030smps_get_voltage()
[all …]
Dwm831x-dcdc.c221 u16 vsel; in wm831x_buckv_map_voltage() local
224 vsel = 0; in wm831x_buckv_map_voltage()
226 vsel = DIV_ROUND_UP(min_uV - 600000, 12500) + 8; in wm831x_buckv_map_voltage()
230 if (wm831x_buckv_list_voltage(rdev, vsel) > max_uV) in wm831x_buckv_map_voltage()
233 return vsel; in wm831x_buckv_map_voltage()
255 unsigned vsel) in wm831x_buckv_set_voltage_sel() argument
264 if (dcdc->dvs_gpio && dcdc->on_vsel == vsel) in wm831x_buckv_set_voltage_sel()
267 if (dcdc->dvs_gpio && dcdc->dvs_vsel == vsel) in wm831x_buckv_set_voltage_sel()
271 ret = wm831x_set_bits(wm831x, on_reg, WM831X_DC1_ON_VSEL_MASK, vsel); in wm831x_buckv_set_voltage_sel()
274 dcdc->on_vsel = vsel; in wm831x_buckv_set_voltage_sel()
[all …]
Dwm831x-ldo.c84 int volt, vsel; in wm831x_gp_ldo_map_voltage() local
87 vsel = 0; in wm831x_gp_ldo_map_voltage()
89 vsel = ((min_uV - 900000) / 50000); in wm831x_gp_ldo_map_voltage()
91 vsel = ((min_uV - 1700000) / 100000) in wm831x_gp_ldo_map_voltage()
94 volt = wm831x_gp_ldo_list_voltage(rdev, vsel); in wm831x_gp_ldo_map_voltage()
98 return vsel; in wm831x_gp_ldo_map_voltage()
383 int volt, vsel; in wm831x_aldo_map_voltage() local
386 vsel = 0; in wm831x_aldo_map_voltage()
388 vsel = ((min_uV - 1000000) / 50000); in wm831x_aldo_map_voltage()
390 vsel = ((min_uV - 1700000) / 100000) in wm831x_aldo_map_voltage()
[all …]
Dtps51632-regulator.c121 int vsel; in tps51632_init_dcdc() local
127 vsel = TPS51632_VOLT_VSEL(pdata->base_voltage_uV); in tps51632_init_dcdc()
128 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); in tps51632_init_dcdc()
151 vsel = TPS51632_VOLT_VSEL(pdata->max_voltage_uV); in tps51632_init_dcdc()
153 vsel); in tps51632_init_dcdc()
Dtps80031-regulator.c179 unsigned vsel) in tps80031_dcdc_set_voltage_sel() argument
196 ri->rinfo->force_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel()
205 ri->rinfo->volt_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel()
216 uint8_t vsel = 0; in tps80031_dcdc_get_voltage_sel() local
221 ri->rinfo->force_reg, &vsel); in tps80031_dcdc_get_voltage_sel()
228 if (!(vsel & SMPS_CMD_MASK)) in tps80031_dcdc_get_voltage_sel()
229 return vsel & SMPS_VSEL_MASK; in tps80031_dcdc_get_voltage_sel()
232 ri->rinfo->volt_reg, &vsel); in tps80031_dcdc_get_voltage_sel()
238 return vsel & SMPS_VSEL_MASK; in tps80031_dcdc_get_voltage_sel()
Dmax8973-regulator.c163 unsigned vsel) in max8973_dcdc_set_voltage_sel() argument
176 found = find_voltage_set_register(max, vsel, in max8973_dcdc_set_voltage_sel()
181 MAX8973_VOUT_MASK, vsel); in max8973_dcdc_set_voltage_sel()
188 max->curr_vout_val[gpio_val] = vsel; in max8973_dcdc_set_voltage_sel()
Dtps65910-regulator.c585 int id = rdev_get_id(dev), vsel; in tps65910_set_voltage_dcdc_sel() local
593 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
598 tps65910_reg_write(pmic->mfd, TPS65910_VDD1_OP, vsel); in tps65910_set_voltage_dcdc_sel()
604 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
609 tps65910_reg_write(pmic->mfd, TPS65910_VDD2_OP, vsel); in tps65910_set_voltage_dcdc_sel()
612 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel()
613 tps65910_reg_write(pmic->mfd, TPS65911_VDDCTRL_OP, vsel); in tps65910_set_voltage_dcdc_sel()
Drc5t583-regulator.c58 int vsel = regulator_get_voltage_sel_regmap(rdev); in rc5t583_regulator_enable_time() local
59 int curr_uV = regulator_list_voltage_linear(rdev, vsel); in rc5t583_regulator_enable_time()
Dtps62360-regulator.c124 int vsel; in tps62360_dcdc_get_voltage_sel() local
134 vsel = (int)data & tps->voltage_reg_mask; in tps62360_dcdc_get_voltage_sel()
135 return vsel; in tps62360_dcdc_get_voltage_sel()
Dlp8788-buck.c114 pinstate = dvs->vsel == DVS_SEL_V0 ? DVS_LOW : DVS_HIGH; in lp8788_buck1_set_dvs()
127 switch (dvs->vsel) { in lp8788_buck2_set_dvs()
Dpalmas-regulator.c568 if (palmas_regs_info[id].vsel_addr && reg_init->vsel) { in palmas_smps_init()
571 reg = reg_init->vsel; in palmas_smps_init()
752 pdata->reg_init[idx]->vsel = in palmas_dt_to_pdata()
Dlp872x.c327 lp872x_set_dvs(lp, dvs->vsel, dvs->gpio); in lp872x_buck_set_voltage_sel()
/drivers/pcmcia/
Di82365.c405 u_char vsel = i365_get(s, VG469_VSELECT); in vg46x_set_opts() local
406 if (vsel & VG469_VSEL_EXT_STAT) { in vg46x_set_opts()
408 if (vsel & VG469_VSEL_EXT_BUS) in vg46x_set_opts()
/drivers/infiniband/hw/qib/
Dqib_sd7220.c1215 static int set_rxeq_vals(struct qib_devdata *dd, int vsel) in set_rxeq_vals() argument
1227 val = rxeq_init_vals[ridx].rdata[vsel]; in set_rxeq_vals()
/drivers/power/
Dwm831x_power.c250 pdata->vsel, &reg2, in wm831x_config_battery()