• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/romfs/

Lines Matching defs:pos

27 static int romfs_mtd_read(struct super_block *sb, unsigned long pos,
33 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf);
41 unsigned long pos, size_t maxlen)
52 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf);
59 pos += len;
70 static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos,
83 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf);
91 pos += len;
107 static int romfs_blk_read(struct super_block *sb, unsigned long pos,
116 offset = pos & (ROMBSIZE - 1);
118 bh = sb_bread(sb, pos >> ROMBSBITS);
125 pos += segment;
135 unsigned long pos, size_t limit)
145 offset = pos & (ROMBSIZE - 1);
147 bh = sb_bread(sb, pos >> ROMBSBITS);
156 pos += segment;
167 static int romfs_blk_strcmp(struct super_block *sb, unsigned long pos,
177 offset = pos & (ROMBSIZE - 1);
179 bh = sb_bread(sb, pos >> ROMBSBITS);
185 pos += segment;
201 BUG_ON((pos & (ROMBSIZE - 1)) != 0);
202 bh = sb_bread(sb, pos >> ROMBSBITS);
218 int romfs_dev_read(struct super_block *sb, unsigned long pos,
224 if (pos >= limit)
226 if (buflen > limit - pos)
227 buflen = limit - pos;
231 return romfs_mtd_read(sb, pos, buf, buflen);
235 return romfs_blk_read(sb, pos, buf, buflen);
244 unsigned long pos, size_t maxlen)
249 if (pos >= limit)
251 if (maxlen > limit - pos)
252 maxlen = limit - pos;
256 return romfs_mtd_strnlen(sb, pos, maxlen);
260 return romfs_blk_strnlen(sb, pos, maxlen);
271 int romfs_dev_strcmp(struct super_block *sb, unsigned long pos,
277 if (pos >= limit)
281 if (size + 1 > limit - pos)
286 return romfs_mtd_strcmp(sb, pos, str, size);
290 return romfs_blk_strcmp(sb, pos, str, size);