Searched refs:lseek (Results 1 - 68 of 68) sorted by relevance

/linux-4.4.14/arch/sparc/boot/
H A Dpiggyback.c152 if (lseek(kernelfd, 0, SEEK_SET) < 0) get_hdrs_offset()
153 die("lseek"); get_hdrs_offset()
168 if (lseek(kernelfd, offset, SEEK_SET) < 0) get_hdrs_offset()
169 die("lseek"); get_hdrs_offset()
225 if (lseek(image, offset, 0) < 0) main()
226 die("lseek"); main()
246 if (lseek(image, 4, 0) < 0) main()
247 die("lseek"); main()
260 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) main()
261 die("lseek"); main()
/linux-4.4.14/arch/mips/include/asm/
H A Dpmon.h19 off_t (*lseek) (int, off_t, int); member in struct:callvectors
37 #define pmon_lseek(fd, off, whence) debug_vectors->lseek(fd, off, whence)
/linux-4.4.14/tools/power/cpupower/utils/helpers/
H A Dmsr.c35 if (lseek(fd, idx, SEEK_CUR) == -1) read_msr()
64 if (lseek(fd, idx, SEEK_CUR) == -1) write_msr()
/linux-4.4.14/arch/alpha/boot/tools/
H A Dobjstrip.c169 lseek(fd, elf->e_phoff, SEEK_SET); main()
227 if (lseek(fd, offset, SEEK_SET) != offset) { main()
228 perror("lseek"); main()
H A Dmkbb.c141 lseek(dev, 0L, SEEK_SET); main()
/linux-4.4.14/arch/mips/kernel/
H A Dlinux32.c106 /* From the Single Unix Spec: pread & pwrite act like lseek to pos + op +
107 lseek back to original location. They fail just like lseek does on
/linux-4.4.14/tools/power/acpi/tools/ec/
H A Dec_access.c152 lseek(fd, 0, SEEK_SET); dump_ec()
181 error = lseek(fd, byte_offset, SEEK_SET); read_ec_val()
197 error = lseek(fd, byte_offset, SEEK_SET); write_ec_val()
/linux-4.4.14/drivers/usb/serial/
H A Dio_edgeport.h52 * This interface uses read/write/lseek interface to talk to the edgeport driver
62 /* The parameters to the lseek() for the read is: */
/linux-4.4.14/arch/powerpc/boot/
H A Dmktree.c109 if (lseek(in_fd, (64 * 1024), SEEK_SET) < 0) { main()
140 if (lseek(out_fd, 0, SEEK_SET) < 0) { main()
H A Dhack-coff.c73 if (lseek(fd, (long) sizeof(struct external_filehdr), 0) == -1 main()
H A Daddnote.c226 lseek(fd, (long) 0, SEEK_SET); main()
/linux-4.4.14/tools/power/cpupower/debug/i386/
H A Dpowernow-k8-decode.c43 lseek(fd, MSR_FIDVID_STATUS, SEEK_CUR); get_fidvid()
H A Dcentrino-decode.c48 if (lseek(fd, msr, SEEK_CUR) == -1) rdmsr()
/linux-4.4.14/tools/perf/util/
H A Dheader.c747 off_t offset = lseek(fd, 0, SEEK_CUR); write_pmu_mappings()
772 lseek(fd, offset, SEEK_SET); write_pmu_mappings()
1357 if (lseek(input, orig_offset, SEEK_SET) == (off_t)-1) perf_header__read_build_ids()
1964 if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) { perf_file_section__fprintf_info()
1965 pr_debug("Failed to lseek to %" PRIu64 " offset for feature " perf_file_section__fprintf_info()
2009 (*p)->offset = lseek(fd, 0, SEEK_CUR); do_write_feat()
2016 lseek(fd, (*p)->offset, SEEK_SET); do_write_feat()
2020 (*p)->size = lseek(fd, 0, SEEK_CUR) - (*p)->offset; do_write_feat()
2047 lseek(fd, sec_start + sec_size, SEEK_SET); perf_header__adds_write()
2054 lseek(fd, sec_start, SEEK_SET); perf_header__adds_write()
2096 lseek(fd, sizeof(f_header), SEEK_SET); perf_session__write_header()
2099 evsel->id_offset = lseek(fd, 0, SEEK_CUR); perf_session__write_header()
2107 attr_offset = lseek(fd, 0, SEEK_CUR); perf_session__write_header()
2125 header->data_offset = lseek(fd, 0, SEEK_CUR);
2151 lseek(fd, 0, SEEK_SET);
2157 lseek(fd, header->data_offset + header->data_size, SEEK_SET);
2196 lseek(fd, header->feat_offset, SEEK_SET); perf_header__process_sections()
2335 lseek(fd, 0, SEEK_SET); perf_file_header__read()
2406 if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) { perf_file_section__process()
2407 pr_debug("Failed to lseek to %" PRIu64 " offset for feature " perf_file_section__process()
2587 lseek(fd, f_header.attrs.offset, SEEK_SET); perf_session__read_header()
2602 tmp = lseek(fd, 0, SEEK_CUR); perf_session__read_header()
2624 lseek(fd, f_attr.ids.offset, SEEK_SET); perf_session__read_header()
2633 lseek(fd, tmp, SEEK_SET); perf_session__read_header()
2800 off_t offset = lseek(fd, 0, SEEK_CUR); perf_event__process_tracing_data()
2804 lseek(fd, offset + sizeof(struct tracing_data_event), perf_event__process_tracing_data()
H A Dtrace-event-info.c64 off_t hdr_pos = lseek(output_fd, 0, SEEK_CUR); record_file()
549 tdata->size = lseek(output_fd, 0, SEEK_CUR); tracing_data_get()
H A Dsymbol-minimal.c300 if (lseek(fd, 0, SEEK_SET)) fd__is_64_bit()
H A Dtrace-event-read.c180 lseek(input_fd, size, SEEK_CUR); read_proc_kallsyms()
H A Dsession.c1165 lseek(fd, file_offset, SEEK_SET); perf_session__process_user_event()
1177 lseek(fd, file_offset + event->header.size, SEEK_SET); perf_session__process_user_event()
1235 if (lseek(fd, file_offset, SEEK_SET) == (off_t)-1 || perf_session__peek_event()
H A Dintel-bts.c658 data_offset = lseek(fd, 0, SEEK_CUR); intel_bts_process_auxtrace_event()
H A Dsymbol-elf.c1204 if (lseek(to, to_offs, SEEK_SET) != to_offs) copy_bytes()
1207 if (lseek(from, from_offs, SEEK_SET) != from_offs) copy_bytes()
H A Dintel-pt.c1770 data_offset = lseek(fd, 0, SEEK_CUR); intel_pt_process_auxtrace_event()
/linux-4.4.14/arch/mn10300/boot/tools/
H A Dbuild.c177 if (lseek(1, 497, SEEK_SET) != 497) main()
182 if (lseek(1, 500, SEEK_SET) != 500) main()
/linux-4.4.14/tools/testing/selftests/vm/
H A Dcompaction_test.c108 lseek(fd, 0, SEEK_SET); check_compaction()
117 lseek(fd, 0, SEEK_SET); check_compaction()
/linux-4.4.14/arch/um/os-Linux/
H A Duser_syms.c66 EXPORT_SYMBOL_PROTO(lseek); variable
/linux-4.4.14/tools/testing/selftests/powerpc/dscr/
H A Ddscr.h91 lseek(fd, 0, SEEK_SET); get_default_dscr()
/linux-4.4.14/arch/cris/boot/tools/
H A Dbuild.c238 lseek(id, GCC_HEADER, SEEK_SET); main()
276 if (lseek(1, 497, 0) == 497) { main()
280 if (lseek(1,500,0) == 500) { main()
/linux-4.4.14/drivers/pci/hotplug/
H A Dcpqphp_sysfs.c168 static loff_t lseek(struct file *file, loff_t off, int whence) lseek() function
193 .llseek = lseek,
/linux-4.4.14/arch/x86/entry/vdso/
H A Dvdso2c.c193 tmp_len = lseek(fd, 0, SEEK_END); map_input()
195 err(1, "lseek"); map_input()
/linux-4.4.14/fs/hpfs/
H A Ddir.c39 /*pr_info("dir lseek\n");*/ hpfs_dir_lseek()
54 /*pr_warn("illegal lseek: %016llx\n", new_off);*/ hpfs_dir_lseek()
/linux-4.4.14/arch/x86/kernel/
H A Dcpuid.c16 * This device is accessed by lseek() to the appropriate CPUID level
H A Dmsr.c17 * This device is accessed by lseek() to the appropriate register number
/linux-4.4.14/tools/testing/selftests/powerpc/mm/
H A Dsubpage_prot.c190 filesize = lseek(fd, 0, SEEK_END); test_file()
/linux-4.4.14/drivers/s390/char/
H A Dhmcdrv_dev.c9 * device by calling hmcdrv_dev_init(). After open() a lseek(fd, 0,
157 * lseek()
/linux-4.4.14/fs/
H A Dread_write.c42 * vfs_setpos - update the file offset for lseek
94 * Here we special-case the lseek(fd, 0, SEEK_CUR) generic_file_llseek_size()
97 * write() or lseek() might have altered it generic_file_llseek_size()
276 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) SYSCALL_DEFINE3()
295 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) COMPAT_SYSCALL_DEFINE3()
H A Dseq_file.c87 * seq_files support lseek() and pread(). They do not implement seq_open()
/linux-4.4.14/arch/mips/boot/
H A Delf2ecoff.c72 if (lseek(in, offset, SEEK_SET) < 0) { copy()
73 perror("copy: lseek"); copy()
136 if ((off = lseek(file, offset, SEEK_SET)) < 0) { saveRead()
/linux-4.4.14/arch/um/drivers/
H A Dcow_user.c205 cow_printf("write_cow_header - lseek failed, err = %d\n", -err); write_cow_header()
422 cow_printf("cow bitmap lseek failed : err = %d\n", -err); init_cow_file()
H A Dubd_kern.c1382 printk("do_io - bitmap lseek failed : err = %d\n", -n); update_bitmap()
1433 printk("do_io - lseek failed : err = %d\n", -err); do_io()
/linux-4.4.14/scripts/
H A Drecordmcount.c116 fprintf(stderr, "lseek: seek before file\n"); ulseek()
227 * malloc+lseek+read+free of many pieces. If successful, then mmap
H A Dsortextable.c85 * malloc+lseek+read+free of many pieces. If successful, then mmap
/linux-4.4.14/arch/powerpc/include/asm/
H A Dsystbl.h25 COMPAT_SYS_SPU(lseek)
/linux-4.4.14/tools/perf/
H A Dbuiltin-inject.c135 offset = lseek(inject->output.fd, 0, SEEK_CUR); perf_event__repipe_auxtrace()
624 lseek(fd, output_data_offset, SEEK_SET); __cmd_inject()
H A Dbuiltin-record.c161 file_offset = lseek(fd, 0, SEEK_CUR); record__process_auxtrace()
753 file->size = lseek(perf_data_file__fd(file), 0, SEEK_CUR); __cmd_record()
H A Dbuiltin-trace.c1127 { .name = "lseek", .errmsg = true,
/linux-4.4.14/scripts/mod/
H A Dsumversion.c467 if (lseek(fd, offset, SEEK_SET) == (off_t)-1) { write_version()
/linux-4.4.14/Documentation/mic/mpssd/
H A Dmpssd.c997 mic->mic_virtblk.backend_size = lseek(mic->mic_virtblk.backend, 0, set_backend_size()
1461 ret = lseek(fd, 0, SEEK_SET); block_till_state_change()
1567 len = lseek(fd, 0, SEEK_END); set_log_buf_info()
/linux-4.4.14/drivers/media/pci/ivtv/
H A Divtv-vbi.c440 Non-4-byte alignment happens when an lseek is done on the input ivtv_process_vbi_data()
/linux-4.4.14/fs/sysfs/
H A Dfile.c59 * Invoke show(). Control may reach here via seq file lseek even sysfs_kf_seq_show()
/linux-4.4.14/arch/microblaze/include/uapi/asm/
H A Dunistd.h154 #define __NR__llseek 140 /* remove only lseek */
/linux-4.4.14/arch/parisc/kernel/
H A Dsyscall_table.S79 ENTRY_COMP(lseek)
/linux-4.4.14/tools/testing/selftests/exec/
H A Dexecveat.c246 lseek(fd, 10, SEEK_SET); run_tests()
/linux-4.4.14/fs/ceph/
H A Dfile.c1181 * Here we special-case the lseek(fd, 0, SEEK_CUR) ceph_llseek()
1184 * write() or lseek() might have altered it ceph_llseek()
/linux-4.4.14/drivers/scsi/fnic/
H A Dfnic_debugfs.c287 * This routine is the entry point for the debugfs lseek file operation.
/linux-4.4.14/drivers/char/
H A Dmem.c671 * Special lseek() function for /dev/null and /dev/zero. Most notably, you
/linux-4.4.14/include/uapi/asm-generic/
H A Dunistd.h9 * should be added, e.g. we don't use lseek when llseek
/linux-4.4.14/fs/ext4/
H A Dextents_status.c28 * lseek SEEK_DATA/SEEK_HOLE support. That is why it is still called
/linux-4.4.14/arch/powerpc/xmon/
H A Dspu-insns.h347 52 rt[0] = lseek(ra0, ra1, ra2)
/linux-4.4.14/arch/ia64/kernel/
H A Dfsys.S568 data8 0 // lseek // 1040
/linux-4.4.14/fs/proc/
H A Dtask_mmu.c150 /* See m_cache_vma(). Zero at the start or after lseek. */ m_start()
H A Dbase.c3346 * return. lseek aka telldir automagically resets f_version to 0. proc_task_readdir()
/linux-4.4.14/tools/lguest/
H A Dlguest.c452 if (lseek(elf_fd, ehdr->e_phoff, SEEK_SET) < 0) map_elf()
498 lseek(fd, 0, SEEK_SET); load_bzimage()
506 lseek(fd, (boot.hdr.setup_sects+1) * 512, SEEK_SET); load_bzimage()
/linux-4.4.14/drivers/ide/
H A Dide-tape.c1487 * versions of tar incorrectly call lseek on tapes and bail out if that idetape_chrdev_open()
/linux-4.4.14/fs/ocfs2/
H A Daops.c1427 /* treat the write as new if the a hole/lseek spanned across ocfs2_prepare_page_for_write()
/linux-4.4.14/kernel/trace/
H A Dftrace.c3173 * If an lseek was done, then reset and start from beginning. t_start()
3336 * tracing_lseek() should be used as the lseek routine, and
/linux-4.4.14/Documentation/cdrom/
H A Dcdrom-standard.tex167 &NULL, & lseek \cr
/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_debugfs.c1155 * This routine is the entry point for the debugfs lseek file operation. The
/linux-4.4.14/drivers/scsi/
H A Dst.c1261 * versions of tar incorrectly call lseek on tapes and bail out if that st_open()
H A Dosst.c4459 * versions of tar incorrectly call lseek on tapes and bail out if that __os_scsi_tape_open()

Completed in 2484 milliseconds