Lines Matching refs:flag
97 static void ptcwakeup(struct tty *tp, int flag);
178 ptsopen(dev_t dev, int flag, __unused int devtype, __unused struct proc *p)
220 if (flag&FNONBLOCK)
238 ptsclose(dev_t dev, int flag, __unused int mode, __unused proc_t p)
259 err = (*linesw[tp->t_line].l_close)(tp, flag);
270 ptsread(dev_t dev, struct uio *uio, int flag)
319 if (flag & IO_NDELAY) {
347 error = (*linesw[tp->t_line].l_read)(tp, uio, flag);
360 ptswrite(dev_t dev, struct uio *uio, int flag)
372 error = (*linesw[tp->t_line].l_write)(tp, uio, flag);
407 ptcwakeup(struct tty *tp, int flag)
411 if (flag & FREAD) {
415 if (flag & FWRITE) {
422 ptcopen(dev_t dev, __unused int flag, __unused int devtype, __unused proc_t p)
493 ptcread(dev_t dev, struct uio *uio, int flag)
535 if (flag & IO_NDELAY) {
568 int flag;
580 flag = 0;
582 flag |= FWRITE;
584 flag |= FREAD;
585 ptcwakeup(tp, flag);
654 ptcwrite(dev_t dev, struct uio *uio, int flag)
753 if (flag & IO_NDELAY) {
770 ptyioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
910 error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
912 error = ttioctl_locked(tp, cmd, data, flag, p);