Home
last modified time | relevance | path

Searched refs:filepos (Results 1 – 25 of 25) sorted by relevance

/illumos-gate/usr/src/boot/libsa/
H A Dlseek.c69 off_t bufpos, filepos, target; in lseek() local
105 filepos = (f->f_ops->fo_seek)(f, 0, SEEK_CUR); in lseek()
106 if (filepos == -1) in lseek()
108 bufpos = filepos - f->f_ralen; in lseek()
120 if (bufpos <= target && target < filepos) { in lseek()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_xfs.c383 filepos |= xfs.blkoff; in next_dentry()
390 filepos += toread; in next_dentry()
422 filepos = 0; in first_dentry()
448 filepos = xfs.blkoff; in first_dentry()
496 filepos += len; in xfs_read()
500 startpos = filepos; in xfs_read()
501 endpos = filepos + len; in xfs_read()
519 filepos += toread; in xfs_read()
524 filepos += toread; in xfs_read()
559 filepos = 0; in xfs_dir()
[all …]
H A Dfsys_vstafs.c42 extern int filepos;
200 if (filepos > 0) in vstafs_read()
202 if (filepos < a[0].a_len * 512 - VSTAFS_START_DATA) in vstafs_read()
204 offset = filepos + VSTAFS_START_DATA; in vstafs_read()
206 curr_len = a[0].a_len * 512 - offset - filepos; in vstafs_read()
211 offset = filepos - ext_size; in vstafs_read()
H A Dfsys_jfs.c235 startpos = filepos; in jfs_read()
236 endpos = filepos + len; in jfs_read()
242 if (isinxt (filepos >> jfs.l2bsize, offset, xadlen)) { in jfs_read()
245 ? len : (endofcur - filepos); in jfs_read()
249 filepos - (offset << jfs.l2bsize), toread, buf); in jfs_read()
254 filepos += toread; in jfs_read()
259 filepos += toread; in jfs_read()
269 return filepos - startpos; in jfs_read()
300 filepos = 0; in jfs_dir()
320 filepos = 0; in jfs_dir()
H A Dfsys_fat.c209 size = FAT_SUPER->root_max - filepos; in fat_read()
212 if (!devread(FAT_SUPER->root_offset, filepos, size, buf)) in fat_read()
214 filepos += size; in fat_read()
218 logical_clust = filepos >> FAT_SUPER->clustsize_bits; in fat_read()
219 offset = (filepos & ((1 << FAT_SUPER->clustsize_bits) - 1)); in fat_read()
285 filepos += size; in fat_read()
311 filepos = 0; in fat_dir()
481 filepos = 0; in fat_dir()
H A Dgunzip.c188 itmp = filepos; in gunzip_swap_values()
189 filepos = gzip_filepos; in gunzip_swap_values()
289 filepos = 0; in gunzip_test_header()
312 gzip_data_offset = filepos; in gunzip_test_header()
330 filepos = 0; in gunzip_test_header()
500 int old_filepos = filepos; in get_byte()
508 if (filepos >= filemax - 8) { in get_byte()
510 for (pos = filemax - 8; pos < filepos; pos++) in get_byte()
512 if (filemax > filepos) in get_byte()
513 grub_read(eb, filemax - filepos); in get_byte()
[all …]
H A Ddisk_io.c147 int filepos; variable
1712 filepos = 0; in grub_open()
1817 if ((filepos < 0) || (filepos > filemax)) in grub_read()
1818 filepos = filemax; in grub_read()
1822 len = filemax - filepos; in grub_read()
1827 if (filepos + len > fsmax) in grub_read()
1846 if (filepos < BLK_CUR_FILEPOS) in grub_read()
1854 while (filepos > BLK_CUR_FILEPOS) in grub_read()
1869 BLK_CUR_FILEPOS = filepos; in grub_read()
1887 filepos += size; in grub_read()
[all …]
H A Dfsys_ufs.c97 filepos = 0; in ufs_dir()
112 off = blkoff(SUPERBLOCK, filepos); in ufs_read()
113 lblk = lblkno(SUPERBLOCK, filepos); in ufs_read()
131 filepos += size; in ufs_read()
H A Dfsys_ffs.c151 off = blkoff (SUPERBLOCK, filepos); in ffs_read()
152 logno = lblkno (SUPERBLOCK, filepos); in ffs_read()
171 filepos += size; in ffs_read()
H A Dfsys_minix.c257 logical_block = filepos >> BLOCK_SIZE_BITS; in minix_read()
258 offset = filepos & (BLOCK_SIZE - 1); in minix_read()
280 filepos += size; in minix_read()
388 filepos = 0; in minix_dir()
H A Dfsys_ufs2.c176 off = blkoff (SUPERBLOCK, filepos); in ufs2_read()
177 logno = lblkno (SUPERBLOCK, filepos); in ufs2_read()
196 filepos += size; in ufs2_read()
H A Dfsys_iso9660.c379 filepos = 0; in iso9660_dir()
423 blkoffset = filepos & (ISO_SECTOR_SIZE - 1); in iso9660_read()
424 sector = filepos >> ISO_SECTOR_BITS; in iso9660_read()
441 filepos += size; in iso9660_read()
H A Dfsys_reiserfs.c896 filepos, len, (__u64) IH_KEY_OFFSET (INFO->current_ih) - 1); in reiserfs_read()
900 || IH_KEY_OFFSET (INFO->current_ih) > filepos + 1) in reiserfs_read()
911 offset = filepos - IH_KEY_OFFSET (INFO->current_ih) + 1; in reiserfs_read()
916 filepos, len, offset, blocksize); in reiserfs_read()
974 filepos += to_read; in reiserfs_read()
1058 filepos = 0; in reiserfs_dir()
1100 filepos = 0; in reiserfs_dir()
H A Dfsys_zfs.c1811 filepos = 0; in zfs_open()
1840 if (filepos >= file_start && filepos+len <= file_end) { in zfs_read()
1841 grub_memmove(buf, file_buf + filepos - file_start, len); in zfs_read()
1842 filepos += len; in zfs_read()
1870 uint64_t blkid = filepos / blksz; in zfs_read()
1878 movesize = MIN(length, file_end - filepos); in zfs_read()
1880 grub_memmove(buf, file_buf + filepos - file_start, in zfs_read()
1884 filepos += movesize; in zfs_read()
H A Dfsys_ext2fs.c469 logical_block = filepos >> EXT2_BLOCK_SIZE_BITS (SUPERBLOCK); in ext2fs_read()
470 offset = filepos & (EXT2_BLOCK_SIZE (SUPERBLOCK) - 1); in ext2fs_read()
496 filepos += size; in ext2fs_read()
685 filepos = 0; in ext2fs_dir()
H A Dshared.h725 extern int filepos;
H A Dboot.c535 && pu.aout->a_syms < (filemax - filepos)) in load_image()
H A Dbuiltins.c5184 grub_printf ("Max is 0x10ac0: i=0x%x, filepos=0x%x\n", i, filepos); in testload_func()
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dfsys_tftp.c512 if (filepos < saved_filepos) in tftp_read()
543 int amt = buf_read + saved_filepos - filepos; in tftp_read()
553 grub_memmove (addr, buf + filepos - saved_filepos, amt); in tftp_read()
556 filepos += amt; in tftp_read()
561 if (filepos - saved_filepos > FSYS_BUFLEN / 2) in tftp_read()
765 if (filepos < saved_filepos) { in tftp_read_undi()
771 int amt = buf_read + saved_filepos - filepos; in tftp_read_undi()
780 grub_memmove (addr, buf + filepos - saved_filepos, amt); in tftp_read_undi()
783 filepos += amt; in tftp_read_undi()
789 if (filepos - saved_filepos > FSYS_BUFLEN / 2) { in tftp_read_undi()
/illumos-gate/usr/src/cmd/bart/
H A Dcompare.c537 int end_pos, len, iscomment = 0, filepos; in read_manifest_line() local
545 filepos = ftell(fd); in read_manifest_line()
550 if (filepos == 0) { in read_manifest_line()
/illumos-gate/usr/src/grub/grub-0.97/docs/
H A Dinternals.texi220 @item filepos
223 @strong{Caution:} the value of @var{filepos} can be changed out from
H A Dgrub.info-4195 * filepos: Filesystem interface.
H A Dgrub.info-3358 filepos=Y' reading has X and Y equal, then it is definitely
1296 `filepos'
H A Dgrub.info3067 filepos=Y' reading has X and Y equal, then it is definitely
4005 `filepos'
4239 * filepos: Filesystem interface. (line 52)
H A Dgrub.texi3220 filepos=@var{Y}} reading has @var{X} and @var{Y} equal, then it is