/illumos-gate/usr/src/cmd/format/ |
H A D | defect.h | 56 short cyl; member in struct:defect_entry 77 * They are stored 1/track, starting at track 0 of the second alternate cyl. 96 #define DEF_PRINTHEADER " num cyl hd bfi len sec blk\n"
|
H A D | io.c | 352 int cyl, head, sect; local 402 if (geti(buf, &cyl, &wild)) 404 if ((cyl < 0) || (cyl >= (ncyl + acyl))) { 405 err_print("`%d' is out of range.\n", cyl); 433 *iptr = chs2bn(cyl, head, sect); 2101 fmt_print("<%s cyl %u alt %u hd %u sec %u>", 2141 " %s%d: <%s cyl %u alt %u hd %u sec %u>\n",
|
H A D | auto_sense.c | 227 static int adjust_disk_geometry(diskaddr_t capacity, uint_t *cyl, 582 "%s cyl %u alt %u hd %u sec %u", 1306 "%s cyl %u alt %u hd %u sec %u", 1353 "%s cyl %u alt %u hd %u sec %u", 1416 "%s cyl %u alt %u hd %u sec %u", 1452 int cyl; local 1579 cyl = 0; 1585 label->dkl_vtoc.v_part[i].p_start = cyl * blks_per_cyl; 1587 cyl += ncyls[i]; 1608 label->dkl_map[i].dkl_cylno = cyl; 2100 adjust_disk_geometry(diskaddr_t capacity, uint_t *cyl, uint_t *nhead, uint_t *nsect) argument [all...] |
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/ |
H A D | f_generic.c | 226 int32_t cyl, rem, head, start_sector; local 261 cyl = r_p->offset/(fdchar.fdc_nhead * fdchar.fdc_secptrack); 273 fdraw.fdr_cmd[2] = cyl; /* track number */ 300 int32_t cyl, rem, head, start_sector; local 334 cyl = r_p->offset/(fdchar.fdc_nhead * fdchar.fdc_secptrack); 346 fdraw.fdr_cmd[2] = cyl; /* track number */
|
H A D | f_format.c | 74 int32_t cyl, hd; local 394 for (cyl = start_cyl; cyl < (int32_t)end_cyl; cyl++) { 401 fdr_seek.fdr_cmd[2] = cyl; 404 gettext(" seek to cyl %d failed\n"), 405 cyl); 419 *p++ = (uchar_t)cyl; 440 "format of cyl %d head %d failed\n"), 441 cyl, h [all...] |
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_menu.c | 225 DPRINTF3("media cyl %d head %d sect %d\n", 1055 uint32_t cyl, head; local 1064 for (cyl = 0; cyl < med_info.sm_pcyl; cyl++) { 1066 if (smedia_format_track(handle, cyl, head, SM_FORMAT_HD) 1072 new_per = (cyl * 80)/med_info.sm_pcyl; 1086 uint32_t cyl, head; local 1094 for (cyl = 0; cyl < med_inf [all...] |
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | vtoc.h | 97 uint32_t cyl; member in struct:vtoc8::__anon455 144 uint16_t dkl_bcyl; /* cyl offset (for fixed head area) */ 149 uint16_t dkl_apc; /* alternates per cyl (SCSI only) */
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | biosdisk.c | 222 /* Convert max cyl # -> # of cylinders */ 507 u_int x, bpc, cyl, hd, sec; local 511 cyl = x / bpc; /* block # / blocks per cylinder */ 519 if (cyl > 1023) 529 v86.ecx = ((cyl & 0xff) << 8) | ((cyl & 0x300) >> 2) | sec;
|
/illumos-gate/usr/src/cmd/fdformat/ |
H A D | fdformat.c | 279 /* for debug only, format cyl 0 only */ 284 (void) printf(gettext("\nFormat cyl Zero only\n")); 463 int cyl, hd; local 585 "5.25\" floppy cyl 80 alt 0 hd 2 sec 15"); 590 "3.5\" floppy cyl 80 alt 0 hd 2 sec 18"); 599 "5.25\" floppy cyl 40 alt 0 hd 2 sec 9"); 613 "3.5\" floppy cyl 80 alt 0 hd 2 sec 9"); 631 "3.5\" floppy cyl 77 alt 0 hd 2 sec 8"); 639 "3.5\" floppy cyl 80 alt 0 hd 2 sec 36"); 864 for (cyl [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | fd.c | 812 /* try reading last sector of cyl 1, head 0 */ 1125 uint_t bincyl; /* (the number of the desired) block in cyl. */ 1128 int cyl, head, sect; local 1196 /* start cyl of req */ 1197 cyl = blk / secpcyl; 1225 "cyl %d head %d sec %d\n resid 0x%lx, tlen %d\n", 1226 blk, (void *)addr, len, cyl, head, sect, 1233 bp->b_flags & B_READ, cyl, head, sect, addr, tlen); 1731 int cyl, head, spc, spt; local 1793 spc = fjp->fj_chars->fdc_nhead * spt; /* sec/cyl */ [all...] |
H A D | fdc.c | 1126 fdrw(struct fcu_obj *fjp, int funit, int rw, int cyl, int head, argument 1151 csb->csb_cmd[2] = (uchar_t)cyl; 1246 fdtrkformat(struct fcu_obj *fjp, int funit, int cyl, int head, int filldata) argument 1260 (CE_NOTE, "fdformattrk unit %d cyl=%d, hd=%d", funit, cyl, head)); 1274 csb->csb_npcyl = (uchar_t)(cyl * fjp->fj_chars->fdc_steps); 1320 *dp++ = (uchar_t)cyl; 1714 fdcseek(struct fdcntlr *fcp, int unit, int cyl) argument 1718 FCERRPRINT(FDEP_L0, FDEM_RECA, (CE_CONT, "fdcseek unit %d to cyl %d\n", 1719 unit, cyl)); [all...] |
H A D | cmlb.c | 954 daddr_t spc, blk, head, cyl; local 993 cyl = cl->cl_g.dkg_ncyl + cl->cl_g.dkg_acyl - 2; 997 (cyl * (spc - cl->cl_g.dkg_apc)) + 3304 * For the rpm, we use the minimum for the disk. For the head, cyl, 3528 (void) sprintf(cl->cl_vtoc.v_asciilabel, "DEFAULT cyl %d alt %d" 3550 "cyl: %d\tacyl: %d\tnhead: %d\tnsect: %d\tcap: %d\n", 4790 int cyl; local 4817 cyl = dkl->dkl_ncyl + dkl->dkl_acyl - 1; 4826 (cyl * ((dkl->dkl_nhead * dkl->dkl_nsect) - dkl->dkl_apc)) + 5258 * For the head, cyl an [all...] |
/illumos-gate/usr/src/uts/common/sys/scsi/impl/ |
H A D | commands.h | 592 unsigned cyl : 24; member in struct:scsi_bfi_defect
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_disk.c | 1789 * cyl low lba(15:8) lba(39:32) 1790 * cyl hi lba(23:16) lba(47:40) 1845 uint_t cyl; local 1855 cyl = resid / drvheads; 1860 ddi_put8(io_hdl1, ata_ctlp->ac_hcyl, (cyl >> 8)); 1862 ddi_put8(io_hdl1, ata_ctlp->ac_lcyl, cyl);
|
/illumos-gate/usr/src/uts/sun/io/ |
H A D | fd.c | 196 static int fdformat(struct fdctlr *fdc, int unit, int cyl, int hd); 362 { "3.5\" floppy cyl 80 alt 0 hd 2 sec 21" }, 372 { 0, 79 * 2 * 21 }, /* part 0 - all but last cyl */ 373 { 79, 1 * 2 * 21 }, /* part 1 - just the last cyl */ 388 { "3.5\" floppy cyl 80 alt 0 hd 2 sec 18" }, 398 { 0, 79 * 2 * 18 }, /* part 0 - all but last cyl */ 399 { 79, 1 * 2 * 18 }, /* part 1 - just the last cyl */ 418 { "3.5\" floppy cyl 77 alt 0 hd 2 sec 8" }, 428 { 0, 76 * 2 * 8 * 2 }, /* part 0 - all but last cyl */ 429 { 76, 1 * 2 * 8 * 2 }, /* part 1 - just the last cyl */ 2417 int cyl, hd, spc, spt; local 2947 fdformat(struct fdctlr *fdc, int unit, int cyl, int hd) argument 3094 uint_t cyl; /* starting cylinder of the transfer */ local 5440 fdrw(struct fdctlr *fdc, int unit, int rw, int cyl, int head, int sector, caddr_t bufp, uint_t len) argument [all...] |
/illumos-gate/usr/src/cmd/fdisk/ |
H A D | fdisk.c | 3072 int cyl, cylen; local 3248 if ((cyl = getcyl()) == -1) { 3253 if (cyl == 0) { 3261 if (cyl >= Numcyl_usable) { 3266 cyl, Numcyl_usable - 1); 3286 if (cyl * cyl_size >= t_relsect && 3287 cyl * cyl_size < t_relsect + t_numsect) { 3292 cyl); 3296 if (cyl * cyl_size < t_relsect && 3297 (cyl 3634 unsigned int cyl; local [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vds.c | 1046 "SUN-DiskImage-%ld%cB cyl %d alt %d hd %d sec %d", 1082 size_t blk, sec, cyl, head, cnt; local 1100 cyl = label->dkl_ncyl + label->dkl_acyl - 1; 1103 blk = (cyl * ((label->dkl_nhead * label->dkl_nsect) - label->dkl_apc)) + 1152 diskaddr_t spc, head, cyl; local 1188 cyl = vd->dk_geom.dkg_ncyl + vd->dk_geom.dkg_acyl - 2; 1192 *blkp = (cyl * (spc - vd->dk_geom.dkg_apc)) + 5736 "SUN-DiskSlice-%ld%cB cyl %d alt %d hd %d sec %d",
|