Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 25 of 46) sorted by relevance

12

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dbios.c37 unsigned long *sectors);
42 unsigned long *sectors);
149 unsigned char sectors; in get_cdinfo() member
178 geometry->sectors = cdrp.sectors & 0x3F; in get_cdinfo()
239 &geometry->sectors); in get_diskinfo()
256 unsigned long sectors; in get_diskinfo() member
308 geometry->sectors = drp.sectors; in get_diskinfo()
343 * geometry->sectors); in get_diskinfo()
356 &geometry->sectors); in get_diskinfo()
364 &geometry->sectors); in get_diskinfo()
[all …]
H A Dcommon.c306 info->drive_sectors = geom.sectors; in init_bios_info()
/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 * $block_size))"
[all …]
/illumos-gate/usr/src/grub/grub-0.97/lib/
H A Ddevice.c53 unsigned char sectors; member
170 geom->sectors = hdg.sectors; in get_drive_geometry()
194 geom->sectors = tmp; in get_drive_geometry()
196 geom->sectors = 63; in get_drive_geometry()
208 / geom->sectors); in get_drive_geometry()
223 geom->sectors = hdg.d_nsectors; in get_drive_geometry()
238 geom->sectors = dkg.dkg_nsect; in get_drive_geometry()
261 geom->sectors = DEFAULT_HD_SECTORS; in get_drive_geometry()
267 geom->sectors = DEFAULT_FD_SECTORS; in get_drive_geometry()
275 geom->heads * geom->sectors; in get_drive_geometry()
/illumos-gate/usr/src/boot/common/
H A Dpart.c85 uint64_t sectors; member
290 table->sectors - 1) == 0) { in ptable_gptread()
324 table->sectors - 1) == 0) { in ptable_gptread()
432 if (offset >= table->sectors) in ptable_ebrread()
570 uint16_t sum, heads, sectors; in ptable_vtoc8read() local
596 sectors = be16toh(dl->nsecs); in ptable_vtoc8read()
598 if (sectors * heads == 0) { in ptable_vtoc8read()
739 entry->part.end = table->sectors; in ptable_iso9660read()
777 table->sectors = sectors; in ptable_open()
866 if (start + end - 1 >= sectors) in ptable_open()
[all …]
H A Dpart.h82 struct ptable *ptable_open(void *dev, uint64_t sectors, uint16_t sectorsize,
/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/cmd/bhyve/
H A Dpci_ahci.c1033 uint64_t sectors; in ata_identify_init() local
1189 uint64_t sectors; in atapi_read_capacity() local
1192 be32enc(buf, sectors - 1); in atapi_read_capacity()
1215 uint64_t sectors; in atapi_read_toc() local
1253 sectors >>= 2; in atapi_read_toc()
1256 lba_to_msf(bp, sectors); in atapi_read_toc()
1259 be32enc(bp, sectors); in atapi_read_toc()
1290 uint64_t sectors; in atapi_read_toc() local
1330 sectors >>= 2; in atapi_read_toc()
1333 lba_to_msf(bp, sectors); in atapi_read_toc()
[all …]
H A Dblock_if.c1098 off_t sectors; /* total sectors of the block dev */ in blockif_chs() local
1105 sectors = bc->bc_size / bc->bc_sectsz; in blockif_chs()
1108 if (sectors > 65535L * 16 * 255) in blockif_chs()
1109 sectors = 65535L * 16 * 255; in blockif_chs()
1111 if (sectors >= 65536L * 16 * 63) { in blockif_chs()
1114 hcyl = sectors / secpt; in blockif_chs()
1117 hcyl = sectors / secpt; in blockif_chs()
1126 hcyl = sectors / secpt; in blockif_chs()
1131 hcyl = sectors / secpt; in blockif_chs()
H A Dpci_virtio_block.c129 uint8_t sectors; member
523 sc->vbsc_cfg.vbc_geometry.sectors = 0; in pci_vtblk_init()
/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_util.c301 tgtp->properties.drive.sectors); in cpqary3_target_geometry()
711 ctlr->cpqary3_tgtp[i]->properties.drive.sectors = in cpqary3_detect_target_geometry()
712 idlogdrive->sectors; in cpqary3_detect_target_geometry()
785 ctlr->cpqary3_tgtp[i]->properties.drive.sectors = in cpqary3_detect_target_geometry()
786 idlogdrive->sectors; in cpqary3_detect_target_geometry()
H A Dcpqary3_scsi.h163 uint8_t sectors; member
/illumos-gate/usr/src/cmd/fdisk/
H A Dfdisk.c993 sectors = disk_geom.dkg_nsect; in main()
1032 sectors, in main()
1034 Numcyl * heads * sectors, in main()
1060 sectors = disk_geom.dkg_nsect; in main()
1077 sectors, in main()
1259 heads * sectors)); in main()
3088 cyl_size = heads * sectors;
3675 if ((heads == 0) || (sectors == 0)) {
3686 heads * sectors, sectsiz);
3823 (unsigned long)(heads * sectors);
[all …]
/illumos-gate/usr/src/lib/libfdisk/common/
H A Dlibfdisk.c1051 uint32_t sectors = epp->disk_geom.virt_sec; in fdisk_set_CHS_values() local
1055 if (lba >= heads * sectors * MAX_CYL) { in fdisk_set_CHS_values()
1064 cy = lba / sectors / heads; in fdisk_set_CHS_values()
1065 hd = lba / sectors % heads; in fdisk_set_CHS_values()
1066 sc = lba % sectors + 1; in fdisk_set_CHS_values()
1078 if (lba >= heads * sectors * MAX_CYL) { in fdisk_set_CHS_values()
1083 cy = lba / sectors / heads; in fdisk_set_CHS_values()
1084 hd = lba / sectors % heads; in fdisk_set_CHS_values()
1085 sc = lba % sectors + 1; in fdisk_set_CHS_values()
/illumos-gate/usr/src/grub/grub-0.97/docs/
H A Dinternals.texi132 sectors to be read in the next block list is zero.
202 The current partition starting address, in sectors.
205 The current partition length, in sectors.
221 The current position in the file, in sectors.
242 Only read sectors from within a partition. Sector 0 is the first sector
309 and in the sectors right after a MBR, because Stage 1.5 is enough small
310 and the sectors right after a MBR is normally an unused region. The size
311 of this region is the number of sectors per head minus 1.
H A Dgrub.info-450 in the sectors right after a MBR, because Stage 1.5 is enough small and
51 the sectors right after a MBR is normally an unused region. The size of
52 this region is the number of sectors per head minus 1.
/illumos-gate/usr/src/uts/sun/sys/dada/impl/
H A Dcommands.h65 uchar_t sectors; member
/illumos-gate/usr/src/boot/i386/common/
H A Dedd.h59 uint64_t sectors; member
H A Ddrv.c46 return (params.sectors); in drvsize()
/illumos-gate/usr/src/grub/grub-0.97/stage1/
H A Dstage1.S71 sectors: label
250 movw $ABS(sectors), %si
/illumos-gate/usr/src/lib/libzpool/common/
H A Dkernel.c207 int sectors = len >> SPA_MINBLOCKSHIFT; in vn_rdwr() local
208 split = (sectors > 0 ? rand() % sectors : 0) << in vn_rdwr()
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxdb.c241 int sectors; in xdb_get_buf() local
408 sectors = 0; in xdb_get_buf()
428 sectors += (xreq->xr_segs[i].ls - xreq->xr_segs[i].fs + 1); in xdb_get_buf()
436 bp->b_bcount = sectors * DEV_BSIZE; in xdb_get_buf()
1339 uint64_t sectors; in xdb_start_connect() local
1424 sectors = vdp->xs_sectors; in xdb_start_connect()
1430 XBP_SECTORS, "%"PRIu64, sectors)) || in xdb_start_connect()
/illumos-gate/usr/src/cmd/format/
H A Dglobal.h146 #define sectors(h) ((h) == nhead - 1 ? nsect - apc : nsect) macro
/illumos-gate/usr/src/boot/i386/pmbr/
H A Dpmbr.s72 # other sectors.
166 stage2_size: .word 1 # bootblock size in sectors
/illumos-gate/usr/src/cmd/prtvtoc/
H A Dprtvtoc.c560 u_longlong_t sectors = (u_longlong_t)cylsize * geom->dkg_pcyl; in puttable() local
574 (void) printf("* %11llu sectors\n", sectors); in puttable()

12