/drivers/regulator/ |
D | twl6030-regulator.c | 274 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl6030ldo_get_voltage_sel() local 277 vsel &= ~TWL6030_VREG_VOLTAGE_WR_S; in twl6030ldo_get_voltage_sel() 279 return vsel; in twl6030ldo_get_voltage_sel() 404 int vsel = 0; in twl6030smps_map_voltage() local 409 vsel = 0; in twl6030smps_map_voltage() 411 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl6030smps_map_voltage() 412 vsel++; in twl6030smps_map_voltage() 418 vsel = 62; in twl6030smps_map_voltage() 420 vsel = 61; in twl6030smps_map_voltage() 422 vsel = 60; in twl6030smps_map_voltage() [all …]
|
D | twl-regulator.c | 393 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl4030ldo_get_voltage_sel() local 395 if (vsel < 0) in twl4030ldo_get_voltage_sel() 396 return vsel; in twl4030ldo_get_voltage_sel() 398 vsel &= info->table_len - 1; in twl4030ldo_get_voltage_sel() 399 return vsel; in twl4030ldo_get_voltage_sel() 422 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl4030smps_set_voltage() local 424 twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE_SMPS_4030, vsel); in twl4030smps_set_voltage() 432 int vsel; in twl4030smps_get_voltage() local 434 vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, in twl4030smps_get_voltage() 437 return vsel * 12500 + 600000; in twl4030smps_get_voltage()
|
D | wm831x-dcdc.c | 227 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 …]
|
D | rt6160-regulator.c | 132 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()
|
D | sy8106a-regulator.c | 70 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()
|
D | tps51632-regulator.c | 124 int vsel; in tps51632_init_dcdc() local 130 vsel = TPS51632_VOLT_VSEL(pdata->base_voltage_uV); in tps51632_init_dcdc() 131 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); in tps51632_init_dcdc() 154 vsel = TPS51632_VOLT_VSEL(pdata->max_voltage_uV); in tps51632_init_dcdc() 156 vsel); in tps51632_init_dcdc()
|
D | tps80031-regulator.c | 164 unsigned vsel) in tps80031_dcdc_set_voltage_sel() argument 181 ri->rinfo->force_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel() 190 ri->rinfo->volt_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel() 201 uint8_t vsel = 0; in tps80031_dcdc_get_voltage_sel() local 206 ri->rinfo->force_reg, &vsel); in tps80031_dcdc_get_voltage_sel() 213 if (!(vsel & SMPS_CMD_MASK)) in tps80031_dcdc_get_voltage_sel() 214 return vsel & SMPS_VSEL_MASK; in tps80031_dcdc_get_voltage_sel() 217 ri->rinfo->volt_reg, &vsel); in tps80031_dcdc_get_voltage_sel() 223 return vsel & SMPS_VSEL_MASK; in tps80031_dcdc_get_voltage_sel()
|
D | bd71815-regulator.c | 427 #define BD71815_BUCK_REG(_name, _id, vsel, ereg, min, max, step, _dvs) \ argument 440 .vsel_reg = (vsel), \ 449 #define BD71815_BUCK12_REG(_name, _id, vsel, ereg, min, max, step, \ argument 463 .vsel_reg = (vsel), \ 495 #define BD71815_LDO_REG(_name, _id, vsel, ereg, emsk, min, max, step, \ argument 509 .vsel_reg = (vsel), \
|
D | rc5t583-regulator.c | 40 int vsel = regulator_get_voltage_sel_regmap(rdev); in rc5t583_regulator_enable_time() local 41 int curr_uV = regulator_list_voltage_linear(rdev, vsel); in rc5t583_regulator_enable_time()
|
D | tps65910-regulator.c | 599 int id = rdev_get_id(dev), vsel; in tps65910_set_voltage_dcdc_sel() local 607 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel() 611 regmap_write(regmap, TPS65910_VDD1_OP, vsel); in tps65910_set_voltage_dcdc_sel() 617 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel() 621 regmap_write(regmap, TPS65910_VDD2_OP, vsel); in tps65910_set_voltage_dcdc_sel() 624 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel() 625 regmap_write(regmap, 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 | max8973-regulator.c | 188 unsigned vsel) in max8973_dcdc_set_voltage_sel() argument 201 found = find_voltage_set_register(max, vsel, in max8973_dcdc_set_voltage_sel() 206 MAX8973_VOUT_MASK, vsel); in max8973_dcdc_set_voltage_sel() 213 max->curr_vout_val[gpio_val] = vsel; in max8973_dcdc_set_voltage_sel()
|
D | lp8788-buck.c | 108 pinstate = dvs->vsel == DVS_SEL_V0 ? DVS_LOW : DVS_HIGH; in lp8788_buck1_set_dvs() 121 switch (dvs->vsel) { in lp8788_buck2_set_dvs()
|
D | lp872x.c | 325 lp872x_set_dvs(lp, dvs->vsel, dvs->gpio); in lp872x_buck_set_voltage_sel() 848 of_property_read_u8(np, "ti,dvs-vsel", (u8 *)&pdata->dvs->vsel); in lp872x_populate_pdata_from_dt()
|
D | palmas-regulator.c | 737 if (rinfo->vsel_addr && reg_init->vsel) { in palmas_smps_init() 739 reg = reg_init->vsel; in palmas_smps_init() 1543 rinit->vsel = PALMAS_SMPS12_VOLTAGE_RANGE; in palmas_dt_to_pdata()
|
/drivers/media/dvb-frontends/ |
D | lnbh25.c | 86 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()
|
/drivers/clk/samsung/ |
D | clk-pll.h | 101 .vsel = (_vsel), \ 114 .vsel = (_vsel), \ 128 unsigned int vsel; member
|
D | clk-pll.c | 650 con0 |= rate->vsel << PLL46XX_VSEL_SHIFT; in samsung_pll46xx_set_rate()
|
/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()
|
/drivers/clk/tegra/ |
D | clk-dfll.c | 771 unsigned int vsel; in dfll_init_out_if() local 773 vsel = DIV_ROUND_UP((vinit - vmin), vstep); in dfll_init_out_if() 774 dfll_force_output(td, vsel); in dfll_init_out_if()
|
/drivers/infiniband/hw/qib/ |
D | qib_sd7220.c | 1213 static int set_rxeq_vals(struct qib_devdata *dd, int vsel) in set_rxeq_vals() argument 1225 val = rxeq_init_vals[ridx].rdata[vsel]; in set_rxeq_vals()
|
/drivers/power/supply/ |
D | wm831x_power.c | 290 pdata->vsel, ®2, in wm831x_config_battery()
|