Lines Matching refs:map
19 static int regcache_flat_init(struct regmap *map) in regcache_flat_init() argument
24 map->cache = kzalloc(sizeof(unsigned int) * (map->max_register + 1), in regcache_flat_init()
26 if (!map->cache) in regcache_flat_init()
29 cache = map->cache; in regcache_flat_init()
31 for (i = 0; i < map->num_reg_defaults; i++) in regcache_flat_init()
32 cache[map->reg_defaults[i].reg] = map->reg_defaults[i].def; in regcache_flat_init()
37 static int regcache_flat_exit(struct regmap *map) in regcache_flat_exit() argument
39 kfree(map->cache); in regcache_flat_exit()
40 map->cache = NULL; in regcache_flat_exit()
45 static int regcache_flat_read(struct regmap *map, in regcache_flat_read() argument
48 unsigned int *cache = map->cache; in regcache_flat_read()
55 static int regcache_flat_write(struct regmap *map, unsigned int reg, in regcache_flat_write() argument
58 unsigned int *cache = map->cache; in regcache_flat_write()