Searched refs:sectors (Results 1 - 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dbios.c38 unsigned long *sectors);
43 unsigned long *sectors);
48 /* Read/write NSEC sectors starting from SECTOR in DRIVE disk with GEOMETRY
72 BIOSes don't return the number of total sectors correctly,
106 * geometry->sectors);
118 sector_offset = sector % geometry->sectors + 1;
119 head = sector / geometry->sectors;
151 unsigned char sectors;
168 geometry->sectors = 15;
178 + (((unsigned int) (cdrp.sectors
149 unsigned char sectors; member in struct:iso_spec_packet
256 unsigned long sectors; member in struct:drive_parameters
[all...]
H A Dcommon.c83 [ERR_NO_DISK_SPACE] = "No spare sectors on the disk",
306 info->drive_sectors = geom.sectors;
H A Ddisk_io.c193 if ((buf_geom.sectors << sector_size_bits) > BUFFERLEN)
196 sectors_per_vtrack = buf_geom.sectors;
274 * Instrumentation to tell which sectors were read and used.
371 if (sector - sector % buf_geom.sectors == buf_track)
/illumos-gate/usr/src/grub/grub-0.97/util/
H A Dmkbimage42 sectors=
294 sectors=63;
302 sectors=15;
307 sectors=18;
312 sectors=20;
318 sectors=21;
323 sectors=21;
328 sectors=36;
346 sfdisk -C $cylinders -H $heads -S $sectors -D $image<<EOT
351 offset="$(($sectors *
[all...]
/illumos-gate/usr/src/grub/grub-0.97/lib/
H A Ddevice.c53 unsigned char sectors; member in struct:hd_geometry
170 geom->sectors = hdg.sectors;
194 geom->sectors = tmp;
196 geom->sectors = 63;
208 / geom->sectors);
223 geom->sectors = hdg.d_nsectors;
238 geom->sectors = dkg.dkg_nsect;
261 geom->sectors = DEFAULT_HD_SECTORS;
267 geom->sectors
[all...]
/illumos-gate/usr/src/uts/sun/sys/dada/impl/
H A Dcommands.h65 uchar_t sectors; member in struct:dcd_capacity
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dpart.h77 /* The offset and size are in sectors */
82 struct ptable *ptable_open(void *dev, off_t sectors, uint16_t sectorsize,
H A Dpart.c83 uint64_t sectors; member in struct:ptable
277 phdr = gpt_checkhdr((struct gpt_hdr *)buf, 1, table->sectors - 1,
285 table->sectors - 1) == 0) {
290 offset = pri ? hdr.hdr_lba_alt: table->sectors - 1;
296 table->sectors - 1, table->sectorsize);
319 table->sectors - 1) == 0) {
407 #if 0 /* Some BIOSes return an incorrect number of sectors */
408 if (offset >= table->sectors)
550 uint16_t sum, heads, sectors; local
576 sectors
693 ptable_open(void *dev, off_t sectors, uint16_t sectorsize, diskread_t *dread) argument
[all...]
/illumos-gate/usr/src/boot/sys/boot/i386/common/
H A Dedd.h61 uint64_t sectors; member in struct:edd_params
H A Ddrv.c51 return (params.sectors);
/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_util.c301 tgtp->properties.drive.sectors);
711 ctlr->cpqary3_tgtp[i]->properties.drive.sectors =
712 idlogdrive->sectors;
785 ctlr->cpqary3_tgtp[i]->properties.drive.sectors =
786 idlogdrive->sectors;
H A Dcpqary3_scsi.h163 uint8_t sectors; member in struct:Identify_Logical_Drive
H A Dcpqary3.h217 uint8_t sectors; member in struct:cpqary3_target::__anon5231::__anon5233
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Dcapacity.notes.txt126 a different heads and sectors and repeat this step.
136 2c) Issue a Init Drv Params and set your favorite heads and sectors.
139 num-cyl = [60:61] / (favorite heads) * (favorite sectors)
141 The drive capacity is (num-cyl)*(favorite heads)*(favorite sectors).
148 heads and sectors. Compute the number of cylinders:
150 num-cyl = ([1]*[3]*[6]) / (num heads) * (num sectors)
152 The drive capacity is (num-cyl)*(num-head)*(num-sectors).
/illumos-gate/usr/src/lib/libfdisk/common/
H A Dlibfdisk.c520 * ascending order of their beginning sectors.
1030 uint32_t sectors = epp->disk_geom.virt_sec; local
1034 if (lba >= heads * sectors * MAX_CYL) {
1043 cy = lba / sectors / heads;
1044 hd = lba / sectors % heads;
1045 sc = lba % sectors + 1;
1057 if (lba >= heads * sectors * MAX_CYL) {
1062 cy = lba / sectors / heads;
1063 hd = lba / sectors % heads;
1064 sc = lba % sectors
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage1/
H A Dstage1.S71 sectors: label
185 /* save the total number of sectors */
213 * BIOS call "INT 0x13 Function 0x42" to read sectors from disk into memory
250 movw $ABS(sectors), %si
275 /* save number of sectors */
285 /* divide by number of sectors */
314 incb %cl /* normalize sector (sectors go
326 * BIOS call "INT 0x13 Function 0x2" to read sectors from disk into memory
328 * %al = number of sectors
467 /* if number of sectors i
[all...]
/illumos-gate/usr/src/cmd/fdisk/
H A Dfdisk.c98 * SECT range [ 1 .. MAX_SECT ], so number of sectors is (MAX_SECT)
104 #define DK_MAX_2TB UINT32_MAX /* Max # of sectors in 2TB */
179 " numsect = partition size in sectors\n"
208 " NSECTORS number of sectors per track\n"
284 static off_t io_size = 0; /* size in sectors (-s size) */
328 static diskaddr_t chs_capacity; /* Numcyl_usable * heads * sectors */
336 static int sectors; /* number of sectors per track */ variable
337 static int acyl; /* number of alternate sectors */
342 static int hba_sectors; /* number of sectors pe
[all...]
/illumos-gate/usr/src/cmd/format/
H A Dglobal.h146 #define sectors(h) ((h) == nhead - 1 ? nsect - apc : nsect) macro
H A Ddefect.c65 * disks. The bad block map is located on the first 5 even sectors of
181 ((bt->bt_trksec & 0xff) >= sectors(head))) {
353 * calculate how many sectors the defect list will occupy.
/illumos-gate/usr/src/boot/sys/boot/arm/ixp425/boot2/
H A Dixp425_board.c229 u_int8_t sectors; member in struct:__anon122
616 dskinf.sectors = dskinf.ata_params.sectors;
618 (u_int32_t)dskinf.ata_params.sectors,
/illumos-gate/usr/src/boot/sys/boot/i386/pmbr/
H A Dpmbr.s72 # other sectors.
166 stage2_size: .word 1 # bootblock size in sectors
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxdb.c241 int sectors; local
408 sectors = 0;
411 * Run through the segments. There are XB_NUM_SECTORS_PER_SEG sectors
428 sectors += (xreq->xr_segs[i].ls - xreq->xr_segs[i].fs + 1);
436 bp->b_bcount = sectors * DEV_BSIZE;
1339 uint64_t sectors; local
1424 sectors = vdp->xs_sectors;
1430 XBP_SECTORS, "%"PRIu64, sectors)) ||
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dbiosdisk.c230 /* Calculate sectors count from the geometry */
264 if (params.sectors != 0)
265 bd->bd_sectors = params.sectors;
275 DEBUG("unit 0x%x flags %x, sectors %llu, sectorsize %u",
475 /* Max number of sectors to bounce-buffer if the request crosses a 64k boundary */
/illumos-gate/usr/src/lib/libzpool/common/
H A Dkernel.c528 int sectors = len >> SPA_MINBLOCKSHIFT; local
529 split = (sectors > 0 ? rand() % sectors : 0) <<
/illumos-gate/usr/src/boot/sys/boot/i386/cdboot/
H A Dcdboot.S33 # number of sectors, we try to fit this in as small a space as possible.
81 .set BUFFER_LEN,0x100 # number of sectors in buffer
183 add $SECTOR_SIZE-1,%eax # Convert length to sectors
189 load_sizeok: movzbw %al,%cx # Num sectors to read
414 # Load DH sectors starting at LBA EAX into [EBX].

Completed in 117 milliseconds

12