Home
last modified time | relevance | path

Searched refs:fpos (Results 1 – 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/fs/proc/
Dkcore.c314 read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) in read_kcore() argument
333 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore()
355 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore()
356 if (copy_to_user(buffer, (char *)&ehdr + *fpos, tsz)) { in read_kcore()
363 *fpos += tsz; in read_kcore()
367 if (buflen && *fpos < phdrs_offset + phdrs_len) { in read_kcore()
400 tsz = min_t(size_t, buflen, phdrs_offset + phdrs_len - *fpos); in read_kcore()
401 if (copy_to_user(buffer, (char *)phdrs + *fpos - phdrs_offset, in read_kcore()
411 *fpos += tsz; in read_kcore()
415 if (buflen && *fpos < notes_offset + notes_len) { in read_kcore()
[all …]
Dvmcore.c299 static ssize_t __read_vmcore(char *buffer, size_t buflen, loff_t *fpos, in __read_vmcore() argument
307 if (buflen == 0 || *fpos >= vmcore_size) in __read_vmcore()
311 if (buflen > vmcore_size - *fpos) in __read_vmcore()
312 buflen = vmcore_size - *fpos; in __read_vmcore()
315 if (*fpos < elfcorebuf_sz) { in __read_vmcore()
316 tsz = min(elfcorebuf_sz - (size_t)*fpos, buflen); in __read_vmcore()
317 if (copy_to(buffer, elfcorebuf + *fpos, tsz, userbuf)) in __read_vmcore()
320 *fpos += tsz; in __read_vmcore()
330 if (*fpos < elfcorebuf_sz + elfnotes_sz) { in __read_vmcore()
344 if (*fpos < elfcorebuf_sz + vmcoredd_orig_sz) { in __read_vmcore()
[all …]
/kernel/linux/linux-5.10/arch/mips/alchemy/common/
Ddma.c100 int au1000_dma_read_proc(char *buf, char **start, off_t fpos, in au1000_dma_read_proc() argument
113 if (fpos >= len) { in au1000_dma_read_proc()
118 *start = buf + fpos; in au1000_dma_read_proc()
119 len -= fpos; in au1000_dma_read_proc()
/kernel/linux/linux-5.10/fs/
Dbinfmt_flat.c197 static int decompress_exec(struct linux_binprm *bprm, loff_t fpos, char *dst, in decompress_exec() argument
204 pr_debug("decompress_exec(offset=%llx,buf=%p,len=%lx)\n", fpos, dst, len); in decompress_exec()
218 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
288 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
440 loff_t fpos; in load_flat_file() local
600 fpos = ntohl(hdr->data_start); in load_flat_file()
603 result = decompress_exec(bprm, fpos, (char *)datapos, in load_flat_file()
608 result = read_code(bprm->file, datapos, fpos, in load_flat_file()
/kernel/linux/linux-5.10/fs/adfs/
Ddir_f.c233 adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_f_setpos() argument
235 if (fpos >= ADFS_NUM_DIR_ENTRIES) in adfs_f_setpos()
238 dir->pos = 5 + fpos * 26; in adfs_f_setpos()
Ddir_fplus.c159 adfs_fplus_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_fplus_setpos() argument
163 if (fpos <= le32_to_cpu(dir->bighead->bigdirentries)) { in adfs_fplus_setpos()
164 dir->pos = fpos; in adfs_fplus_setpos()
Dadfs.h129 int (*setpos)(struct adfs_dir *dir, unsigned int fpos);
/kernel/linux/linux-5.10/net/rds/
Dtcp.c65 void *buffer, size_t *lenp, loff_t *fpos);
669 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_skbuf_handler() argument
674 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler()
/kernel/linux/linux-5.10/drivers/sbus/char/
Dbbc_envctrl.c557 struct bbc_fan_control *fp, *fpos; in destroy_all_fans() local
559 list_for_each_entry_safe(fp, fpos, &bp->fans, bp_list) { in destroy_all_fans()
/kernel/liteos_a/fs/fat/os_adapt/
Dfatfs.c741 FSIZE_t fpos; in fatfs_lseek64() local
751 fpos = offset; in fatfs_lseek64()
757 fpos = offset; in fatfs_lseek64()
764 fpos = offset; in fatfs_lseek64()
779 if (fpos > finfo->fsize) { in fatfs_lseek64()
792 result = f_lseek(fp, fpos); in fatfs_lseek64()
803 filep->f_pos = fpos; in fatfs_lseek64()
806 return fpos; in fatfs_lseek64()
/kernel/linux/linux-5.10/mm/
Dnommu.c1033 loff_t fpos; in do_mmap_private() local
1035 fpos = vma->vm_pgoff; in do_mmap_private()
1036 fpos <<= PAGE_SHIFT; in do_mmap_private()
1038 ret = kernel_read(vma->vm_file, base, len, &fpos); in do_mmap_private()
/kernel/linux/linux-5.10/arch/mips/include/asm/mach-au1x00/
Dau1000_dma.h125 extern int au1000_dma_read_proc(char *buf, char **start, off_t fpos,
/kernel/linux/linux-5.10/fs/afs/
Ddir.c28 loff_t fpos, u64 ino, unsigned dtype);
30 loff_t fpos, u64 ino, unsigned dtype);
526 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_one_filldir() argument
595 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_filldir() argument
/kernel/linux/linux-5.10/fs/ceph/
Ddir.c71 loff_t fpos = ((loff_t)high << 28) | (loff_t)off; in ceph_make_fpos() local
73 fpos |= HASH_ORDER; in ceph_make_fpos()
74 return fpos; in ceph_make_fpos()
/kernel/linux/linux-5.10/kernel/trace/
Dtrace.c6651 size_t cnt, loff_t *fpos) in tracing_mark_write() argument
6723 *fpos += written; in tracing_mark_write()
6733 size_t cnt, loff_t *fpos) in tracing_mark_raw_write() argument
6786 *fpos += written; in tracing_mark_raw_write()
6841 size_t cnt, loff_t *fpos) in tracing_clock_write() argument
6863 *fpos += cnt; in tracing_clock_write()
/kernel/linux/linux-5.10/kernel/events/
Dcore.c10193 int fpos = token == IF_SRC_FILE ? 2 : 1; in perf_event_parse_addr_filter() local
10196 filename = match_strdup(&args[fpos]); in perf_event_parse_addr_filter()