Lines Matching refs:flag
100 static void ptmx_wakeup(struct tty *tp, int flag);
346 * number. If there isn't one, and the create flag is specified, we create
556 ptsd_open(dev_t dev, int flag, __unused int devtype, __unused proc_t p)
588 if (flag&FNONBLOCK)
609 ptsd_close(dev_t dev, int flag, __unused int mode, __unused proc_t p)
633 err = (*linesw[tp->t_line].l_close)(tp, flag);
641 if ((flag & IO_REVOKE) == IO_REVOKE)
651 ptsd_read(dev_t dev, struct uio *uio, int flag)
702 if (flag & IO_NDELAY) {
730 error = (*linesw[tp->t_line].l_read)(tp, uio, flag);
743 ptsd_write(dev_t dev, struct uio *uio, int flag)
757 error = (*linesw[tp->t_line].l_write)(tp, uio, flag);
793 ptmx_wakeup(struct tty *tp, int flag)
799 if (flag & FREAD) {
803 if (flag & FWRITE) {
810 ptmx_open(dev_t dev, __unused int flag, __unused int devtype, __unused proc_t p)
889 ptmx_read(dev_t dev, struct uio *uio, int flag)
934 if (flag & IO_NDELAY) {
966 int flag;
978 flag = 0;
980 flag |= FWRITE;
982 flag |= FREAD;
983 ptmx_wakeup(tp, flag);
1166 ptmx_write(dev_t dev, struct uio *uio, int flag)
1268 if (flag & IO_NDELAY) {
1286 cptyioctl(dev_t dev, u_long cmd, caddr_t data, int flag, proc_t p)
1449 error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
1451 error = ttioctl_locked(tp, cmd, data, flag, p);