/linux-4.1.27/drivers/regulator/ |
D | twl-regulator.c | 471 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 …]
|
D | tps65912-regulator.c | 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 [all …]
|
D | wm831x-dcdc.c | 221 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 …]
|
D | tps51632-regulator.c | 121 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()
|
D | tps80031-regulator.c | 179 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()
|
D | max8973-regulator.c | 165 unsigned vsel) in max8973_dcdc_set_voltage_sel() argument 178 found = find_voltage_set_register(max, vsel, in max8973_dcdc_set_voltage_sel() 183 MAX8973_VOUT_MASK, vsel); in max8973_dcdc_set_voltage_sel() 190 max->curr_vout_val[gpio_val] = vsel; in max8973_dcdc_set_voltage_sel()
|
D | rc5t583-regulator.c | 58 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()
|
D | tps65910-regulator.c | 603 int id = rdev_get_id(dev), vsel; in tps65910_set_voltage_dcdc_sel() local 611 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel() 616 tps65910_reg_write(pmic->mfd, TPS65910_VDD1_OP, vsel); in tps65910_set_voltage_dcdc_sel() 622 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel() 627 tps65910_reg_write(pmic->mfd, TPS65910_VDD2_OP, vsel); in tps65910_set_voltage_dcdc_sel() 630 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel() 631 tps65910_reg_write(pmic->mfd, TPS65911_VDDCTRL_OP, vsel); in tps65910_set_voltage_dcdc_sel()
|
D | tps62360-regulator.c | 124 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()
|
D | lp8788-buck.c | 114 pinstate = dvs->vsel == DVS_SEL_V0 ? DVS_LOW : DVS_HIGH; in lp8788_buck1_set_dvs() 127 switch (dvs->vsel) { in lp8788_buck2_set_dvs()
|
D | lp872x.c | 329 lp872x_set_dvs(lp, dvs->vsel, dvs->gpio); in lp872x_buck_set_voltage_sel() 863 of_property_read_u8(np, "ti,dvs-vsel", (u8 *)&pdata->dvs->vsel); in lp872x_populate_pdata_from_dt()
|
D | palmas-regulator.c | 706 if (rinfo->vsel_addr && reg_init->vsel) { in palmas_smps_init() 708 reg = reg_init->vsel; in palmas_smps_init() 1501 pdata->reg_init[idx]->vsel = in palmas_dt_to_pdata()
|
/linux-4.1.27/arch/arm/mach-omap2/ |
D | omap_twl.c | 52 static unsigned long twl4030_vsel_to_uv(const u8 vsel) in twl4030_vsel_to_uv() argument 54 return (((vsel * 125) + 6000)) * 100; in twl4030_vsel_to_uv() 62 static unsigned long twl6030_vsel_to_uv(const u8 vsel) in twl6030_vsel_to_uv() argument 78 if (!vsel) in twl6030_vsel_to_uv() 87 if (vsel == 0x3A) in twl6030_vsel_to_uv() 91 return ((((vsel - 1) * 1266) + 70900)) * 10; in twl6030_vsel_to_uv() 93 return ((((vsel - 1) * 1266) + 60770)) * 10; in twl6030_vsel_to_uv()
|
D | vp.c | 16 char vsel; in _vp_set_init_voltage() local 18 vsel = voltdm->pmic->uv_to_vsel(volt); in _vp_set_init_voltage() 24 vpconfig |= vsel << __ffs(vp->common->vpconfig_initvoltage_mask); in _vp_set_init_voltage()
|
D | voltage.h | 138 unsigned long (*vsel_to_uv) (const u8 vsel);
|
/linux-4.1.27/drivers/clk/samsung/ |
D | clk-pll.h | 75 .vsel = (_vsel), \ 87 .vsel = (_vsel), \ 101 unsigned int vsel; member
|
D | clk-pll.c | 589 con0 |= rate->vsel << PLL46XX_VSEL_SHIFT; in samsung_pll46xx_set_rate()
|
/linux-4.1.27/include/linux/mfd/ |
D | lp8788.h | 171 enum lp8788_dvs_sel vsel; member 181 enum lp8788_dvs_sel vsel; member
|
D | palmas.h | 195 u8 vsel; member
|
/linux-4.1.27/include/linux/regulator/ |
D | lp872x.h | 62 enum lp872x_dvs_sel vsel; member
|
/linux-4.1.27/include/linux/mfd/wm831x/ |
D | pdata.h | 38 int vsel; /** Target voltage, in mV */ member
|
/linux-4.1.27/Documentation/devicetree/bindings/regulator/ |
D | lp872x.txt | 29 - ti,dvs-vsel: DVS selector. 0 = SEL_V1, 1 = SEL_V2. 57 ti,dvs-vsel = /bits/ 8 <1>; /* SEL_V2 */
|
/linux-4.1.27/arch/arm/boot/dts/ |
D | rk3288-firefly.dts | 57 pmic_vsel: pmic-vsel {
|
D | rk3288-firefly-beta.dts | 57 pmic_vsel: pmic-vsel {
|
/linux-4.1.27/drivers/pcmcia/ |
D | i82365.c | 405 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()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
D | qib_sd7220.c | 1220 static int set_rxeq_vals(struct qib_devdata *dd, int vsel) in set_rxeq_vals() argument 1232 val = rxeq_init_vals[ridx].rdata[vsel]; in set_rxeq_vals()
|
/linux-4.1.27/drivers/power/ |
D | wm831x_power.c | 253 pdata->vsel, ®2, in wm831x_config_battery()
|