/linux-master/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-is-param.c | 139 __hw_param_copy(&par->fd.control, &cfg->fd.control); 143 __hw_param_copy(&par->fd.otf_input, &cfg->fd.otf_input); 147 __hw_param_copy(&par->fd.dma_input, &cfg->fd.dma_input); 151 __hw_param_copy(&par->fd.config, &cfg->fd.config); 221 struct fd_param *fd; local 225 fd 472 struct fd_param *fd; local 487 struct fd_param *fd; local 507 struct fd_param *fd; local 527 struct fd_param *fd; local 547 struct fd_param *fd; local 567 struct fd_param *fd; local 587 struct fd_param *fd; local 607 struct fd_param *fd; local 627 struct fd_param *fd; local 647 struct fd_param *fd; local 669 struct fd_param *fd; local [all...] |
/linux-master/tools/testing/selftests/media_tests/ |
H A D | media_device_open.c | 46 int fd; local 70 fd = open(media_device, O_RDWR); 71 if (fd == -1) { 76 ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi);
|
/linux-master/arch/um/drivers/ |
H A D | pcap_user.h | 20 extern int pcap_user_read(int fd, void *buf, int len, struct pcap_data *pri);
|
H A D | chan_user.c | 17 void generic_close(int fd, void *unused) argument 19 close(fd); 22 int generic_read(int fd, __u8 *c_out, void *unused) argument 26 n = read(fd, c_out, sizeof(*c_out)); 38 int generic_write(int fd, const __u8 *buf, size_t n, void *unused) argument 42 err = write(fd, buf, n); 52 int generic_window_size(int fd, void *unused, unsigned short *rows_out, argument 58 if (ioctl(fd, TIOCGWINSZ, &size) < 0) 74 int generic_console_write(int fd, const char *buf, int n) argument 80 if (isatty(fd)) { 225 winch_tramp(int fd, struct tty_port *port, int *fd_out, unsigned long *stack_out) argument 282 register_winch(int fd, struct tty_port *port) argument [all...] |
/linux-master/include/uapi/linux/ |
H A D | if_pppol2tp.h | 28 __kernel_pid_t pid; /* pid that owns the fd. 30 int fd; /* FD of UDP socket to use */ member in struct:pppol2tp_addr 42 __kernel_pid_t pid; /* pid that owns the fd. 44 int fd; /* FD of UDP socket to use */ member in struct:pppol2tpin6_addr 56 __kernel_pid_t pid; /* pid that owns the fd. 58 int fd; /* FD of UDP or IP socket to use */ member in struct:pppol2tpv3_addr 67 __kernel_pid_t pid; /* pid that owns the fd. 69 int fd; /* FD of UDP or IP socket to use */ member in struct:pppol2tpv3in6_addr
|
/linux-master/arch/csky/include/asm/ |
H A D | syscalls.h | 12 long sys_csky_fadvise64_64(int fd, int advice, loff_t offset, loff_t len);
|
/linux-master/tools/gpio/ |
H A D | gpio-utils.c | 51 * read and write respectively through the returned fd. Call 54 * Return: On success return the fd; 64 int fd; local 72 fd = open(chrdev_name, 0); 73 if (fd == -1) { 88 ret = ioctl(fd, GPIO_V2_GET_LINE_IOCTL, &req); 95 if (close(fd) == -1) 99 return ret < 0 ? ret : req.fd; 104 * @fd: The fd returne 111 gpiotools_set_values(const int fd, struct gpio_v2_line_values *values) argument 135 gpiotools_get_values(const int fd, struct gpio_v2_line_values *values) argument 158 gpiotools_release_line(const int fd) argument 208 int fd, i; local [all...] |
/linux-master/arch/um/include/linux/ |
H A D | time-internal.h | 41 void __time_travel_wait_readable(int fd); 43 static inline void time_travel_wait_readable(int fd) argument 46 __time_travel_wait_readable(fd); 68 static inline void time_travel_wait_readable(int fd) argument
|
/linux-master/tools/testing/selftests/gpio/ |
H A D | gpio-chip-info.c | 25 int fd, ret; local 32 fd = open(argv[1], O_RDWR); 33 if (fd < 0) { 39 ret = ioctl(fd, GPIO_GET_CHIPINFO_IOCTL, &info);
|
H A D | gpio-line-name.c | 25 int fd, ret; local 33 fd = open(argv[1], O_RDWR); 34 if (fd < 0) { 46 ret = ioctl(fd, GPIO_V2_GET_LINEINFO_IOCTL, &info);
|
/linux-master/arch/um/include/shared/ |
H A D | irq_kern.h | 16 int um_request_irq(int irq, int fd, enum um_irq_type type, 25 * @fd: The file descriptor to request an IRQ for 32 * number, fd, dev_id and time-travel event pointer. 55 int um_request_irq_tt(int irq, int fd, enum um_irq_type type, 62 int um_request_irq_tt(int irq, int fd, enum um_irq_type type, argument 68 return um_request_irq(irq, fd, type, handler, irqflags,
|
/linux-master/arch/powerpc/platforms/cell/spufs/ |
H A D | coredump.c | 44 static int match_context(const void *v, struct file *file, unsigned fd) argument 52 return fd + 1; 67 static struct spu_context *coredump_next_context(int *fd) argument 71 int n = iterate_fd(current->files, *fd, match_context, NULL); 74 *fd = n - 1; 77 file = lookup_fdget_rcu(*fd); 91 int size = 0, rc, fd; local 93 fd = 0; 94 while ((ctx = coredump_next_context(&fd)) != NULL) { 101 rc = spufs_ctx_note_size(ctx, fd); 162 int fd, j, rc; local [all...] |
/linux-master/fs/hfs/ |
H A D | attr.c | 25 struct hfs_find_data fd; local 33 res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); 36 fd.search_key->cat = HFS_I(inode)->cat_key; 37 res = hfs_brec_find(&fd); 40 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, 61 hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, 64 hfs_find_exit(&fd); 71 struct hfs_find_data fd; local [all...] |
/linux-master/arch/mips/kernel/ |
H A D | linux32.c | 60 SYSCALL_DEFINE4(32_ftruncate64, unsigned long, fd, unsigned long, __dummy, 63 return ksys_ftruncate(fd, merge_64(a2, a3)); 66 SYSCALL_DEFINE5(32_llseek, unsigned int, fd, unsigned int, offset_high, 70 return sys_llseek(fd, offset_high, offset_low, result, origin); 77 SYSCALL_DEFINE6(32_pread, unsigned long, fd, char __user *, buf, size_t, count, 80 return ksys_pread64(fd, buf, count, merge_64(a4, a5)); 83 SYSCALL_DEFINE6(32_pwrite, unsigned int, fd, const char __user *, buf, 86 return ksys_pwrite64(fd, buf, count, merge_64(a4, a5)); 103 asmlinkage ssize_t sys32_readahead(int fd, u32 pad0, u64 a2, u64 a3, argument 106 return ksys_readahead(fd, merge_6 109 sys32_sync_file_range(int fd, int __pad, unsigned long a2, unsigned long a3, unsigned long a4, unsigned long a5, int flags) argument 119 sys32_fadvise64_64(int fd, int __pad, unsigned long a2, unsigned long a3, unsigned long a4, unsigned long a5, int flags) argument 129 sys32_fallocate(int fd, int mode, unsigned offset_a2, unsigned offset_a3, unsigned len_a4, unsigned len_a5) argument [all...] |
/linux-master/arch/mips/include/asm/ |
H A D | syscalls.h | 15 asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_a2, 18 asmlinkage long sys32_fadvise64_64(int fd, int __pad, 22 asmlinkage ssize_t sys32_readahead(int fd, u32 pad0, u64 a2, u64 a3, 24 asmlinkage long sys32_sync_file_range(int fd, int __pad,
|
/linux-master/tools/testing/vsock/ |
H A D | vsock_test_zerocopy.c | 152 int fd; local 155 fd = vsock_seqpacket_connect(opts->peer_cid, opts->peer_port); 157 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); 159 if (fd < 0) { 165 enable_so_zerocopy(fd); 174 sendmsg_res = sendmsg(fd, &msg, MSG_ZEROCOPY); 190 fds.fd = fd; 199 vsock_recv_completion(fd, &test_data->zerocopied); 216 close(fd); 248 int fd; local 324 int fd; local 348 int fd; local [all...] |
/linux-master/tools/testing/selftests/timens/ |
H A D | timerfd.c | 29 int fd, i; local 50 fd = timerfd_create(clockid, 0); 51 if (fd == -1) 57 if (timerfd_settime(fd, flags, &new_value, NULL)) 60 if (timerfd_gettime(fd, &new_value)) 70 close(fd); 80 int ret, status, len, fd; local 100 fd = open("/proc/self/timens_offsets", O_WRONLY); 101 if (fd < 0) 104 if (write(fd, bu [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | msg_zerocopy.c | 135 static void do_setsockopt(int fd, int level, int optname, int val) argument 137 if (setsockopt(fd, level, optname, &val, sizeof(val))) 141 static int do_poll(int fd, int events) argument 148 pfd.fd = fd; 157 static int do_accept(int fd) argument 159 int fda = fd; 161 fd = accept(fda, NULL, NULL); 162 if (fd == -1) 167 return fd; 183 do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) argument 226 do_sendmsg_corked(int fd, struct msghdr *msg) argument 324 int fd; local 359 do_recvmsg_completion(int fd) argument 392 do_recv_completion(int fd, int domain) argument 460 do_recv_completions(int fd, int domain) argument 466 do_recv_remaining_completions(int fd, int domain) argument 492 int fd; local 572 int fd; local 604 do_flush_tcp(int fd) argument 622 do_flush_datagram(int fd, int type) argument 655 int fd; local [all...] |
/linux-master/tools/build/ |
H A D | fixdep.c | 124 int fd; local 127 fd = open(depfile, O_RDONLY); 128 if (fd < 0) { 133 if (fstat(fd, &st) < 0) { 140 close(fd); 143 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); 146 close(fd); 154 close(fd);
|
/linux-master/arch/powerpc/boot/ |
H A D | hack-coff.c | 30 int fd; local 41 if ((fd = open(av[1], 2)) == -1) { 45 if (read(fd, &fhdr, sizeof(fhdr)) != sizeof(fhdr)) 53 if (read(fd, &aout, aoutsz) != aoutsz) 57 if (read(fd, &shdr, sizeof(shdr)) != sizeof(shdr)) 69 if (lseek(fd, (long) sizeof(struct external_filehdr), 0) == -1 70 || write(fd, &aout, aoutsz) != aoutsz) { 74 close(fd);
|
/linux-master/tools/testing/selftests/powerpc/pmu/event_code_tests/ |
H A D | group_constraint_repeat_test.c | 40 FAIL_IF(!event_open_with_group(&event, leader.fd)); 45 FAIL_IF(event_open_with_group(&event, leader.fd));
|
/linux-master/tools/perf/arch/x86/tests/ |
H A D | intel-cqm.c | 45 int i, fd[2], flag, ret; local 84 fd[0] = sys_perf_event_open(&pe, pid, -1, -1, flag); 85 if (fd[0] < 0) { 96 fd[1] = sys_perf_event_open(&pe, pid, -1, fd[0], flag); 97 if (fd[1] < 0) { 108 event = mmap(NULL, mmap_len, PROT_READ, MAP_SHARED, fd[0], 0); 121 close(fd[i]);
|
/linux-master/tools/testing/selftests/powerpc/security/ |
H A D | rfi_flush.c | 24 int fd, passes = 0, iter, rc = 0; local 57 fd = perf_event_open_counter(PERF_TYPE_HW_CACHE, PERF_L1D_READ_MISS_CONFIG, -1); 58 FAIL_IF(fd < 0); 62 FAIL_IF(perf_event_enable(fd)); 76 FAIL_IF(perf_event_reset(fd)); 80 FAIL_IF(read(fd, &v, sizeof(v)) != sizeof(v)); 118 perf_event_disable(fd); 119 close(fd);
|
H A D | entry_flush.c | 24 int fd, passes = 0, iter, rc = 0; local 56 fd = perf_event_open_counter(PERF_TYPE_HW_CACHE, PERF_L1D_READ_MISS_CONFIG, -1); 57 FAIL_IF(fd < 0); 61 FAIL_IF(perf_event_enable(fd)); 75 FAIL_IF(perf_event_reset(fd)); 79 FAIL_IF(read(fd, &v, sizeof(v)) != sizeof(v)); 118 perf_event_disable(fd); 119 close(fd);
|
/linux-master/arch/arm/include/asm/ |
H A D | syscalls.h | 11 asmlinkage long sys_arm_fadvise64_64(int fd, int advice, 19 asmlinkage long sys_oabi_fstat64(unsigned long fd, 25 asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd, 28 asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, 41 asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen); 42 asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen); 43 asmlinkage long sys_oabi_sendto(int fd, void __user *buff, 48 asmlinkage long sys_oabi_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags);
|