Lines Matching refs:ser

65 	struct tty_struct *tty = cs->hw.ser->tty;  in write_modem()
106 struct tty_struct *tty = cs->hw.ser->tty; in send_cb()
340 bcs->hw.ser = NULL; in gigaset_initbcshw()
369 if (!cs->hw.ser) in gigaset_freecshw()
371 platform_device_unregister(&cs->hw.ser->dev); in gigaset_freecshw()
381 kfree(cs->hw.ser); in gigaset_device_release()
382 cs->hw.ser = NULL; in gigaset_device_release()
399 cs->hw.ser = scs; in gigaset_initcshw()
401 cs->hw.ser->dev.name = GIGASET_MODULENAME; in gigaset_initcshw()
402 cs->hw.ser->dev.id = cs->minor_index; in gigaset_initcshw()
403 cs->hw.ser->dev.dev.release = gigaset_device_release; in gigaset_initcshw()
404 rc = platform_device_register(&cs->hw.ser->dev); in gigaset_initcshw()
407 kfree(cs->hw.ser); in gigaset_initcshw()
408 cs->hw.ser = NULL; in gigaset_initcshw()
411 dev_set_drvdata(&cs->hw.ser->dev.dev, cs); in gigaset_initcshw()
429 struct tty_struct *tty = cs->hw.ser->tty; in gigaset_set_modem_ctrl()
482 if (!cs || !cs->hw.ser) { in cs_get()
486 atomic_inc(&cs->hw.ser->refcnt); in cs_get()
492 if (atomic_dec_and_test(&cs->hw.ser->refcnt)) in cs_put()
493 complete(&cs->hw.ser->dead_cmp); in cs_put()
522 cs->dev = &cs->hw.ser->dev.dev; in gigaset_tty_open()
523 cs->hw.ser->tty = tty; in gigaset_tty_open()
524 atomic_set(&cs->hw.ser->refcnt, 1); in gigaset_tty_open()
525 init_completion(&cs->hw.ser->dead_cmp); in gigaset_tty_open()
578 if (!cs->hw.ser) in gigaset_tty_close()
582 if (!atomic_dec_and_test(&cs->hw.ser->refcnt)) in gigaset_tty_close()
583 wait_for_completion(&cs->hw.ser->dead_cmp); in gigaset_tty_close()