Searched refs:fpos (Results 1 – 11 of 11) sorted by relevance
/fs/proc/ |
D | vmcore.c | 184 static ssize_t __read_vmcore(char *buffer, size_t buflen, loff_t *fpos, in __read_vmcore() argument 192 if (buflen == 0 || *fpos >= vmcore_size) in __read_vmcore() 196 if (buflen > vmcore_size - *fpos) in __read_vmcore() 197 buflen = vmcore_size - *fpos; in __read_vmcore() 200 if (*fpos < elfcorebuf_sz) { in __read_vmcore() 201 tsz = min(elfcorebuf_sz - (size_t)*fpos, buflen); in __read_vmcore() 202 if (copy_to(buffer, elfcorebuf + *fpos, tsz, userbuf)) in __read_vmcore() 205 *fpos += tsz; in __read_vmcore() 215 if (*fpos < elfcorebuf_sz + elfnotes_sz) { in __read_vmcore() 218 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 | 187 loff_t fpos; in decompress_exec() local 206 fpos = offset; in decompress_exec() 212 fpos += ret; in decompress_exec() 278 ret = kernel_read(bprm->file, fpos, buf, LBUFSIZE); in decompress_exec() 286 fpos += ret; in decompress_exec() 429 loff_t fpos; in load_flat_file() local 579 fpos = ntohl(hdr->data_start); in load_flat_file() 582 result = decompress_exec(bprm, fpos, (char *)datapos, in load_flat_file() 587 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/xfs/ |
D | xfs_reflink.c | 1604 xfs_off_t fpos; in xfs_reflink_dirty_extents() local 1641 fpos = XFS_FSB_TO_B(mp, map[1].br_startoff + in xfs_reflink_dirty_extents() 1644 if (fpos + flen > isize) in xfs_reflink_dirty_extents() 1645 flen = isize - fpos; in xfs_reflink_dirty_extents() 1646 error = iomap_file_dirty(VFS_I(ip), fpos, flen, in xfs_reflink_dirty_extents()
|
/fs/ceph/ |
D | dir.c | 85 loff_t fpos = ((loff_t)high << 28) | (loff_t)off; in ceph_make_fpos() local 87 fpos |= HASH_ORDER; in ceph_make_fpos() 88 return fpos; in ceph_make_fpos()
|
/fs/afs/ |
D | dir.c | 30 loff_t fpos, u64 ino, unsigned dtype); 396 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_filldir() argument
|