moxaDriver 418 drivers/tty/moxa.c static struct tty_driver *moxaDriver; moxaDriver 880 drivers/tty/moxa.c tty_port_register_device(&brd->ports[i].port, moxaDriver, moxaDriver 923 drivers/tty/moxa.c tty_unregister_device(moxaDriver, first_idx + a); moxaDriver 1035 drivers/tty/moxa.c moxaDriver = tty_alloc_driver(MAX_PORTS + 1, moxaDriver 1038 drivers/tty/moxa.c if (IS_ERR(moxaDriver)) moxaDriver 1039 drivers/tty/moxa.c return PTR_ERR(moxaDriver); moxaDriver 1041 drivers/tty/moxa.c moxaDriver->name = "ttyMX"; moxaDriver 1042 drivers/tty/moxa.c moxaDriver->major = ttymajor; moxaDriver 1043 drivers/tty/moxa.c moxaDriver->minor_start = 0; moxaDriver 1044 drivers/tty/moxa.c moxaDriver->type = TTY_DRIVER_TYPE_SERIAL; moxaDriver 1045 drivers/tty/moxa.c moxaDriver->subtype = SERIAL_TYPE_NORMAL; moxaDriver 1046 drivers/tty/moxa.c moxaDriver->init_termios = tty_std_termios; moxaDriver 1047 drivers/tty/moxa.c moxaDriver->init_termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL | HUPCL; moxaDriver 1048 drivers/tty/moxa.c moxaDriver->init_termios.c_ispeed = 9600; moxaDriver 1049 drivers/tty/moxa.c moxaDriver->init_termios.c_ospeed = 9600; moxaDriver 1050 drivers/tty/moxa.c tty_set_operations(moxaDriver, &moxa_ops); moxaDriver 1052 drivers/tty/moxa.c tty_port_link_device(&moxa_service_port, moxaDriver, MAX_PORTS); moxaDriver 1054 drivers/tty/moxa.c if (tty_register_driver(moxaDriver)) { moxaDriver 1056 drivers/tty/moxa.c put_tty_driver(moxaDriver); moxaDriver 1121 drivers/tty/moxa.c if (tty_unregister_driver(moxaDriver)) moxaDriver 1124 drivers/tty/moxa.c put_tty_driver(moxaDriver);