wm8770            102 sound/soc/codecs/wm8770.c 	struct wm8770_priv *wm8770 = container_of(nb, struct wm8770_priv, \
wm8770            105 sound/soc/codecs/wm8770.c 		regcache_mark_dirty(wm8770->regmap);	\
wm8770            412 sound/soc/codecs/wm8770.c 	struct wm8770_priv *wm8770;
wm8770            419 sound/soc/codecs/wm8770.c 	wm8770 = snd_soc_component_get_drvdata(component);
wm8770            452 sound/soc/codecs/wm8770.c 			ratio = wm8770->sysclk / params_rate(params);
wm8770            460 sound/soc/codecs/wm8770.c 				wm8770->sysclk, params_rate(params));
wm8770            488 sound/soc/codecs/wm8770.c 	struct wm8770_priv *wm8770;
wm8770            491 sound/soc/codecs/wm8770.c 	wm8770 = snd_soc_component_get_drvdata(component);
wm8770            492 sound/soc/codecs/wm8770.c 	wm8770->sysclk = freq;
wm8770            500 sound/soc/codecs/wm8770.c 	struct wm8770_priv *wm8770;
wm8770            502 sound/soc/codecs/wm8770.c 	wm8770 = snd_soc_component_get_drvdata(component);
wm8770            511 sound/soc/codecs/wm8770.c 			ret = regulator_bulk_enable(ARRAY_SIZE(wm8770->supplies),
wm8770            512 sound/soc/codecs/wm8770.c 						    wm8770->supplies);
wm8770            520 sound/soc/codecs/wm8770.c 			regcache_sync(wm8770->regmap);
wm8770            529 sound/soc/codecs/wm8770.c 		regulator_bulk_disable(ARRAY_SIZE(wm8770->supplies),
wm8770            530 sound/soc/codecs/wm8770.c 				       wm8770->supplies);
wm8770            569 sound/soc/codecs/wm8770.c 	struct wm8770_priv *wm8770;
wm8770            572 sound/soc/codecs/wm8770.c 	wm8770 = snd_soc_component_get_drvdata(component);
wm8770            573 sound/soc/codecs/wm8770.c 	wm8770->component = component;
wm8770            575 sound/soc/codecs/wm8770.c 	ret = regulator_bulk_enable(ARRAY_SIZE(wm8770->supplies),
wm8770            576 sound/soc/codecs/wm8770.c 				    wm8770->supplies);
wm8770            604 sound/soc/codecs/wm8770.c 	regulator_bulk_disable(ARRAY_SIZE(wm8770->supplies), wm8770->supplies);
wm8770            642 sound/soc/codecs/wm8770.c 	struct wm8770_priv *wm8770;
wm8770            645 sound/soc/codecs/wm8770.c 	wm8770 = devm_kzalloc(&spi->dev, sizeof(struct wm8770_priv),
wm8770            647 sound/soc/codecs/wm8770.c 	if (!wm8770)
wm8770            650 sound/soc/codecs/wm8770.c 	for (i = 0; i < ARRAY_SIZE(wm8770->supplies); i++)
wm8770            651 sound/soc/codecs/wm8770.c 		wm8770->supplies[i].supply = wm8770_supply_names[i];
wm8770            653 sound/soc/codecs/wm8770.c 	ret = devm_regulator_bulk_get(&spi->dev, ARRAY_SIZE(wm8770->supplies),
wm8770            654 sound/soc/codecs/wm8770.c 				      wm8770->supplies);
wm8770            660 sound/soc/codecs/wm8770.c 	wm8770->disable_nb[0].notifier_call = wm8770_regulator_event_0;
wm8770            661 sound/soc/codecs/wm8770.c 	wm8770->disable_nb[1].notifier_call = wm8770_regulator_event_1;
wm8770            662 sound/soc/codecs/wm8770.c 	wm8770->disable_nb[2].notifier_call = wm8770_regulator_event_2;
wm8770            665 sound/soc/codecs/wm8770.c 	for (i = 0; i < ARRAY_SIZE(wm8770->supplies); i++) {
wm8770            667 sound/soc/codecs/wm8770.c 						wm8770->supplies[i].consumer,
wm8770            668 sound/soc/codecs/wm8770.c 						&wm8770->disable_nb[i]);
wm8770            676 sound/soc/codecs/wm8770.c 	wm8770->regmap = devm_regmap_init_spi(spi, &wm8770_regmap);
wm8770            677 sound/soc/codecs/wm8770.c 	if (IS_ERR(wm8770->regmap))
wm8770            678 sound/soc/codecs/wm8770.c 		return PTR_ERR(wm8770->regmap);
wm8770            680 sound/soc/codecs/wm8770.c 	spi_set_drvdata(spi, wm8770);