Lines Matching defs:pos
292 grub_off_t pos, grub_size_t len, char *buf)
299 if (len + pos > INODE_SIZE (data))
300 len = INODE_SIZE (data) - pos;
302 blockcnt = (len + pos + UFS_BLKSZ (sblock) - 1) >> UFS_LOG_BLKSZ (sblock);
304 for (i = pos >> UFS_LOG_BLKSZ (sblock); i < blockcnt; i++)
312 blockoff = pos & (UFS_BLKSZ (sblock) - 1);
321 blockend = (len + pos) & (UFS_BLKSZ (sblock) - 1);
328 if (i == (pos >> UFS_LOG_BLKSZ (sblock)))
435 unsigned int pos = 0;
464 if (grub_ufs_read_file (data, 0, pos, sizeof (dirent),
476 if (grub_ufs_read_file (data, 0, pos + sizeof (dirent),
498 pos = 0;
515 pos += grub_le_to_cpu16 (dirent.direntlen);
516 } while (pos < INODE_SIZE (data));
582 unsigned int pos = 0;
608 while (pos < INODE_SIZE (data))
613 if (grub_ufs_read_file (data, 0, pos, sizeof (dirent),
630 if (grub_ufs_read_file (data, 0, pos + sizeof (dirent),
646 pos += grub_le_to_cpu16 (dirent.direntlen);