Home
last modified time | relevance | path

Searched refs:lseek (Results 1 – 25 of 78) sorted by relevance

1234

/Linux-v5.4/arch/sparc/boot/
Dpiggyback.c141 if (lseek(kernelfd, 0, SEEK_SET) < 0) in get_hdrs_offset()
157 if (lseek(kernelfd, offset, SEEK_SET) < 0) in get_hdrs_offset()
214 if (lseek(image, offset, 0) < 0) in main()
235 if (lseek(image, 4, 0) < 0) in main()
249 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) in main()
/Linux-v5.4/tools/testing/selftests/vm/
Dcompaction_test.c111 lseek(fd, 0, SEEK_SET); in check_compaction()
120 lseek(fd, 0, SEEK_SET); in check_compaction()
142 lseek(fd, 0, SEEK_SET); in check_compaction()
/Linux-v5.4/tools/testing/selftests/kvm/lib/
Delf.c80 offset_rv = lseek(fd, 0, SEEK_SET); in elfhdr_get()
141 offset_rv = lseek(fd, offset, SEEK_SET); in kvm_vm_elf_load()
184 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
/Linux-v5.4/tools/power/cpupower/utils/helpers/
Dmsr.c36 if (lseek(fd, idx, SEEK_CUR) == -1) in read_msr()
65 if (lseek(fd, idx, SEEK_CUR) == -1) in write_msr()
/Linux-v5.4/arch/mips/include/asm/
Dpmon.h19 off_t (*lseek) (int, off_t, int); member
37 #define pmon_lseek(fd, off, whence) debug_vectors->lseek(fd, off, whence)
/Linux-v5.4/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-v5.4/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()
Dhack-coff.c69 if (lseek(fd, (long) sizeof(struct external_filehdr), 0) == -1 in main()
/Linux-v5.4/tools/testing/selftests/proc/
Dproc-loadavg-001.c65 lseek(fd, 0, SEEK_SET); in main()
/Linux-v5.4/drivers/pci/hotplug/
Dcpqphp_sysfs.c154 static loff_t lseek(struct file *file, loff_t off, int whence) in lseek() function
179 .llseek = lseek,
/Linux-v5.4/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-v5.4/tools/leds/
Dled_hw_brightness_mon.c73 ret = lseek(pollfd.fd, 0, SEEK_SET); in main()
/Linux-v5.4/tools/perf/util/
Dheader.c2036 if (lseek(input, orig_offset, SEEK_SET) == (off_t)-1) in perf_header__read_build_ids()
2892 if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) { in perf_file_section__fprintf_info()
2972 (*p)->offset = lseek(ff->fd, 0, SEEK_CUR); in do_write_feat()
2979 lseek(ff->fd, (*p)->offset, SEEK_SET); in do_write_feat()
2983 (*p)->size = lseek(ff->fd, 0, SEEK_CUR) - (*p)->offset; in do_write_feat()
3016 lseek(fd, sec_start + sec_size, SEEK_SET); in perf_header__adds_write()
3023 lseek(fd, sec_start, SEEK_SET); in perf_header__adds_write()
3070 lseek(fd, sizeof(f_header), SEEK_SET); in perf_session__write_header()
3073 evsel->id_offset = lseek(fd, 0, SEEK_CUR); in perf_session__write_header()
3081 attr_offset = lseek(ff.fd, 0, SEEK_CUR); in perf_session__write_header()
[all …]
Dtrace-event-info.c47 off_t hdr_pos = lseek(output_fd, 0, SEEK_CUR); in record_file()
562 tdata->size = lseek(output_fd, 0, SEEK_CUR); in tracing_data_get()
/Linux-v5.4/tools/power/cpupower/debug/i386/
Dcentrino-decode.c47 if (lseek(fd, msr, SEEK_CUR) == -1) in rdmsr()
Dpowernow-k8-decode.c42 lseek(fd, MSR_FIDVID_STATUS, SEEK_CUR); in get_fidvid()
/Linux-v5.4/tools/testing/selftests/powerpc/dscr/
Ddscr.h86 lseek(fd, 0, SEEK_SET); in get_default_dscr()
/Linux-v5.4/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-v5.4/tools/perf/tests/
Dbpf.c51 lseek(fds[i % 2], i, (i / 2) % 2 ? SEEK_CUR : SEEK_SET); in llseek_loop()
52 lseek(fds[(i + 1) % 2], i, (i / 2) % 2 ? SEEK_CUR : SEEK_SET); in llseek_loop()
/Linux-v5.4/arch/um/os-Linux/
Duser_syms.c67 EXPORT_SYMBOL_PROTO(lseek);
/Linux-v5.4/tools/testing/selftests/net/
Dtcp_fastopen_backup_key.c61 lseek(proc_fd, 0, SEEK_SET); in get_keys()
86 lseek(proc_fd, 0, SEEK_SET); in set_keys()
/Linux-v5.4/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c204 filesize = lseek(fd, 0, SEEK_END); in test_file()
/Linux-v5.4/arch/x86/entry/vdso/
Dvdso2c.c189 tmp_len = lseek(fd, 0, SEEK_END); in map_input()
/Linux-v5.4/arch/sparc/vdso/
Dvdso2c.c168 tmp_len = lseek(fd, 0, SEEK_END); in map_input()

1234