Lines Matching refs:priv
47 struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); in ak5386_hw_params() local
59 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_params()
60 gpio_set_value(priv->reset_gpio, 1); in ak5386_hw_params()
69 struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); in ak5386_hw_free() local
71 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_free()
72 gpio_set_value(priv->reset_gpio, 0); in ak5386_hw_free()
109 struct ak5386_priv *priv; in ak5386_probe() local
111 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in ak5386_probe()
112 if (!priv) in ak5386_probe()
115 priv->reset_gpio = -EINVAL; in ak5386_probe()
116 dev_set_drvdata(dev, priv); in ak5386_probe()
119 priv->reset_gpio = of_get_named_gpio(dev->of_node, in ak5386_probe()
122 if (gpio_is_valid(priv->reset_gpio)) in ak5386_probe()
123 if (devm_gpio_request_one(dev, priv->reset_gpio, in ak5386_probe()
126 priv->reset_gpio = -EINVAL; in ak5386_probe()