Home
last modified time | relevance | path

Searched refs:SEEK_SET (Results 1 – 25 of 96) sorted by relevance

1234

/Linux-v6.1/tools/perf/util/
Dsymbol-minimal.c113 fseek(fp, 0, SEEK_SET); in filename__read_build_id()
133 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
157 fseek(fp, offset, SEEK_SET); in filename__read_build_id()
184 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
208 fseek(fp, offset, SEEK_SET); in filename__read_build_id()
305 if (lseek(fd, 0, SEEK_SET)) in fd__is_64_bit()
/Linux-v6.1/tools/testing/selftests/vm/
Dcompaction_test.c112 lseek(fd, 0, SEEK_SET); in check_compaction()
121 lseek(fd, 0, SEEK_SET); in check_compaction()
143 lseek(fd, 0, SEEK_SET); in check_compaction()
Dhugepage-vmemmap.c63 lseek(fd, (unsigned long)addr / PAGE_SIZE * sizeof(pagemap), SEEK_SET); in virt_to_pfn()
79 lseek(fd, pfn * sizeof(pageflags), SEEK_SET); in check_page_flags()
/Linux-v6.1/tools/testing/selftests/kvm/lib/
Delf.c79 offset_rv = lseek(fd, 0, SEEK_SET); in elfhdr_get()
139 offset_rv = lseek(fd, offset, SEEK_SET); in kvm_vm_elf_load()
180 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
/Linux-v6.1/tools/testing/selftests/sparc64/drivers/
Dadi-test.c476 offset_out = seek_adi(fd, offset_in, SEEK_SET); in test4_lseek()
483 offset_out = seek_adi(fd, offset_in, SEEK_SET); in test4_lseek()
528 oret = seek_adi(fd, offset, SEEK_SET); in test5_rw_aligned_1byte()
538 oret = seek_adi(fd, offset, SEEK_SET); in test5_rw_aligned_1byte()
575 oret = seek_adi(fd, offset, SEEK_SET); in test6_rw_aligned_9434bytes()
587 oret = seek_adi(fd, offset, SEEK_SET); in test6_rw_aligned_9434bytes()
629 oret = seek_adi(fd, offset, SEEK_SET); in test7_rw_aligned_14963bytes()
641 oret = seek_adi(fd, offset, SEEK_SET); in test7_rw_aligned_14963bytes()
/Linux-v6.1/tools/power/acpi/tools/ec/
Dec_access.c151 lseek(fd, 0, SEEK_SET); in dump_ec()
180 error = lseek(fd, byte_offset, SEEK_SET); in read_ec_val()
196 error = lseek(fd, byte_offset, SEEK_SET); in write_ec_val()
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dsubprogs.c19 lseek(ctx->fd, SEEK_SET, 0); in toggle_jit_harden()
21 lseek(ctx->fd, SEEK_SET, 0); in toggle_jit_harden()
/Linux-v6.1/arch/powerpc/boot/
Dmktree.c110 if (lseek(in_fd, (64 * 1024), SEEK_SET) < 0) { in main()
141 if (lseek(out_fd, 0, SEEK_SET) < 0) { in main()
/Linux-v6.1/arch/mips/boot/tools/
Drelocs.c269 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_shdrs()
309 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_strtabs()
333 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs()
377 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs()
418 if (fseek(fp, sec->shdr_offset, SEEK_SET) < 0) in remove_relocs()
432 if (fseek(fp, sec->shdr_offset, SEEK_SET) < 0) in remove_relocs()
607 if (fseek(outf, sec_reloc->shdr.sh_offset, SEEK_SET) < 0) { in emit_relocs()
/Linux-v6.1/scripts/
Dextract-sys-certs.pl125 die $vmlinux if (!defined(sysseek(FD, $size_off, SEEK_SET)));
147 die $vmlinux if (!defined(sysseek(FD, $foff, SEEK_SET)));
Drecordmcount.c84 case SEEK_SET: in ulseek()
237 if (ulseek(offset - 1, SEEK_SET) < 0) in make_nop_x86()
288 if (ulseek(off, SEEK_SET) < 0) in make_nop_arm()
310 if (ulseek(offset, SEEK_SET) < 0) in make_nop_arm64()
Drecordmcount.h290 if (ulseek(sb.st_size, SEEK_SET) < 0) in append_func()
298 if (ulseek(t, SEEK_SET) < 0) in append_func()
343 if (ulseek(0, SEEK_SET) < 0) in append_func()
496 if (ulseek((void *)relp - (void *)ehdr, SEEK_SET) < 0) in nop_mcount()
/Linux-v6.1/arch/sparc/boot/
Dpiggyback.c141 if (lseek(kernelfd, 0, SEEK_SET) < 0) in get_hdrs_offset()
161 if (lseek(kernelfd, offset, SEEK_SET) < 0) in get_hdrs_offset()
/Linux-v6.1/tools/power/acpi/common/
Dcmfsize.c54 status = fseek(file, current_offset, SEEK_SET); in cm_get_file_size()
/Linux-v6.1/tools/perf/ui/
Dbrowser.c112 case SEEK_SET: in ui_browser__list_head_seek()
144 case SEEK_SET: in ui_browser__rb_tree_seek()
259 browser->seek(browser, 0, SEEK_SET); in ui_browser__reset_index()
383 browser->seek(browser, browser->top_idx, SEEK_SET); in ui_browser__update_nr_entries()
611 case SEEK_SET: in ui_browser__argv_seek()
/Linux-v6.1/arch/alpha/boot/tools/
Dobjstrip.c170 lseek(fd, elf->e_phoff, SEEK_SET); in main()
228 if (lseek(fd, offset, SEEK_SET) != offset) { in main()
Dmkbb.c142 lseek(dev, 0L, SEEK_SET); in main()
/Linux-v6.1/tools/testing/selftests/proc/
Dproc-loadavg-001.c64 lseek(fd, 0, SEEK_SET); in main()
/Linux-v6.1/tools/leds/
Dled_hw_brightness_mon.c73 ret = lseek(pollfd.fd, 0, SEEK_SET); in main()
/Linux-v6.1/samples/seccomp/
Duser-trap.c155 if (lseek(mem, req->data.args[0], SEEK_SET) < 0) { in handle_req()
166 if (lseek(mem, req->data.args[1], SEEK_SET) < 0) { in handle_req()
/Linux-v6.1/arch/x86/tools/
Drelocs.c419 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_ehdr()
446 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) { in read_shdrs()
484 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_strtabs()
511 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs()
531 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs()
571 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_relocs()
/Linux-v6.1/tools/testing/selftests/powerpc/dscr/
Ddscr.h86 lseek(fd, 0, SEEK_SET); in get_default_dscr()
/Linux-v6.1/tools/perf/tests/
Dbpf.c53 lseek(fds[i % 2], i, (i / 2) % 2 ? SEEK_CUR : SEEK_SET); in llseek_loop()
54 lseek(fds[(i + 1) % 2], i, (i / 2) % 2 ? SEEK_CUR : SEEK_SET); in llseek_loop()
/Linux-v6.1/tools/testing/selftests/arm64/mte/
Dmte_common_util.c190 lseek(fd, 0, SEEK_SET); in mte_allocate_file_memory()
217 lseek(fd, 0, SEEK_SET); in mte_allocate_file_memory_tag_range()
/Linux-v6.1/tools/testing/selftests/net/
Dtcp_fastopen_backup_key.c59 lseek(proc_fd, 0, SEEK_SET); in get_keys()
84 lseek(proc_fd, 0, SEEK_SET); in set_keys()

1234