Lines Matching refs:winch

589 struct winch {  struct
601 struct winch *winch = container_of(work, struct winch, work); in __free_winch() argument
602 um_free_irq(WINCH_IRQ, winch); in __free_winch()
604 if (winch->pid != -1) in __free_winch()
605 os_kill_process(winch->pid, 1); in __free_winch()
606 if (winch->stack != 0) in __free_winch()
607 free_stack(winch->stack, 0); in __free_winch()
608 kfree(winch); in __free_winch()
611 static void free_winch(struct winch *winch) in free_winch() argument
613 int fd = winch->fd; in free_winch()
614 winch->fd = -1; in free_winch()
617 __free_winch(&winch->work); in free_winch()
622 struct winch *winch = data; in winch_interrupt() local
625 int fd = winch->fd; in winch_interrupt()
634 winch->fd = -1; in winch_interrupt()
635 list_del(&winch->list); in winch_interrupt()
640 "support\n", winch->tty_fd); in winch_interrupt()
641 INIT_WORK(&winch->work, __free_winch); in winch_interrupt()
642 schedule_work(&winch->work); in winch_interrupt()
648 tty = tty_port_tty_get(winch->port); in winch_interrupt()
668 struct winch *winch; in register_winch_irq() local
670 winch = kmalloc(sizeof(*winch), GFP_KERNEL); in register_winch_irq()
671 if (winch == NULL) { in register_winch_irq()
676 *winch = ((struct winch) { .list = LIST_HEAD_INIT(winch->list), in register_winch_irq()
684 IRQF_SHARED, "winch", winch) < 0) { in register_winch_irq()
691 list_add(&winch->list, &winch_handlers); in register_winch_irq()
697 kfree(winch); in register_winch_irq()
708 struct winch *winch; in unregister_winch() local
714 winch = list_entry(ele, struct winch, list); in unregister_winch()
715 wtty = tty_port_tty_get(winch->port); in unregister_winch()
717 list_del(&winch->list); in unregister_winch()
719 free_winch(winch); in unregister_winch()
729 struct winch *winch; in winch_cleanup() local
732 while ((winch = list_first_entry_or_null(&winch_handlers, in winch_cleanup()
733 struct winch, list))) { in winch_cleanup()
734 list_del(&winch->list); in winch_cleanup()
737 free_winch(winch); in winch_cleanup()