Lines Matching full:regmap
14 #include <linux/regmap.h>
19 struct regmap;
36 void (*format_write)(struct regmap *map,
46 struct regmap *map;
50 struct regmap { struct
178 /* if set, the regmap core can sleep */ argument
185 int (*init)(struct regmap *map); argument
186 int (*exit)(struct regmap *map);
188 void (*debugfs_init)(struct regmap *map);
190 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value);
191 int (*write)(struct regmap *map, unsigned int reg, unsigned int value);
192 int (*sync)(struct regmap *map, unsigned int min, unsigned int max);
193 int (*drop)(struct regmap *map, unsigned int min, unsigned int max);
196 bool regmap_cached(struct regmap *map, unsigned int reg);
197 bool regmap_writeable(struct regmap *map, unsigned int reg);
198 bool regmap_readable(struct regmap *map, unsigned int reg);
199 bool regmap_volatile(struct regmap *map, unsigned int reg);
200 bool regmap_precious(struct regmap *map, unsigned int reg);
201 bool regmap_writeable_noinc(struct regmap *map, unsigned int reg);
202 bool regmap_readable_noinc(struct regmap *map, unsigned int reg);
204 int _regmap_write(struct regmap *map, unsigned int reg,
210 struct regmap *map;
224 struct regmap *regmap; member
236 extern void regmap_debugfs_init(struct regmap *map);
237 extern void regmap_debugfs_exit(struct regmap *map);
239 static inline void regmap_debugfs_disable(struct regmap *map) in regmap_debugfs_disable()
246 static inline void regmap_debugfs_init(struct regmap *map) { } in regmap_debugfs_init()
247 static inline void regmap_debugfs_exit(struct regmap *map) { } in regmap_debugfs_exit()
248 static inline void regmap_debugfs_disable(struct regmap *map) { } in regmap_debugfs_disable()
252 int regcache_init(struct regmap *map, const struct regmap_config *config);
253 void regcache_exit(struct regmap *map);
254 int regcache_read(struct regmap *map,
256 int regcache_write(struct regmap *map,
258 int regcache_sync(struct regmap *map);
259 int regcache_sync_block(struct regmap *map, void *block,
263 bool regcache_reg_needs_sync(struct regmap *map, unsigned int reg,
266 static inline const void *regcache_get_val_addr(struct regmap *map, in regcache_get_val_addr()
273 unsigned int regcache_get_val(struct regmap *map, const void *base,
275 void regcache_set_val(struct regmap *map, void *base, unsigned int idx,
277 int regcache_lookup_reg(struct regmap *map, unsigned int reg);
278 int regcache_sync_val(struct regmap *map, unsigned int reg, unsigned int val);
280 int _regmap_raw_write(struct regmap *map, unsigned int reg,
293 static inline const char *regmap_name(const struct regmap *map) in regmap_name()
301 static inline unsigned int regmap_get_offset(const struct regmap *map, in regmap_get_offset()
310 static inline unsigned int regcache_get_index_by_order(const struct regmap *map, in regcache_get_index_by_order()
327 struct regmap *__regmap_init_ram(const struct regmap_config *config,
335 struct regmap *__regmap_init_raw_ram(const struct regmap_config *config,