Home
last modified time | relevance | path

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

/fs/proc/
Dvmcore.c199 static ssize_t __read_vmcore(char *buffer, size_t buflen, loff_t *fpos, in __read_vmcore() argument
207 if (buflen == 0 || *fpos >= vmcore_size) in __read_vmcore()
211 if (buflen > vmcore_size - *fpos) in __read_vmcore()
212 buflen = vmcore_size - *fpos; in __read_vmcore()
215 if (*fpos < elfcorebuf_sz) { in __read_vmcore()
216 tsz = min(elfcorebuf_sz - (size_t)*fpos, buflen); in __read_vmcore()
217 if (copy_to(buffer, elfcorebuf + *fpos, tsz, userbuf)) in __read_vmcore()
220 *fpos += tsz; in __read_vmcore()
230 if (*fpos < elfcorebuf_sz + elfnotes_sz) { in __read_vmcore()
233 tsz = min(elfcorebuf_sz + elfnotes_sz - (size_t)*fpos, buflen); in __read_vmcore()
[all …]
Dkcore.c431 read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) in read_kcore() argument
443 if (buflen == 0 || *fpos >= size) { in read_kcore()
449 if (buflen > size - *fpos) in read_kcore()
450 buflen = size - *fpos; in read_kcore()
453 if (*fpos < elf_buflen) { in read_kcore()
456 tsz = elf_buflen - *fpos; in read_kcore()
466 if (copy_to_user(buffer, elf_buf + *fpos, tsz)) { in read_kcore()
472 *fpos += tsz; in read_kcore()
486 start = kc_offset_to_vaddr(*fpos - elf_buflen); in read_kcore()
527 *fpos += tsz; in read_kcore()
/fs/
Dbinfmt_flat.c190 loff_t fpos; in decompress_exec() local
209 fpos = offset; in decompress_exec()
215 fpos += ret; in decompress_exec()
281 ret = kernel_read(bprm->file, fpos, buf, LBUFSIZE); in decompress_exec()
289 fpos += ret; in decompress_exec()
439 loff_t fpos; in load_flat_file() local
580 fpos = ntohl(hdr->data_start); in load_flat_file()
583 result = decompress_exec(bprm, fpos, (char *) datapos, in load_flat_file()
588 result = read_code(bprm->file, datapos, fpos, in load_flat_file()
/fs/adfs/
Ddir_fplus.c123 adfs_fplus_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_fplus_setpos() argument
129 if (fpos <= le32_to_cpu(h->bigdirentries)) { in adfs_fplus_setpos()
130 dir->pos = fpos; in adfs_fplus_setpos()
Ddir_f.c370 adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_f_setpos() argument
372 if (fpos >= ADFS_NUM_DIR_ENTRIES) in adfs_f_setpos()
375 dir->pos = 5 + fpos * 26; in adfs_f_setpos()
Dadfs.h130 int (*setpos)(struct adfs_dir *dir, unsigned int fpos);
/fs/ncpfs/
Ddir.c465 ctl.fpos = ctx->pos + (NCP_DIRCACHE_START - 2); in ncp_readdir()
466 ctl.ofs = ctl.fpos / NCP_DIRCACHE_SIZE; in ncp_readdir()
467 ctl.idx = ctl.fpos % NCP_DIRCACHE_SIZE; in ncp_readdir()
535 ctl.fpos = 2; in ncp_readdir()
549 ctl.head.end = ctl.fpos - 1; in ncp_readdir()
673 if (!ctl.filled && (ctl.fpos == ctx->pos)) { in ncp_fill_cache()
681 ctl.fpos += 1; in ncp_fill_cache()
Dncplib_kernel.h210 unsigned long fpos, ofs; member
/fs/afs/
Ddir.c30 loff_t fpos, u64 ino, unsigned dtype);
395 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_filldir() argument