/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | stage1_5.c | 28 disk_read_savesect_func (unsigned long long sector, int offset, int length) argument 30 saved_sector = sector; 53 grub_printf ("internal error: the second sector of Stage 2 is unknown.");
|
H A D | fsys_iso9660.c | 70 iso9660_devread (int sector, int byte_offset, int byte_len, char *buf) argument 78 if (sector < 0) 86 sector += (byte_offset >> sector_size_lg2); 89 : "=r"(sector) 91 "0"(sector)); 95 printf ("<%d, %d, %d>", sector, byte_offset, byte_len); 103 return rawread(current_drive, part_start + sector, byte_offset, byte_len, buf); 109 unsigned int sector; local 124 for (sector = 16 ; sector < 3 417 int sector, blkoffset, size, ret; local [all...] |
H A D | fsys_vstafs.c | 27 static void get_file_info (int sector); 28 static struct dir_entry *vstafs_readdir (long sector); 39 * In f_sector we store the sector number in which the information about 60 get_file_info (int sector) argument 62 devread (sector, 0, BLOCK_SIZE, (char *) FILE_INFO); 69 vstafs_readdir (long sector) argument 74 get_file_info (sector);
|
H A D | bios.c | 55 unsigned long long sector, int nsec, int segment) 75 if (sector >= geometry->total_sectors) 82 dap.block = sector; 107 return biosdisk (read, drive, geometry, sector, nsec, segment); 118 sector_offset = sector % geometry->sectors + 1; 119 head = sector / geometry->sectors; 52 biosdisk(int read, int drive, struct geometry *geometry, unsigned long long sector, int nsec, int segment) argument
|
H A D | disk_io.c | 158 rawread(int drive, unsigned long long sector, int byte_offset, int byte_len, argument 198 /* Get the first sector of track. */ 199 soff = sector % sectors_per_vtrack; 200 track = sector - soff; 217 read_start = sector; 234 * required sector(s) rather than failing completely. 238 sector, slen, BUFFERSEG)) 247 if ((buf_track == 0 || sector == 0) 253 /* This is a EZD disk map sector 0 to sector 308 devread(unsigned long long sector, int byte_offset, int byte_len, char *buf) argument 346 rawwrite(int drive, unsigned long long sector, char *buf) argument 379 devwrite(unsigned long long sector, int sector_count, char *buf) argument [all...] |
H A D | fsys_fat.c | 52 #define FAT_BUF ( FSYS_BUF + 30208 ) /* 4 sector FAT buffer */ 228 int sector; local 242 sector = FAT_SUPER->fat_offset 244 if (!devread (sector, 0, FAT_CACHE_SIZE, (char*) FAT_BUF)) 269 sector = FAT_SUPER->data_offset + 278 devread(sector, offset, size, buf);
|
H A D | builtins.c | 147 /* Print which sector is read when loading a file. */ 149 disk_read_print_func(unsigned long long sector, int offset, int length) argument 151 grub_printf ("[%llu,%d,%d]", sector, offset, length); 166 auto void disk_read_blocklist_func (unsigned long long sector, int offset, 171 auto void disk_read_blocklist_func (unsigned long long sector, int offset, 176 if (start_sector + num_sectors == sector 204 sector-part_start, offset, offset+length); 209 start_sector = sector; 238 * full sector, since it doesn't matter if we read too much. */ 1417 unsigned long long sector; 170 disk_read_blocklist_func(unsigned long long sector, int offset, int length) argument 1400 unsigned long long sector; local 1835 char *cylinder, *head, *sector, *total_sector; local 2252 disk_read_savesect_func(unsigned long long sector, int offset, int length) argument 2269 disk_read_blocklist_func(unsigned long long sector, int offset, int length) argument 3282 int cylinder, head, sector; local 3915 disk_read_savesect_func(unsigned long long sector, int offset, int length) argument [all...] |
H A D | fsys_zfs.c | 273 find_bestub(char *ub_array, uint64_t ashift, uint64_t sector) argument 285 offset = (sector << SPA_MINBLOCKSHIFT) + 311 uint64_t offset, sector; local 318 sector = DVA_OFFSET_TO_PHYS_SECTOR(offset); 321 if (devread(sector, 0, SPA_GANGBLOCKSIZE, (char *)zio_gb) == 0) { 365 uint64_t offset, sector; local 377 sector = DVA_OFFSET_TO_PHYS_SECTOR(offset); 378 if (devread(sector, 0, psize, buf) == 0) 1528 check_pool_label(uint64_t sector, char *stack, char *outdevid, argument 1536 sector 1663 uint64_t sector = vdev_label_start(adjpl, local [all...] |
H A D | shared.h | 705 /* Device sector size */ 892 unsigned long long sector, int nsec, int segment); 1009 int rawread (int drive, unsigned long long sector, int byte_offset, int byte_len, 1011 int devread (unsigned long long sector, int byte_offset, int byte_len, char *buf); 1012 int rawwrite (int drive, unsigned long long sector, char *buf); 1013 int devwrite (unsigned long long sector, int sector_len, char *buf);
|
/illumos-gate/usr/src/common/fs/ |
H A D | pcfs.c | 128 /* read of first floppy sector */ 133 printf("failed to read first sector\n"); 278 ulong_t sector; local 318 sector = fat_ctodb(blk, rd); 323 break; /* last sector done */ 325 block = (char *)readblock(sector + i, 1); 424 /* ---- Find out what sector this cluster is in ---- */ 514 int j, sector; local 519 sector = fat_ctodb(dir_blk, rd); 520 dxp = readblock(sector, 597 readblock(int sector, int nsec) argument [all...] |
/illumos-gate/usr/src/uts/sun/sys/dada/impl/ |
H A D | commands.h | 53 uchar_t sector; /* Sector Number */ member in struct:dcd_cmd::__anon9722::chs
|
/illumos-gate/usr/src/boot/sys/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 | 29 * display progress on stdout, and print bad sector numbers to stderr 49 static void report(char *what, diskaddr_t sector); 60 static diskaddr_t unix_base; /* first sector of UNIX System partition */ 164 * attempt to read every sector of the drive; 198 /* make track buffer sector aligned */ 254 "Error seeking sector %llu Cylinder %llu\n", 260 * verify sector at a time only when 262 * (if we write a sector at a time, it takes forever) 272 * then announce the sector bad on stderr 278 "sector 356 report(char *what, diskaddr_t sector) argument [all...] |
/illumos-gate/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 805 /* Attempt to read the first sector. */ 934 unsigned long long sector, int nsec, int segment) 954 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; 960 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; 973 if (sector == 0 && nsec > 1) 992 grub_printf ("Write %d sectors starting from %u sector" 994 nsec, sector, drive, device_map[drive]); 933 biosdisk(int subfunc, int drive, struct geometry *geometry, unsigned long long sector, int nsec, int segment) argument
|
/illumos-gate/usr/src/uts/common/sys/sata/adapters/si3124/ |
H A D | si3124reg.h | 97 #define SET_FIS_SECTOR(fis, sector) \ 98 ((&fis)->fish_sector_cyllow_cylhi_devhead |= ((sector & 0xff)))
|
/illumos-gate/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 509 /* Attempt to read the first sector. */ 871 int sector, int size, const char *buf) 912 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; 921 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; 870 write_to_partition(char **map, int drive, int partition, int sector, int size, const char *buf) argument
|
/illumos-gate/usr/src/boot/sys/boot/arm/ixp425/boot2/ |
H A D | ixp425_board.c | 258 u_int32_t sector, u_int32_t count, u_int32_t feature); 535 cfcmd(u_int32_t cmd, u_int32_t cylinder, u_int32_t head, u_int32_t sector, argument 549 cfwrite8(CF_SECT_NUM, sector);
|
/illumos-gate/usr/src/boot/sys/boot/i386/boot0/ |
H A D | boot0.S | 47 * Note - this code uses many tricks to save space and fit in one sector. 76 * 1 3 start sector CHS 77 * 8:head, 6:sector, 2:cyl bit 9..8, 8:cyl bit 7..0 79 * 5 3 end sector CHS 80 * 8 4 LBA of first sector 220 * If the 'setdrv' flag is set in the boot sector, use the drive 221 * number from the boot sector at 'setdrv_num'. 257 * so that after 4 iterations it's beyond the end of the sector 470 movb $0x3,%ah # Write sector 487 movb $0x2,%ah # Read sector [all...] |
/illumos-gate/usr/src/grub/grub-0.97/util/ |
H A D | grub-install.in | 78 sector.
|
/illumos-gate/usr/src/uts/common/sys/sata/adapters/ahci/ |
H A D | ahcireg.h | 343 #define SET_FIS_SECTOR(fis, sector) \ 344 (fis->ahcifhr_sector_cyllow_cylhi_devhead |= ((sector & 0xff)))
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | capacity.notes.txt | 158 think is the last sector on the drive. If this read fails with ABRT or
|
H A D | ata_common.c | 1758 uchar_t sector, 1779 sector, head, cyl_low, cyl_hi)); 1787 ddi_put8(io_hdl1, ata_ctlp->ac_sect, sector); 1805 sector, head, cyl_low, cyl_hi)); 1831 sector, head, cyl_low, cyl_hi)); 1855 /* feature, count, sector, head, cyl_low, cyl_hi */ 1749 ata_command( ata_ctl_t *ata_ctlp, ata_drv_t *ata_drvp, int expect_drdy, int silent, uint_t busy_wait, uchar_t cmd, uchar_t feature, uchar_t count, uchar_t sector, uchar_t head, uchar_t cyl_low, uchar_t cyl_hi) argument
|
H A D | ata_common.h | 61 * Largest sector allowed in 28 bit mode 66 * Largest sector count allowed for device firmware file in one command. 114 #define AT_COUNT 0x02 /* sector count */ 115 #define AT_SECT 0x03 /* sector number */ 259 uchar_t *ac_count; /* sector count */ 260 uchar_t *ac_sect; /* sector number */ 338 ushort_t ai_secsiz; /* 5 # of unformatted bytes/sector */ 383 ushort_t ai_addrsecxt[4]; /* 100 extended max LBA sector */ 594 /* command, starting sector number, sector coun [all...] |
/illumos-gate/usr/src/uts/common/io/vioblk/ |
H A D | vioblk.c | 103 uint64_t sector; member in struct:vioblk_req_hdr 288 req->hdr.sector = xfer->x_blkno;
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_ioctl.c | 285 /* Check if sector num is too large for flash device */ 300 /* copyout the firmware sector image data */ 407 /* Check if sector num is too large for flash device */ 414 /* copy in fw sector image data */ 506 /* Check if sector num is too large for flash device */ 617 /* Alloc flash mem for one sector size */ 1497 * Calculate the start and end address of the sector, based on the 1498 * sector number passed in. 1507 /* Read the entire sector, one quadlet at a time */ 1549 uchar_t *sector; local [all...] |