Home
last modified time | relevance | path

Searched refs:vreg (Results 1 – 11 of 11) sorted by relevance

/linux-2.6.39/arch/arm/mach-msm/
Dvreg.c27 struct vreg { struct
37 static struct vreg vregs[] = { argument
88 struct vreg *vreg_get(struct device *dev, const char *id) in vreg_get()
98 void vreg_put(struct vreg *vreg) in vreg_put() argument
102 int vreg_enable(struct vreg *vreg) in vreg_enable() argument
104 unsigned id = vreg->id; in vreg_enable()
107 if (vreg->refcnt == 0) in vreg_enable()
108 vreg->status = msm_proc_comm(PCOM_VREG_SWITCH, &id, &enable); in vreg_enable()
110 if ((vreg->refcnt < UINT_MAX) && (!vreg->status)) in vreg_enable()
111 vreg->refcnt++; in vreg_enable()
[all …]
Dboard-trout-panel.c175 static struct vreg *vreg_mddi_1v5;
176 static struct vreg *vreg_lcm_2v85;
DMakefile12 obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o
Dboard-qsd8x50.c111 static struct vreg *vreg_mmc;
Dboard-trout-mmc.c72 static struct vreg *vreg_sdslot; /* SD slot power */
/linux-2.6.39/drivers/regulator/
Dpcap-regulator.c157 struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)]; in pcap_regulator_set_voltage() local
163 if (vreg->n_voltages == 1) in pcap_regulator_set_voltage()
166 for (i = 0; i < vreg->n_voltages; i++) { in pcap_regulator_set_voltage()
170 else if (i + 1 == vreg->n_voltages && rdev_get_id(rdev) == V1) in pcap_regulator_set_voltage()
173 uV = vreg->voltage_table[i] * 1000; in pcap_regulator_set_voltage()
176 return ezx_pcap_set_bits(pcap, vreg->reg, in pcap_regulator_set_voltage()
177 (vreg->n_voltages - 1) << vreg->index, in pcap_regulator_set_voltage()
178 i << vreg->index); in pcap_regulator_set_voltage()
182 i = vreg->n_voltages - 1; in pcap_regulator_set_voltage()
191 struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)]; in pcap_regulator_get_voltage() local
[all …]
Dda903x.c394 #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
407 .vol_reg = _pmic##_##vreg, \
414 #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
427 .vol_reg = _pmic##_##vreg, \
436 #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
437 DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
439 #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
440 DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
442 #define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
443 DA903x_DVC(DA9030, _id, min, max, step, vreg, nbits, ureg, ubit, \
[all …]
D88pm8607.c338 #define PM8607_DVC(vreg, nbits, ureg, ubit, ereg, ebit) \ argument
341 .name = #vreg, \
344 .id = PM8607_ID_##vreg, \
347 .vol_reg = PM8607_##vreg, \
355 .vol_table = (unsigned int *)&vreg##_table, \
356 .vol_suspend = (unsigned int *)&vreg##_suspend_table, \
359 #define PM8607_LDO(_id, vreg, shift, nbits, ereg, ebit) \ argument
368 .vol_reg = PM8607_##vreg, \
Dtps6586x-regulator.c238 #define TPS6586X_REGULATOR(_id, vdata, _ops, vreg, shift, nbits, \ argument
248 .volt_reg = TPS6586X_##vreg, \
261 #define TPS6586X_LDO(_id, vdata, vreg, shift, nbits, \ argument
264 TPS6586X_REGULATOR(_id, vdata, ldo_ops, vreg, shift, nbits, \
268 #define TPS6586X_DVM(_id, vdata, vreg, shift, nbits, \ argument
271 TPS6586X_REGULATOR(_id, vdata, dvm_ops, vreg, shift, nbits, \
/linux-2.6.39/arch/arm/mach-msm/include/mach/
Dvreg.h20 struct vreg;
22 struct vreg *vreg_get(struct device *dev, const char *id);
23 void vreg_put(struct vreg *vreg);
25 int vreg_enable(struct vreg *vreg);
26 int vreg_disable(struct vreg *vreg);
27 int vreg_set_level(struct vreg *vreg, unsigned mv);
/linux-2.6.39/arch/powerpc/boot/
Dcpm-serial.c200 void *vreg[2]; in cpm_console_init() local
232 if (dt_get_virtual_reg(devp, vreg, 2) < 2) in cpm_console_init()
236 smc = vreg[0]; in cpm_console_init()
238 scc = vreg[0]; in cpm_console_init()
240 param = vreg[1]; in cpm_console_init()