max9860 40 sound/soc/codecs/max9860.c struct max9860_priv *max9860 = container_of(nb, struct max9860_priv, max9860 43 sound/soc/codecs/max9860.c regcache_mark_dirty(max9860->regmap); max9860 44 sound/soc/codecs/max9860.c regcache_cache_only(max9860->regmap, true); max9860 256 sound/soc/codecs/max9860.c struct max9860_priv *max9860 = snd_soc_component_get_drvdata(component); max9860 271 sound/soc/codecs/max9860.c switch (max9860->fmt & SND_SOC_DAIFMT_MASTER_MASK) { max9860 290 sound/soc/codecs/max9860.c switch (max9860->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { max9860 319 sound/soc/codecs/max9860.c switch (max9860->fmt & SND_SOC_DAIFMT_INV_MASK) { max9860 323 sound/soc/codecs/max9860.c switch (max9860->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { max9860 331 sound/soc/codecs/max9860.c switch (max9860->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { max9860 347 sound/soc/codecs/max9860.c ret = regmap_write(max9860->regmap, MAX9860_IFC1A, ifc1a); max9860 353 sound/soc/codecs/max9860.c ret = regmap_write(max9860->regmap, MAX9860_IFC1B, ifc1b); max9860 367 sound/soc/codecs/max9860.c switch (max9860->pclk_rate) { max9860 399 sound/soc/codecs/max9860.c max9860->pclk_rate); max9860 410 sound/soc/codecs/max9860.c sysclk |= max9860->psclk; max9860 412 sound/soc/codecs/max9860.c ret = regmap_write(max9860->regmap, max9860 419 sound/soc/codecs/max9860.c ret = regmap_write(max9860->regmap, max9860 425 sound/soc/codecs/max9860.c ret = regmap_write(max9860->regmap, max9860 434 sound/soc/codecs/max9860.c ret = regmap_update_bits(max9860->regmap, MAX9860_AUDIOCLKHIGH, max9860 449 sound/soc/codecs/max9860.c struct max9860_priv *max9860 = snd_soc_component_get_drvdata(component); max9860 454 sound/soc/codecs/max9860.c max9860->fmt = fmt; max9860 498 sound/soc/codecs/max9860.c struct max9860_priv *max9860 = dev_get_drvdata(component->dev); max9860 507 sound/soc/codecs/max9860.c ret = regmap_update_bits(max9860->regmap, MAX9860_PWRMAN, max9860 517 sound/soc/codecs/max9860.c ret = regmap_update_bits(max9860->regmap, MAX9860_PWRMAN, max9860 546 sound/soc/codecs/max9860.c struct max9860_priv *max9860 = dev_get_drvdata(dev); max9860 549 sound/soc/codecs/max9860.c ret = regmap_update_bits(max9860->regmap, MAX9860_SYSCLK, max9860 556 sound/soc/codecs/max9860.c regulator_disable(max9860->dvddio); max9860 563 sound/soc/codecs/max9860.c struct max9860_priv *max9860 = dev_get_drvdata(dev); max9860 566 sound/soc/codecs/max9860.c ret = regulator_enable(max9860->dvddio); max9860 572 sound/soc/codecs/max9860.c regcache_cache_only(max9860->regmap, false); max9860 573 sound/soc/codecs/max9860.c ret = regcache_sync(max9860->regmap); max9860 579 sound/soc/codecs/max9860.c ret = regmap_update_bits(max9860->regmap, MAX9860_SYSCLK, max9860 580 sound/soc/codecs/max9860.c MAX9860_PSCLK, max9860->psclk); max9860 597 sound/soc/codecs/max9860.c struct max9860_priv *max9860; max9860 604 sound/soc/codecs/max9860.c max9860 = devm_kzalloc(dev, sizeof(struct max9860_priv), GFP_KERNEL); max9860 605 sound/soc/codecs/max9860.c if (!max9860) max9860 608 sound/soc/codecs/max9860.c max9860->dvddio = devm_regulator_get(dev, "DVDDIO"); max9860 609 sound/soc/codecs/max9860.c if (IS_ERR(max9860->dvddio)) { max9860 610 sound/soc/codecs/max9860.c ret = PTR_ERR(max9860->dvddio); max9860 616 sound/soc/codecs/max9860.c max9860->dvddio_nb.notifier_call = max9860_dvddio_event; max9860 618 sound/soc/codecs/max9860.c ret = devm_regulator_register_notifier(max9860->dvddio, max9860 619 sound/soc/codecs/max9860.c &max9860->dvddio_nb); max9860 623 sound/soc/codecs/max9860.c ret = regulator_enable(max9860->dvddio); max9860 629 sound/soc/codecs/max9860.c max9860->regmap = devm_regmap_init_i2c(i2c, &max9860_regmap); max9860 630 sound/soc/codecs/max9860.c if (IS_ERR(max9860->regmap)) { max9860 631 sound/soc/codecs/max9860.c ret = PTR_ERR(max9860->regmap); max9860 635 sound/soc/codecs/max9860.c dev_set_drvdata(dev, max9860); max9860 661 sound/soc/codecs/max9860.c max9860->psclk = 3; max9860 663 sound/soc/codecs/max9860.c max9860->psclk = 2; max9860 665 sound/soc/codecs/max9860.c max9860->psclk = 1; max9860 666 sound/soc/codecs/max9860.c max9860->pclk_rate = mclk_rate >> (max9860->psclk - 1); max9860 667 sound/soc/codecs/max9860.c max9860->psclk <<= MAX9860_PSCLK_SHIFT; max9860 668 sound/soc/codecs/max9860.c dev_dbg(dev, "mclk %lu pclk %lu\n", mclk_rate, max9860->pclk_rate); max9860 670 sound/soc/codecs/max9860.c regcache_cache_bypass(max9860->regmap, true); max9860 672 sound/soc/codecs/max9860.c ret = regmap_write(max9860->regmap, max9860 681 sound/soc/codecs/max9860.c regcache_cache_bypass(max9860->regmap, false); max9860 683 sound/soc/codecs/max9860.c ret = regmap_read(max9860->regmap, MAX9860_INTRSTATUS, &intr); max9860 705 sound/soc/codecs/max9860.c regulator_disable(max9860->dvddio); max9860 712 sound/soc/codecs/max9860.c struct max9860_priv *max9860 = dev_get_drvdata(dev); max9860 715 sound/soc/codecs/max9860.c regulator_disable(max9860->dvddio);