Lines Matching defs:config
113 int regcache_init(struct regmap *map, const struct regmap_config *config)
120 if (config->reg_defaults || config->num_reg_defaults_raw)
128 if (config->reg_defaults && !config->num_reg_defaults) {
134 if (config->num_reg_defaults && !config->reg_defaults) {
140 for (i = 0; i < config->num_reg_defaults; i++)
141 if (config->reg_defaults[i].reg % map->reg_stride)
154 map->num_reg_defaults = config->num_reg_defaults;
155 map->num_reg_defaults_raw = config->num_reg_defaults_raw;
156 map->reg_defaults_raw = config->reg_defaults_raw;
157 map->cache_word_size = DIV_ROUND_UP(config->val_bits, 8);
158 map->cache_size_raw = map->cache_word_size * config->num_reg_defaults_raw;
172 if (config->reg_defaults) {
173 tmp_buf = kmemdup(config->reg_defaults, map->num_reg_defaults *