Lines Matching defs:ofs
16 unsigned int ofs;
96 it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize);
108 ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs);
120 it.ofs += sizeof(struct erofs_xattr_ibody_header);
123 if (it.ofs >= EROFS_BLKSIZ) {
125 DBG_BUGON(it.ofs != EROFS_BLKSIZ);
138 it.ofs = 0;
141 le32_to_cpu(*(__le32 *)(it.kaddr + it.ofs));
142 it.ofs += sizeof(__le32);
173 if (it->ofs < EROFS_BLKSIZ)
178 it->blkaddr += erofs_blknr(it->ofs);
189 it->ofs = erofs_blkoff(it->ofs);
209 it->ofs = erofs_blkoff(iloc(sbi, vi->nid) + inline_xattr_ofs);
221 * `ofs' pointing to the next xattr item rather than an arbitrary position.
231 /* 0. fixup blkaddr, ofs, ipage */
241 entry = *(struct erofs_xattr_entry *)(it->kaddr + it->ofs);
253 it->ofs += sizeof(struct erofs_xattr_entry);
259 it->ofs += entry.e_name_len + value_sz;
263 /* 2. handle xattr name (ofs will finally be at the end of name) */
267 if (it->ofs >= EROFS_BLKSIZ) {
268 DBG_BUGON(it->ofs > EROFS_BLKSIZ);
273 it->ofs = 0;
276 slice = min_t(unsigned int, PAGE_SIZE - it->ofs,
280 err = op->name(it, processed, it->kaddr + it->ofs, slice);
282 it->ofs += entry.e_name_len - processed + value_sz;
286 it->ofs += slice;
296 it->ofs += value_sz;
302 if (it->ofs >= EROFS_BLKSIZ) {
303 DBG_BUGON(it->ofs > EROFS_BLKSIZ);
308 it->ofs = 0;
311 slice = min_t(unsigned int, PAGE_SIZE - it->ofs,
313 op->value(it, processed, it->kaddr + it->ofs, slice);
314 it->ofs += slice;
320 it->ofs = EROFS_XATTR_ALIGN(it->ofs);
407 it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]);
628 it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]);