/include/linux/ |
D | file.h | 36 struct fd { struct 43 static inline void fdput(struct fd fd) in fdput() argument 45 if (fd.flags & FDPUT_FPUT) in fdput() 46 fput(fd.file); in fdput() 49 extern struct file *fget(unsigned int fd); 50 extern struct file *fget_raw(unsigned int fd); 51 extern struct file *fget_task(struct task_struct *task, unsigned int fd); 52 extern unsigned long __fdget(unsigned int fd); 53 extern unsigned long __fdget_raw(unsigned int fd); 54 extern unsigned long __fdget_pos(unsigned int fd); [all …]
|
D | fdtable.h | 29 struct file __rcu **fd; /* current fd array */ member 36 static inline bool close_on_exec(unsigned int fd, const struct fdtable *fdt) in close_on_exec() argument 38 return test_bit(fd, fdt->close_on_exec); in close_on_exec() 41 static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) in fd_is_open() argument 43 return test_bit(fd, fdt->open_fds); in fd_is_open() 83 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw() argument 87 if (fd < fdt->max_fds) { in files_lookup_fd_raw() 88 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw() 89 return rcu_dereference_raw(fdt->fd[fd]); in files_lookup_fd_raw() 94 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked() argument [all …]
|
D | font.h | 66 #define REFCOUNT(fd) (((int *)(fd))[-1]) argument 67 #define FNTSIZE(fd) (((int *)(fd))[-2]) argument 68 #define FNTCHARCNT(fd) (((int *)(fd))[-3]) argument 69 #define FNTSUM(fd) (((int *)(fd))[-4]) argument
|
D | syscalls.h | 343 asmlinkage long sys_io_uring_enter(unsigned int fd, u32 to_submit, 346 asmlinkage long sys_io_uring_register(unsigned int fd, unsigned int op, 354 asmlinkage long sys_fsetxattr(int fd, const char __user *name, 360 asmlinkage long sys_fgetxattr(int fd, const char __user *name, 366 asmlinkage long sys_flistxattr(int fd, char __user *list, size_t size); 371 asmlinkage long sys_fremovexattr(int fd, const char __user *name); 384 asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, 399 asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg); 401 asmlinkage long sys_fcntl64(unsigned int fd, 407 asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, [all …]
|
D | socket.h | 404 extern long __sys_recvmsg(int fd, struct user_msghdr __user *msg, 406 extern long __sys_sendmsg(int fd, struct user_msghdr __user *msg, 408 extern int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, 412 extern int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, 433 extern int __sys_recvfrom(int fd, void __user *ubuf, size_t size, 436 extern int __sys_sendto(int fd, void __user *buff, size_t len, 442 extern int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, 446 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen); 449 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, 451 extern int __sys_listen(int fd, int backlog); [all …]
|
D | eventfd.h | 39 struct file *eventfd_fget(int fd); 40 struct eventfd_ctx *eventfd_ctx_fdget(int fd); 60 static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd) in eventfd_ctx_fdget() argument
|
D | compat.h | 604 asmlinkage long compat_sys_fcntl(unsigned int fd, unsigned int cmd, 606 asmlinkage long compat_sys_fcntl64(unsigned int fd, unsigned int cmd, 610 asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd, 619 asmlinkage long compat_sys_fstatfs(unsigned int fd, 621 asmlinkage long compat_sys_fstatfs64(unsigned int fd, compat_size_t sz, 630 asmlinkage long compat_sys_getdents(unsigned int fd, 637 asmlinkage ssize_t compat_sys_preadv(compat_ulong_t fd, 640 asmlinkage ssize_t compat_sys_pwritev(compat_ulong_t fd, 644 asmlinkage long compat_sys_preadv64(unsigned long fd, 650 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);
|
D | dpaa2-global.h | 32 u8 fd[32]; member 174 return (const struct dpaa2_fd *)&dq->dq.fd[0]; in dpaa2_dq_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
|
D | gunyah.h | 134 __u32 fd; member 169 __s32 fd; member
|
/include/uapi/misc/ |
D | fastrpc.h | 72 __s32 fd; member 91 __s32 fd; /* fd */ member 97 __s32 fd; member 106 __s32 fd; /* fd */ member 123 __s32 fd; /* fd */ member
|
/include/asm-generic/ |
D | syscalls.h | 16 unsigned long fd, unsigned long pgoff); 22 unsigned long fd, off_t pgoff);
|
/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, 188 size_t size, int fd, in ib_umem_dmabuf_get() argument 196 size_t size, int fd, int access) in ib_umem_dmabuf_get_pinned() argument
|
/include/trace/events/ |
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/asm-generic/ |
D | poll.h | 37 int fd; member
|