Searched defs:sector (Results 1 - 21 of 21) sorted by relevance

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dstage1_5.c28 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 Dfsys_iso9660.c70 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 Dfsys_vstafs.c27 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 Dfsys_fat.c52 #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 Dbios.c55 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 Ddisk_io.c158 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 Dfsys_zfs.c273 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 Dbuiltins.c147 /* 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...]
/illumos-gate/usr/src/cmd/diskscan/
H A Ddiskscan.c29 * 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/uts/sun/sys/dada/impl/
H A Dcommands.h53 uchar_t sector; /* Sector Number */ member in struct:dcd_cmd::__anon9722::chs
/illumos-gate/usr/src/common/fs/
H A Dpcfs.c128 /* 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/grub/grub-0.97/lib/
H A Ddevice.c509 /* 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/uts/common/io/ib/adapters/tavor/
H A Dtavor_ioctl.c280 /* Check if sector num is too large for flash device */
294 /* copyout the firmware sector image data */
422 /* Check if sector num is too large for flash device */
432 /* copy in fw sector image data */
533 /* Check if sector num is too large for flash device */
627 /* Alloc flash mem for one sector size */
1587 * Calculate the start and end address of the sector, based on the
1588 * sector number passed in.
1596 /* Read the entire sector, one quadlet at a time */
1630 uchar_t *sector; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/arm/ixp425/boot2/
H A Dixp425_board.c258 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/uts/common/io/ib/adapters/hermon/
H A Dhermon_ioctl.c285 /* 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...]
/illumos-gate/usr/src/uts/common/io/vioblk/
H A Dvioblk.c103 uint64_t sector; member in struct:vioblk_req_hdr
288 req->hdr.sector = xfer->x_blkno;
/illumos-gate/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c805 /* 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/intel/io/dktp/controller/ata/
H A Data_common.c1758 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 Data_disk.c323 * if the the sector/heads do not match that of the
326 * geometry for sector translation.
514 * (bytes/sector), or about 31.5 GB. The cylinder count gets truncated
1512 * sector count would work for pio mode on a retry
1578 * In the non-48-bit mode addressing (CHS and LBA28) the sector
1579 * count is a 8-bit value and the sector count 0 represents 256
1581 * In the extended addressing (LBA48) the sector count is a 16-bit
1583 * because this would represent a zero sector count.
1629 * should set bytes_per_block to one sector
1752 * routines to load the cylinder/head/sector/coun
2787 uchar_t sector; local
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dfdc.c322 fdrw, /* read /write sector */
1127 int sector, caddr_t bufp, uint_t len)
1153 csb->csb_cmd[4] = (uchar_t)sector;
1156 csb->csb_cmd[6] = (uchar_t)max(fjp->fj_chars->fdc_secptrack, sector);
1126 fdrw(struct fcu_obj *fjp, int funit, int rw, int cyl, int head, int sector, caddr_t bufp, uint_t len) argument
/illumos-gate/usr/src/uts/sun/io/
H A Dfd.c320 512, /* sector size */
329 512, /* sector size */
338 1024, /* sector size */
347 512, /* sector size */
415 * assumes a sector is DEVBSIZE (512) bytes.
1764 /* if operation not a multiple of sector size, is error! */
1768 " multiple of sector size(0x%x)\n", 0,
2939 * For PIO, builds a table of sector data values with 16 bytes
3046 *fd++ = (uchar_t)i; /* sector number */
3189 csb->csb_cmds[5] = ch->fdc_medium ? 3 : 2; /* sector siz
5440 fdrw(struct fdctlr *fdc, int unit, int rw, int cyl, int head, int sector, caddr_t bufp, uint_t len) argument
[all...]

Completed in 129 milliseconds