Home
last modified time | relevance | path

Searched refs:regmap (Results 1 – 25 of 65) sorted by relevance

123

/linux-3.3/drivers/base/regmap/
Dinternal.h19 struct regmap;
26 void (*format_write)(struct regmap *map,
33 struct regmap { struct
83 int (*init)(struct regmap *map); argument
84 int (*exit)(struct regmap *map);
85 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value);
86 int (*write)(struct regmap *map, unsigned int reg, unsigned int value);
87 int (*sync)(struct regmap *map);
90 bool regmap_writeable(struct regmap *map, unsigned int reg);
91 bool regmap_readable(struct regmap *map, unsigned int reg);
[all …]
DMakefile1 obj-$(CONFIG_REGMAP) += regmap.o regcache.o
3 obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o
4 obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o
5 obj-$(CONFIG_REGMAP_SPI) += regmap-spi.o
6 obj-$(CONFIG_REGMAP_IRQ) += regmap-irq.o
Dregmap.c23 bool regmap_writeable(struct regmap *map, unsigned int reg) in regmap_writeable()
34 bool regmap_readable(struct regmap *map, unsigned int reg) in regmap_readable()
45 bool regmap_volatile(struct regmap *map, unsigned int reg) in regmap_volatile()
56 bool regmap_precious(struct regmap *map, unsigned int reg) in regmap_precious()
67 static bool regmap_volatile_range(struct regmap *map, unsigned int reg, in regmap_volatile_range()
79 static void regmap_format_4_12_write(struct regmap *map, in regmap_format_4_12_write()
86 static void regmap_format_7_9_write(struct regmap *map, in regmap_format_7_9_write()
93 static void regmap_format_10_14_write(struct regmap *map, in regmap_format_10_14_write()
144 struct regmap *regmap_init(struct device *dev, in regmap_init()
148 struct regmap *map; in regmap_init()
[all …]
Dregcache-lzo.c18 static int regcache_lzo_exit(struct regmap *map);
32 static int regcache_lzo_block_count(struct regmap *map) in regcache_lzo_block_count()
71 static int regcache_lzo_compress_cache_block(struct regmap *map, in regcache_lzo_compress_cache_block()
89 static int regcache_lzo_decompress_cache_block(struct regmap *map, in regcache_lzo_decompress_cache_block()
107 static inline int regcache_lzo_get_blkindex(struct regmap *map, in regcache_lzo_get_blkindex()
115 static inline int regcache_lzo_get_blkpos(struct regmap *map, in regcache_lzo_get_blkpos()
123 static inline int regcache_lzo_get_blksize(struct regmap *map) in regcache_lzo_get_blksize()
129 static int regcache_lzo_init(struct regmap *map) in regcache_lzo_init()
202 static int regcache_lzo_exit(struct regmap *map) in regcache_lzo_exit()
232 static int regcache_lzo_read(struct regmap *map, in regcache_lzo_read()
[all …]
Dregcache-rbtree.c20 static int regcache_rbtree_write(struct regmap *map, unsigned int reg,
22 static int regcache_rbtree_exit(struct regmap *map);
62 static struct regcache_rbtree_node *regcache_rbtree_lookup(struct regmap *map, in regcache_rbtree_lookup()
133 struct regmap *map = s->private; in rbtree_show()
174 static void rbtree_debugfs_init(struct regmap *map) in rbtree_debugfs_init()
179 static void rbtree_debugfs_init(struct regmap *map) in rbtree_debugfs_init()
184 static int regcache_rbtree_init(struct regmap *map) in regcache_rbtree_init()
215 static int regcache_rbtree_exit(struct regmap *map) in regcache_rbtree_exit()
243 static int regcache_rbtree_read(struct regmap *map, in regcache_rbtree_read()
288 static int regcache_rbtree_write(struct regmap *map, unsigned int reg, in regcache_rbtree_write()
[all …]
Dregcache.c26 static int regcache_hw_init(struct regmap *map) in regcache_hw_init()
89 int regcache_init(struct regmap *map, const struct regmap_config *config) in regcache_init()
166 void regcache_exit(struct regmap *map) in regcache_exit()
193 int regcache_read(struct regmap *map, in regcache_read()
225 int regcache_write(struct regmap *map, in regcache_write()
254 int regcache_sync(struct regmap *map) in regcache_sync()
313 void regcache_cache_only(struct regmap *map, bool enable) in regcache_cache_only()
331 void regcache_mark_dirty(struct regmap *map) in regcache_mark_dirty()
350 void regcache_cache_bypass(struct regmap *map, bool enable) in regcache_cache_bypass()
414 int regcache_lookup_reg(struct regmap *map, unsigned int reg) in regcache_lookup_reg()
/linux-3.3/include/linux/
Dregmap.h122 struct regmap *regmap_init(struct device *dev,
125 struct regmap *regmap_init_i2c(struct i2c_client *i2c,
127 struct regmap *regmap_init_spi(struct spi_device *dev,
130 void regmap_exit(struct regmap *map);
131 int regmap_reinit_cache(struct regmap *map,
133 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
134 int regmap_raw_write(struct regmap *map, unsigned int reg,
136 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
137 int regmap_raw_read(struct regmap *map, unsigned int reg,
139 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
[all …]
/linux-3.3/sound/soc/codecs/
Dad193x.c26 struct regmap *regmap; member
112 regmap_update_bits(ad193x->regmap, AD193X_DAC_CTRL2, in ad193x_mute()
116 regmap_update_bits(ad193x->regmap, AD193X_DAC_CTRL2, in ad193x_mute()
145 regmap_update_bits(ad193x->regmap, AD193X_DAC_CTRL1, in ad193x_set_tdm_slot()
147 regmap_update_bits(ad193x->regmap, AD193X_ADC_CTRL2, in ad193x_set_tdm_slot()
217 regmap_update_bits(ad193x->regmap, AD193X_ADC_CTRL1, in ad193x_set_dai_fmt()
219 regmap_update_bits(ad193x->regmap, AD193X_ADC_CTRL2, in ad193x_set_dai_fmt()
221 regmap_update_bits(ad193x->regmap, AD193X_DAC_CTRL1, in ad193x_set_dai_fmt()
282 regmap_update_bits(ad193x->regmap, AD193X_PLL_CLK_CTRL0, in ad193x_hw_params()
285 regmap_update_bits(ad193x->regmap, AD193X_DAC_CTRL2, in ad193x_hw_params()
[all …]
Dalc5632.c85 struct regmap *regmap; member
111 static inline int alc5632_reset(struct regmap *map) in alc5632_reset()
969 regcache_sync(alc5632->regmap); in alc5632_resume()
984 codec->control_data = alc5632->regmap; in alc5632_probe()
1059 alc5632->regmap = regmap_init_i2c(client, &alc5632_regmap); in alc5632_i2c_probe()
1060 if (IS_ERR(alc5632->regmap)) { in alc5632_i2c_probe()
1061 ret = PTR_ERR(alc5632->regmap); in alc5632_i2c_probe()
1066 ret1 = regmap_read(alc5632->regmap, ALC5632_VENDOR_ID1, &vid1); in alc5632_i2c_probe()
1067 ret2 = regmap_read(alc5632->regmap, ALC5632_VENDOR_ID2, &vid2); in alc5632_i2c_probe()
1071 regmap_exit(alc5632->regmap); in alc5632_i2c_probe()
[all …]
Dcs42l73.c39 struct regmap *regmap; member
1149 regcache_cache_only(cs42l73->regmap, false); in cs42l73_set_bias_level()
1150 regcache_sync(cs42l73->regmap); in cs42l73_set_bias_level()
1283 codec->control_data = cs42l73->regmap; in cs42l73_probe()
1291 regcache_cache_only(cs42l73->regmap, true); in cs42l73_probe()
1352 cs42l73->regmap = regmap_init_i2c(i2c_client, &cs42l73_regmap); in cs42l73_i2c_probe()
1353 if (IS_ERR(cs42l73->regmap)) { in cs42l73_i2c_probe()
1354 ret = PTR_ERR(cs42l73->regmap); in cs42l73_i2c_probe()
1359 ret = regmap_read(cs42l73->regmap, CS42L73_DEVID_AB, &reg); in cs42l73_i2c_probe()
1362 ret = regmap_read(cs42l73->regmap, CS42L73_DEVID_CD, &reg); in cs42l73_i2c_probe()
[all …]
Dsigmadsp.h19 struct regmap *regmap, const char *name);
/linux-3.3/drivers/regulator/
Dmax8649.c54 struct regmap *regmap; member
86 ret = regmap_read(info->regmap, info->vol_reg, &val); in max8649_get_voltage()
109 return regmap_update_bits(info->regmap, info->vol_reg, mask, data); in max8649_set_voltage()
116 return regmap_update_bits(info->regmap, MAX8649_CONTROL, MAX8649_EN_PD, 0); in max8649_enable()
126 return regmap_update_bits(info->regmap, MAX8649_CONTROL, MAX8649_EN_PD, in max8649_disable()
136 ret = regmap_read(info->regmap, MAX8649_CONTROL, &val); in max8649_is_enabled()
149 ret = regmap_read(info->regmap, info->vol_reg, &val); in max8649_enable_time()
156 ret = regmap_read(info->regmap, MAX8649_RAMP, &val); in max8649_enable_time()
171 regmap_update_bits(info->regmap, info->vol_reg, MAX8649_FORCE_PWM, in max8649_set_mode()
175 regmap_update_bits(info->regmap, info->vol_reg, in max8649_set_mode()
[all …]
Dtps65023-regulator.c145 struct regmap *regmap; member
166 ret = regmap_read(tps->regmap, TPS65023_REG_REG_CTRL, &data); in tps65023_dcdc_is_enabled()
185 ret = regmap_read(tps->regmap, TPS65023_REG_REG_CTRL, &data); in tps65023_ldo_is_enabled()
203 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 1 << shift); in tps65023_dcdc_enable()
216 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 0); in tps65023_dcdc_disable()
229 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 1 << shift); in tps65023_ldo_enable()
242 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 0); in tps65023_ldo_disable()
255 ret = regmap_read(tps->regmap, TPS65023_REG_DEF_CORE, &data); in tps65023_dcdc_get_voltage()
296 ret = regmap_write(tps->regmap, TPS65023_REG_DEF_CORE, vsel); in tps65023_dcdc_set_voltage()
301 regmap_update_bits(tps->regmap, TPS65023_REG_CON_CTRL2, in tps65023_dcdc_set_voltage()
[all …]
/linux-3.3/drivers/staging/iio/dac/
Dad5380.c60 struct regmap *regmap; member
191 ret = regmap_write(st->regmap, AD5380_REG_SF_PWR_DOWN, 0); in ad5380_write_dac_powerdown()
193 ret = regmap_write(st->regmap, AD5380_REG_SF_PWR_UP, 0); in ad5380_write_dac_powerdown()
220 ret = regmap_read(st->regmap, AD5380_REG_SF_CTRL, &mode); in ad5380_read_powerdown_mode()
245 ret = regmap_update_bits(st->regmap, AD5380_REG_SF_CTRL, in ad5380_write_powerdown_mode()
300 return regmap_write(st->regmap, in ad5380_write_raw()
308 return regmap_write(st->regmap, in ad5380_write_raw()
327 ret = regmap_read(st->regmap, ad5380_info_to_reg(chan, info), in ad5380_read_raw()
334 ret = regmap_read(st->regmap, AD5380_REG_OFFSET(chan->address), in ad5380_read_raw()
383 static int __devinit ad5380_probe(struct device *dev, struct regmap *regmap, in ad5380_probe() argument
[all …]
/linux-3.3/drivers/mfd/
Ds5m-core.c39 return regmap_read(s5m87xx->regmap, reg, dest); in s5m_reg_read()
45 return regmap_bulk_read(s5m87xx->regmap, reg, buf, count);; in s5m_bulk_read()
51 return regmap_write(s5m87xx->regmap, reg, value); in s5m_reg_write()
57 return regmap_raw_write(s5m87xx->regmap, reg, buf, count * sizeof(u16)); in s5m_bulk_write()
63 return regmap_update_bits(s5m87xx->regmap, reg, mask, val); in s5m_reg_update()
97 s5m87xx->regmap = regmap_init_i2c(i2c, &s5m_regmap_config); in s5m87xx_i2c_probe()
98 if (IS_ERR(s5m87xx->regmap)) { in s5m87xx_i2c_probe()
99 error = PTR_ERR(s5m87xx->regmap); in s5m87xx_i2c_probe()
128 regmap_exit(s5m87xx->regmap); in s5m87xx_i2c_probe()
140 regmap_exit(s5m87xx->regmap); in s5m87xx_i2c_remove()
D88pm860x-i2c.c23 struct regmap *map = (i2c == chip->client) ? chip->regmap in pm860x_reg_read()
40 struct regmap *map = (i2c == chip->client) ? chip->regmap in pm860x_reg_write()
53 struct regmap *map = (i2c == chip->client) ? chip->regmap in pm860x_bulk_read()
66 struct regmap *map = (i2c == chip->client) ? chip->regmap in pm860x_bulk_write()
79 struct regmap *map = (i2c == chip->client) ? chip->regmap in pm860x_set_bits()
284 chip->regmap = regmap_init_i2c(client, &pm860x_regmap_config); in pm860x_probe()
285 if (IS_ERR(chip->regmap)) { in pm860x_probe()
286 ret = PTR_ERR(chip->regmap); in pm860x_probe()
332 regmap_exit(chip->regmap); in pm860x_remove()
Dpcf50633-core.c37 ret = regmap_raw_read(pcf->regmap, reg, data, nr_regs); in pcf50633_read_block()
51 ret = regmap_raw_write(pcf->regmap, reg, data, nr_regs); in pcf50633_write_block()
64 ret = regmap_read(pcf->regmap, reg, &val); in pcf50633_reg_read()
74 return regmap_write(pcf->regmap, reg, val); in pcf50633_reg_write()
80 return regmap_update_bits(pcf->regmap, reg, mask, val); in pcf50633_reg_set_bit_mask()
86 return regmap_update_bits(pcf->regmap, reg, val, 0); in pcf50633_reg_clear_bits()
221 pcf->regmap = regmap_init_i2c(client, &pcf50633_regmap_config); in pcf50633_probe()
222 if (IS_ERR(pcf->regmap)) { in pcf50633_probe()
223 ret = PTR_ERR(pcf->regmap); in pcf50633_probe()
285 regmap_exit(pcf->regmap); in pcf50633_probe()
[all …]
Dwm8994-core.c44 ret = regmap_read(wm8994->regmap, reg, &val); in wm8994_reg_read()
64 return regmap_bulk_read(wm8994->regmap, reg, buf, count); in wm8994_bulk_read()
77 return regmap_write(wm8994->regmap, reg, val); in wm8994_reg_write()
92 return regmap_raw_write(wm8994->regmap, reg, buf, count * sizeof(u16)); in wm8994_bulk_write()
107 return regmap_update_bits(wm8994->regmap, reg, mask, val); in wm8994_set_bits()
286 regcache_cache_only(wm8994->regmap, true); in wm8994_suspend()
287 regcache_mark_dirty(wm8994->regmap); in wm8994_suspend()
317 regcache_cache_only(wm8994->regmap, false); in wm8994_resume()
318 ret = regcache_sync(wm8994->regmap); in wm8994_resume()
522 ret = regmap_reinit_cache(wm8994->regmap, regmap_config); in wm8994_device_init()
[all …]
Dda9052-i2c.c29 ret = regmap_read(da9052->regmap, DA9052_CONTROL_B_REG, &reg_val); in da9052_i2c_enable_multiwrite()
35 ret = regmap_write(da9052->regmap, DA9052_CONTROL_B_REG, in da9052_i2c_enable_multiwrite()
67 da9052->regmap = regmap_init_i2c(client, &da9052_regmap_config); in da9052_i2c_probe()
68 if (IS_ERR(da9052->regmap)) { in da9052_i2c_probe()
69 ret = PTR_ERR(da9052->regmap); in da9052_i2c_probe()
Dwm8400-core.c129 ret = regmap_bulk_read(wm8400->regmap, reg, dest, in wm8400_read()
150 ret = regmap_write(wm8400->regmap, reg, src[i]); in wm8400_write()
268 ret = regmap_read(wm8400->regmap, WM8400_RESET_ID, &i); in wm8400_init()
283 ret = regmap_raw_read(wm8400->regmap, 0, wm8400->reg_cache, in wm8400_init()
353 wm8400->regmap = regmap_init_i2c(i2c, &wm8400_regmap_config); in wm8400_i2c_probe()
354 if (IS_ERR(wm8400->regmap)) { in wm8400_i2c_probe()
355 ret = PTR_ERR(wm8400->regmap); in wm8400_i2c_probe()
369 regmap_exit(wm8400->regmap); in wm8400_i2c_probe()
379 regmap_exit(wm8400->regmap); in wm8400_i2c_remove()
Dda9052-spi.c45 da9052->regmap = regmap_init_spi(spi, &da9052_regmap_config); in da9052_spi_probe()
46 if (IS_ERR(da9052->regmap)) { in da9052_spi_probe()
47 ret = PTR_ERR(da9052->regmap); in da9052_spi_probe()
Dwm831x-i2c.c40 wm831x->regmap = regmap_init_i2c(i2c, &wm831x_regmap_config); in wm831x_i2c_probe()
41 if (IS_ERR(wm831x->regmap)) { in wm831x_i2c_probe()
42 ret = PTR_ERR(wm831x->regmap); in wm831x_i2c_probe()
/linux-3.3/include/linux/mfd/da9052/
Dda9052.h82 struct regmap *regmap; member
95 ret = regmap_read(da9052->regmap, reg, &val); in da9052_reg_read()
104 return regmap_write(da9052->regmap, reg, val); in da9052_reg_write()
110 return regmap_bulk_read(da9052->regmap, reg, val, reg_cnt); in da9052_group_read()
116 return regmap_raw_write(da9052->regmap, reg, val, reg_cnt); in da9052_group_write()
123 return regmap_update_bits(da9052->regmap, reg, bit_mask, reg_val); in da9052_reg_update()
/linux-3.3/sound/i2c/
Dcs8427.c53 unsigned char regmap[0x14]; /* map of first 1 + 13 registers */ member
102 if (udata != (chip->regmap[CS8427_REG_CSDATABUF] & udata)) { in snd_cs8427_select_corudata()
103 chip->regmap[CS8427_REG_CSDATABUF] &= ~CS8427_BSEL; in snd_cs8427_select_corudata()
104 chip->regmap[CS8427_REG_CSDATABUF] |= udata; in snd_cs8427_select_corudata()
106 chip->regmap[CS8427_REG_CSDATABUF]); in snd_cs8427_select_corudata()
132 chip->regmap[CS8427_REG_UDATABUF] &= ~CS8427_UBMMASK; in snd_cs8427_send_corudata()
133 chip->regmap[CS8427_REG_UDATABUF] |= CS8427_UBMZEROS | in snd_cs8427_send_corudata()
136 chip->regmap[CS8427_REG_UDATABUF]); in snd_cs8427_send_corudata()
240 memcpy(chip->regmap + (initvals1[0] & 0x7f), initvals1 + 1, 6); in snd_cs8427_create()
252 memcpy(chip->regmap + (initvals2[0] & 0x7f), initvals2 + 1, 3); in snd_cs8427_create()
[all …]
/linux-3.3/include/linux/mfd/wm8994/
Dcore.h29 struct regmap;
62 struct regmap *regmap; member

123