Searched refs:fpos (Results 1 – 9 of 9) sorted by relevance
/fs/proc/ |
D | vmcore.c | 199 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 …]
|
D | kcore.c | 431 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/ |
D | binfmt_flat.c | 190 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/ |
D | dir_fplus.c | 123 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()
|
D | dir_f.c | 370 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()
|
D | adfs.h | 130 int (*setpos)(struct adfs_dir *dir, unsigned int fpos);
|
/fs/ncpfs/ |
D | dir.c | 465 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()
|
D | ncplib_kernel.h | 210 unsigned long fpos, ofs; member
|
/fs/afs/ |
D | dir.c | 30 loff_t fpos, u64 ino, unsigned dtype); 395 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_filldir() argument
|