Lines Matching refs:ofs

16 	unsigned int ofs;  member
90 it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs()
102 ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs); in init_inode_xattrs()
114 it.ofs += sizeof(struct erofs_xattr_ibody_header); in init_inode_xattrs()
117 if (it.ofs >= EROFS_BLKSIZ) { in init_inode_xattrs()
119 DBG_BUGON(it.ofs != EROFS_BLKSIZ); in init_inode_xattrs()
132 it.ofs = 0; in init_inode_xattrs()
135 le32_to_cpu(*(__le32 *)(it.kaddr + it.ofs)); in init_inode_xattrs()
136 it.ofs += sizeof(__le32); in init_inode_xattrs()
165 if (it->ofs < EROFS_BLKSIZ) in xattr_iter_fixup()
170 it->blkaddr += erofs_blknr(it->ofs); in xattr_iter_fixup()
181 it->ofs = erofs_blkoff(it->ofs); in xattr_iter_fixup()
201 it->ofs = erofs_blkoff(iloc(sbi, vi->nid) + inline_xattr_ofs); in inline_xattr_iter_begin()
233 entry = *(struct erofs_xattr_entry *)(it->kaddr + it->ofs); in xattr_foreach()
245 it->ofs += sizeof(struct erofs_xattr_entry); in xattr_foreach()
251 it->ofs += entry.e_name_len + value_sz; in xattr_foreach()
259 if (it->ofs >= EROFS_BLKSIZ) { in xattr_foreach()
260 DBG_BUGON(it->ofs > EROFS_BLKSIZ); in xattr_foreach()
265 it->ofs = 0; in xattr_foreach()
268 slice = min_t(unsigned int, PAGE_SIZE - it->ofs, in xattr_foreach()
272 err = op->name(it, processed, it->kaddr + it->ofs, slice); in xattr_foreach()
274 it->ofs += entry.e_name_len - processed + value_sz; in xattr_foreach()
278 it->ofs += slice; in xattr_foreach()
288 it->ofs += value_sz; in xattr_foreach()
294 if (it->ofs >= EROFS_BLKSIZ) { in xattr_foreach()
295 DBG_BUGON(it->ofs > EROFS_BLKSIZ); in xattr_foreach()
300 it->ofs = 0; in xattr_foreach()
303 slice = min_t(unsigned int, PAGE_SIZE - it->ofs, in xattr_foreach()
305 op->value(it, processed, it->kaddr + it->ofs, slice); in xattr_foreach()
306 it->ofs += slice; in xattr_foreach()
312 it->ofs = EROFS_XATTR_ALIGN(it->ofs); in xattr_foreach()
399 it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]); in shared_getxattr()
622 it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]); in shared_listxattr()