/Linux-v4.19/arch/mips/include/asm/ |
D | termios.h | 30 struct termio __user *termio) in user_termio_to_kernel_termios() argument 35 if (!access_ok(VERIFY_READ, termio, sizeof(struct termio))) in user_termio_to_kernel_termios() 38 err = __get_user(iflag, &termio->c_iflag); in user_termio_to_kernel_termios() 40 err |=__get_user(oflag, &termio->c_oflag); in user_termio_to_kernel_termios() 42 err |=__get_user(cflag, &termio->c_cflag); in user_termio_to_kernel_termios() 44 err |=__get_user(lflag, &termio->c_lflag); in user_termio_to_kernel_termios() 46 err |=__get_user(termios->c_line, &termio->c_line); in user_termio_to_kernel_termios() 50 if (__copy_from_user(termios->c_cc, termio->c_cc, NCC)) in user_termio_to_kernel_termios() 59 static inline int kernel_termios_to_user_termio(struct termio __user *termio, in kernel_termios_to_user_termio() argument 64 if (!access_ok(VERIFY_WRITE, termio, sizeof(struct termio))) in kernel_termios_to_user_termio() [all …]
|
/Linux-v4.19/arch/ia64/include/asm/ |
D | termios.h | 25 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \ argument 27 get_user(__tmp,&(termio)->x); \ 31 #define user_termio_to_kernel_termios(termios, termio) \ argument 33 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \ 34 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \ 35 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \ 36 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \ 37 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \ 43 #define kernel_termios_to_user_termio(termio, termios) \ argument 45 put_user((termios)->c_iflag, &(termio)->c_iflag); \ [all …]
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | termios.h | 19 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \ argument 21 get_user(__tmp,&(termio)->x); \ 25 #define user_termio_to_kernel_termios(termios, termio) \ argument 27 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \ 28 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \ 29 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \ 30 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \ 31 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \ 37 #define kernel_termios_to_user_termio(termio, termios) \ argument 39 put_user((termios)->c_iflag, &(termio)->c_iflag); \ [all …]
|
/Linux-v4.19/include/asm-generic/ |
D | termios-base.h | 16 struct termio __user *termio) in user_termio_to_kernel_termios() argument 20 if (get_user(tmp, &termio->c_iflag) < 0) in user_termio_to_kernel_termios() 24 if (get_user(tmp, &termio->c_oflag) < 0) in user_termio_to_kernel_termios() 28 if (get_user(tmp, &termio->c_cflag) < 0) in user_termio_to_kernel_termios() 32 if (get_user(tmp, &termio->c_lflag) < 0) in user_termio_to_kernel_termios() 36 if (get_user(termios->c_line, &termio->c_line) < 0) in user_termio_to_kernel_termios() 39 if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0) in user_termio_to_kernel_termios() 51 static inline int kernel_termios_to_user_termio(struct termio __user *termio, in kernel_termios_to_user_termio() argument 54 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 || in kernel_termios_to_user_termio() 55 put_user(termios->c_oflag, &termio->c_oflag) < 0 || in kernel_termios_to_user_termio() [all …]
|
D | termios.h | 21 const struct termio __user *termio) in user_termio_to_kernel_termios() argument 25 if (get_user(tmp, &termio->c_iflag) < 0) in user_termio_to_kernel_termios() 29 if (get_user(tmp, &termio->c_oflag) < 0) in user_termio_to_kernel_termios() 33 if (get_user(tmp, &termio->c_cflag) < 0) in user_termio_to_kernel_termios() 37 if (get_user(tmp, &termio->c_lflag) < 0) in user_termio_to_kernel_termios() 41 if (get_user(termios->c_line, &termio->c_line) < 0) in user_termio_to_kernel_termios() 44 if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0) in user_termio_to_kernel_termios() 56 static inline int kernel_termios_to_user_termio(struct termio __user *termio, in kernel_termios_to_user_termio() argument 59 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 || in kernel_termios_to_user_termio() 60 put_user(termios->c_oflag, &termio->c_oflag) < 0 || in kernel_termios_to_user_termio() [all …]
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | termios.h | 30 #define user_termio_to_kernel_termios(termios, termio) \ argument 34 err = get_user(tmp, &(termio)->c_iflag); \ 36 err |= get_user(tmp, &(termio)->c_oflag); \ 38 err |= get_user(tmp, &(termio)->c_cflag); \ 40 err |= get_user(tmp, &(termio)->c_lflag); \ 42 err |= copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \ 51 #define kernel_termios_to_user_termio(termio, termios) \ argument 54 err = put_user((termios)->c_iflag, &(termio)->c_iflag); \ 55 err |= put_user((termios)->c_oflag, &(termio)->c_oflag); \ 56 err |= put_user((termios)->c_cflag, &(termio)->c_cflag); \ [all …]
|
/Linux-v4.19/arch/parisc/include/uapi/asm/ |
D | ioctls.h | 13 #define TCGETA _IOR('T', 1, struct termio) 14 #define TCSETA _IOW('T', 2, struct termio) 15 #define TCSETAW _IOW('T', 3, struct termio) 16 #define TCSETAF _IOW('T', 4, struct termio)
|
D | termios.h | 16 struct termio { struct
|
/Linux-v4.19/arch/alpha/include/uapi/asm/ |
D | ioctls.h | 26 #define TCGETA _IOR('t', 23, struct termio) 27 #define TCSETA _IOW('t', 24, struct termio) 28 #define TCSETAW _IOW('t', 25, struct termio) 29 #define TCSETAF _IOW('t', 28, struct termio)
|
D | termios.h | 42 struct termio { struct
|
/Linux-v4.19/arch/powerpc/include/uapi/asm/ |
D | ioctls.h | 26 #define TCGETA _IOR('t', 23, struct termio) 27 #define TCSETA _IOW('t', 24, struct termio) 28 #define TCSETAW _IOW('t', 25, struct termio) 29 #define TCSETAF _IOW('t', 28, struct termio)
|
D | termios.h | 54 struct termio { struct
|
/Linux-v4.19/arch/sparc/include/uapi/asm/ |
D | ioctls.h | 8 #define TCGETA _IOR('T', 1, struct termio) 9 #define TCSETA _IOW('T', 2, struct termio) 10 #define TCSETAW _IOW('T', 3, struct termio) 11 #define TCSETAF _IOW('T', 4, struct termio)
|
D | termbits.h | 17 struct termio { struct
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | termios.h | 22 struct termio k_termio; \ 54 struct termio k_termio; \
|
/Linux-v4.19/arch/s390/include/uapi/asm/ |
D | termios.h | 22 struct termio { struct
|
/Linux-v4.19/arch/ia64/include/uapi/asm/ |
D | termios.h | 23 struct termio { struct
|
/Linux-v4.19/include/uapi/asm-generic/ |
D | termios.h | 23 struct termio { struct
|
/Linux-v4.19/arch/mips/include/uapi/asm/ |
D | termios.h | 54 struct termio { struct
|
/Linux-v4.19/drivers/tty/ |
D | moxa.c | 1755 static int MoxaPortSetTermio(struct moxa_port *port, struct ktermios *termio, in MoxaPortSetTermio() argument 1763 mode = termio->c_cflag & CSIZE; in MoxaPortSetTermio() 1773 if (termio->c_cflag & CSTOPB) { in MoxaPortSetTermio() 1781 if (termio->c_cflag & PARENB) { in MoxaPortSetTermio() 1782 if (termio->c_cflag & PARODD) { in MoxaPortSetTermio() 1783 if (termio->c_cflag & CMSPAR) in MoxaPortSetTermio() 1788 if (termio->c_cflag & CMSPAR) in MoxaPortSetTermio() 1803 if (termio->c_iflag & (IXON | IXOFF | IXANY)) { in MoxaPortSetTermio() 1805 writeb(termio->c_cc[VSTART], ofsAddr + FuncArg); in MoxaPortSetTermio() 1806 writeb(termio->c_cc[VSTOP], ofsAddr + FuncArg1); in MoxaPortSetTermio()
|
D | tty_ioctl.c | 377 (struct termio __user *)arg)) in set_termios() 437 static int get_termio(struct tty_struct *tty, struct termio __user *termio) in get_termio() argument 441 if (kernel_termios_to_user_termio(termio, &kterm)) in get_termio()
|