Home
last modified time | relevance | path

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

12

/linux-6.12.1/arch/arm/mach-omap2/
Dpmic-cpcap.c27 static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel) in omap_cpcap_vsel_to_uv() argument
29 if (vsel > 0x44) in omap_cpcap_vsel_to_uv()
30 vsel = 0x44; in omap_cpcap_vsel_to_uv()
31 return (((vsel * 125) + 6000)) * 100; in omap_cpcap_vsel_to_uv()
91 static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel) in omap_max8952_vsel_to_uv() argument
93 if (vsel > 0x3F) in omap_max8952_vsel_to_uv()
94 vsel = 0x3F; in omap_max8952_vsel_to_uv()
95 return (((vsel * 100) + 7700)) * 100; in omap_max8952_vsel_to_uv()
138 static unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel) in omap_fan535503_vsel_to_uv() argument
141 vsel &= 0x3F; in omap_fan535503_vsel_to_uv()
[all …]
Domap_twl.c44 static unsigned long twl4030_vsel_to_uv(const u8 vsel) in twl4030_vsel_to_uv() argument
46 return (((vsel * 125) + 6000)) * 100; in twl4030_vsel_to_uv()
54 static unsigned long twl6030_vsel_to_uv(const u8 vsel) in twl6030_vsel_to_uv() argument
70 if (!vsel) in twl6030_vsel_to_uv()
79 if (vsel == 0x3A) in twl6030_vsel_to_uv()
83 return ((((vsel - 1) * 1266) + 70900)) * 10; in twl6030_vsel_to_uv()
85 return ((((vsel - 1) * 1266) + 60770)) * 10; in twl6030_vsel_to_uv()
Dvp.c17 char vsel; in _vp_set_init_voltage() local
19 vsel = voltdm->pmic->uv_to_vsel(volt); in _vp_set_init_voltage()
25 vpconfig |= vsel << __ffs(vp->common->vpconfig_initvoltage_mask); in _vp_set_init_voltage()
Dvoltage.h135 unsigned long (*vsel_to_uv) (const u8 vsel);
/linux-6.12.1/drivers/regulator/
Dtwl6030-regulator.c273 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl6030ldo_get_voltage_sel() local
276 vsel &= ~TWL6030_VREG_VOLTAGE_WR_S; in twl6030ldo_get_voltage_sel()
278 return vsel; in twl6030ldo_get_voltage_sel()
403 int vsel = 0; in twl6030smps_map_voltage() local
408 vsel = 0; in twl6030smps_map_voltage()
410 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl6030smps_map_voltage()
411 vsel++; in twl6030smps_map_voltage()
417 vsel = 62; in twl6030smps_map_voltage()
419 vsel = 61; in twl6030smps_map_voltage()
421 vsel = 60; in twl6030smps_map_voltage()
[all …]
Dtwl-regulator.c386 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl4030ldo_get_voltage_sel() local
388 if (vsel < 0) in twl4030ldo_get_voltage_sel()
389 return vsel; in twl4030ldo_get_voltage_sel()
391 vsel &= info->table_len - 1; in twl4030ldo_get_voltage_sel()
392 return vsel; in twl4030ldo_get_voltage_sel()
415 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl4030smps_set_voltage() local
417 twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE_SMPS_4030, vsel); in twl4030smps_set_voltage()
425 int vsel; in twl4030smps_get_voltage() local
427 vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, in twl4030smps_get_voltage()
430 return vsel * 12500 + 600000; in twl4030smps_get_voltage()
Dwm831x-dcdc.c227 unsigned vsel) in wm831x_buckv_set_voltage_sel() argument
236 if (dcdc->dvs_gpiod && dcdc->on_vsel == vsel) in wm831x_buckv_set_voltage_sel()
239 if (dcdc->dvs_gpiod && dcdc->dvs_vsel == vsel) in wm831x_buckv_set_voltage_sel()
243 ret = wm831x_set_bits(wm831x, on_reg, WM831X_DC1_ON_VSEL_MASK, vsel); in wm831x_buckv_set_voltage_sel()
246 dcdc->on_vsel = vsel; in wm831x_buckv_set_voltage_sel()
262 if (vsel > dcdc->dvs_vsel) { in wm831x_buckv_set_voltage_sel()
265 vsel); in wm831x_buckv_set_voltage_sel()
267 dcdc->dvs_vsel = vsel; in wm831x_buckv_set_voltage_sel()
282 int vsel; in wm831x_buckv_set_suspend_voltage() local
284 vsel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_buckv_set_suspend_voltage()
[all …]
Drt4803.c111 unsigned int reg, vsel; in rt4803_set_suspend_voltage() local
118 vsel = (uV - rdev->desc->min_uV) / rdev->desc->uV_step; in rt4803_set_suspend_voltage()
119 vsel <<= ffs(RT4803_VSEL_MASK) - 1; in rt4803_set_suspend_voltage()
121 return regmap_update_bits(regmap, reg, RT4803_VSEL_MASK, vsel); in rt4803_set_suspend_voltage()
Dsy8106a-regulator.c70 unsigned int reg, vsel; in sy8106a_i2c_probe() local
106 vsel = (fixed_voltage / 1000 - SY8106A_MIN_MV) / in sy8106a_i2c_probe()
110 vsel | SY8106A_GO_BIT); in sy8106a_i2c_probe()
Drt6160-regulator.c132 int vsel; in rt6160_set_suspend_voltage() local
134 vsel = regulator_map_voltage_linear(rdev, uV, uV); in rt6160_set_suspend_voltage()
135 if (vsel < 0) in rt6160_set_suspend_voltage()
136 return vsel; in rt6160_set_suspend_voltage()
144 RT6160_VSEL_MASK, vsel); in rt6160_set_suspend_voltage()
Dtps51632-regulator.c110 int vsel; in tps51632_init_dcdc() local
116 vsel = TPS51632_VOLT_VSEL(pdata->base_voltage_uV); in tps51632_init_dcdc()
117 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); in tps51632_init_dcdc()
140 vsel = TPS51632_VOLT_VSEL(pdata->max_voltage_uV); in tps51632_init_dcdc()
142 vsel); in tps51632_init_dcdc()
Dbd71815-regulator.c426 #define BD71815_BUCK_REG(_name, _id, vsel, ereg, min, max, step, _dvs) \ argument
439 .vsel_reg = (vsel), \
448 #define BD71815_BUCK12_REG(_name, _id, vsel, ereg, min, max, step, \ argument
462 .vsel_reg = (vsel), \
494 #define BD71815_LDO_REG(_name, _id, vsel, ereg, emsk, min, max, step, \ argument
508 .vsel_reg = (vsel), \
Drt5739.c102 unsigned int reg, vsel; in rt5739_set_suspend_voltage() local
115 vsel = (uV - desc->min_uV) / desc->uV_step; in rt5739_set_suspend_voltage()
116 return regmap_write(regmap, reg, vsel); in rt5739_set_suspend_voltage()
Drc5t583-regulator.c39 int vsel = regulator_get_voltage_sel_regmap(rdev); in rc5t583_regulator_enable_time() local
40 int curr_uV = regulator_list_voltage_linear(rdev, vsel); in rc5t583_regulator_enable_time()
Dtps65910-regulator.c598 int id = rdev_get_id(dev), vsel; in tps65910_set_voltage_dcdc_sel() local
606 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
610 regmap_write(regmap, TPS65910_VDD1_OP, vsel); in tps65910_set_voltage_dcdc_sel()
616 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
620 regmap_write(regmap, TPS65910_VDD2_OP, vsel); in tps65910_set_voltage_dcdc_sel()
623 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel()
624 regmap_write(regmap, TPS65911_VDDCTRL_OP, vsel); in tps65910_set_voltage_dcdc_sel()
Dmax8973-regulator.c173 unsigned vsel) in max8973_dcdc_set_voltage_sel() argument
186 found = find_voltage_set_register(max, vsel, in max8973_dcdc_set_voltage_sel()
191 MAX8973_VOUT_MASK, vsel); in max8973_dcdc_set_voltage_sel()
198 max->curr_vout_val[gpio_val] = vsel; in max8973_dcdc_set_voltage_sel()
Dtps62360-regulator.c110 int vsel; in tps62360_dcdc_get_voltage_sel() local
120 vsel = (int)data & tps->voltage_reg_mask; in tps62360_dcdc_get_voltage_sel()
121 return vsel; in tps62360_dcdc_get_voltage_sel()
/linux-6.12.1/drivers/media/dvb-frontends/
Dlnbh25.c86 const char *vsel; in lnbh25_set_voltage() local
98 vsel = "Off"; in lnbh25_set_voltage()
102 vsel = "13V"; in lnbh25_set_voltage()
106 vsel = "18V"; in lnbh25_set_voltage()
114 __func__, vsel, priv->i2c_address, in lnbh25_set_voltage()
/linux-6.12.1/drivers/clk/samsung/
Dclk-pll.h90 .vsel = (_vsel), \
103 .vsel = (_vsel), \
117 unsigned int vsel; member
/linux-6.12.1/include/linux/mfd/
Dlp8788.h157 enum lp8788_dvs_sel vsel; member
165 enum lp8788_dvs_sel vsel; member
/linux-6.12.1/include/linux/regulator/
Dlp872x.h56 enum lp872x_dvs_sel vsel; member
/linux-6.12.1/arch/arm/boot/dts/rockchip/
Drk3288-firefly.dts20 pmic_vsel: pmic-vsel {
Drk3288-firefly-beta.dts20 pmic_vsel: pmic-vsel {
/linux-6.12.1/include/linux/mfd/wm831x/
Dpdata.h33 int vsel; /** Target voltage, in mV */ member
/linux-6.12.1/Documentation/devicetree/bindings/regulator/
Dlp872x.txt29 - ti,dvs-vsel: DVS selector. 0 = SEL_V1, 1 = SEL_V2.
58 ti,dvs-vsel = /bits/ 8 <1>; /* SEL_V2 */

12