Home
last modified time | relevance | path

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

1234

/linux/tools/testing/selftests/core/
H A Dunshare_test.c47 lseek(fd, 0, SEEK_SET); in TEST()
54 lseek(fd, 0, SEEK_SET); in TEST()
61 lseek(fd, 0, SEEK_SET); in TEST()
69 lseek(fd, 0, SEEK_SET); in TEST()
78 lseek(fd, 0, SEEK_SET); in TEST()
/linux/arch/sparc/boot/
H A 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()
218 if (lseek(image, offset, 0) < 0) in main()
239 if (lseek(image, 4, 0) < 0) in main()
253 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) in main()
/linux/tools/testing/selftests/kvm/lib/
H A Delf.c79 offset_rv = lseek(fd, 0, SEEK_SET); in elfhdr_get()
140 offset_rv = lseek(fd, offset, SEEK_SET); in kvm_vm_elf_load()
182 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
/linux/tools/power/cpupower/utils/helpers/
H A Dmsr.c35 if (lseek(fd, idx, SEEK_CUR) == -1) in read_msr()
64 if (lseek(fd, idx, SEEK_CUR) == -1) in write_msr()
/linux/tools/power/acpi/tools/ec/
H A 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/tools/testing/selftests/mm/
H A Dcompaction_test.c117 lseek(fd, 0, SEEK_SET); in check_compaction()
134 lseek(fd, 0, SEEK_SET); in check_compaction()
178 lseek(fd, 0, SEEK_SET); in set_zero_hugepages()
H A Dhugepage-vmemmap.c45 lseek(fd, (unsigned long)addr / pagesize * sizeof(pagemap), SEEK_SET); in virt_to_pfn()
61 lseek(fd, pfn * sizeof(pageflags), SEEK_SET); in check_page_flags()
H A Dmkdirty.c110 lseek(mem_fd, (uintptr_t) mem, SEEK_SET); in test_ptrace_write()
140 lseek(mem_fd, (uintptr_t) mem, SEEK_SET); in test_ptrace_write_thp()
/linux/tools/testing/selftests/powerpc/papr_vpd/
H A Dpapr_vpd.c48 size = lseek(fd, 0, SEEK_END); in dev_papr_vpd_get_handle_all()
101 FAIL_IF(consumed != lseek(fd, 0, SEEK_END)); in dev_papr_vpd_get_handle_byte_at_a_time()
195 const off_t size = lseek(fd, 0, SEEK_END); in papr_vpd_reread()
280 size = lseek(fd, 0, SEEK_END); in papr_vpd_system_loc_code()
/linux/tools/testing/selftests/thermal/intel/power_floor/
H A Dpower_floor_test.c74 if ((lseek(fd, 0L, SEEK_SET)) < 0) { in main()
95 if ((lseek(fd, 0L, SEEK_SET)) < 0) { in main()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsubprogs.c19 lseek(ctx->fd, SEEK_SET, 0); in toggle_jit_harden()
21 lseek(ctx->fd, SEEK_SET, 0); in toggle_jit_harden()
/linux/tools/testing/selftests/thermal/intel/workload_hint/
H A Dworkload_hint_test.c117 if ((lseek(fd, 0L, SEEK_SET)) < 0) { in main()
138 if ((lseek(fd, 0L, SEEK_SET)) < 0) { in main()
/linux/arch/powerpc/boot/
H A Dmktree.c110 if (lseek(in_fd, (64 * 1024), SEEK_SET) < 0) { in main()
141 if (lseek(out_fd, 0, SEEK_SET) < 0) { in main()
H A Dhack-coff.c69 if (lseek(fd, (long) sizeof(struct external_filehdr), 0) == -1 in main()
/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_user_mem.c54 lseek(fd, 0, 0); in check_usermem_access_fault()
84 lseek(fd, 0, 0); in check_usermem_access_fault()
H A 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/arch/alpha/boot/tools/
H A Dobjstrip.c170 lseek(fd, elf->e_phoff, SEEK_SET); in main()
228 if (lseek(fd, offset, SEEK_SET) != offset) { in main()
/linux/tools/bootconfig/
H A Dmain.c191 if (lseek(fd, -BOOTCONFIG_MAGIC_LEN, SEEK_END) < 0) in load_xbc_from_initrd()
201 if (lseek(fd, -(8 + BOOTCONFIG_MAGIC_LEN), SEEK_END) < 0) in load_xbc_from_initrd()
218 if (lseek(fd, stat.st_size - (size + 8 + BOOTCONFIG_MAGIC_LEN), in load_xbc_from_initrd()
/linux/tools/testing/selftests/proc/
H A Dproc-loadavg-001.c64 lseek(fd, 0, SEEK_SET); in main()
/linux/tools/leds/
H A Dled_hw_brightness_mon.c73 ret = lseek(pollfd.fd, 0, SEEK_SET); in main()
/linux/samples/seccomp/
H A Duser-trap.c159 if (lseek(mem, req->data.args[0], SEEK_SET) < 0) { in handle_req()
170 if (lseek(mem, req->data.args[1], SEEK_SET) < 0) { in handle_req()
/linux/tools/power/cpupower/debug/i386/
H A Dpowernow-k8-decode.c42 lseek(fd, MSR_FIDVID_STATUS, SEEK_CUR); in get_fidvid()
H A Dcentrino-decode.c47 if (lseek(fd, msr, SEEK_CUR) == -1) in rdmsr()
/linux/tools/perf/util/
H A Dheader.c748 * Do a first pass to count number of pmu to avoid lseek so this in write_pmu_mappings()
2385 if (lseek(input, orig_offset, SEEK_SET) == (off_t)-1) in perf_header__read_build_ids()
3452 if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) {
3453 pr_debug("Failed to lseek to %" PRIu64 " offset for feature "
3545 (*p)->offset = lseek(ff->fd, 0, SEEK_CUR); in perf_header__fprintf_info()
3568 lseek(ff->fd, (*p)->offset, SEEK_SET); in do_write_feat()
3572 (*p)->size = lseek(ff->fd, 0, SEEK_CUR) - (*p)->offset; in do_write_feat()
3604 lseek(fd, sec_start + sec_size, SEEK_SET); in do_write_feat()
3611 lseek(fd, sec_start, SEEK_SET); in perf_header__adds_write()
3675 attr_offset = lseek(f in perf_header__write_pipe()
[all...]
/linux/tools/testing/selftests/net/
H A 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