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()
903 regmap_update_bits(sta32x->regmap, STA32X_CONFA, in sta32x_probe()
909 regmap_update_bits(sta32x->regmap, STA32X_CONFC, in sta32x_probe()
915 regmap_update_bits(sta32x->regmap, STA32X_CONFE, in sta32x_probe()
919 regmap_update_bits(sta32x->regmap, STA32X_CONFE, in sta32x_probe()
923 regmap_update_bits(sta32x->regmap, STA32X_CONFE, in sta32x_probe()
927 regmap_update_bits(sta32x->regmap, STA32X_CONFE, in sta32x_probe()
933 regmap_update_bits(sta32x->regmap, STA32X_CONFF, in sta32x_probe()
939 regmap_update_bits(sta32x->regmap, STA32X_CONFF, in sta32x_probe()
945 regmap_update_bits(sta32x->regmap, STA32X_C1CFG, in sta32x_probe()
949 regmap_update_bits(sta32x->regmap, STA32X_C2CFG, in sta32x_probe()
953 regmap_update_bits(sta32x->regmap, STA32X_C3CFG, in sta32x_probe()
1114 sta32x->regmap = devm_regmap_init_i2c(i2c, &sta32x_regmap); in sta32x_i2c_probe()
1115 if (IS_ERR(sta32x->regmap)) { in sta32x_i2c_probe()
1116 ret = PTR_ERR(sta32x->regmap); in sta32x_i2c_probe()