/sysdeps/mach/hurd/i386/sys/ |
A D | io.h | 40 inb (unsigned short int port) in inb() argument 49 inb_p (unsigned short int port) in inb_p() argument 58 inw (unsigned short int port) in inw() argument 67 inw_p (unsigned short int port) in inw_p() argument 76 inl (unsigned short int port) in inl() argument 85 inl_p (unsigned short int port) in inl_p() argument 93 outb (unsigned char value, unsigned short int port) in outb() argument 102 "Nd" (port)); in outb_p() 116 "Nd" (port)); in outw_p() 120 outl (unsigned int value, unsigned short int port) in outl() argument [all …]
|
/sysdeps/unix/sysv/linux/ia64/ |
A D | ioperm.c | 53 io_offset (unsigned long int port) in io_offset() argument 55 return ((port >> 2) << 12) | (port & 0xfff); in io_offset() 134 _inb (unsigned long int port) in _inb() argument 136 volatile unsigned char *addr = (void *) io.base + io_offset (port); in _inb() 145 _inw (unsigned long int port) in _inw() argument 156 _inl (unsigned long int port) in _inl() argument 158 volatile unsigned int *addr = (void *) io.base + io_offset (port); in _inl() 167 _outb (unsigned char val, unsigned long int port) in _outb() argument 176 _outw (unsigned short val, unsigned long int port) in _outw() argument 185 _outl (unsigned int val, unsigned long int port) in _outl() argument [all …]
|
/sysdeps/mach/hurd/ |
A D | dup3.c | 51 __spin_lock (&d->port.lock); in __dup3() 52 if (d->port.port == MACH_PORT_NULL) in __dup3() 54 __spin_unlock (&d->port.lock); in __dup3() 58 __spin_unlock (&d->port.lock); in __dup3() 64 io_t port = _hurd_port_locked_get (&d->port, &ulink); /* Unlocks D. */ in __dup3() local 83 __spin_unlock (&d2->port.lock); in __dup3() 111 __mach_port_mod_refs (__mach_task_self (), port, in __dup3() 118 __spin_lock (&d2->port.lock); in __dup3() 125 _hurd_port_locked_set (&d2->port, port); /* Unlocks D2. */ in __dup3() 129 _hurd_port_free (&d->port, &ulink, port); in __dup3() [all …]
|
A D | check_fds.c | 50 mach_port_t port; in check_one_fd() local 52 port = __file_name_lookup (_PATH_DEVNULL, mode, 0); in check_one_fd() 53 if (port) in check_one_fd() 57 d->port.port = port; in check_one_fd() 60 __spin_unlock (&d->port.lock); in check_one_fd()
|
A D | futimesat.c | 33 file_t port; in futimesat() local 35 port = __file_name_lookup_at (fd, 0, file, 0, 0); in futimesat() 36 if (port == MACH_PORT_NULL) in futimesat() 39 err = hurd_futimes (port, tvp); in futimesat() 41 __mach_port_deallocate (__mach_task_self (), port); in futimesat()
|
A D | statfs64.c | 26 file_t port; in __statfs64() local 28 port = __file_name_lookup (file, 0, 0); in __statfs64() 29 if (port == MACH_PORT_NULL) in __statfs64() 31 err = __file_statfs (port, buf); in __statfs64() 32 __mach_port_deallocate (__mach_task_self (), port); in __statfs64()
|
A D | utimes.c | 32 file_t port; in __utimes() local 34 port = __file_name_lookup (file, 0, 0); in __utimes() 35 if (port == MACH_PORT_NULL) in __utimes() 38 err = hurd_futimes (port, tvp); in __utimes() 40 __mach_port_deallocate (__mach_task_self (), port); in __utimes()
|
A D | lutimes.c | 33 file_t port; in __lutimes() local 35 port = __file_name_lookup (file, O_NOLINK, 0); in __lutimes() 36 if (port == MACH_PORT_NULL) in __lutimes() 39 err = hurd_futimes (port, tvp); in __lutimes() 41 __mach_port_deallocate (__mach_task_self (), port); in __lutimes()
|
A D | utimensat.c | 34 file_t port; in utimensat() local 36 port = __file_name_lookup_at (fd, flags, file, 0, 0); in utimensat() 37 if (port == MACH_PORT_NULL) in utimensat() 40 err = hurd_futimens (port, tsp); in utimensat() 42 __mach_port_deallocate (__mach_task_self (), port); in utimensat()
|
A D | stat64.c | 28 file_t port; in __stat64() local 30 port = __file_name_lookup (file, 0, 0); in __stat64() 31 if (port == MACH_PORT_NULL) in __stat64() 33 err = __io_stat (port, buf); in __stat64() 34 __mach_port_deallocate (__mach_task_self (), port); in __stat64()
|
A D | lstat64.c | 29 file_t port; in __lstat64() local 31 port = __file_name_lookup (file, O_NOLINK, 0); in __lstat64() 32 if (port == MACH_PORT_NULL) in __lstat64() 34 err = __io_stat (port, buf); in __lstat64() 35 __mach_port_deallocate (__mach_task_self (), port); in __lstat64()
|
A D | fstatat64.c | 31 io_t port; in __fstatat64() local 33 port = __file_name_lookup_at (fd, flag, filename, 0, 0); in __fstatat64() 34 if (port == MACH_PORT_NULL) in __fstatat64() 37 err = __io_stat (port, buf); in __fstatat64() 38 __mach_port_deallocate (__mach_task_self (), port); in __fstatat64()
|
A D | chflags.c | 30 file_t port = __file_name_lookup (file, 0, 0); in chflags() local 31 if (port == MACH_PORT_NULL) in chflags() 33 err = __file_chflags (port, flags); in chflags() 34 __mach_port_deallocate (__mach_task_self (), port); in chflags()
|
A D | removexattr.c | 28 file_t port = __file_name_lookup (path, 0, 0); in removexattr() local 29 if (port == MACH_PORT_NULL) in removexattr() 31 err = _hurd_xattr_remove (port, name); in removexattr() 32 __mach_port_deallocate (__mach_task_self (), port); in removexattr()
|
A D | lremovexattr.c | 29 file_t port = __file_name_lookup (path, O_NOLINK, 0); in lremovexattr() local 30 if (port == MACH_PORT_NULL) in lremovexattr() 32 err = _hurd_xattr_remove (port, name); in lremovexattr() 33 __mach_port_deallocate (__mach_task_self (), port); in lremovexattr()
|
A D | lchmod.c | 30 file_t port = __file_name_lookup (file, O_NOLINK, 0); in lchmod() local 31 if (port == MACH_PORT_NULL) in lchmod() 33 err = __file_chmod (port, mode); in lchmod() 34 __mach_port_deallocate (__mach_task_self (), port); in lchmod()
|
A D | listxattr.c | 28 file_t port = __file_name_lookup (path, 0, 0); in listxattr() local 29 if (port == MACH_PORT_NULL) in listxattr() 31 err = _hurd_xattr_list (port, list, &size); in listxattr() 32 __mach_port_deallocate (__mach_task_self (), port); in listxattr()
|
A D | fcntl.c | 61 io_t port, ctty; in __libc_fcntl() local 68 __spin_lock (&d->port.lock); in __libc_fcntl() 71 port = _hurd_port_locked_get (&d->port, &ulink); /* Unlocks D. */ in __libc_fcntl() 88 __mach_port_mod_refs (__mach_task_self (), port, in __libc_fcntl() 98 _hurd_port_locked_set (&new->port, port); /* Unlocks NEW. */ in __libc_fcntl() 103 _hurd_port_free (&d->port, &ulink, port); in __libc_fcntl() 105 _hurd_port_free (&d->ctty, &ctty_ulink, port); in __libc_fcntl() 114 __spin_lock (&d->port.lock); \ in __libc_fcntl() 115 if (d->port.port == MACH_PORT_NULL) \ in __libc_fcntl() 119 __spin_unlock (&d->port.lock); \ in __libc_fcntl() [all …]
|
A D | chmod.c | 28 file_t port = __file_name_lookup (file, 0, 0); in __chmod() local 29 if (port == MACH_PORT_NULL) in __chmod() 31 err = __file_chmod (port, mode); in __chmod() 32 __mach_port_deallocate (__mach_task_self (), port); in __chmod()
|
A D | llistxattr.c | 29 file_t port = __file_name_lookup (path, O_NOLINK, 0); in llistxattr() local 30 if (port == MACH_PORT_NULL) in llistxattr() 32 err = _hurd_xattr_list (port, list, &size); in llistxattr() 33 __mach_port_deallocate (__mach_task_self (), port); in llistxattr()
|
A D | pathconf.c | 30 file_t port = __file_name_lookup (file, 0, 0); in __pathconf() local 31 if (port == MACH_PORT_NULL) in __pathconf() 33 err = __io_pathconf (port, name, &value); in __pathconf() 34 __mach_port_deallocate (__mach_task_self (), port); in __pathconf()
|
A D | fchmodat.c | 31 file_t port = __file_name_lookup_at (fd, flag, file, 0, 0); in fchmodat() local 32 if (port == MACH_PORT_NULL) in fchmodat() 34 err = __file_chmod (port, mode); in fchmodat() 35 __mach_port_deallocate (__mach_task_self (), port); in fchmodat()
|
/sysdeps/hurd/include/hurd/ |
A D | fd.h | 11 io_t port, ctty; member 24 io_t port, ctty; \ 28 __spin_lock (&__d.d->port.lock); \ 29 if (__d.d->port.port == MACH_PORT_NULL) \ 31 __spin_unlock (&__d.d->port.lock); \ 38 __d.port = port = _hurd_port_locked_get (&__d.d->port, &__d.ulink); \
|
/sysdeps/unix/sysv/linux/alpha/ |
A D | ioperm.c | 211 return port + io.base; in port_to_cpu_addr() 281 result >>= (port & 3) * 8; in inline_inb() 293 result >>= (port & 3) * 8; in inline_inw() 322 return port + io.base; in dense_port_to_cpu_addr() 788 if (port >= MAX_PORT) in _outb() 791 io.swp->outb (b, port); in _outb() 798 if (port >= MAX_PORT) in _outw() 801 io.swp->outw (b, port); in _outw() 808 if (port >= MAX_PORT) in _outl() 811 io.swp->outl (b, port); in _outl() [all …]
|
/sysdeps/unix/sysv/linux/arm/ |
A D | ioperm.c | 45 outb (unsigned char b, unsigned long int port) in outb() argument 51 outw (unsigned short b, unsigned long int port) in outw() argument 57 outl (unsigned int b, unsigned long int port) in outl() argument 63 inb (unsigned long int port) in inb() argument 71 inw (unsigned long int port) in inw() argument 79 inl (unsigned long int port) in inl() argument
|