/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_sched.c | 36 int fd, 39 struct fd f = fdget(fd); 66 int fd, 70 struct fd f = fdget(fd); 124 args->in.fd, 129 args->in.fd, 35 amdgpu_sched_process_priority_override(struct amdgpu_device *adev, int fd, int32_t priority) argument 65 amdgpu_sched_context_priority_override(struct amdgpu_device *adev, int fd, unsigned ctx_id, int32_t priority) argument
|
/linux-master/tools/lib/perf/ |
H A D | evsel.c | 47 ((int *)xyarray__entry(_evsel->fd, _cpu_map_idx, _thread)) 54 evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int)); 56 if (evsel->fd) { 61 int *fd = FD(evsel, idx, thread); local 63 if (fd) 64 *fd = -1; 69 return evsel->fd != NULL ? 0 : -ENOMEM; 90 int *fd; local 101 if (!leader->fd) 104 fd 149 int fd, group_fd, *evsel_fd; local 185 int *fd = FD(evsel, cpu_map_idx, thread); local 232 int *fd = FD(evsel, idx, thread); local 261 int *fd = FD(evsel, idx, thread); local 284 int *fd = FD(evsel, cpu_map_idx, thread); local 325 int *fd = FD(evsel, cpu_map_idx, thread); local 391 int *fd = FD(evsel, cpu_map_idx, thread); local 418 int *fd = FD(evsel, cpu_map_idx, thread); local [all...] |
/linux-master/arch/xtensa/kernel/ |
H A D | smp.c | 498 struct flush_data *fd = arg; local 499 local_flush_tlb_page(fd->vma, fd->addr1); 504 struct flush_data fd = { local 508 on_each_cpu(ipi_flush_tlb_page, &fd, 1); 513 struct flush_data *fd = arg; local 514 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); 520 struct flush_data fd local 530 struct flush_data *fd = arg; local 536 struct flush_data fd = { local 557 struct flush_data *fd = arg; local 564 struct flush_data fd = { local 574 struct flush_data *fd = arg; local 581 struct flush_data fd = { local 591 struct flush_data *fd = arg; local 597 struct flush_data fd = { local 609 struct flush_data *fd = arg; local 616 struct flush_data fd = { local 625 struct flush_data *fd = arg; local 632 struct flush_data fd = { local [all...] |
/linux-master/tools/power/cpupower/debug/i386/ |
H A D | centrino-decode.c | 31 int fd; local 42 fd = open(file, O_RDONLY); 44 if (fd < 0) 47 if (lseek(fd, msr, SEEK_CUR) == -1) 50 if (read(fd, &val, 8) != 8) 58 close(fd);
|
H A D | powernow-k8-decode.c | 31 int fd; local 39 fd = open(file, O_RDONLY); 40 if (fd < 0) 42 lseek(fd, MSR_FIDVID_STATUS, SEEK_CUR); 43 if (read(fd, &msr, 8) != 8) 50 close(fd);
|
/linux-master/tools/power/cpupower/utils/helpers/ |
H A D | sysfs.c | 20 int fd; local 23 fd = open(path, O_RDONLY); 24 if (fd == -1) 27 numread = read(fd, buf, buflen - 1); 29 close(fd); 34 close(fd); 50 int fd; local 70 fd = open(path, O_RDONLY); 71 if (fd == -1) 74 numread = read(fd, linebu 128 int fd; local 163 int fd; local [all...] |
/linux-master/arch/um/drivers/ |
H A D | tty.c | 43 int fd, err, mode = 0; local 52 fd = open(data->dev, mode); 53 if (fd < 0) 57 CATCH_EINTR(err = tcgetattr(fd, &data->tt)); 61 err = raw(fd); 67 return fd;
|
H A D | umcast_user.c | 70 int fd, yes = 1, err = -EINVAL; local 78 fd = socket(AF_INET, SOCK_DGRAM, 0); 80 if (fd < 0) { 87 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) < 0) { 96 if (setsockopt(fd, SOL_IP, IP_MULTICAST_TTL, &pri->ttl, 105 if (setsockopt(fd, SOL_IP, IP_MULTICAST_LOOP, 115 if (bind(fd, (struct sockaddr *) lsin, sizeof(*lsin)) < 0) { 126 if (setsockopt(fd, SOL_IP, IP_ADD_MEMBERSHIP, 140 return fd; 143 close(fd); 148 umcast_close(int fd, void *data) argument 168 umcast_user_write(int fd, void *buf, int len, struct umcast_data *pri) argument [all...] |
H A D | pty.c | 45 int fd, err; local 47 fd = get_pty(); 48 if (fd < 0) { 55 CATCH_EINTR(err = tcgetattr(fd, &data->tt)); 59 err = raw(fd); 64 dev = ptsname(fd); 71 return fd; 74 close(fd); 117 int fd, err; local 120 fd [all...] |
H A D | xterm.c | 91 int pid, fd, new, err; local 115 fd = mkstemp(file); 116 if (fd < 0) { 127 close(fd); 130 close(fd); 132 fd = os_create_unix_socket(file, sizeof(file), 1); 133 if (fd < 0) { 135 "errno = %d\n", -fd); 136 return fd; 148 err = os_set_fd_block(fd, 201 xterm_close(int fd, void *d) argument [all...] |
/linux-master/tools/testing/selftests/powerpc/tm/ |
H A D | tm-vmxcopy.c | 41 int fd; local 52 fd = mkstemp(tmpfile); 53 assert(fd >= 0); 57 assert(write(fd, buf, pgsize) == pgsize); 61 a = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); 97 close(fd);
|
/linux-master/tools/counter/ |
H A D | counter_example.c | 44 int fd; local 49 fd = open("/dev/counter0", O_RDWR); 50 if (fd == -1) { 56 ret = ioctl(fd, COUNTER_ADD_WATCH_IOCTL, watches + i); 63 ret = ioctl(fd, COUNTER_ENABLE_EVENTS_IOCTL); 70 ret = read(fd, event_data, sizeof(event_data));
|
/linux-master/tools/power/acpi/os_specific/service_layers/ |
H A D | osunixmap.c | 68 int fd; local 70 fd = open(SYSTEM_MEMORY, O_RDONLY | O_BINARY); 71 if (fd < 0) { 84 fd, (where - offset)); 87 close(fd); 91 close(fd);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_helpers.h | 11 static inline __u32 id_from_prog_fd(int fd) argument 17 err = bpf_obj_get_info_by_fd(fd, &prog_info, &prog_info_len); 25 static inline __u32 id_from_link_fd(int fd) argument 31 err = bpf_link_get_info_by_fd(fd, &link_info, &link_info_len); 39 static inline __u32 ifindex_from_link_fd(int fd) argument 45 err = bpf_link_get_info_by_fd(fd, &link_info, &link_info_len);
|
H A D | sockopt_sk.c | 17 int fd, err; local 27 fd = socket(AF_INET, SOCK_STREAM, 0); 28 if (fd < 0) { 43 err = setsockopt(fd, SOL_IP, IP_TOS, big_buf, optlen); 51 err = getsockopt(fd, SOL_IP, IP_TOS, big_buf, &optlen); 66 err = setsockopt(fd, SOL_IP, IP_TTL, &buf, 1); 75 err = setsockopt(fd, SOL_CUSTOM, 0, &buf, 1); 83 err = getsockopt(fd, SOL_CUSTOM, 0, &buf, &optlen); 103 err = setsockopt(fd, SOL_IP, IP_FREEBIND, big_buf, optlen); 109 err = getsockopt(fd, SOL_I [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | urandom_read.c | 34 static noinline void urandom_read(int fd, int count) argument 40 read(fd, buf, BUF_SIZE); 61 int fd = open("/dev/urandom", O_RDONLY); local 65 if (fd < 0) 91 urandom_read(fd, count); 97 close(fd);
|
H A D | cgroup_helpers.c | 64 int fd, cfd; local 71 fd = open(path, O_RDONLY); 72 if (fd < 0) { 76 len = read(fd, enable, sizeof(enable) - 1); 78 close(fd); 82 close(fd); 86 close(fd); 132 int fd; local 135 fd = open(file_path, O_RDWR); 136 if (fd < 254 int fd, rc = 0; local 365 int fd; local 407 int fd; local 575 int fd, rc = 0; local [all...] |
/linux-master/tools/crypto/ccp/ |
H A D | dbc.c | 21 int get_nonce(int fd, void *nonce_out, void *signature) argument 32 if (ioctl(fd, DBCIOCNONCE, &tmp)) 39 int set_uid(int fd, __u8 *uid, __u8 *signature) argument 49 if (ioctl(fd, DBCIOCUID, &tmp)) 54 int process_param(int fd, int msg_index, __u8 *signature, int *data) argument 67 if (ioctl(fd, DBCIOCPARAM, &tmp))
|
/linux-master/tools/testing/selftests/mm/ |
H A D | hugepage-mmap.c | 68 int fd, ret; local 73 fd = memfd_create("hugepage-mmap", MFD_HUGETLB); 74 if (fd < 0) 77 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, fd, 0); 79 close(fd); 89 close(fd);
|
/linux-master/arch/riscv/kernel/ |
H A D | sys_riscv.c | 14 unsigned long fd, off_t offset, 20 return ksys_mmap_pgoff(addr, len, prot, flags, fd, 27 unsigned long, fd, off_t, offset) 29 return riscv_sys_mmap(addr, len, prot, flags, fd, offset, 0); 36 unsigned long, fd, off_t, offset) 42 return riscv_sys_mmap(addr, len, prot, flags, fd, offset, 12); 12 riscv_sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, off_t offset, unsigned long page_shift_offset) argument
|
/linux-master/samples/uhid/ |
H A D | uhid-example.c | 159 static int uhid_write(int fd, const struct uhid_event *ev) argument 163 ret = write(fd, ev, sizeof(*ev)); 176 static int create(int fd) argument 191 return uhid_write(fd, &ev); 194 static void destroy(int fd) argument 201 uhid_write(fd, &ev); 225 static int event(int fd) argument 231 ret = read(fd, &ev, sizeof(ev)); 278 static int send_event(int fd) argument 298 return uhid_write(fd, 301 keyboard(int fd) argument 389 int fd; local [all...] |
/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth-trace.h | 15 #define TR_FMT "[%s] fd: addr=0x%llx, len=%u, off=%u" 27 const struct dpaa2_fd *fd), 30 TP_ARGS(netdev, fd), 48 __entry->fd_addr = dpaa2_fd_get_addr(fd); 49 __entry->fd_len = dpaa2_fd_get_len(fd); 50 __entry->fd_offset = dpaa2_fd_get_offset(fd); 68 /* Tx (egress) fd */ 71 const struct dpaa2_fd *fd), 73 TP_ARGS(netdev, fd) 76 /* Tx (egress) XSK fd */ [all...] |
/linux-master/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 55 int fd; local 70 fd = open(filename, O_WRONLY); 71 if (fd < 0) { 76 written = write(fd, buf, buf_len); 87 if (close(fd) != 0) { 111 FILE *fd; local 116 fd=fopen("/etc/passwd","a"); 117 if (fd == NULL) 119 if (fseek(fd, 0, SEEK_END)) 128 int value = putpwent(&p,fd); 140 FILE *fd; local 165 int fd = open(add_uid_whitelist_policy_file, O_WRONLY); local 187 int fd; local 211 int fd; local [all...] |
/linux-master/arch/sh/kernel/ |
H A D | smp.c | 383 struct flush_tlb_data *fd = (struct flush_tlb_data *)info; local 385 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); 395 struct flush_tlb_data fd; local 397 fd.vma = vma; 398 fd.addr1 = start; 399 fd.addr2 = end; 400 smp_call_function(flush_tlb_range_ipi, (void *)&fd, 1); 413 struct flush_tlb_data *fd local 420 struct flush_tlb_data fd; local 429 struct flush_tlb_data *fd = (struct flush_tlb_data *)info; local 439 struct flush_tlb_data fd; local 456 struct flush_tlb_data *fd = (struct flush_tlb_data *)info; local 462 struct flush_tlb_data fd; local [all...] |
/linux-master/tools/perf/tests/ |
H A D | dso-data.c | 23 int fd, i; local 29 fd = mkstemp(templ); 30 if (fd < 0) { 37 close(fd); 44 if (size != write(fd, buf, size)) 48 close(fd); 108 int fd = dso__data_get_fd(dso, machine); local 110 if (fd >= 0) 113 return fd; 184 scnprintf(path, PATH_MAX, "%s/self/fd", procfs__mountpoin 255 int dso_cnt, limit, i, fd; local 313 int fd = open("/dev/null", O_RDONLY); local 325 int fd, fd_extra; local [all...] |