Lines Matching refs:regmap

144 	struct regmap *regmap;  member
283 regmap_read(sta32x->regmap, STA32X_CFUD, &cfud); in sta32x_coefficient_get()
289 regmap_write(sta32x->regmap, STA32X_CFUD, cfud); in sta32x_coefficient_get()
291 regmap_write(sta32x->regmap, STA32X_CFADDR2, index); in sta32x_coefficient_get()
293 regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x04); in sta32x_coefficient_get()
295 regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x08); in sta32x_coefficient_get()
302 regmap_read(sta32x->regmap, STA32X_B1CF1 + i, &val); in sta32x_coefficient_get()
323 regmap_read(sta32x->regmap, STA32X_CFUD, &cfud); in sta32x_coefficient_put()
329 regmap_write(sta32x->regmap, STA32X_CFUD, cfud); in sta32x_coefficient_put()
331 regmap_write(sta32x->regmap, STA32X_CFADDR2, index); in sta32x_coefficient_put()
338 regmap_write(sta32x->regmap, STA32X_B1CF1 + i, in sta32x_coefficient_put()
341 regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x01); in sta32x_coefficient_put()
343 regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x02); in sta32x_coefficient_put()
357 regmap_read(sta32x->regmap, STA32X_CFUD, &cfud); in sta32x_sync_coef_shadow()
361 regmap_write(sta32x->regmap, STA32X_CFADDR2, i); in sta32x_sync_coef_shadow()
362 regmap_write(sta32x->regmap, STA32X_B1CF1, in sta32x_sync_coef_shadow()
364 regmap_write(sta32x->regmap, STA32X_B1CF2, in sta32x_sync_coef_shadow()
366 regmap_write(sta32x->regmap, STA32X_B1CF3, in sta32x_sync_coef_shadow()
372 regmap_write(sta32x->regmap, STA32X_CFUD, cfud); in sta32x_sync_coef_shadow()
373 regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x01); in sta32x_sync_coef_shadow()
385 regmap_read(sta32x->regmap, STA32X_MMUTE, &mute); in sta32x_cache_sync()
386 regmap_write(sta32x->regmap, STA32X_MMUTE, mute | STA32X_MMUTE_MMUTE); in sta32x_cache_sync()
388 rc = regcache_sync(sta32x->regmap); in sta32x_cache_sync()
389 regmap_write(sta32x->regmap, STA32X_MMUTE, mute); in sta32x_cache_sync()
403 regcache_cache_bypass(sta32x->regmap, true); in sta32x_watchdog()
405 regcache_cache_bypass(sta32x->regmap, false); in sta32x_watchdog()
407 regcache_mark_dirty(sta32x->regmap); in sta32x_watchdog()
637 return regmap_update_bits(sta32x->regmap, STA32X_CONFB, in sta32x_set_dai_fmt()
767 ret = regmap_update_bits(sta32x->regmap, STA32X_CONFA, in sta32x_hw_params()
773 ret = regmap_update_bits(sta32x->regmap, STA32X_CONFB, in sta32x_hw_params()
816 regmap_update_bits(sta32x->regmap, STA32X_CONFF, in sta32x_set_bias_level()
837 regmap_update_bits(sta32x->regmap, STA32X_CONFF, in sta32x_set_bias_level()
845 regmap_update_bits(sta32x->regmap, STA32X_CONFF, in sta32x_set_bias_level()
904 regmap_update_bits(sta32x->regmap, STA32X_CONFA, in sta32x_probe()
910 regmap_update_bits(sta32x->regmap, STA32X_CONFC, in sta32x_probe()
916 regmap_update_bits(sta32x->regmap, STA32X_CONFE, in sta32x_probe()
920 regmap_update_bits(sta32x->regmap, STA32X_CONFE, in sta32x_probe()
924 regmap_update_bits(sta32x->regmap, STA32X_CONFE, in sta32x_probe()
928 regmap_update_bits(sta32x->regmap, STA32X_CONFE, in sta32x_probe()
934 regmap_update_bits(sta32x->regmap, STA32X_CONFF, in sta32x_probe()
940 regmap_update_bits(sta32x->regmap, STA32X_CONFF, in sta32x_probe()
946 regmap_update_bits(sta32x->regmap, STA32X_C1CFG, in sta32x_probe()
950 regmap_update_bits(sta32x->regmap, STA32X_C2CFG, in sta32x_probe()
954 regmap_update_bits(sta32x->regmap, STA32X_C3CFG, in sta32x_probe()
1121 sta32x->regmap = devm_regmap_init_i2c(i2c, &sta32x_regmap); in sta32x_i2c_probe()
1122 if (IS_ERR(sta32x->regmap)) { in sta32x_i2c_probe()
1123 ret = PTR_ERR(sta32x->regmap); in sta32x_i2c_probe()