Home
last modified time | relevance | path

Searched refs:sret (Results 1 – 17 of 17) sorted by relevance

/linux/tools/perf/jvmti/
H A Djvmti_agent.c57 ssize_t sret; in get_e_machine() local
69 sret = read(fd, id, sizeof(id)); in get_e_machine()
70 if (sret != sizeof(id)) in get_e_machine()
77 sret = read(fd, &info, sizeof(info)); in get_e_machine()
78 if (sret != sizeof(info)) in get_e_machine()
422 size_t sret, len, size, flen = 0; in jvmti_write_debug_info() local
465 sret = fwrite_unlocked(&rec, sizeof(rec), 1, fp); in jvmti_write_debug_info()
466 if (sret != 1) in jvmti_write_debug_info()
473 sret = fwrite_unlocked(&addr, len, 1, fp); in jvmti_write_debug_info()
474 if (sret != 1) in jvmti_write_debug_info()
[all …]
/linux/tools/power/cpupower/utils/helpers/
H A Dbitmask.c99 static int scan_was_ok(int sret, char nextc, const char *ok_next_chars) in scan_was_ok() argument
101 return sret == 1 || in scan_was_ok()
102 (sret == 2 && strchr(ok_next_chars, nextc) != NULL); in scan_was_ok()
205 int sret; /* sscanf return (number of matches) */ in bitmask_parselist() local
207 sret = sscanf(p, "%u%c", &a, &nextc); in bitmask_parselist()
208 if (!scan_was_ok(sret, nextc, ",-")) in bitmask_parselist()
215 sret = sscanf(c1, "%u%c", &b, &nextc); in bitmask_parselist()
216 if (!scan_was_ok(sret, nextc, ",:")) in bitmask_parselist()
220 sret = sscanf(c1, "%u%c", &s, &nextc); in bitmask_parselist()
221 if (!scan_was_ok(sret, nextc, ",")) in bitmask_parselist()
/linux/tools/testing/selftests/mm/
H A Dseal_elf.c26 int sret; in sys_mseal() local
29 sret = syscall(__NR_mseal, start, len, 0); in sys_mseal()
30 return sret; in sys_mseal()
35 int sret; in sys_mprotect() local
38 sret = syscall(__NR_mprotect, ptr, size, prot); in sys_mprotect()
39 return sret; in sys_mprotect()
H A Dmseal_test.c58 int sret; in sys_mseal() local
61 sret = syscall(__NR_mseal, start, len, 0); in sys_mseal()
62 return sret; in sys_mseal()
67 int sret; in sys_mprotect() local
70 sret = syscall(__NR_mprotect, ptr, size, prot); in sys_mprotect()
71 return sret; in sys_mprotect()
77 int sret; in sys_mprotect_pkey() local
80 sret = syscall(__NR_pkey_mprotect, ptr, size, orig_prot, pkey); in sys_mprotect_pkey()
81 return sret; in sys_mprotect_pkey()
86 int sret; in sys_munmap() local
[all …]
H A Dprotection_keys.c466 int sret; in sys_mprotect_pkey() local
472 sret = syscall(__NR_pkey_mprotect, ptr, size, orig_prot, pkey); in sys_mprotect_pkey()
474 dprintf2("SYS_mprotect_key sret: %d\n", sret); in sys_mprotect_pkey()
480 return sret; in sys_mprotect_pkey()
1748 int sret; in test_mprotect_pkey_on_unsupported_cpu() local
1755 sret = syscall(__NR_pkey_mprotect, ptr, size, PROT_READ, pkey); in test_mprotect_pkey_on_unsupported_cpu()
1756 pkey_assert(sret < 0); in test_mprotect_pkey_on_unsupported_cpu()
/linux/tools/perf/util/
H A Dcputopo.c41 ssize_t sret; in build_cpu_topology() local
55 sret = getline(&buf, &len, fp); in build_cpu_topology()
57 if (sret <= 0) in build_cpu_topology()
86 sret = getline(&buf, &len, fp); in build_cpu_topology()
88 if (sret <= 0) in build_cpu_topology()
H A Dpmu.c298 ssize_t sret; in perf_pmu__parse_scale() local
316 sret = read(fd, scale, sizeof(scale)-1); in perf_pmu__parse_scale()
317 if (sret < 0) in perf_pmu__parse_scale()
320 if (scale[sret - 1] == '\n') in perf_pmu__parse_scale()
321 scale[sret - 1] = '\0'; in perf_pmu__parse_scale()
323 scale[sret] = '\0'; in perf_pmu__parse_scale()
335 ssize_t sret; in perf_pmu__parse_unit() local
348 sret = read(fd, alias->unit, UNIT_MAX_LEN); in perf_pmu__parse_unit()
349 if (sret < 0) in perf_pmu__parse_unit()
354 if (alias->unit[sret - 1] == '\n') in perf_pmu__parse_unit()
[all …]
H A Dgenelf.c104 ssize_t sret; in gen_build_id() local
110 sret = read(fd, note->build_id, sz); in gen_build_id()
114 if (sret != (ssize_t)sz) in gen_build_id()
/linux/arch/x86/virt/vmx/tdx/
H A Dtdx.c75 u64 sret = sc_retry(func, fn, args); in sc_retry_prerr() local
77 if (sret == TDX_SUCCESS) in sc_retry_prerr()
80 if (sret == TDX_SEAMCALL_VMFAILINVALID) in sc_retry_prerr()
83 if (sret == TDX_SEAMCALL_GP) in sc_retry_prerr()
86 if (sret == TDX_SEAMCALL_UD) in sc_retry_prerr()
89 err_func(fn, sret, args); in sc_retry_prerr()
1290 u64 sret; in paddr_is_tdx_private() local
1296 sret = __seamcall_ret(TDH_PHYMEM_PAGE_RDMD, &args); in paddr_is_tdx_private()
1303 if (sret) in paddr_is_tdx_private()
/linux/drivers/i2c/busses/
H A Di2c-diolan-u2c.c345 int ret, sret; in diolan_usb_xfer() local
401 sret = diolan_i2c_stop(dev); in diolan_usb_xfer()
402 if (sret < 0 && ret >= 0) in diolan_usb_xfer()
403 ret = sret; in diolan_usb_xfer()
/linux/arch/riscv/kernel/
H A Dentry.S84 sret
279 sret
/linux/tools/testing/selftests/kvm/lib/riscv/
H A Dhandlers.S101 sret
/linux/arch/riscv/kvm/
H A Dvcpu_switch.S112 sret
233 sret
/linux/arch/riscv/include/asm/
H A Dinsn.h262 __RISCV_INSN_FUNCS(sret, RVG_MASK_SRET, RVG_MATCH_SRET)
/linux/drivers/usb/host/
H A Dxhci-hub.c1871 int sret; in xhci_bus_resume() local
1955 sret = xhci_handshake(ports[port_index]->addr, PORT_PLC, in xhci_bus_resume()
1957 if (sret) { in xhci_bus_resume()
/linux/fs/btrfs/
H A Dctree.c4640 int sret; in btrfs_search_forward() local
4662 sret = btrfs_bin_search(cur, 0, min_key, &slot); in btrfs_search_forward()
4663 if (sret < 0) { in btrfs_search_forward()
4664 ret = sret; in btrfs_search_forward()
4677 if (sret && slot > 0) in btrfs_search_forward()
4700 sret = btrfs_find_next_key(root, path, min_key, level, in btrfs_search_forward()
4702 if (sret == 0) { in btrfs_search_forward()
/linux/kernel/trace/
H A Dtrace.c6639 ssize_t sret; in tracing_read_pipe() local
6649 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
6650 if (sret != -EBUSY) in tracing_read_pipe()
6656 sret = iter->trace->read(iter, filp, ubuf, cnt, ppos); in tracing_read_pipe()
6657 if (sret) in tracing_read_pipe()
6662 sret = tracing_wait_pipe(filp); in tracing_read_pipe()
6663 if (sret <= 0) in tracing_read_pipe()
6668 sret = 0; in tracing_read_pipe()
6723 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
6731 if (sret == -EBUSY) in tracing_read_pipe()
[all …]