Home
last modified time | relevance | path

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

/Linux-v5.4/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.c295 static ssize_t __read_vmcore(char *buffer, size_t buflen, loff_t *fpos, in __read_vmcore() argument
303 if (buflen == 0 || *fpos >= vmcore_size) in __read_vmcore()
307 if (buflen > vmcore_size - *fpos) in __read_vmcore()
308 buflen = vmcore_size - *fpos; in __read_vmcore()
311 if (*fpos < elfcorebuf_sz) { in __read_vmcore()
312 tsz = min(elfcorebuf_sz - (size_t)*fpos, buflen); in __read_vmcore()
313 if (copy_to(buffer, elfcorebuf + *fpos, tsz, userbuf)) in __read_vmcore()
316 *fpos += tsz; in __read_vmcore()
326 if (*fpos < elfcorebuf_sz + elfnotes_sz) { in __read_vmcore()
340 if (*fpos < elfcorebuf_sz + vmcoredd_orig_sz) { in __read_vmcore()
[all …]
/Linux-v5.4/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()
/Linux-v5.4/fs/
Dbinfmt_flat.c192 static int decompress_exec(struct linux_binprm *bprm, loff_t fpos, char *dst, in decompress_exec() argument
199 pr_debug("decompress_exec(offset=%llx,buf=%p,len=%lx)\n", fpos, dst, len); in decompress_exec()
213 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
283 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
435 loff_t fpos; in load_flat_file() local
593 fpos = ntohl(hdr->data_start); in load_flat_file()
596 result = decompress_exec(bprm, fpos, (char *)datapos, in load_flat_file()
601 result = read_code(bprm->file, datapos, fpos, in load_flat_file()
/Linux-v5.4/fs/adfs/
Ddir_fplus.c117 adfs_fplus_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_fplus_setpos() argument
123 if (fpos <= le32_to_cpu(h->bigdirentries)) { in adfs_fplus_setpos()
124 dir->pos = fpos; in adfs_fplus_setpos()
Ddir_f.c346 adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_f_setpos() argument
348 if (fpos >= ADFS_NUM_DIR_ENTRIES) in adfs_f_setpos()
351 dir->pos = 5 + fpos * 26; in adfs_f_setpos()
Dadfs.h125 int (*setpos)(struct adfs_dir *dir, unsigned int fpos);
/Linux-v5.4/net/rds/
Dtcp.c66 loff_t *fpos);
680 loff_t *fpos) in rds_tcp_skbuf_handler() argument
685 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler()
/Linux-v5.4/fs/xfs/
Dxfs_reflink.c1405 xfs_off_t fpos; in xfs_reflink_dirty_extents() local
1440 fpos = XFS_FSB_TO_B(mp, map[1].br_startoff + in xfs_reflink_dirty_extents()
1443 if (fpos + flen > isize) in xfs_reflink_dirty_extents()
1444 flen = isize - fpos; in xfs_reflink_dirty_extents()
1445 error = iomap_file_dirty(VFS_I(ip), fpos, flen, in xfs_reflink_dirty_extents()
/Linux-v5.4/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()
/Linux-v5.4/mm/
Dnommu.c1058 loff_t fpos; in do_mmap_private() local
1060 fpos = vma->vm_pgoff; in do_mmap_private()
1061 fpos <<= PAGE_SHIFT; in do_mmap_private()
1063 ret = kernel_read(vma->vm_file, base, len, &fpos); in do_mmap_private()
/Linux-v5.4/arch/mips/include/asm/mach-au1x00/
Dau1000_dma.h125 extern int au1000_dma_read_proc(char *buf, char **start, off_t fpos,
/Linux-v5.4/fs/afs/
Ddir.c28 loff_t fpos, u64 ino, unsigned dtype);
30 loff_t fpos, u64 ino, unsigned dtype);
530 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_one_filldir() argument
599 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_filldir() argument
/Linux-v5.4/fs/ceph/
Ddir.c67 loff_t fpos = ((loff_t)high << 28) | (loff_t)off; in ceph_make_fpos() local
69 fpos |= HASH_ORDER; in ceph_make_fpos()
70 return fpos; in ceph_make_fpos()
/Linux-v5.4/kernel/trace/
Dtrace.c6367 size_t cnt, loff_t *fpos) in tracing_mark_write() argument
6438 *fpos += written; in tracing_mark_write()
6448 size_t cnt, loff_t *fpos) in tracing_mark_raw_write() argument
6501 *fpos += written; in tracing_mark_raw_write()
6556 size_t cnt, loff_t *fpos) in tracing_clock_write() argument
6578 *fpos += cnt; in tracing_clock_write()
/Linux-v5.4/kernel/events/
Dcore.c9386 int fpos = token == IF_SRC_FILE ? 2 : 1; in perf_event_parse_addr_filter() local
9388 filename = match_strdup(&args[fpos]); in perf_event_parse_addr_filter()