/linux/arch/mips/include/asm/ |
A D | termios.h | 30 struct termio __user *termio) in user_termio_to_kernel_termios() argument 35 if (!access_ok(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() 59 static inline int kernel_termios_to_user_termio(struct termio __user *termio, in kernel_termios_to_user_termio() argument 64 if (!access_ok(termio, sizeof(struct termio))) in kernel_termios_to_user_termio() 67 err = __put_user(termios->c_iflag, &termio->c_iflag); in kernel_termios_to_user_termio() [all …]
|
/linux/arch/parisc/include/asm/ |
A D | termios.h | 19 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \ argument 21 get_user(__tmp,&(termio)->x); \ 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); \ 39 put_user((termios)->c_iflag, &(termio)->c_iflag); \ 40 put_user((termios)->c_oflag, &(termio)->c_oflag); \ 41 put_user((termios)->c_cflag, &(termio)->c_cflag); \ 42 put_user((termios)->c_lflag, &(termio)->c_lflag); \ [all …]
|
/linux/arch/ia64/include/asm/ |
A D | termios.h | 25 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \ argument 27 get_user(__tmp,&(termio)->x); \ 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); \ 45 put_user((termios)->c_iflag, &(termio)->c_iflag); \ 46 put_user((termios)->c_oflag, &(termio)->c_oflag); \ 47 put_user((termios)->c_cflag, &(termio)->c_cflag); \ 48 put_user((termios)->c_lflag, &(termio)->c_lflag); \ [all …]
|
/linux/include/asm-generic/ |
A 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() 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() 56 put_user(termios->c_cflag, &termio->c_cflag) < 0 || in kernel_termios_to_user_termio() [all …]
|
A 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() 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() 61 put_user(termios->c_cflag, &termio->c_cflag) < 0 || in kernel_termios_to_user_termio() [all …]
|
/linux/arch/sparc/include/asm/ |
A 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); \ 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); \ 57 err |= put_user((termios)->c_lflag, &(termio)->c_lflag); \ [all …]
|
/linux/arch/parisc/include/uapi/asm/ |
A 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)
|
A D | termios.h | 16 struct termio { struct
|
/linux/arch/powerpc/include/uapi/asm/ |
A 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)
|
A D | termios.h | 54 struct termio { struct
|
/linux/arch/alpha/include/uapi/asm/ |
A 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)
|
A D | termios.h | 42 struct termio { struct
|
/linux/arch/sparc/include/uapi/asm/ |
A 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)
|
A D | termbits.h | 17 struct termio { struct
|
/linux/arch/alpha/include/asm/ |
A D | termios.h | 22 struct termio k_termio; \ 54 struct termio k_termio; \
|
/linux/arch/ia64/include/uapi/asm/ |
A D | termios.h | 23 struct termio { struct
|
/linux/arch/s390/include/uapi/asm/ |
A D | termios.h | 22 struct termio { struct
|
/linux/include/uapi/asm-generic/ |
A D | termios.h | 23 struct termio { struct
|
/linux/arch/mips/include/uapi/asm/ |
A D | termios.h | 54 struct termio { struct
|
/linux/drivers/tty/ |
A D | moxa.c | 2045 static int MoxaPortSetTermio(struct moxa_port *port, struct ktermios *termio, in MoxaPortSetTermio() argument 2053 mode = termio->c_cflag & CSIZE; in MoxaPortSetTermio() 2063 if (termio->c_cflag & CSTOPB) { in MoxaPortSetTermio() 2071 if (termio->c_cflag & PARENB) { in MoxaPortSetTermio() 2072 if (termio->c_cflag & PARODD) { in MoxaPortSetTermio() 2073 if (termio->c_cflag & CMSPAR) in MoxaPortSetTermio() 2078 if (termio->c_cflag & CMSPAR) in MoxaPortSetTermio() 2093 if (termio->c_iflag & (IXON | IXOFF | IXANY)) { in MoxaPortSetTermio() 2095 writeb(termio->c_cc[VSTART], ofsAddr + FuncArg); in MoxaPortSetTermio() 2096 writeb(termio->c_cc[VSTOP], ofsAddr + FuncArg1); in MoxaPortSetTermio()
|
A D | tty_ioctl.c | 401 (struct termio __user *)arg)) in set_termios() 461 static int get_termio(struct tty_struct *tty, struct termio __user *termio) in get_termio() argument 465 if (kernel_termios_to_user_termio(termio, &kterm)) in get_termio()
|