/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_iso9660.c | 70 iso9660_devread (int sector, int byte_offset, int byte_len, char *buf) in iso9660_devread() argument 78 if (sector < 0) in iso9660_devread() 86 sector += (byte_offset >> sector_size_lg2); in iso9660_devread() 89 : "=r"(sector) in iso9660_devread() 91 "0"(sector)); in iso9660_devread() 95 printf ("<%d, %d, %d>", sector, byte_offset, byte_len); in iso9660_devread() 103 return rawread(current_drive, part_start + sector, byte_offset, byte_len, buf); in iso9660_devread() 109 unsigned int sector; in iso9660_mount() local 124 for (sector = 16 ; sector < 32 ; sector++) in iso9660_mount() 126 if (!iso9660_devread(sector, 0, sizeof(*PRIMDESC), (char *)PRIMDESC)) in iso9660_mount() [all …]
|
H A D | fsys_vstafs.c | 27 static void get_file_info (int sector); 28 static struct dir_entry *vstafs_readdir (long sector); 60 get_file_info (int sector) in get_file_info() argument 62 devread (sector, 0, BLOCK_SIZE, (char *) FILE_INFO); in get_file_info() 69 vstafs_readdir (long sector) in vstafs_readdir() argument 74 get_file_info (sector); in vstafs_readdir()
|
H A D | disk_io.c | 161 rawread(int drive, unsigned long long sector, int byte_offset, int byte_len, in rawread() argument 202 soff = sector % sectors_per_vtrack; in rawread() 203 track = sector - soff; in rawread() 220 read_start = sector; in rawread() 241 sector, slen, BUFFERSEG)) in rawread() 250 if ((buf_track == 0 || sector == 0) in rawread() 281 unsigned long long sector_num = sector; in rawread() 302 sector += num_sect; in rawread() 311 devread(unsigned long long sector, int byte_offset, int byte_len, char *buf) in devread() argument 316 if ((sector + ((byte_offset + byte_len - 1) >> SECTOR_BITS)) in devread() [all …]
|
H A D | bios.c | 53 unsigned long long sector, int nsec, int segment) in biosdisk() argument 73 if (sector >= geometry->total_sectors) in biosdisk() 80 dap.block = sector; in biosdisk() 105 return biosdisk (read, drive, geometry, sector, nsec, segment); in biosdisk() 116 sector_offset = sector % geometry->sectors + 1; in biosdisk() 117 head = sector / geometry->sectors; in biosdisk()
|
H A D | stage1_5.c | 28 disk_read_savesect_func (unsigned long long sector, int offset, int length) in disk_read_savesect_func() argument 30 saved_sector = sector; in disk_read_savesect_func()
|
H A D | fsys_zfs.c | 274 find_bestub(char *ub_array, uint64_t ashift, uint64_t sector) in find_bestub() argument 286 offset = (sector << SPA_MINBLOCKSHIFT) + in find_bestub() 312 uint64_t offset, sector; in zio_read_gang() local 319 sector = DVA_OFFSET_TO_PHYS_SECTOR(offset); in zio_read_gang() 322 if (devread(sector, 0, SPA_GANGBLOCKSIZE, (char *)zio_gb) == 0) { in zio_read_gang() 366 uint64_t offset, sector; in zio_read_data() local 378 sector = DVA_OFFSET_TO_PHYS_SECTOR(offset); in zio_read_data() 379 if (devread(sector, 0, psize, buf) == 0) in zio_read_data() 1529 check_pool_label(uint64_t sector, char *stack, char *outdevid, char *outpath, in check_pool_label() argument 1537 sector += (VDEV_SKIP_SIZE >> SPA_MINBLOCKSHIFT); in check_pool_label() [all …]
|
H A D | builtins.c | 152 disk_read_print_func(unsigned long long sector, int offset, int length) in disk_read_print_func() argument 154 grub_printf ("[%llu,%d,%d]", sector, offset, length); in disk_read_print_func() 168 auto void disk_read_blocklist_func (unsigned long long sector, int offset, in blocklist_func() 173 auto void disk_read_blocklist_func (unsigned long long sector, int offset, in blocklist_func() 178 if (start_sector + num_sectors == sector in blocklist_func() 206 sector-part_start, offset, offset+length); in blocklist_func() 211 start_sector = sector; in blocklist_func() 1403 unsigned long long sector; in embed_func() local 1481 sector = 1; in embed_func() 1500 sector = part_start + start_sector; in embed_func() [all …]
|
H A D | fsys_fat.c | 228 int sector; in fat_read() local 242 sector = FAT_SUPER->fat_offset in fat_read() 244 if (!devread (sector, 0, FAT_CACHE_SIZE, (char*) FAT_BUF)) in fat_read() 269 sector = FAT_SUPER->data_offset + in fat_read() 278 devread(sector, offset, size, buf); in fat_read()
|
H A D | shared.h | 895 unsigned long long sector, int nsec, int segment); 1012 int rawread (int drive, unsigned long long sector, int byte_offset, int byte_len, 1014 int devread (unsigned long long sector, int byte_offset, int byte_len, char *buf); 1015 int rawwrite (int drive, unsigned long long sector, char *buf); 1016 int devwrite (unsigned long long sector, int sector_len, char *buf);
|
/illumos-gate/usr/src/common/fs/ |
H A D | pcfs.c | 276 ulong_t sector; in bpcfs_read() local 316 sector = fat_ctodb(blk, rd); in bpcfs_read() 323 block = (char *)readblock(sector + i, 1); in bpcfs_read() 512 int j, sector; in lookup() local 517 sector = fat_ctodb(dir_blk, rd); in lookup() 518 dxp = readblock(sector, 1); /* read one sector */ in lookup() 595 readblock(int sector, int nsec) in readblock() argument 597 if (sector >= nsec_start && sector + nsec <= nsec_start + nsec_cache) in readblock() 598 return (cluster_cache + (sector - nsec_start) * SECSIZ); in readblock() 601 head->fi_blocknum = sector; in readblock() [all …]
|
/illumos-gate/usr/src/boot/i386/pmbr/ |
H A D | pmbr.s | 35 # The embedded MBR is set up for PMBR and default bootblock sector 42 .set SECSIZE,0x200 # Size of a single disk sector 122 addw $SECSIZE/16,%ax # sector 126 # Load a sector (64-bit LBA at %si) from disk %dl into %es:%bx by creating 133 pushw $0x1 # Read 1 sector 179 .byte 0x02 # sector 183 .byte 0xFF # ending sector
|
/illumos-gate/usr/src/cmd/diskscan/ |
H A D | diskscan.c | 49 static void report(char *what, diskaddr_t sector); 356 report(char *what, diskaddr_t sector) in report() argument 358 (void) printf("%s sector %-19llu of %-19llu%c", what, sector, in report()
|
/illumos-gate/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 934 unsigned long long sector, int nsec, int segment) in biosdisk() argument 954 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; in biosdisk() 960 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; in biosdisk() 973 if (sector == 0 && nsec > 1) in biosdisk() 994 nsec, sector, drive, device_map[drive]); in biosdisk()
|
/illumos-gate/usr/src/cmd/etdump/ |
H A D | etdump.c | 95 read_sector(FILE *iso, daddr_t sector, char *buffer) in read_sector() argument 98 fseek(iso, sector * ISO_DEFAULT_BLOCK_SIZE, SEEK_SET); in read_sector()
|
H A D | cd9660_eltorito.h | 152 int sector; /* copied to LoadRBA */ member
|
/illumos-gate/usr/src/grub/grub-0.97/docs/ |
H A D | internals.texi | 112 The first sector of Stage 2. 123 In the first sector of Stage 1.5 and Stage 2, the block lists are 139 In the second sector of Stage 1.5 and Stage 2, these are defined: 242 Only read sectors from within a partition. Sector 0 is the first sector 306 We embed Stage 1 in a MBR or in the boot sector of a partition, and 319 The solution used by GRUB is that Stage 1 loads only the first sector of 331 Load the first sector of Stage 2. 343 part of the first sector.
|
H A D | grub.info-4 | 47 We embed Stage 1 in a MBR or in the boot sector of a partition, and 61 sector of Stage 2 (or Stage 1.5) and Stage 2 itself loads the rest. The 68 3. Load the first sector of Stage 2. 76 last part of the first sector.
|
H A D | menu.lst | 62 # chainload OS/2 bootloader from the first sector
|
/illumos-gate/usr/src/uts/sun/sys/dada/impl/ |
H A D | commands.h | 53 uchar_t sector; /* Sector Number */ member
|
/illumos-gate/usr/src/uts/common/sys/sata/adapters/si3124/ |
H A D | si3124reg.h | 97 #define SET_FIS_SECTOR(fis, sector) \ argument 98 ((&fis)->fish_sector_cyllow_cylhi_devhead |= ((sector & 0xff)))
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | blkdev.shlib | 373 typeset sector=512 377 typeset sector=512 381 typeset sector=4096 399 sector_size=$sector physblk_exp=$blkexp
|
/illumos-gate/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 871 int sector, int size, const char *buf) in write_to_partition() argument 912 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; in write_to_partition() 921 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; in write_to_partition()
|
/illumos-gate/usr/src/uts/common/io/vioblk/ |
H A D | vioblk.c | 223 vioblk_common_start(vioblk_t *vib, int type, uint64_t sector, in vioblk_common_start() argument 245 vbh.vbh_sector = (sector * vib->vib_blk_size) / DEV_BSIZE; in vioblk_common_start() 324 uint64_t sector, virtio_direction_t dir) in vioblk_internal() argument 333 if ((vbr = vioblk_common_start(vib, type, sector, B_TRUE)) == NULL) { in vioblk_internal()
|
/illumos-gate/usr/src/uts/common/sys/sata/adapters/ahci/ |
H A D | ahcireg.h | 349 #define SET_FIS_SECTOR(fis, sector) \ argument 350 (fis->ahcifhr_sector_cyllow_cylhi_devhead |= ((sector & 0xff)))
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_virtio_block.c | 184 uint64_t sector; member 384 io->io_req.br_offset = discard->sector * VTBLK_BSIZE; in pci_vtblk_proc()
|