Lines Matching defs:offset
50 * Nov 1999 2.3.27 2.3.25+ page->offset => index change
106 loff_t offset, size;
116 offset = page_offset(page);
120 if (offset < size) {
121 size -= offset;
124 pos = ROMFS_I(inode)->i_dataoffset + offset;
156 unsigned long offset, maxoff;
163 offset = ctx->pos;
164 if (!offset) {
165 offset = i->i_ino & ROMFH_MASK;
166 ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE);
169 offset = be32_to_cpu(ri.spec) & ROMFH_MASK;
174 if (!offset || offset >= maxoff) {
175 offset = maxoff;
176 ctx->pos = offset;
179 ctx->pos = offset;
182 ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE);
186 j = romfs_dev_strnlen(i->i_sb, offset + ROMFH_SIZE,
191 ret = romfs_dev_read(i->i_sb, offset + ROMFH_SIZE, fsname, j);
196 ino = offset;
204 offset = nextfh & ROMFH_MASK;
216 unsigned long offset, maxoff;
222 offset = dir->i_ino & ROMFH_MASK;
223 ret = romfs_dev_read(dir->i_sb, offset, &ri, ROMFH_SIZE);
230 offset = be32_to_cpu(ri.spec) & ROMFH_MASK;
236 if (!offset || offset >= maxoff)
239 ret = romfs_dev_read(dir->i_sb, offset, &ri, sizeof(ri));
244 ret = romfs_dev_strcmp(dir->i_sb, offset + ROMFH_SIZE, name,
251 offset = be32_to_cpu(ri.spec) & ROMFH_MASK;
252 inode = romfs_iget(dir->i_sb, offset);
257 offset = be32_to_cpu(ri.next) & ROMFH_MASK;
318 /* precalculate the data offset */