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);
104 * geometry->sectors); in biosdisk()
116 sector_offset = sector % geometry->sectors + 1; in biosdisk()
117 head = sector / geometry->sectors; in biosdisk()
149 unsigned char sectors; in get_cdinfo() member
166 geometry->sectors = 15; in get_cdinfo()
176 + (((unsigned int) (cdrp.sectors & 0xC0)) << 2)); in get_cdinfo()
178 geometry->sectors = cdrp.sectors & 0x3F; in get_cdinfo()
182 * geometry->sectors); in get_cdinfo()
[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
282 phdr = gpt_checkhdr((struct gpt_hdr *)buf, 1, table->sectors - 1, in ptable_gptread()
290 table->sectors - 1) == 0) { in ptable_gptread()
295 offset = pri ? hdr.hdr_lba_alt: table->sectors - 1; in ptable_gptread()
301 table->sectors - 1, table->sectorsize); in ptable_gptread()
324 table->sectors - 1) == 0) { in ptable_gptread()
348 table->sectors = hdr.hdr_lba_alt + 1; 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()
[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/common/
H A Dpci_ahci.c1031 uint64_t sectors; in ata_identify_init() local
1039 sectors = blockif_size(p->bctx) / sectsz; in ata_identify_init()
1045 ata_ident->sectors = sech; in ata_identify_init()
1056 if (sectors <= 0x0fffffff) { in ata_identify_init()
1057 ata_ident->lba_size_1 = sectors; in ata_identify_init()
1058 ata_ident->lba_size_2 = (sectors >> 16); in ata_identify_init()
1092 ata_ident->lba_size48_1 = sectors; in ata_identify_init()
1093 ata_ident->lba_size48_2 = (sectors >> 16); in ata_identify_init()
1094 ata_ident->lba_size48_3 = (sectors >> 32); in ata_identify_init()
1095 ata_ident->lba_size48_4 = (sectors >> 48); in ata_identify_init()
[all …]
H A Dblock_if.c1097 off_t sectors; /* total sectors of the block dev */ in blockif_chs() local
1104 sectors = bc->bc_size / bc->bc_sectsz; in blockif_chs()
1107 if (sectors > 65535L * 16 * 255) in blockif_chs()
1108 sectors = 65535L * 16 * 255; in blockif_chs()
1110 if (sectors >= 65536L * 16 * 63) { in blockif_chs()
1113 hcyl = sectors / secpt; in blockif_chs()
1116 hcyl = sectors / secpt; in blockif_chs()
1125 hcyl = sectors / secpt; in blockif_chs()
1130 hcyl = sectors / secpt; in blockif_chs()
H A Dpci_virtio_block.c128 uint8_t sectors; member
522 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.c328 static int sectors; /* number of sectors per track */ variable
993 sectors = disk_geom.dkg_nsect; in main()
1021 hba_Numcyl = (Numcyl * heads * sectors) / in main()
1032 sectors, in main()
1034 Numcyl * heads * sectors, in main()
1035 (Numcyl * heads * sectors * sectsiz) / 1048576); in main()
1060 sectors = disk_geom.dkg_nsect; in main()
1077 sectors, in main()
1112 chs_capacity = (diskaddr_t)Numcyl * heads * sectors; in main()
1118 Numcyl_usable = DK_MAX_2TB / (heads * sectors); in main()
[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/grub/grub-0.97/stage1/
H A Dstage1.S71 sectors: label
250 movw $ABS(sectors), %si
/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/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