• Home
  • Raw
  • Download

Lines Matching refs:offset

57 static unsigned long cramino(const struct cramfs_inode *cino, unsigned int offset)  in cramino()  argument
59 if (!cino->offset) in cramino()
60 return offset + 1; in cramino()
62 return offset + 1; in cramino()
73 return cino->offset << 2; in cramino()
77 return offset + 1; in cramino()
81 const struct cramfs_inode *cramfs_inode, unsigned int offset) in get_cramfs_inode() argument
86 inode = iget_locked(sb, cramino(cramfs_inode, offset)); in get_cramfs_inode()
165 static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned int len) in cramfs_read() argument
175 blocknr = offset >> PAGE_CACHE_SHIFT; in cramfs_read()
176 offset &= PAGE_CACHE_SIZE - 1; in cramfs_read()
187 blk_offset += offset; in cramfs_read()
239 return read_buffers[buffer] + offset; in cramfs_read()
317 root_offset = super.root.offset << 2; in cramfs_fill_super()
376 unsigned int offset; in cramfs_readdir() local
381 offset = ctx->pos; in cramfs_readdir()
383 if (offset & 3) in cramfs_readdir()
390 while (offset < inode->i_size) { in cramfs_readdir()
399 de = cramfs_read(sb, OFFSET(inode) + offset, sizeof(*de)+CRAMFS_MAXPATHLEN); in cramfs_readdir()
409 ino = cramino(de, OFFSET(inode) + offset); in cramfs_readdir()
412 nextoffset = offset + sizeof(*de) + namelen; in cramfs_readdir()
425 ctx->pos = offset = nextoffset; in cramfs_readdir()
436 unsigned int offset = 0; in cramfs_lookup() local
442 while (offset < dir->i_size) { in cramfs_lookup()
446 int dir_off = OFFSET(dir) + offset; in cramfs_lookup()
456 offset += sizeof(*de) + namelen; in cramfs_lookup()