| /include/linux/ |
| D | file.h | 44 struct fd { struct 51 static inline bool fd_empty(struct fd f) in fd_empty() argument 56 #define EMPTY_FD (struct fd){0} 57 static inline struct fd BORROWED_FD(struct file *f) in BORROWED_FD() 59 return (struct fd){(unsigned long)f}; in BORROWED_FD() 61 static inline struct fd CLONED_FD(struct file *f) in CLONED_FD() 63 return (struct fd){(unsigned long)f | FDPUT_FPUT}; in CLONED_FD() 66 static inline void fdput(struct fd fd) in fdput() argument 68 if (fd.word & FDPUT_FPUT) in fdput() 69 fput(fd_file(fd)); in fdput() [all …]
|
| D | fdtable.h | 28 struct file __rcu **fd; /* current fd array */ member 72 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw() argument 75 unsigned long mask = array_index_mask_nospec(fd, fdt->max_fds); in files_lookup_fd_raw() 84 needs_masking = rcu_dereference_raw(fdt->fd[fd&mask]); in files_lookup_fd_raw() 88 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked() argument 92 return files_lookup_fd_raw(files, fd); in files_lookup_fd_locked() 95 struct file *lookup_fdget_rcu(unsigned int fd); 96 struct file *task_lookup_fdget_rcu(struct task_struct *task, unsigned int fd); 97 struct file *task_lookup_next_fdget_rcu(struct task_struct *task, unsigned int *fd); 99 static inline bool close_on_exec(unsigned int fd, const struct files_struct *files) in close_on_exec() argument [all …]
|
| D | font.h | 67 #define REFCOUNT(fd) (((int *)(fd))[-1]) argument 68 #define FNTSIZE(fd) (((int *)(fd))[-2]) argument 69 #define FNTCHARCNT(fd) (((int *)(fd))[-3]) argument 70 #define FNTSUM(fd) (((int *)(fd))[-4]) argument
|
| D | syscalls.h | 334 asmlinkage long sys_io_uring_enter(unsigned int fd, u32 to_submit, 337 asmlinkage long sys_io_uring_register(unsigned int fd, unsigned int op, 343 asmlinkage long sys_fsetxattr(int fd, const char __user *name, 349 asmlinkage long sys_fgetxattr(int fd, const char __user *name, 355 asmlinkage long sys_flistxattr(int fd, char __user *list, size_t size); 360 asmlinkage long sys_fremovexattr(int fd, const char __user *name); 364 asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, 377 asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg); 379 asmlinkage long sys_fcntl64(unsigned int fd, 383 asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, [all …]
|
| D | eventfd.h | 35 struct file *eventfd_fget(int fd); 36 struct eventfd_ctx *eventfd_ctx_fdget(int fd); 55 static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd) in eventfd_ctx_fdget() argument
|
| D | socket.h | 412 extern long __sys_recvmsg(int fd, struct user_msghdr __user *msg, 414 extern long __sys_sendmsg(int fd, struct user_msghdr __user *msg, 416 extern int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, 420 extern int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, 434 extern int __sys_recvfrom(int fd, void __user *ubuf, size_t size, 437 extern int __sys_sendto(int fd, void __user *buff, size_t len, 443 extern int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, 447 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen); 452 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, 454 extern int __sys_listen(int fd, int backlog); [all …]
|
| D | compat.h | 595 asmlinkage long compat_sys_fcntl(unsigned int fd, unsigned int cmd, 597 asmlinkage long compat_sys_fcntl64(unsigned int fd, unsigned int cmd, 599 asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd, 606 asmlinkage long compat_sys_fstatfs(unsigned int fd, 608 asmlinkage long compat_sys_fstatfs64(unsigned int fd, compat_size_t sz, 615 asmlinkage long compat_sys_getdents(unsigned int fd, 620 asmlinkage ssize_t compat_sys_preadv(compat_ulong_t fd, 623 asmlinkage ssize_t compat_sys_pwritev(compat_ulong_t fd, 627 asmlinkage long compat_sys_preadv64(unsigned long fd, 633 asmlinkage long compat_sys_pwritev64(unsigned long fd, [all …]
|
| D | sync_file.h | 59 struct dma_fence *sync_file_get_fence(int fd);
|
| /include/soc/fsl/ |
| D | dpaa2-fd.h | 104 static inline dma_addr_t dpaa2_fd_get_addr(const struct dpaa2_fd *fd) in dpaa2_fd_get_addr() argument 106 return (dma_addr_t)le64_to_cpu(fd->simple.addr); in dpaa2_fd_get_addr() 114 static inline void dpaa2_fd_set_addr(struct dpaa2_fd *fd, dma_addr_t addr) in dpaa2_fd_set_addr() argument 116 fd->simple.addr = cpu_to_le64(addr); in dpaa2_fd_set_addr() 125 static inline u32 dpaa2_fd_get_frc(const struct dpaa2_fd *fd) in dpaa2_fd_get_frc() argument 127 return le32_to_cpu(fd->simple.frc); in dpaa2_fd_get_frc() 135 static inline void dpaa2_fd_set_frc(struct dpaa2_fd *fd, u32 frc) in dpaa2_fd_set_frc() argument 137 fd->simple.frc = cpu_to_le32(frc); in dpaa2_fd_set_frc() 146 static inline u32 dpaa2_fd_get_ctrl(const struct dpaa2_fd *fd) in dpaa2_fd_get_ctrl() argument 148 return le32_to_cpu(fd->simple.ctrl); in dpaa2_fd_get_ctrl() [all …]
|
| D | qman.h | 116 static inline dma_addr_t qm_fd_addr(const struct qm_fd *fd) in qm_fd_addr() argument 118 return be64_to_cpu(fd->data) & 0xffffffffffLLU; in qm_fd_addr() 121 static inline u64 qm_fd_addr_get64(const struct qm_fd *fd) in qm_fd_addr_get64() argument 123 return be64_to_cpu(fd->data) & 0xffffffffffLLU; in qm_fd_addr_get64() 126 static inline void qm_fd_addr_set64(struct qm_fd *fd, u64 addr) in qm_fd_addr_set64() argument 128 fd->addr_hi = upper_32_bits(addr); in qm_fd_addr_set64() 129 fd->addr_lo = cpu_to_be32(lower_32_bits(addr)); in qm_fd_addr_set64() 139 static inline enum qm_fd_format qm_fd_get_format(const struct qm_fd *fd) in qm_fd_get_format() argument 141 return be32_to_cpu(fd->cfg) & QM_FD_FORMAT_MASK; in qm_fd_get_format() 144 static inline int qm_fd_get_offset(const struct qm_fd *fd) in qm_fd_get_offset() argument [all …]
|
| D | dpaa2-io.h | 113 const struct dpaa2_fd *fd); 115 const struct dpaa2_fd *fd, int number_of_frame); 117 const struct dpaa2_fd *fd, int number_of_frame); 119 u16 qdbin, const struct dpaa2_fd *fd);
|
| /include/uapi/linux/ |
| D | kcm.h | 19 int fd; member 24 int fd; member 28 int fd; member
|
| D | if_pppol2tp.h | 30 int fd; /* FD of UDP socket to use */ member 44 int fd; /* FD of UDP socket to use */ member 58 int fd; /* FD of UDP or IP socket to use */ member 69 int fd; /* FD of UDP or IP socket to use */ member
|
| D | dma-buf.h | 137 __s32 fd; member 167 __s32 fd; member
|
| D | vtpm_proxy.h | 43 __u32 fd; /* output */ member
|
| D | dma-heap.h | 37 __u32 fd; member
|
| D | cachefiles.h | 48 __u32 fd; member
|
| /include/uapi/misc/ |
| D | fastrpc.h | 73 __s32 fd; member 98 __s32 fd; /* fd */ member 104 __s32 fd; member 113 __s32 fd; /* fd */ member 130 __s32 fd; /* fd */ member
|
| /include/asm-generic/ |
| D | syscalls.h | 16 unsigned long fd, unsigned long pgoff); 22 unsigned long fd, unsigned long off);
|
| /include/uapi/xen/ |
| D | gntdev.h | 251 __u32 fd; member 275 __u32 fd; member 289 __u32 fd; member 311 __u32 fd; member
|
| /include/rdma/ |
| D | ib_umem.h | 148 int fd, int access, 152 size_t size, int fd, 158 int fd, int access); 194 size_t size, int fd, in ib_umem_dmabuf_get() argument 202 size_t size, int fd, int access) in ib_umem_dmabuf_get_pinned() argument 211 int fd, int access) in ib_umem_dmabuf_get_pinned_with_dma_device() argument
|
| /include/trace/events/ |
| D | handshake.h | 125 int fd 127 TP_ARGS(net, req, sk, fd), 131 __field(int, fd) 137 __entry->fd = fd; 141 __entry->req, __entry->sk, __entry->fd 150 int fd \ 152 TP_ARGS(net, req, sk, fd))
|
| D | io_uring.h | 29 TP_PROTO(int fd, void *ctx, u32 sq_entries, u32 cq_entries, u32 flags), 31 TP_ARGS(fd, ctx, sq_entries, cq_entries, flags), 34 __field( int, fd ) 42 __entry->fd = fd; 50 __entry->ctx, __entry->fd, __entry->sq_entries, 110 TP_PROTO(struct io_kiocb *req, int fd), 112 TP_ARGS(req, fd), 118 __field( int, fd ) 125 __entry->fd = fd; 129 __entry->ctx, __entry->req, __entry->user_data, __entry->fd)
|
| /include/uapi/linux/iio/ |
| D | buffer.h | 22 __u32 fd; member
|
| /include/uapi/asm-generic/ |
| D | poll.h | 37 int fd; member
|