• Home
  • Raw
  • Download

Lines Matching refs:map

36 	void (*format_write)(struct regmap *map,
46 struct regmap *map; member
187 int (*init)(struct regmap *map);
188 int (*exit)(struct regmap *map);
190 void (*debugfs_init)(struct regmap *map);
192 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value);
193 int (*write)(struct regmap *map, unsigned int reg, unsigned int value);
194 int (*sync)(struct regmap *map, unsigned int min, unsigned int max);
195 int (*drop)(struct regmap *map, unsigned int min, unsigned int max);
198 bool regmap_cached(struct regmap *map, unsigned int reg);
199 bool regmap_writeable(struct regmap *map, unsigned int reg);
200 bool regmap_readable(struct regmap *map, unsigned int reg);
201 bool regmap_volatile(struct regmap *map, unsigned int reg);
202 bool regmap_precious(struct regmap *map, unsigned int reg);
203 bool regmap_writeable_noinc(struct regmap *map, unsigned int reg);
204 bool regmap_readable_noinc(struct regmap *map, unsigned int reg);
206 int _regmap_write(struct regmap *map, unsigned int reg,
212 struct regmap *map; member
238 extern void regmap_debugfs_init(struct regmap *map);
239 extern void regmap_debugfs_exit(struct regmap *map);
241 static inline void regmap_debugfs_disable(struct regmap *map) in regmap_debugfs_disable() argument
243 map->debugfs_disable = true; in regmap_debugfs_disable()
248 static inline void regmap_debugfs_init(struct regmap *map) { } in regmap_debugfs_init() argument
249 static inline void regmap_debugfs_exit(struct regmap *map) { } in regmap_debugfs_exit() argument
250 static inline void regmap_debugfs_disable(struct regmap *map) { } in regmap_debugfs_disable() argument
254 int regcache_init(struct regmap *map, const struct regmap_config *config);
255 void regcache_exit(struct regmap *map);
256 int regcache_read(struct regmap *map,
258 int regcache_write(struct regmap *map,
260 int regcache_sync(struct regmap *map);
261 int regcache_sync_block(struct regmap *map, void *block,
265 bool regcache_reg_needs_sync(struct regmap *map, unsigned int reg,
268 static inline const void *regcache_get_val_addr(struct regmap *map, in regcache_get_val_addr() argument
272 return base + (map->cache_word_size * idx); in regcache_get_val_addr()
275 unsigned int regcache_get_val(struct regmap *map, const void *base,
277 void regcache_set_val(struct regmap *map, void *base, unsigned int idx,
279 int regcache_lookup_reg(struct regmap *map, unsigned int reg);
280 int regcache_sync_val(struct regmap *map, unsigned int reg, unsigned int val);
282 int _regmap_raw_write(struct regmap *map, unsigned int reg,
295 static inline const char *regmap_name(const struct regmap *map) in regmap_name() argument
297 if (map->dev) in regmap_name()
298 return dev_name(map->dev); in regmap_name()
300 return map->name; in regmap_name()
303 static inline unsigned int regmap_get_offset(const struct regmap *map, in regmap_get_offset() argument
306 if (map->reg_stride_order >= 0) in regmap_get_offset()
307 return index << map->reg_stride_order; in regmap_get_offset()
309 return index * map->reg_stride; in regmap_get_offset()
312 static inline unsigned int regcache_get_index_by_order(const struct regmap *map, in regcache_get_index_by_order() argument
315 return reg >> map->reg_stride_order; in regcache_get_index_by_order()