Lines Matching refs:map
35 void (*format_write)(struct regmap *map,
45 struct regmap *map; member
176 int (*init)(struct regmap *map);
177 int (*exit)(struct regmap *map);
179 void (*debugfs_init)(struct regmap *map);
181 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value);
182 int (*write)(struct regmap *map, unsigned int reg, unsigned int value);
183 int (*sync)(struct regmap *map, unsigned int min, unsigned int max);
184 int (*drop)(struct regmap *map, unsigned int min, unsigned int max);
187 bool regmap_cached(struct regmap *map, unsigned int reg);
188 bool regmap_writeable(struct regmap *map, unsigned int reg);
189 bool regmap_readable(struct regmap *map, unsigned int reg);
190 bool regmap_volatile(struct regmap *map, unsigned int reg);
191 bool regmap_precious(struct regmap *map, unsigned int reg);
192 bool regmap_writeable_noinc(struct regmap *map, unsigned int reg);
193 bool regmap_readable_noinc(struct regmap *map, unsigned int reg);
195 int _regmap_write(struct regmap *map, unsigned int reg,
201 struct regmap *map; member
227 extern void regmap_debugfs_init(struct regmap *map);
228 extern void regmap_debugfs_exit(struct regmap *map);
230 static inline void regmap_debugfs_disable(struct regmap *map) in regmap_debugfs_disable() argument
232 map->debugfs_disable = true; in regmap_debugfs_disable()
237 static inline void regmap_debugfs_init(struct regmap *map) { } in regmap_debugfs_init() argument
238 static inline void regmap_debugfs_exit(struct regmap *map) { } in regmap_debugfs_exit() argument
239 static inline void regmap_debugfs_disable(struct regmap *map) { } in regmap_debugfs_disable() argument
243 int regcache_init(struct regmap *map, const struct regmap_config *config);
244 void regcache_exit(struct regmap *map);
245 int regcache_read(struct regmap *map,
247 int regcache_write(struct regmap *map,
249 int regcache_sync(struct regmap *map);
250 int regcache_sync_block(struct regmap *map, void *block,
255 static inline const void *regcache_get_val_addr(struct regmap *map, in regcache_get_val_addr() argument
259 return base + (map->cache_word_size * idx); in regcache_get_val_addr()
262 unsigned int regcache_get_val(struct regmap *map, const void *base,
264 bool regcache_set_val(struct regmap *map, void *base, unsigned int idx,
266 int regcache_lookup_reg(struct regmap *map, unsigned int reg);
268 int _regmap_raw_write(struct regmap *map, unsigned int reg,
281 static inline const char *regmap_name(const struct regmap *map) in regmap_name() argument
283 if (map->dev) in regmap_name()
284 return dev_name(map->dev); in regmap_name()
286 return map->name; in regmap_name()
289 static inline unsigned int regmap_get_offset(const struct regmap *map, in regmap_get_offset() argument
292 if (map->reg_stride_order >= 0) in regmap_get_offset()
293 return index << map->reg_stride_order; in regmap_get_offset()
295 return index * map->reg_stride; in regmap_get_offset()
298 static inline unsigned int regcache_get_index_by_order(const struct regmap *map, in regcache_get_index_by_order() argument
301 return reg >> map->reg_stride_order; in regcache_get_index_by_order()