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()
265 struct cx20442_priv *cx20442; in v253_receive() local
270 cx20442 = snd_soc_component_get_drvdata(component); in v253_receive()
272 if (!cx20442->tty) { in v253_receive()
276 cx20442->tty = tty; in v253_receive()
317 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component); in cx20442_set_bias_level() local
324 if (IS_ERR(cx20442->por)) in cx20442_set_bias_level()
325 err = PTR_ERR(cx20442->por); in cx20442_set_bias_level()
327 err = regulator_enable(cx20442->por); in cx20442_set_bias_level()
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_disable(cx20442->por); in cx20442_set_bias_level()
346 struct cx20442_priv *cx20442; in cx20442_component_probe() local
348 cx20442 = kzalloc(sizeof(struct cx20442_priv), GFP_KERNEL); in cx20442_component_probe()
349 if (cx20442 == NULL) in cx20442_component_probe()
352 cx20442->por = regulator_get(component->dev, "POR"); in cx20442_component_probe()
353 if (IS_ERR(cx20442->por)) { in cx20442_component_probe()
354 int err = PTR_ERR(cx20442->por); in cx20442_component_probe()
370 kfree(cx20442); in cx20442_component_probe()
374 cx20442->tty = NULL; in cx20442_component_probe()
376 snd_soc_component_set_drvdata(component, cx20442); in cx20442_component_probe()
385 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component); in cx20442_component_remove() local
387 if (cx20442->tty) { in cx20442_component_remove()
388 struct tty_struct *tty = cx20442->tty; in cx20442_component_remove()
392 if (!IS_ERR(cx20442->por)) { in cx20442_component_remove()
394 regulator_put(cx20442->por); in cx20442_component_remove()
398 kfree(cx20442); in cx20442_component_remove()