Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_iso9660.c78 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()
109 unsigned int sector; in iso9660_mount() local
124 for (sector = 16 ; sector < 32 ; sector++) in iso9660_mount()
132 ISO_SUPER->vol_sector = sector; in iso9660_mount()
417 int sector, blkoffset, size, ret; in iso9660_read() local
424 sector = filepos >> ISO_SECTOR_BITS; in iso9660_read()
[all …]
H A Dfsys_vstafs.c27 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 Ddisk_io.c203 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()
302 sector += num_sect; in rawread()
326 sector += byte_offset >> SECTOR_BITS; in devread()
351 if (sector == 0) in rawwrite()
363 sector = 1; in rawwrite()
368 sector, 1, SCRATCHSEG)) in rawwrite()
374 if (sector - sector % buf_geom.sectors == buf_track) in rawwrite()
[all …]
H A Dbios.c53 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 Dstage1_5.c28 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 Dfsys_zfs.c274 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()
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()
1537 sector += (VDEV_SKIP_SIZE >> SPA_MINBLOCKSHIFT); in check_pool_label()
1540 if (devread(sector, 0, VDEV_PHYS_SIZE, stack) == 0) in check_pool_label()
1664 uint64_t sector = vdev_label_start(adjpl, in zfs_mount() local
[all …]
H A Dfsys_fat.c228 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 Dbuiltins.c178 if (start_sector + num_sectors == sector 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()
1843 sector = skip_to (0, head); in geometry_func()
2259 printf ("[%llu]", sector); in install_func()
2267 saved_sector = sector; in install_func()
2276 printf("[%llu]", sector); in install_func()
3285 int cylinder, head, sector; in partnew_func() local
[all …]
H A Dshared.h895 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 Dpcfs.c276 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 Dpmbr.s35 # 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 Ddiskscan.c49 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 Dasmstub.c934 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 Detdump.c95 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 Dcd9660_eltorito.h152 int sector; /* copied to LoadRBA */ member
/illumos-gate/usr/src/grub/grub-0.97/docs/
H A Dinternals.texi112 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 Dgrub.info-447 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 Dmenu.lst62 # chainload OS/2 bootloader from the first sector
/illumos-gate/usr/src/uts/sun/sys/dada/impl/
H A Dcommands.h53 uchar_t sector; /* Sector Number */ member
/illumos-gate/usr/src/uts/common/sys/sata/adapters/si3124/
H A Dsi3124reg.h97 #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 Dblkdev.shlib373 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 Ddevice.c871 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 Dvioblk.c223 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 Dahcireg.h349 #define SET_FIS_SECTOR(fis, sector) \ argument
350 (fis->ahcifhr_sector_cyllow_cylhi_devhead |= ((sector & 0xff)))
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_virtio_block.c185 uint64_t sector; member
385 io->io_req.br_offset = discard->sector * VTBLK_BSIZE; in pci_vtblk_proc()

12