Lines Matching refs:reg_defaults
50 map->reg_defaults = kmalloc_array(count, sizeof(struct reg_default), in regcache_hw_init()
52 if (!map->reg_defaults) in regcache_hw_init()
102 map->reg_defaults[j].reg = reg; in regcache_hw_init()
103 map->reg_defaults[j].def = val; in regcache_hw_init()
110 kfree(map->reg_defaults); in regcache_hw_init()
122 if (config->reg_defaults || config->num_reg_defaults_raw) in regcache_init()
130 if (config->reg_defaults && !config->num_reg_defaults) { in regcache_init()
137 if (config->reg_defaults[i].reg % map->reg_stride) in regcache_init()
168 if (config->reg_defaults) { in regcache_init()
169 tmp_buf = kmemdup(config->reg_defaults, map->num_reg_defaults * in regcache_init()
173 map->reg_defaults = tmp_buf; in regcache_init()
199 kfree(map->reg_defaults); in regcache_init()
213 kfree(map->reg_defaults); in regcache_exit()
289 if (ret >= 0 && val == map->reg_defaults[ret].def) in regcache_reg_needs_sync()
651 r = bsearch(&key, map->reg_defaults, map->num_reg_defaults, in regcache_lookup_reg()
655 return r - map->reg_defaults; in regcache_lookup_reg()