Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/mfd/
Dmc13xxx-core.c22 struct mc13xxx { struct
32 struct mc13xxx mc13xxx; argument
37 struct mc13xxx *mc13783_to_mc13xxx(struct mc13783 *mc13783) in mc13783_to_mc13xxx()
39 return &mc13783->mc13xxx; in mc13783_to_mc13xxx()
150 void mc13xxx_lock(struct mc13xxx *mc13xxx) in mc13xxx_lock() argument
152 if (!mutex_trylock(&mc13xxx->lock)) { in mc13xxx_lock()
153 dev_dbg(&mc13xxx->spidev->dev, "wait for %s from %pf\n", in mc13xxx_lock()
156 mutex_lock(&mc13xxx->lock); in mc13xxx_lock()
158 dev_dbg(&mc13xxx->spidev->dev, "%s from %pf\n", in mc13xxx_lock()
163 void mc13xxx_unlock(struct mc13xxx *mc13xxx) in mc13xxx_unlock() argument
[all …]
DMakefile46 obj-$(CONFIG_MFD_MC13XXX) += mc13xxx-core.o
/linux-2.6.39/drivers/rtc/
Drtc-mc13xxx.c28 struct mc13xxx *mc13xxx; member
36 int (*func)(struct mc13xxx *mc13xxx, int irq); in mc13xxx_rtc_irq_enable_unlocked()
42 return func(priv->mc13xxx, irq); in mc13xxx_rtc_irq_enable_unlocked()
51 mc13xxx_lock(priv->mc13xxx); in mc13xxx_rtc_irq_enable()
55 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_rtc_irq_enable()
67 mc13xxx_lock(priv->mc13xxx); in mc13xxx_rtc_read_time()
74 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days1); in mc13xxx_rtc_read_time()
78 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTOD, &seconds); in mc13xxx_rtc_read_time()
82 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days2); in mc13xxx_rtc_read_time()
84 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_rtc_read_time()
[all …]
DMakefile64 obj-$(CONFIG_RTC_DRV_MC13XXX) += rtc-mc13xxx.o
/linux-2.6.39/include/linux/mfd/
Dmc13xxx.h14 struct mc13xxx;
16 void mc13xxx_lock(struct mc13xxx *mc13xxx);
17 void mc13xxx_unlock(struct mc13xxx *mc13xxx);
19 int mc13xxx_reg_read(struct mc13xxx *mc13xxx, unsigned int offset, u32 *val);
20 int mc13xxx_reg_write(struct mc13xxx *mc13xxx, unsigned int offset, u32 val);
21 int mc13xxx_reg_rmw(struct mc13xxx *mc13xxx, unsigned int offset,
24 int mc13xxx_get_flags(struct mc13xxx *mc13xxx);
26 int mc13xxx_irq_request(struct mc13xxx *mc13xxx, int irq,
28 int mc13xxx_irq_request_nounmask(struct mc13xxx *mc13xxx, int irq,
30 int mc13xxx_irq_free(struct mc13xxx *mc13xxx, int irq, void *dev);
[all …]
Dmc13783.h17 struct mc13xxx *mc13783_to_mc13xxx(struct mc13783 *mc13783);
/linux-2.6.39/drivers/regulator/
Dmc13xxx-regulator-core.c37 mc13xxx_lock(priv->mc13xxx); in mc13xxx_regulator_enable()
38 ret = mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, in mc13xxx_regulator_enable()
41 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_regulator_enable()
55 mc13xxx_lock(priv->mc13xxx); in mc13xxx_regulator_disable()
56 ret = mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, in mc13xxx_regulator_disable()
58 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_regulator_disable()
70 mc13xxx_lock(priv->mc13xxx); in mc13xxx_regulator_is_enabled()
71 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); in mc13xxx_regulator_is_enabled()
72 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_regulator_is_enabled()
146 mc13xxx_lock(priv->mc13xxx); in mc13xxx_regulator_set_voltage()
[all …]
Dmc13892-regulator.c302 struct mc13xxx *mc13892 = priv->mc13xxx; in mc13892_powermisc_rmw()
343 mc13xxx_lock(priv->mc13xxx); in mc13892_gpo_regulator_enable()
345 mc13xxx_unlock(priv->mc13xxx); in mc13892_gpo_regulator_enable()
363 mc13xxx_lock(priv->mc13xxx); in mc13892_gpo_regulator_disable()
366 mc13xxx_unlock(priv->mc13xxx); in mc13892_gpo_regulator_disable()
377 mc13xxx_lock(priv->mc13xxx); in mc13892_gpo_regulator_is_enabled()
378 ret = mc13xxx_reg_read(priv->mc13xxx, mc13892_regulators[id].reg, &val); in mc13892_gpo_regulator_is_enabled()
379 mc13xxx_unlock(priv->mc13xxx); in mc13892_gpo_regulator_is_enabled()
410 mc13xxx_lock(priv->mc13xxx); in mc13892_sw_regulator_get_voltage()
411 ret = mc13xxx_reg_read(priv->mc13xxx, in mc13892_sw_regulator_get_voltage()
[all …]
Dmc13783-regulator.c235 struct mc13xxx *mc13783 = priv->mc13xxx; in mc13783_powermisc_rmw()
274 mc13xxx_lock(priv->mc13xxx); in mc13783_gpo_regulator_enable()
277 mc13xxx_unlock(priv->mc13xxx); in mc13783_gpo_regulator_enable()
297 mc13xxx_lock(priv->mc13xxx); in mc13783_gpo_regulator_disable()
300 mc13xxx_unlock(priv->mc13xxx); in mc13783_gpo_regulator_disable()
312 mc13xxx_lock(priv->mc13xxx); in mc13783_gpo_regulator_is_enabled()
313 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); in mc13783_gpo_regulator_is_enabled()
314 mc13xxx_unlock(priv->mc13xxx); in mc13783_gpo_regulator_is_enabled()
339 struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); in mc13783_regulator_probe()
353 priv->mc13xxx = mc13783; in mc13783_regulator_probe()
Dmc13xxx.h29 struct mc13xxx *mc13xxx; member
DMakefile35 obj-$(CONFIG_REGULATOR_MC13XXX_CORE) += mc13xxx-regulator-core.o