Home
last modified time | relevance | path

Searched refs:ldo (Results 1 – 25 of 36) sorted by relevance

12

/linux-2.6.39/drivers/regulator/
Dwm831x-ldo.c51 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_ldo_is_enabled() local
52 struct wm831x *wm831x = ldo->wm831x; in wm831x_ldo_is_enabled()
68 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_ldo_enable() local
69 struct wm831x *wm831x = ldo->wm831x; in wm831x_ldo_enable()
77 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_ldo_disable() local
78 struct wm831x *wm831x = ldo->wm831x; in wm831x_ldo_disable()
86 struct wm831x_ldo *ldo = data; in wm831x_ldo_uv_irq() local
88 regulator_notifier_call_chain(ldo->regulator, in wm831x_ldo_uv_irq()
119 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_gp_ldo_set_voltage_int() local
120 struct wm831x *wm831x = ldo->wm831x; in wm831x_gp_ldo_set_voltage_int()
[all …]
Dwm8994-regulator.c40 struct wm8994_ldo *ldo = rdev_get_drvdata(rdev); in wm8994_ldo_enable() local
43 if (!ldo->enable) in wm8994_ldo_enable()
46 gpio_set_value(ldo->enable, 1); in wm8994_ldo_enable()
47 ldo->is_enabled = true; in wm8994_ldo_enable()
54 struct wm8994_ldo *ldo = rdev_get_drvdata(rdev); in wm8994_ldo_disable() local
57 if (!ldo->enable) in wm8994_ldo_disable()
60 gpio_set_value(ldo->enable, 0); in wm8994_ldo_disable()
61 ldo->is_enabled = false; in wm8994_ldo_disable()
68 struct wm8994_ldo *ldo = rdev_get_drvdata(rdev); in wm8994_ldo_is_enabled() local
70 return ldo->is_enabled; in wm8994_ldo_is_enabled()
[all …]
Dtps65023-regulator.c238 int data, ldo = rdev_get_id(dev); in tps65023_ldo_is_enabled() local
241 if (ldo < TPS65023_LDO_1 || ldo > TPS65023_LDO_2) in tps65023_ldo_is_enabled()
244 shift = (ldo == TPS65023_LDO_1 ? 1 : 2); in tps65023_ldo_is_enabled()
282 int ldo = rdev_get_id(dev); in tps65023_ldo_enable() local
285 if (ldo < TPS65023_LDO_1 || ldo > TPS65023_LDO_2) in tps65023_ldo_enable()
288 shift = (ldo == TPS65023_LDO_1 ? 1 : 2); in tps65023_ldo_enable()
295 int ldo = rdev_get_id(dev); in tps65023_ldo_disable() local
298 if (ldo < TPS65023_LDO_1 || ldo > TPS65023_LDO_2) in tps65023_ldo_disable()
301 shift = (ldo == TPS65023_LDO_1 ? 1 : 2); in tps65023_ldo_disable()
362 int data, ldo = rdev_get_id(dev); in tps65023_ldo_get_voltage() local
[all …]
Dtps6507x-regulator.c268 int data, ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_is_enabled() local
271 if (ldo < TPS6507X_LDO_1 || ldo > TPS6507X_LDO_2) in tps6507x_pmic_ldo_is_enabled()
274 shift = TPS6507X_MAX_REG_ID - ldo; in tps6507x_pmic_ldo_is_enabled()
313 int ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_enable() local
316 if (ldo < TPS6507X_LDO_1 || ldo > TPS6507X_LDO_2) in tps6507x_pmic_ldo_enable()
319 shift = TPS6507X_MAX_REG_ID - ldo; in tps6507x_pmic_ldo_enable()
326 int ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_disable() local
329 if (ldo < TPS6507X_LDO_1 || ldo > TPS6507X_LDO_2) in tps6507x_pmic_ldo_disable()
332 shift = TPS6507X_MAX_REG_ID - ldo; in tps6507x_pmic_ldo_disable()
434 int data, ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_get_voltage() local
[all …]
Dlp3972.c246 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_list_voltage() local
247 return 1000 * LP3972_LDO_VOL_VALUE_MAP(ldo)[index]; in lp3972_ldo_list_voltage()
253 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_is_enabled() local
254 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_is_enabled()
257 val = lp3972_reg_read(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo)); in lp3972_ldo_is_enabled()
264 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_enable() local
265 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_enable()
267 return lp3972_set_bits(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo), in lp3972_ldo_enable()
274 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_disable() local
275 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_disable()
[all …]
Dlp3971.c125 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_list_voltage() local
126 return 1000 * LDO_VOL_VALUE_MAP(ldo)[index]; in lp3971_ldo_list_voltage()
132 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_is_enabled() local
133 u16 mask = 1 << (1 + ldo); in lp3971_ldo_is_enabled()
143 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_enable() local
144 u16 mask = 1 << (1 + ldo); in lp3971_ldo_enable()
152 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_disable() local
153 u16 mask = 1 << (1 + ldo); in lp3971_ldo_disable()
161 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_get_voltage() local
164 reg = lp3971_reg_read(lp3971, LP3971_LDO_VOL_CONTR_REG(ldo)); in lp3971_ldo_get_voltage()
[all …]
Dmax8998.c124 int ldo = max8998_get_ldo(rdev); in max8998_list_voltage() local
127 if (ldo >= ARRAY_SIZE(ldo_voltage_map)) in max8998_list_voltage()
130 desc = ldo_voltage_map[ldo]; in max8998_list_voltage()
144 int ldo = max8998_get_ldo(rdev); in max8998_get_enable_register() local
146 switch (ldo) { in max8998_get_enable_register()
149 *shift = 3 - (ldo - MAX8998_LDO2); in max8998_get_enable_register()
153 *shift = 7 - (ldo - MAX8998_LDO6); in max8998_get_enable_register()
157 *shift = 7 - (ldo - MAX8998_LDO14); in max8998_get_enable_register()
161 *shift = 7 - (ldo - MAX8998_BUCK1); in max8998_get_enable_register()
165 *shift = 7 - (ldo - MAX8998_EN32KHZ_AP); in max8998_get_enable_register()
[all …]
Dwm8350-regulator.c663 int volt_reg, mV = uV / 1000, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_voltage() local
666 dev_dbg(wm8350->dev, "%s %d mV %d\n", __func__, ldo, mV); in wm8350_ldo_set_suspend_voltage()
670 ldo, mV); in wm8350_ldo_set_suspend_voltage()
674 switch (ldo) { in wm8350_ldo_set_suspend_voltage()
701 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_enable() local
704 switch (ldo) { in wm8350_ldo_set_suspend_enable()
730 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_disable() local
733 switch (ldo) { in wm8350_ldo_set_suspend_disable()
760 int volt_reg, ldo = rdev_get_id(rdev), mV, min_mV = min_uV / 1000, in wm8350_ldo_set_voltage() local
783 switch (ldo) { in wm8350_ldo_set_voltage()
[all …]
Dtps6586x-regulator.c277 TPS6586X_LDO(LDO_0, ldo, SUPPLYV1, 5, 3, ENC, 0, END, 0),
278 TPS6586X_LDO(LDO_3, ldo, SUPPLYV4, 0, 3, ENC, 2, END, 2),
279 TPS6586X_LDO(LDO_5, ldo, SUPPLYV6, 0, 3, ENE, 6, ENE, 6),
280 TPS6586X_LDO(LDO_6, ldo, SUPPLYV3, 0, 3, ENC, 4, END, 4),
281 TPS6586X_LDO(LDO_7, ldo, SUPPLYV3, 3, 3, ENC, 5, END, 5),
282 TPS6586X_LDO(LDO_8, ldo, SUPPLYV2, 5, 3, ENC, 6, END, 6),
283 TPS6586X_LDO(LDO_9, ldo, SUPPLYV6, 3, 3, ENE, 7, ENE, 7),
284 TPS6586X_LDO(LDO_RTC, ldo, SUPPLYV4, 3, 3, V4, 7, V4, 7),
/linux-2.6.39/arch/parisc/kernel/
Dhpmc.S127 ldo 128(sp),sp /* leave room for arguments */
134 ldo 8(%r0),%r4 /* PSW Q on, PSW M off */
140 ldo 4(%r4),%r4
155 ldo PDC_PIM(%r0), arg0
156 ldo PDC_PIM_HPMC(%r0),arg1 /* Transfer HPMC data */
164 ldo R%PA(os_hpmc_2)(rp), rp
171 ldo PDC_IO(%r0),arg0
172 ldo 0(%r0),arg1 /* log IO errors */
173 ldo 0(%r0),arg2 /* reserved */
174 ldo 0(%r0),arg3 /* reserved */
[all …]
Dsyscall.S117 ldo THREAD_SZ_ALGN+FRAME_SIZE(%r30),%r30 /* set up kernel stack */
163 ldo TASK_PT_FR0(%r1), %r27 /* save fpregs from the kernel */
172 ldo -16(%r30),%r29 /* Reference param save area */
194 ldo R%sys_call_table(%r1), %r19
196 ldo R%sys_call_table64(%r1), %r19
199 ldo R%sys_call_table(%r1), %r19
216 ldo R%syscall_exit(%r2),%r2
221 ldo R%syscall_exit_rfi(%r2),%r2
232 ldo -ENOSYS(%r0),%r28 /* set errno */
248 ldo -THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r1 /* get task ptr */
[all …]
Dhead.S83 ldo (PxD_FLAG_PRESENT+PxD_FLAG_VALID)(%r3),%r3
85 ldo ASM_PMD_ENTRY*ASM_PMD_ENTRY_SIZE(%r5),%r4
88 ldo ASM_PGD_ENTRY*ASM_PGD_ENTRY_SIZE(%r4),%r4
94 ldo (PxD_FLAG_PRESENT+PxD_FLAG_VALID)(%r3),%r3
100 ldo (PAGE_SIZE >> PxD_VALUE_SHIFT)(%r3),%r3
103 ldo ASM_PMD_ENTRY_SIZE(%r4),%r4
105 ldo ASM_PGD_ENTRY_SIZE(%r4),%r4
110 ldo 0+_PAGE_KERNEL(%r0),%r3 /* Hardwired 0 phys addr start */
116 ldo (1<<PFN_PTE_SHIFT)(%r3),%r3 /* add one PFN */
131 ldo THREAD_SZ_ALGN(%r6),%sp
[all …]
Dentry.S82 ldo 4(%r1), %r1
126 ldo TASK_REGS(%r9),%r9
132 ldo THREAD_SZ_ALGN(%r1), %r30
141 ldo PT_SZ_ALGN(%r30),%r30
367 ldo R%PA(swapper_pg_dir)(\reg),\reg
442 ldo ASM_PGD_PMD_OFFSET(\pgd),\pgd
717 ldo PT_SZ_ALGN(%r30),%r30
730 ldo CLONE_VM(%r26), %r26 /* Force CLONE_VM since only init_mm */
735 ldo -16(%r30),%r29 /* Reference param save area */
743 ldo -PT_SZ_ALGN(%r30), %r30
[all …]
Dreal2.S68 ldo 2*REG_SZ(%sp), %sp /* room for a couple more saves */
116 ldo -2*REG_SZ(%sp), %sp
176 ldo 4(%r1), %r1
210 ldo 4(%r1), %r1
250 ldo 64(%arg1), %r29
Dpacache.S69 ldo 4(%r1), %r1
180 ldo 4(%r1), %r1
336 ldo 128(%r25), %r25
339 ldo 128(%r26), %r26
390 ldo 64(%r25), %r25
393 ldo 64(%r26), %r26
517 ldo 64(%r28), %r28
519 ldo 64(%r29), %r29
578 ldo 128(%r28), %r28
601 ldo 64(%r28), %r28
[all …]
/linux-2.6.39/arch/parisc/hpux/
Dwrappers.S85 ldo TASK_REGS-TASK_SZ_ALGN-64(%r30),%r1 ;! get pt regs
90 ldo 64(%r30),%r30
102 ldo -64(%r30),%r30
103 ldo TASK_REGS-TASK_SZ_ALGN-64(%r30),%r1 ;! get pt regs
117 ldo -1024(%r0),%r1
121 ldo 1(%r0),%r29 /* r28 == 0, we are child, set r29 to 1 */
147 ldo TASK_REGS-TASK_SZ_ALGN-64(%r30),%r1 ;! get pt regs
162 ldo 64(%r30),%r30
166 ldo -64(%r30),%r30
171 ldo -1024(%r0),%r1
[all …]
Dgate.S45 ldo TASK_SZ_ALGN+FRAME_SIZE(%r30),%r30 /* set up kernel stack */
55 ldo -TASK_SZ_ALGN-FRAME_SIZE(%r30),%r1 /* get task ptr in %r1 */
78 ldo TASK_PT_FR0(%r1), %r27 /* save fpregs from the kernel */
92 ldo R%hpux_call_table(%r21), %r21
98 ldo R%hpux_syscall_exit(%r2),%r2
103 ldo -ENOSYS(%r0),%r28
/linux-2.6.39/sound/soc/codecs/
Dsgtl5000.c156 struct ldo_regulator *ldo; member
778 struct ldo_regulator *ldo = rdev_get_drvdata(dev); in ldo_regulator_is_enabled() local
780 return ldo->enabled; in ldo_regulator_is_enabled()
785 struct ldo_regulator *ldo = rdev_get_drvdata(dev); in ldo_regulator_enable() local
786 struct snd_soc_codec *codec = (struct snd_soc_codec *)ldo->codec_data; in ldo_regulator_enable()
793 reg = (1600 - ldo->voltage / 1000) / 50; in ldo_regulator_enable()
797 ldo->voltage = (1600 - reg * 50) * 1000; in ldo_regulator_enable()
812 ldo->enabled = 1; in ldo_regulator_enable()
818 struct ldo_regulator *ldo = rdev_get_drvdata(dev); in ldo_regulator_disable() local
819 struct snd_soc_codec *codec = (struct snd_soc_codec *)ldo->codec_data; in ldo_regulator_disable()
[all …]
Dsn95031.c272 unsigned int ldo = 0, clk_dir = 0, data_dir = 0; in sn95031_dmic12_event() local
275 ldo = BIT(5)|BIT(4); in sn95031_dmic12_event()
280 snd_soc_update_bits(w->codec, SN95031_MICBIAS, BIT(5)|BIT(4), ldo); in sn95031_dmic12_event()
289 unsigned int ldo = 0, clk_dir = 0, data_dir = 0; in sn95031_dmic34_event() local
292 ldo = BIT(5)|BIT(4); in sn95031_dmic34_event()
297 snd_soc_update_bits(w->codec, SN95031_MICBIAS, BIT(5)|BIT(4), ldo); in sn95031_dmic34_event()
306 unsigned int ldo = 0; in sn95031_dmic56_event() local
309 ldo = BIT(7)|BIT(6); in sn95031_dmic56_event()
312 snd_soc_update_bits(w->codec, SN95031_MICBIAS, BIT(7)|BIT(6), ldo); in sn95031_dmic56_event()
/linux-2.6.39/arch/parisc/lib/
Dfixup.S64 ldo 4(%r1), %r1
72 ldo 8(%r1), %r1
81 ldo 4(%r1), %r1
88 ldo 8(%r1), %r1
Dlusercopy.S59 ldo R%\lbl(%r1), %r1
129 ldo 1(%r25),%r25
165 ldo 1(%r26),%r26 /* special case for N == 0 */
/linux-2.6.39/drivers/ssb/
Ddriver_chipcommon_pmu.c582 int ldo; in ssb_pmu_set_ldo_paref() local
586 ldo = SSB_PMURES_4312_PA_REF_LDO; in ssb_pmu_set_ldo_paref()
589 ldo = SSB_PMURES_4328_PA_REF_LDO; in ssb_pmu_set_ldo_paref()
592 ldo = SSB_PMURES_5354_PA_REF_LDO; in ssb_pmu_set_ldo_paref()
599 chipco_set32(cc, SSB_CHIPCO_PMU_MINRES_MSK, 1 << ldo); in ssb_pmu_set_ldo_paref()
601 chipco_mask32(cc, SSB_CHIPCO_PMU_MINRES_MSK, ~(1 << ldo)); in ssb_pmu_set_ldo_paref()
/linux-2.6.39/include/linux/mfd/wm8994/
Dpdata.h85 struct wm8994_ldo_pdata ldo[WM8994_NUM_LDO]; member
/linux-2.6.39/drivers/mfd/
Dwm8994-core.c354 static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo) in wm8994_ldo_in_use() argument
361 ldo_pdata = &pdata->ldo[ldo]; in wm8994_ldo_in_use()
369 static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo) in wm8994_ldo_in_use() argument
/linux-2.6.39/include/linux/mfd/wm831x/
Dpdata.h135 struct regulator_init_data *ldo[WM831X_MAX_LDO]; member

12