cs35l32           348 sound/soc/codecs/cs35l32.c 	struct cs35l32_private *cs35l32;
cs35l32           355 sound/soc/codecs/cs35l32.c 	cs35l32 = devm_kzalloc(&i2c_client->dev, sizeof(*cs35l32), GFP_KERNEL);
cs35l32           356 sound/soc/codecs/cs35l32.c 	if (!cs35l32)
cs35l32           359 sound/soc/codecs/cs35l32.c 	i2c_set_clientdata(i2c_client, cs35l32);
cs35l32           361 sound/soc/codecs/cs35l32.c 	cs35l32->regmap = devm_regmap_init_i2c(i2c_client, &cs35l32_regmap);
cs35l32           362 sound/soc/codecs/cs35l32.c 	if (IS_ERR(cs35l32->regmap)) {
cs35l32           363 sound/soc/codecs/cs35l32.c 		ret = PTR_ERR(cs35l32->regmap);
cs35l32           369 sound/soc/codecs/cs35l32.c 		cs35l32->pdata = *pdata;
cs35l32           378 sound/soc/codecs/cs35l32.c 						     &cs35l32->pdata);
cs35l32           384 sound/soc/codecs/cs35l32.c 	for (i = 0; i < ARRAY_SIZE(cs35l32->supplies); i++)
cs35l32           385 sound/soc/codecs/cs35l32.c 		cs35l32->supplies[i].supply = cs35l32_supply_names[i];
cs35l32           388 sound/soc/codecs/cs35l32.c 				      ARRAY_SIZE(cs35l32->supplies),
cs35l32           389 sound/soc/codecs/cs35l32.c 				      cs35l32->supplies);
cs35l32           396 sound/soc/codecs/cs35l32.c 	ret = regulator_bulk_enable(ARRAY_SIZE(cs35l32->supplies),
cs35l32           397 sound/soc/codecs/cs35l32.c 				    cs35l32->supplies);
cs35l32           405 sound/soc/codecs/cs35l32.c 	cs35l32->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev,
cs35l32           407 sound/soc/codecs/cs35l32.c 	if (IS_ERR(cs35l32->reset_gpio))
cs35l32           408 sound/soc/codecs/cs35l32.c 		return PTR_ERR(cs35l32->reset_gpio);
cs35l32           410 sound/soc/codecs/cs35l32.c 	gpiod_set_value_cansleep(cs35l32->reset_gpio, 1);
cs35l32           413 sound/soc/codecs/cs35l32.c 	ret = regmap_read(cs35l32->regmap, CS35L32_DEVID_AB, &reg);
cs35l32           416 sound/soc/codecs/cs35l32.c 	ret = regmap_read(cs35l32->regmap, CS35L32_DEVID_CD, &reg);
cs35l32           419 sound/soc/codecs/cs35l32.c 	ret = regmap_read(cs35l32->regmap, CS35L32_DEVID_E, &reg);
cs35l32           430 sound/soc/codecs/cs35l32.c 	ret = regmap_read(cs35l32->regmap, CS35L32_REV_ID, &reg);
cs35l32           436 sound/soc/codecs/cs35l32.c 	ret = regmap_register_patch(cs35l32->regmap, cs35l32_monitor_patch,
cs35l32           447 sound/soc/codecs/cs35l32.c 	if (cs35l32->pdata.boost_mng)
cs35l32           448 sound/soc/codecs/cs35l32.c 		regmap_update_bits(cs35l32->regmap, CS35L32_AUDIO_LED_MNGR,
cs35l32           450 sound/soc/codecs/cs35l32.c 				cs35l32->pdata.boost_mng);
cs35l32           453 sound/soc/codecs/cs35l32.c 	if (cs35l32->pdata.sdout_share)
cs35l32           454 sound/soc/codecs/cs35l32.c 		regmap_update_bits(cs35l32->regmap, CS35L32_ADSP_CTL,
cs35l32           456 sound/soc/codecs/cs35l32.c 				cs35l32->pdata.sdout_share << 3);
cs35l32           459 sound/soc/codecs/cs35l32.c 	if (cs35l32->pdata.sdout_datacfg)
cs35l32           460 sound/soc/codecs/cs35l32.c 		regmap_update_bits(cs35l32->regmap, CS35L32_ADSP_CTL,
cs35l32           462 sound/soc/codecs/cs35l32.c 				cs35l32->pdata.sdout_datacfg << 4);
cs35l32           465 sound/soc/codecs/cs35l32.c 	if (cs35l32->pdata.batt_recov)
cs35l32           466 sound/soc/codecs/cs35l32.c 		regmap_update_bits(cs35l32->regmap, CS35L32_BATT_THRESHOLD,
cs35l32           468 sound/soc/codecs/cs35l32.c 				cs35l32->pdata.batt_recov << 1);
cs35l32           471 sound/soc/codecs/cs35l32.c 	if (cs35l32->pdata.batt_thresh)
cs35l32           472 sound/soc/codecs/cs35l32.c 		regmap_update_bits(cs35l32->regmap, CS35L32_BATT_THRESHOLD,
cs35l32           474 sound/soc/codecs/cs35l32.c 				cs35l32->pdata.batt_thresh << 4);
cs35l32           477 sound/soc/codecs/cs35l32.c 	regmap_update_bits(cs35l32->regmap, CS35L32_PWRCTL1, CS35L32_PDN_AMP,
cs35l32           481 sound/soc/codecs/cs35l32.c 	ret = regmap_read(cs35l32->regmap, CS35L32_INT_STATUS_1, &reg);
cs35l32           492 sound/soc/codecs/cs35l32.c 	regulator_bulk_disable(ARRAY_SIZE(cs35l32->supplies),
cs35l32           493 sound/soc/codecs/cs35l32.c 			       cs35l32->supplies);
cs35l32           499 sound/soc/codecs/cs35l32.c 	struct cs35l32_private *cs35l32 = i2c_get_clientdata(i2c_client);
cs35l32           502 sound/soc/codecs/cs35l32.c 	gpiod_set_value_cansleep(cs35l32->reset_gpio, 0);
cs35l32           510 sound/soc/codecs/cs35l32.c 	struct cs35l32_private *cs35l32 = dev_get_drvdata(dev);
cs35l32           512 sound/soc/codecs/cs35l32.c 	regcache_cache_only(cs35l32->regmap, true);
cs35l32           513 sound/soc/codecs/cs35l32.c 	regcache_mark_dirty(cs35l32->regmap);
cs35l32           516 sound/soc/codecs/cs35l32.c 	gpiod_set_value_cansleep(cs35l32->reset_gpio, 0);
cs35l32           519 sound/soc/codecs/cs35l32.c 	regulator_bulk_disable(ARRAY_SIZE(cs35l32->supplies),
cs35l32           520 sound/soc/codecs/cs35l32.c 			       cs35l32->supplies);
cs35l32           527 sound/soc/codecs/cs35l32.c 	struct cs35l32_private *cs35l32 = dev_get_drvdata(dev);
cs35l32           531 sound/soc/codecs/cs35l32.c 	ret = regulator_bulk_enable(ARRAY_SIZE(cs35l32->supplies),
cs35l32           532 sound/soc/codecs/cs35l32.c 				    cs35l32->supplies);
cs35l32           539 sound/soc/codecs/cs35l32.c 	gpiod_set_value_cansleep(cs35l32->reset_gpio, 1);
cs35l32           541 sound/soc/codecs/cs35l32.c 	regcache_cache_only(cs35l32->regmap, false);
cs35l32           542 sound/soc/codecs/cs35l32.c 	regcache_sync(cs35l32->regmap);