Lines Matching defs:offset
50 * Nov 1999 2.3.27 2.3.25+ page->offset => index change
105 loff_t offset, size;
115 offset = page_offset(page);
119 if (offset < size) {
120 size -= offset;
123 pos = ROMFS_I(inode)->i_dataoffset + offset;
155 unsigned long offset, maxoff;
162 offset = ctx->pos;
163 if (!offset) {
164 offset = i->i_ino & ROMFH_MASK;
165 ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE);
168 offset = be32_to_cpu(ri.spec) & ROMFH_MASK;
173 if (!offset || offset >= maxoff) {
174 offset = maxoff;
175 ctx->pos = offset;
178 ctx->pos = offset;
181 ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE);
185 j = romfs_dev_strnlen(i->i_sb, offset + ROMFH_SIZE,
190 ret = romfs_dev_read(i->i_sb, offset + ROMFH_SIZE, fsname, j);
195 ino = offset;
203 offset = nextfh & ROMFH_MASK;
215 unsigned long offset, maxoff;
221 offset = dir->i_ino & ROMFH_MASK;
222 ret = romfs_dev_read(dir->i_sb, offset, &ri, ROMFH_SIZE);
229 offset = be32_to_cpu(ri.spec) & ROMFH_MASK;
235 if (!offset || offset >= maxoff)
238 ret = romfs_dev_read(dir->i_sb, offset, &ri, sizeof(ri));
243 ret = romfs_dev_strcmp(dir->i_sb, offset + ROMFH_SIZE, name,
250 offset = be32_to_cpu(ri.spec) & ROMFH_MASK;
251 inode = romfs_iget(dir->i_sb, offset);
256 offset = be32_to_cpu(ri.next) & ROMFH_MASK;
317 /* precalculate the data offset */