Lines Matching refs:ser
65 struct tty_struct *tty = cs->hw.ser->tty; in write_modem()
107 struct tty_struct *tty = cs->hw.ser->tty; in send_cb()
342 bcs->hw.ser = NULL; in gigaset_initbcshw()
371 if (!cs->hw.ser) in gigaset_freecshw()
373 dev_set_drvdata(&cs->hw.ser->dev.dev, NULL); in gigaset_freecshw()
374 platform_device_unregister(&cs->hw.ser->dev); in gigaset_freecshw()
375 kfree(cs->hw.ser); in gigaset_freecshw()
376 cs->hw.ser = NULL; in gigaset_freecshw()
402 cs->hw.ser = scs; in gigaset_initcshw()
404 cs->hw.ser->dev.name = GIGASET_MODULENAME; in gigaset_initcshw()
405 cs->hw.ser->dev.id = cs->minor_index; in gigaset_initcshw()
406 cs->hw.ser->dev.dev.release = gigaset_device_release; in gigaset_initcshw()
407 rc = platform_device_register(&cs->hw.ser->dev); in gigaset_initcshw()
410 kfree(cs->hw.ser); in gigaset_initcshw()
411 cs->hw.ser = NULL; in gigaset_initcshw()
414 dev_set_drvdata(&cs->hw.ser->dev.dev, cs); in gigaset_initcshw()
432 struct tty_struct *tty = cs->hw.ser->tty; in gigaset_set_modem_ctrl()
483 if (!cs || !cs->hw.ser) { in cs_get()
487 atomic_inc(&cs->hw.ser->refcnt); in cs_get()
493 if (atomic_dec_and_test(&cs->hw.ser->refcnt)) in cs_put()
494 complete(&cs->hw.ser->dead_cmp); in cs_put()
523 cs->dev = &cs->hw.ser->dev.dev; in gigaset_tty_open()
524 cs->hw.ser->tty = tty; in gigaset_tty_open()
525 atomic_set(&cs->hw.ser->refcnt, 1); in gigaset_tty_open()
526 init_completion(&cs->hw.ser->dead_cmp); in gigaset_tty_open()
570 if (!cs->hw.ser) in gigaset_tty_close()
574 if (!atomic_dec_and_test(&cs->hw.ser->refcnt)) in gigaset_tty_close()
575 wait_for_completion(&cs->hw.ser->dead_cmp); in gigaset_tty_close()