Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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) 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()
86 * @vsel: MAX8952 VSEL value to convert
89 * programmed with @vsel.
91 static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel) in omap_max8952_vsel_to_uv() argument
93 if (vsel > in omap_max8952_vsel_to_uv()
138 omap_fan535503_vsel_to_uv(unsigned char vsel) omap_fan535503_vsel_to_uv() argument
153 omap_fan535508_vsel_to_uv(unsigned char vsel) omap_fan535508_vsel_to_uv() argument
173 unsigned char vsel; omap_fan535503_uv_to_vsel() local
192 unsigned char vsel; omap_fan535508_uv_to_vsel() local
[all...]
H A 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()
73 * There is no specific formula for voltage to 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()
107 * There is no specific formula for voltage to vsel in twl6030_uv_to_vsel()
116 pr_err("%s:OUT OF RANGE! non mapped vsel fo in twl6030_uv_to_vsel()
[all...]
/kernel/linux/linux-6.6/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) 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()
86 * @vsel: MAX8952 VSEL value to convert
89 * programmed with @vsel.
91 static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel) in omap_max8952_vsel_to_uv() argument
93 if (vsel > in omap_max8952_vsel_to_uv()
138 omap_fan535503_vsel_to_uv(unsigned char vsel) omap_fan535503_vsel_to_uv() argument
153 omap_fan535508_vsel_to_uv(unsigned char vsel) omap_fan535508_vsel_to_uv() argument
173 unsigned char vsel; omap_fan535503_uv_to_vsel() local
192 unsigned char vsel; omap_fan535508_uv_to_vsel() local
[all...]
H A 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()
73 * There is no specific formula for voltage to 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()
107 * There is no specific formula for voltage to vsel in twl6030_uv_to_vsel()
116 pr_err("%s:OUT OF RANGE! non mapped vsel fo in twl6030_uv_to_vsel()
[all...]
/kernel/linux/linux-5.10/drivers/regulator/
H A Dtwl6030-regulator.c274 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()
414 /* Values 1..57 for vsel are linear and can be calculated in twl6030smps_map_voltage()
418 vsel = 62; in twl6030smps_map_voltage()
420 vsel in twl6030smps_map_voltage()
[all...]
H A Dtwl-regulator.c393 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 * 1250 in twl4030smps_get_voltage()
[all...]
H A Dwm831x-dcdc.c227 unsigned vsel) in wm831x_buckv_set_voltage_sel()
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 in wm831x_buckv_set_suspend_voltage()
226 wm831x_buckv_set_voltage_sel(struct regulator_dev *rdev, unsigned vsel) wm831x_buckv_set_voltage_sel() argument
[all...]
H A 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()
H A Dtps80031-regulator.c164 unsigned vsel) in tps80031_dcdc_set_voltage_sel()
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()
163 tps80031_dcdc_set_voltage_sel(struct regulator_dev *rdev, unsigned vsel) tps80031_dcdc_set_voltage_sel() argument
H A Dtps51632-regulator.c124 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()
H A Drc5t583-regulator.c40 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()
/kernel/linux/linux-6.6/drivers/regulator/
H A 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()
413 /* Values 1..57 for vsel are linear and can be calculated in twl6030smps_map_voltage()
417 vsel = 62; in twl6030smps_map_voltage()
419 vsel in twl6030smps_map_voltage()
[all...]
H A 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 * 1250 in twl4030smps_get_voltage()
[all...]
H A 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()
175 vsel_act_high = device_property_read_bool(dev, "richtek,vsel-active-high"); in rt4803_probe()
H A Dwm831x-dcdc.c227 unsigned vsel) in wm831x_buckv_set_voltage_sel()
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 in wm831x_buckv_set_suspend_voltage()
226 wm831x_buckv_set_voltage_sel(struct regulator_dev *rdev, unsigned vsel) wm831x_buckv_set_voltage_sel() argument
[all...]
H A 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()
H A 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()
241 device_property_present(&i2c->dev, "richtek,vsel-active-low"); in rt6160_probe()
H A Dtps51632-regulator.c111 int vsel; in tps51632_init_dcdc() local
117 vsel = TPS51632_VOLT_VSEL(pdata->base_voltage_uV); in tps51632_init_dcdc()
118 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); in tps51632_init_dcdc()
141 vsel = TPS51632_VOLT_VSEL(pdata->max_voltage_uV); in tps51632_init_dcdc()
143 vsel); in tps51632_init_dcdc()
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"); in bd7181x_probe()
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
H A 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()
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
H A 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()
/kernel/linux/linux-5.10/drivers/clk/samsung/
H A Dclk-pll.h101 .vsel = (_vsel), \
114 .vsel = (_vsel), \
128 unsigned int vsel; member
/kernel/linux/linux-6.6/drivers/clk/samsung/
H A Dclk-pll.h85 .vsel = (_vsel), \
98 .vsel = (_vsel), \
112 unsigned int vsel; member
/kernel/linux/linux-5.10/include/linux/mfd/
H A Dlp8788.h163 * @vsel : dvs selector for buck v1 register
167 enum lp8788_dvs_sel vsel; member
173 * @vsel : dvs selector for buck v2 register
177 enum lp8788_dvs_sel vsel; member

Completed in 14 milliseconds

123