Home
last modified time | relevance | path

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

/linux-6.6.21/tools/perf/jvmti/
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-6.6.21/tools/power/cpupower/utils/helpers/
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-6.6.21/tools/perf/util/
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()
Dpmu.c289 ssize_t sret; in perf_pmu__parse_scale() local
307 sret = read(fd, scale, sizeof(scale)-1); in perf_pmu__parse_scale()
308 if (sret < 0) in perf_pmu__parse_scale()
311 if (scale[sret - 1] == '\n') in perf_pmu__parse_scale()
312 scale[sret - 1] = '\0'; in perf_pmu__parse_scale()
314 scale[sret] = '\0'; in perf_pmu__parse_scale()
326 ssize_t sret; in perf_pmu__parse_unit() local
339 sret = read(fd, alias->unit, UNIT_MAX_LEN); in perf_pmu__parse_unit()
340 if (sret < 0) in perf_pmu__parse_unit()
345 if (alias->unit[sret - 1] == '\n') in perf_pmu__parse_unit()
[all …]
Dgenelf.c109 ssize_t sret; in gen_build_id() local
115 sret = read(fd, note->build_id, sz); in gen_build_id()
119 if (sret != (ssize_t)sz) in gen_build_id()
/linux-6.6.21/drivers/i2c/busses/
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-6.6.21/tools/testing/selftests/mm/
Dprotection_keys.c464 int sret; in sys_mprotect_pkey() local
470 sret = syscall(__NR_pkey_mprotect, ptr, size, orig_prot, pkey); in sys_mprotect_pkey()
472 dprintf2("SYS_mprotect_key sret: %d\n", sret); in sys_mprotect_pkey()
478 return sret; in sys_mprotect_pkey()
1671 int sret; in test_mprotect_pkey_on_unsupported_cpu() local
1678 sret = syscall(__NR_pkey_mprotect, ptr, size, PROT_READ, pkey); in test_mprotect_pkey_on_unsupported_cpu()
1679 pkey_assert(sret < 0); in test_mprotect_pkey_on_unsupported_cpu()
/linux-6.6.21/arch/riscv/kvm/
Dvcpu_switch.S112 sret
233 sret
/linux-6.6.21/arch/riscv/kernel/
Dentry.S171 sret
/linux-6.6.21/arch/riscv/include/asm/
Dinsn.h262 __RISCV_INSN_FUNCS(sret, RVG_MASK_SRET, RVG_MATCH_SRET)
/linux-6.6.21/drivers/usb/host/
Dxhci-hub.c1881 int sret; in xhci_bus_resume() local
1965 sret = xhci_handshake(ports[port_index]->addr, PORT_PLC, in xhci_bus_resume()
1967 if (sret) { in xhci_bus_resume()
/linux-6.6.21/fs/btrfs/
Dctree.c4745 int sret; in btrfs_search_forward() local
4767 sret = btrfs_bin_search(cur, 0, min_key, &slot); in btrfs_search_forward()
4768 if (sret < 0) { in btrfs_search_forward()
4769 ret = sret; in btrfs_search_forward()
4782 if (sret && slot > 0) in btrfs_search_forward()
4805 sret = btrfs_find_next_key(root, path, min_key, level, in btrfs_search_forward()
4807 if (sret == 0) { in btrfs_search_forward()
/linux-6.6.21/kernel/trace/
Dtrace.c6925 ssize_t sret; in tracing_read_pipe() local
6935 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
6936 if (sret != -EBUSY) in tracing_read_pipe()
6942 sret = iter->trace->read(iter, filp, ubuf, cnt, ppos); in tracing_read_pipe()
6943 if (sret) in tracing_read_pipe()
6948 sret = tracing_wait_pipe(filp); in tracing_read_pipe()
6949 if (sret <= 0) in tracing_read_pipe()
6954 sret = 0; in tracing_read_pipe()
7009 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
7017 if (sret == -EBUSY) in tracing_read_pipe()
[all …]