Lines Matching refs:cx20442
91 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component); in cx20442_read_reg_cache() local
96 return cx20442->reg_cache; in cx20442_read_reg_cache()
155 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component); in cx20442_write() local
164 if (!cx20442->tty || !cx20442->tty->ops->write) in cx20442_write()
167 old = cx20442->reg_cache; in cx20442_write()
168 cx20442->reg_cache = value; in cx20442_write()
193 if (cx20442->tty->ops->write(cx20442->tty, buf, len) != len) in cx20442_write()
240 struct cx20442_priv *cx20442; in v253_close() local
247 cx20442 = snd_soc_component_get_drvdata(component); in v253_close()
250 cx20442->tty = NULL; in v253_close()
266 struct cx20442_priv *cx20442; in v253_receive() local
271 cx20442 = snd_soc_component_get_drvdata(component); in v253_receive()
273 if (!cx20442->tty) { in v253_receive()
277 cx20442->tty = tty; in v253_receive()
325 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component); in cx20442_set_bias_level() local
332 if (IS_ERR(cx20442->por)) in cx20442_set_bias_level()
333 err = PTR_ERR(cx20442->por); in cx20442_set_bias_level()
335 err = regulator_enable(cx20442->por); in cx20442_set_bias_level()
340 if (IS_ERR(cx20442->por)) in cx20442_set_bias_level()
341 err = PTR_ERR(cx20442->por); in cx20442_set_bias_level()
343 err = regulator_disable(cx20442->por); in cx20442_set_bias_level()
354 struct cx20442_priv *cx20442; in cx20442_component_probe() local
356 cx20442 = kzalloc(sizeof(struct cx20442_priv), GFP_KERNEL); in cx20442_component_probe()
357 if (cx20442 == NULL) in cx20442_component_probe()
360 cx20442->por = regulator_get(component->dev, "POR"); in cx20442_component_probe()
361 if (IS_ERR(cx20442->por)) { in cx20442_component_probe()
362 int err = PTR_ERR(cx20442->por); in cx20442_component_probe()
378 kfree(cx20442); in cx20442_component_probe()
382 cx20442->tty = NULL; in cx20442_component_probe()
384 snd_soc_component_set_drvdata(component, cx20442); in cx20442_component_probe()
393 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component); in cx20442_component_remove() local
395 if (cx20442->tty) { in cx20442_component_remove()
396 struct tty_struct *tty = cx20442->tty; in cx20442_component_remove()
400 if (!IS_ERR(cx20442->por)) { in cx20442_component_remove()
402 regulator_put(cx20442->por); in cx20442_component_remove()
406 kfree(cx20442); in cx20442_component_remove()