Lines Matching refs:serinfo

501 static int serial_ctl(int fd, int ops, struct serial_struct *serinfo)  in serial_ctl()  argument
507 ret = ioctl(fd, TIOCSSERIAL, serinfo); in serial_ctl()
523 ret = ioctl(fd, TIOCGSERIAL, serinfo); in serial_ctl()
588 struct serial_struct serinfo; in serial_get() local
594 ret = serial_ctl(fd, CTL_GET | CTL_CLOSE | CTL_NODIE, &serinfo); in serial_get()
598 uart = uart_type(serinfo.type); in serial_get()
605 device, uart, serinfo.port, serinfo.irq); in serial_get()
608 if (!serinfo.type) in serial_get()
611 device, serinfo.port, serinfo.irq, uart); in serial_get()
617 uart, serinfo.port, serinfo.irq, serinfo.baud_base); in serial_get()
622 device, serinfo.line, uart, serinfo.port, serinfo.irq); in serial_get()
624 serinfo.baud_base, serinfo.close_delay, in serial_get()
625 serinfo.custom_divisor); in serial_get()
627 print_closing_wait(serinfo.closing_wait); in serial_get()
635 print_serial_flags(serinfo.flags, mode, prefix, postfix); in serial_get()
651 struct serial_struct serinfo; in serial_set() local
658 serial_ctl(fd, CTL_GET, &serinfo); in serial_set()
661 serinfo.flags = 0; in serial_set()
688 serinfo.flags &= ~ASYNC_SPD_MASK; in serial_set()
701 serinfo.flags &= ~setbits[cmd]; in serial_set()
703 serinfo.flags |= setbits[cmd]; in serial_set()
706 serinfo.port = get_numeric(*arg); in serial_set()
709 serinfo.irq = get_numeric(*arg); in serial_set()
712 serinfo.custom_divisor = get_numeric(*arg); in serial_set()
715 serinfo.type = get_uart(*arg); in serial_set()
718 serinfo.baud_base = get_numeric(*arg); in serial_set()
721 serinfo.close_delay = get_numeric(*arg); in serial_set()
724 serinfo.closing_wait = get_wait(*arg); in serial_set()
727 serial_ctl(fd, CTL_SET | CTL_CONFIG | CTL_GET, &serinfo); in serial_set()
734 serial_ctl(fd, CTL_SET | CTL_CLOSE, &serinfo); in serial_set()