Searched refs:wm8400 (Results 1 – 9 of 9) sorted by relevance
/linux-2.6.39/drivers/mfd/ |
D | wm8400-core.c | 117 static int wm8400_read(struct wm8400 *wm8400, u8 reg, int num_regs, u16 *dest) in wm8400_read() argument 121 BUG_ON(reg + num_regs > ARRAY_SIZE(wm8400->reg_cache)); in wm8400_read() 126 ret = wm8400->read_dev(wm8400->io_data, reg, in wm8400_read() 137 memcpy(dest, &wm8400->reg_cache[reg], num_regs * sizeof(u16)); in wm8400_read() 142 static int wm8400_write(struct wm8400 *wm8400, u8 reg, int num_regs, in wm8400_write() argument 147 BUG_ON(reg + num_regs > ARRAY_SIZE(wm8400->reg_cache)); in wm8400_write() 151 wm8400->reg_cache[reg + i] = src[i]; in wm8400_write() 156 ret = wm8400->write_dev(wm8400->io_data, reg, num_regs, src); in wm8400_write() 171 u16 wm8400_reg_read(struct wm8400 *wm8400, u8 reg) in wm8400_reg_read() argument 175 mutex_lock(&wm8400->io_lock); in wm8400_reg_read() [all …]
|
D | Makefile | 24 obj-$(CONFIG_MFD_WM8400) += wm8400-core.o
|
/linux-2.6.39/drivers/regulator/ |
D | wm8400-regulator.c | 23 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_is_enabled() local 26 val = wm8400_reg_read(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev)); in wm8400_ldo_is_enabled() 32 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_enable() local 34 return wm8400_set_bits(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev), in wm8400_ldo_enable() 40 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_disable() local 42 return wm8400_set_bits(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev), in wm8400_ldo_disable() 60 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_get_voltage() local 63 val = wm8400_reg_read(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev)); in wm8400_ldo_get_voltage() 72 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_set_voltage() local 98 return wm8400_set_bits(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev), in wm8400_ldo_set_voltage() [all …]
|
D | Makefile | 27 obj-$(CONFIG_REGULATOR_WM8400) += wm8400-regulator.o
|
/linux-2.6.39/sound/soc/codecs/ |
D | wm8400.c | 69 struct wm8400 *wm8400; member 80 struct wm8400_priv *wm8400 = snd_soc_codec_get_drvdata(codec); in wm8400_read() local 83 return wm8400->fake_register; in wm8400_read() 85 return wm8400_reg_read(wm8400->wm8400, reg); in wm8400_read() 94 struct wm8400_priv *wm8400 = snd_soc_codec_get_drvdata(codec); in wm8400_write() local 97 wm8400->fake_register = value; in wm8400_write() 100 return wm8400_set_bits(wm8400->wm8400, reg, 0xffff, value); in wm8400_write() 105 struct wm8400_priv *wm8400 = snd_soc_codec_get_drvdata(codec); in wm8400_codec_reset() local 107 wm8400_reset_codec_reg_cache(wm8400->wm8400); in wm8400_codec_reset() 930 struct wm8400_priv *wm8400 = snd_soc_codec_get_drvdata(codec); in wm8400_set_dai_sysclk() local [all …]
|
D | Makefile | 41 snd-soc-wm8400-objs := wm8400.o 129 obj-$(CONFIG_SND_SOC_WM8400) += snd-soc-wm8400.o
|
/linux-2.6.39/include/linux/mfd/ |
D | wm8400-private.h | 30 struct wm8400 { struct 932 u16 wm8400_reg_read(struct wm8400 *wm8400, u8 reg); 933 int wm8400_block_read(struct wm8400 *wm8400, u8 reg, int count, u16 *data); 934 int wm8400_set_bits(struct wm8400 *wm8400, u8 reg, u16 mask, u16 val);
|
D | wm8400-audio.h | 1184 struct wm8400; 1185 void wm8400_reset_codec_reg_cache(struct wm8400 *wm8400);
|
/linux-2.6.39/ |
D | MAINTAINERS | 6902 F: include/linux/mfd/wm8400*
|