wm8985            566 sound/soc/codecs/wm8985.c 	struct wm8985_priv *wm8985 = snd_soc_component_get_drvdata(component);
wm8985            569 sound/soc/codecs/wm8985.c 	switch (wm8985->dev_type) {
wm8985            752 sound/soc/codecs/wm8985.c 	struct wm8985_priv *wm8985;
wm8985            758 sound/soc/codecs/wm8985.c 	wm8985 = snd_soc_component_get_drvdata(component);
wm8985            760 sound/soc/codecs/wm8985.c 	wm8985->bclk = snd_soc_params_to_bclk(params);
wm8985            761 sound/soc/codecs/wm8985.c 	if ((int)wm8985->bclk < 0)
wm8985            762 sound/soc/codecs/wm8985.c 		return wm8985->bclk;
wm8985            803 sound/soc/codecs/wm8985.c 	dev_dbg(dai->dev, "Target BCLK = %uHz\n", wm8985->bclk);
wm8985            804 sound/soc/codecs/wm8985.c 	dev_dbg(dai->dev, "SYSCLK = %uHz\n", wm8985->sysclk);
wm8985            807 sound/soc/codecs/wm8985.c 		if (wm8985->sysclk / params_rate(params)
wm8985            814 sound/soc/codecs/wm8985.c 			wm8985->sysclk, params_rate(params));
wm8985            823 sound/soc/codecs/wm8985.c 	tmp = (wm8985->sysclk / fs_ratios[i].div) * 10;
wm8985            825 sound/soc/codecs/wm8985.c 		if (wm8985->bclk == tmp / bclk_divs[i])
wm8985            922 sound/soc/codecs/wm8985.c 	struct wm8985_priv *wm8985;
wm8985            925 sound/soc/codecs/wm8985.c 	wm8985 = snd_soc_component_get_drvdata(component);
wm8985            943 sound/soc/codecs/wm8985.c 	wm8985->sysclk = freq;
wm8985            951 sound/soc/codecs/wm8985.c 	struct wm8985_priv *wm8985;
wm8985            953 sound/soc/codecs/wm8985.c 	wm8985 = snd_soc_component_get_drvdata(component);
wm8985            964 sound/soc/codecs/wm8985.c 			ret = regulator_bulk_enable(ARRAY_SIZE(wm8985->supplies),
wm8985            965 sound/soc/codecs/wm8985.c 						    wm8985->supplies);
wm8985            973 sound/soc/codecs/wm8985.c 			regcache_sync(wm8985->regmap);
wm8985           1016 sound/soc/codecs/wm8985.c 		regcache_mark_dirty(wm8985->regmap);
wm8985           1018 sound/soc/codecs/wm8985.c 		regulator_bulk_disable(ARRAY_SIZE(wm8985->supplies),
wm8985           1019 sound/soc/codecs/wm8985.c 				       wm8985->supplies);
wm8985           1029 sound/soc/codecs/wm8985.c 	struct wm8985_priv *wm8985;
wm8985           1032 sound/soc/codecs/wm8985.c 	wm8985 = snd_soc_component_get_drvdata(component);
wm8985           1034 sound/soc/codecs/wm8985.c 	for (i = 0; i < ARRAY_SIZE(wm8985->supplies); i++)
wm8985           1035 sound/soc/codecs/wm8985.c 		wm8985->supplies[i].supply = wm8985_supply_names[i];
wm8985           1037 sound/soc/codecs/wm8985.c 	ret = devm_regulator_bulk_get(component->dev, ARRAY_SIZE(wm8985->supplies),
wm8985           1038 sound/soc/codecs/wm8985.c 				 wm8985->supplies);
wm8985           1044 sound/soc/codecs/wm8985.c 	ret = regulator_bulk_enable(ARRAY_SIZE(wm8985->supplies),
wm8985           1045 sound/soc/codecs/wm8985.c 				    wm8985->supplies);
wm8985           1070 sound/soc/codecs/wm8985.c 	regulator_bulk_disable(ARRAY_SIZE(wm8985->supplies), wm8985->supplies);
wm8985           1136 sound/soc/codecs/wm8985.c 	struct wm8985_priv *wm8985;
wm8985           1139 sound/soc/codecs/wm8985.c 	wm8985 = devm_kzalloc(&spi->dev, sizeof *wm8985, GFP_KERNEL);
wm8985           1140 sound/soc/codecs/wm8985.c 	if (!wm8985)
wm8985           1143 sound/soc/codecs/wm8985.c 	spi_set_drvdata(spi, wm8985);
wm8985           1145 sound/soc/codecs/wm8985.c 	wm8985->dev_type = WM8985;
wm8985           1147 sound/soc/codecs/wm8985.c 	wm8985->regmap = devm_regmap_init_spi(spi, &wm8985_regmap);
wm8985           1148 sound/soc/codecs/wm8985.c 	if (IS_ERR(wm8985->regmap)) {
wm8985           1149 sound/soc/codecs/wm8985.c 		ret = PTR_ERR(wm8985->regmap);
wm8985           1172 sound/soc/codecs/wm8985.c 	struct wm8985_priv *wm8985;
wm8985           1175 sound/soc/codecs/wm8985.c 	wm8985 = devm_kzalloc(&i2c->dev, sizeof *wm8985, GFP_KERNEL);
wm8985           1176 sound/soc/codecs/wm8985.c 	if (!wm8985)
wm8985           1179 sound/soc/codecs/wm8985.c 	i2c_set_clientdata(i2c, wm8985);
wm8985           1181 sound/soc/codecs/wm8985.c 	wm8985->dev_type = id->driver_data;
wm8985           1183 sound/soc/codecs/wm8985.c 	wm8985->regmap = devm_regmap_init_i2c(i2c, &wm8985_regmap);
wm8985           1184 sound/soc/codecs/wm8985.c 	if (IS_ERR(wm8985->regmap)) {
wm8985           1185 sound/soc/codecs/wm8985.c 		ret = PTR_ERR(wm8985->regmap);