Searched refs:vsel (Results 1 - 25 of 33) sorted by relevance

12

/linux-master/arch/arm/mach-omap2/
H A Dpmic-cpcap.c22 * @vsel: CPCAP VSEL value to convert
25 * programmed with @vsel.
27 static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel) argument
29 if (vsel > 0x44)
30 vsel = 0x44;
31 return (((vsel * 125) + 6000)) * 100;
86 * @vsel: MAX8952 VSEL value to convert
89 * programmed with @vsel.
91 static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel) argument
93 if (vsel >
138 omap_fan535503_vsel_to_uv(unsigned char vsel) argument
153 omap_fan535508_vsel_to_uv(unsigned char vsel) argument
173 unsigned char vsel; local
192 unsigned char vsel; local
[all...]
H A Domap_twl.c44 static unsigned long twl4030_vsel_to_uv(const u8 vsel) argument
46 return (((vsel * 125) + 6000)) * 100;
54 static unsigned long twl6030_vsel_to_uv(const u8 vsel) argument
70 if (!vsel)
73 * There is no specific formula for voltage to vsel
79 if (vsel == 0x3A)
83 return ((((vsel - 1) * 1266) + 70900)) * 10;
85 return ((((vsel - 1) * 1266) + 60770)) * 10;
107 * There is no specific formula for voltage to vsel
116 pr_err("%s:OUT OF RANGE! non mapped vsel fo
[all...]
H A Dvoltage.h117 * @vsel_to_uv: PMIC API to convert vsel value to actual voltage in uV.
118 * @uv_to_vsel: PMIC API to convert voltage in uV to vsel value.
135 unsigned long (*vsel_to_uv) (const u8 vsel);
H A Dvp.c17 char vsel; local
19 vsel = voltdm->pmic->uv_to_vsel(volt);
25 vpconfig |= vsel << __ffs(vp->common->vpconfig_initvoltage_mask);
/linux-master/drivers/regulator/
H A Dtwl6030-regulator.c273 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); local
276 vsel &= ~TWL6030_VREG_VOLTAGE_WR_S;
278 return vsel;
403 int vsel = 0; local
408 vsel = 0;
410 vsel = DIV_ROUND_UP(min_uV - 600000, 12500);
411 vsel++;
413 /* Values 1..57 for vsel are linear and can be calculated
417 vsel = 62;
419 vsel
[all...]
H A Dsy8106a-regulator.c70 unsigned int reg, vsel; local
106 vsel = (fixed_voltage / 1000 - SY8106A_MIN_MV) /
110 vsel | SY8106A_GO_BIT);
H A Drt4803.c111 unsigned int reg, vsel; local
118 vsel = (uV - rdev->desc->min_uV) / rdev->desc->uV_step;
119 vsel <<= ffs(RT4803_VSEL_MASK) - 1;
121 return regmap_update_bits(regmap, reg, RT4803_VSEL_MASK, vsel);
175 vsel_act_high = device_property_read_bool(dev, "richtek,vsel-active-high");
H A Drt6160-regulator.c132 int vsel; local
134 vsel = regulator_map_voltage_linear(rdev, uV, uV);
135 if (vsel < 0)
136 return vsel;
144 RT6160_VSEL_MASK, vsel);
241 device_property_present(&i2c->dev, "richtek,vsel-active-low");
H A Dtwl-regulator.c386 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); local
388 if (vsel < 0)
389 return vsel;
391 vsel &= info->table_len - 1;
392 return vsel;
415 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); local
417 twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE_SMPS_4030, vsel);
425 int vsel; local
427 vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER,
430 return vsel * 1250
[all...]
H A Dtps51632-regulator.c110 int vsel; local
116 vsel = TPS51632_VOLT_VSEL(pdata->base_voltage_uV);
117 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel);
140 vsel = TPS51632_VOLT_VSEL(pdata->max_voltage_uV);
142 vsel);
H A Dwm831x-dcdc.c227 unsigned vsel)
236 if (dcdc->dvs_gpiod && dcdc->on_vsel == vsel)
239 if (dcdc->dvs_gpiod && dcdc->dvs_vsel == vsel)
243 ret = wm831x_set_bits(wm831x, on_reg, WM831X_DC1_ON_VSEL_MASK, vsel);
246 dcdc->on_vsel = vsel;
262 if (vsel > dcdc->dvs_vsel) {
265 vsel);
267 dcdc->dvs_vsel = vsel;
282 int vsel; local
284 vsel
226 wm831x_buckv_set_voltage_sel(struct regulator_dev *rdev, unsigned vsel) argument
[all...]
H A Drc5t583-regulator.c39 int vsel = regulator_get_voltage_sel_regmap(rdev); local
40 int curr_uV = regulator_list_voltage_linear(rdev, vsel);
H A Drt5739.c102 unsigned int reg, vsel; local
115 vsel = (uV - desc->min_uV) / desc->uV_step;
116 return regmap_write(regmap, reg, vsel);
215 /* Assigned by vsel level */
280 vsel_acth = device_property_read_bool(dev, "richtek,vsel-active-high");
H A Dbd71815-regulator.c426 #define BD71815_BUCK_REG(_name, _id, vsel, ereg, min, max, step, _dvs) \
439 .vsel_reg = (vsel), \
448 #define BD71815_BUCK12_REG(_name, _id, vsel, ereg, min, max, step, \
462 .vsel_reg = (vsel), \
494 #define BD71815_LDO_REG(_name, _id, vsel, ereg, emsk, min, max, step, \
508 .vsel_reg = (vsel), \
576 "rohm,vsel", GPIOD_ASIS, "ldo4-en");
H A Dtps65910-regulator.c598 int id = rdev_get_id(dev), vsel; local
606 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3;
610 regmap_write(regmap, TPS65910_VDD1_OP, vsel);
616 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3;
620 regmap_write(regmap, TPS65910_VDD2_OP, vsel);
623 vsel = selector + 3;
624 regmap_write(regmap, TPS65911_VDDCTRL_OP, vsel);
H A Dtps62360-regulator.c110 int vsel; local
120 vsel = (int)data & tps->voltage_reg_mask;
121 return vsel;
H A Dmax8973-regulator.c173 unsigned vsel)
186 found = find_voltage_set_register(max, vsel,
191 MAX8973_VOUT_MASK, vsel);
198 max->curr_vout_val[gpio_val] = vsel;
172 max8973_dcdc_set_voltage_sel(struct regulator_dev *rdev, unsigned vsel) argument
H A Dlp8788-buck.c110 pinstate = dvs->vsel == DVS_SEL_V0 ? DVS_LOW : DVS_HIGH;
122 switch (dvs->vsel) {
/linux-master/drivers/media/dvb-frontends/
H A Dlnbh25.c86 const char *vsel; local
98 vsel = "Off";
102 vsel = "13V";
106 vsel = "18V";
114 __func__, vsel, priv->i2c_address,
/linux-master/drivers/clk/samsung/
H A Dclk-pll.h88 .vsel = (_vsel), \
101 .vsel = (_vsel), \
115 unsigned int vsel; member in struct:samsung_pll_rate_table
/linux-master/include/linux/regulator/
H A Dlp872x.h51 * @vsel : dvs selector for buck v1 or buck v2 register
56 enum lp872x_dvs_sel vsel; member in struct:lp872x_dvs
/linux-master/arch/powerpc/crypto/
H A Daesp10-ppc.pl204 vsel $stage,$outhead,$outtail,$outmask
224 vsel $stage,$outhead,$outtail,$outmask
241 vsel $stage,$outhead,$outtail,$outmask
254 vsel $stage,$outhead,$outtail,$outmask
269 vsel $stage,$outhead,$outtail,$outmask
302 vsel $stage,$outhead,$outtail,$outmask
312 vsel $stage,$outhead,$outtail,$outmask
328 vsel $stage,$outhead,$outtail,$outmask
345 vsel $stage,$outhead,$outtail,$outmask
356 vsel
[all...]
H A Daesp8-ppc.pl205 vsel $stage,$outhead,$outtail,$outmask
225 vsel $stage,$outhead,$outtail,$outmask
242 vsel $stage,$outhead,$outtail,$outmask
255 vsel $stage,$outhead,$outtail,$outmask
270 vsel $stage,$outhead,$outtail,$outmask
303 vsel $stage,$outhead,$outtail,$outmask
313 vsel $stage,$outhead,$outtail,$outmask
329 vsel $stage,$outhead,$outtail,$outmask
346 vsel $stage,$outhead,$outtail,$outmask
357 vsel
[all...]
/linux-master/include/linux/mfd/
H A Dlp8788.h154 * @vsel : dvs selector for buck v1 register
157 enum lp8788_dvs_sel vsel; member in struct:lp8788_buck1_dvs
162 * @vsel : dvs selector for buck v2 register
165 enum lp8788_dvs_sel vsel; member in struct:lp8788_buck2_dvs
/linux-master/include/linux/mfd/wm831x/
H A Dpdata.h33 int vsel; /** Target voltage, in mV */ member in struct:wm831x_battery_pdata

Completed in 404 milliseconds

12