Lines Matching refs:ofs

16 	unsigned int ofs;  member
96 it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs()
108 ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs); in init_inode_xattrs()
120 it.ofs += sizeof(struct erofs_xattr_ibody_header); in init_inode_xattrs()
123 if (it.ofs >= EROFS_BLKSIZ) { in init_inode_xattrs()
125 DBG_BUGON(it.ofs != EROFS_BLKSIZ); in init_inode_xattrs()
138 it.ofs = 0; in init_inode_xattrs()
141 le32_to_cpu(*(__le32 *)(it.kaddr + it.ofs)); in init_inode_xattrs()
142 it.ofs += sizeof(__le32); in init_inode_xattrs()
173 if (it->ofs < EROFS_BLKSIZ) in xattr_iter_fixup()
178 it->blkaddr += erofs_blknr(it->ofs); in xattr_iter_fixup()
189 it->ofs = erofs_blkoff(it->ofs); in xattr_iter_fixup()
209 it->ofs = erofs_blkoff(iloc(sbi, vi->nid) + inline_xattr_ofs); in inline_xattr_iter_begin()
241 entry = *(struct erofs_xattr_entry *)(it->kaddr + it->ofs); in xattr_foreach()
253 it->ofs += sizeof(struct erofs_xattr_entry); in xattr_foreach()
259 it->ofs += entry.e_name_len + value_sz; in xattr_foreach()
267 if (it->ofs >= EROFS_BLKSIZ) { in xattr_foreach()
268 DBG_BUGON(it->ofs > EROFS_BLKSIZ); in xattr_foreach()
273 it->ofs = 0; in xattr_foreach()
276 slice = min_t(unsigned int, PAGE_SIZE - it->ofs, in xattr_foreach()
280 err = op->name(it, processed, it->kaddr + it->ofs, slice); in xattr_foreach()
282 it->ofs += entry.e_name_len - processed + value_sz; in xattr_foreach()
286 it->ofs += slice; in xattr_foreach()
296 it->ofs += value_sz; in xattr_foreach()
302 if (it->ofs >= EROFS_BLKSIZ) { in xattr_foreach()
303 DBG_BUGON(it->ofs > EROFS_BLKSIZ); in xattr_foreach()
308 it->ofs = 0; in xattr_foreach()
311 slice = min_t(unsigned int, PAGE_SIZE - it->ofs, in xattr_foreach()
313 op->value(it, processed, it->kaddr + it->ofs, slice); in xattr_foreach()
314 it->ofs += slice; in xattr_foreach()
320 it->ofs = EROFS_XATTR_ALIGN(it->ofs); in xattr_foreach()
407 it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]); in shared_getxattr()
629 it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]); in shared_listxattr()