Lines Matching refs:tty

131 static int r3964_open(struct tty_struct *tty);
132 static void r3964_close(struct tty_struct *tty);
133 static ssize_t r3964_read(struct tty_struct *tty, struct file *file,
135 static ssize_t r3964_write(struct tty_struct *tty, struct file *file,
137 static int r3964_ioctl(struct tty_struct *tty, struct file *file,
139 static void r3964_set_termios(struct tty_struct *tty, struct ktermios *old);
140 static unsigned int r3964_poll(struct tty_struct *tty, struct file *file,
142 static void r3964_receive_buf(struct tty_struct *tty, const unsigned char *cp,
279 wake_up_interruptible(&pInfo->tty->read_wait); in remove_from_tx_queue()
373 struct tty_struct *tty = pInfo->tty; in put_char() local
375 tty_put_char(tty, ch); in put_char()
381 struct tty_struct *tty = pInfo->tty; in flush() local
383 if (tty == NULL || tty->ops->flush_chars == NULL) in flush()
385 tty->ops->flush_chars(tty); in flush()
439 struct tty_struct *tty = pInfo->tty; in transmit_block() local
443 if (tty == NULL || pBlock == NULL) { in transmit_block()
447 room = tty_write_room(tty); in transmit_block()
545 wake_up_interruptible(&pInfo->tty->read_wait); in on_receive_block()
942 static int r3964_open(struct tty_struct *tty) in r3964_open() argument
948 tty, current->pid, tty->disc_data); in r3964_open()
982 pInfo->tty = tty; in r3964_open()
995 tty->disc_data = pInfo; in r3964_open()
996 tty->receive_room = 65536; in r3964_open()
1003 static void r3964_close(struct tty_struct *tty) in r3964_close() argument
1005 struct r3964_info *pInfo = tty->disc_data; in r3964_close()
1056 static ssize_t r3964_read(struct tty_struct *tty, struct file *file, in r3964_read() argument
1059 struct r3964_info *pInfo = tty->disc_data; in r3964_read()
1088 wait_event_interruptible(tty->read_wait, in r3964_read()
1122 static ssize_t r3964_write(struct tty_struct *tty, struct file *file, in r3964_write() argument
1125 struct r3964_info *pInfo = tty->disc_data; in r3964_write()
1187 static int r3964_ioctl(struct tty_struct *tty, struct file *file, in r3964_ioctl() argument
1190 struct r3964_info *pInfo = tty->disc_data; in r3964_ioctl()
1215 static void r3964_set_termios(struct tty_struct *tty, struct ktermios *old) in r3964_set_termios() argument
1221 static unsigned int r3964_poll(struct tty_struct *tty, struct file *file, in r3964_poll() argument
1224 struct r3964_info *pInfo = tty->disc_data; in r3964_poll()
1234 poll_wait(file, &tty->read_wait, wait); in r3964_poll()
1246 static void r3964_receive_buf(struct tty_struct *tty, const unsigned char *cp, in r3964_receive_buf() argument
1249 struct r3964_info *pInfo = tty->disc_data; in r3964_receive_buf()