Searched refs:cyl (Results 1 - 23 of 23) sorted by relevance

/opensolaris-onvv-gate/usr/src/lib/libsmedia/plugins/floppy/common/
H A Df_format.c74 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...]
H A Df_generic.c226 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 */
/opensolaris-onvv-gate/usr/src/cmd/format/
H A Ddefect.c245 fmt_print("%4d%8d%7d", num, def->cyl, def->head);
258 fmt_print("%8llu", chs2bn(def->cyl, def->head, def->sect));
296 if (def->cyl < ptr->cyl)
298 if (def->cyl != ptr->cyl)
416 def.cyl = bn2c(blkno);
H A Ddefect.h56 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 Dmenu_defect.c298 def.cyl = bn2c(bn);
309 def.cyl = input(FIO_INT,
589 i+1, dptr->cyl, dptr->head,
710 items = fscanf(fptr, "%*d%hd%hd%d%hd%hd\n", &dptr->cyl,
H A Dauto_sense.c230 static int adjust_disk_geometry(diskaddr_t capacity, uint_t *cyl,
631 "%s cyl %u alt %u hd %u sec %u",
1355 "%s cyl %u alt %u hd %u sec %u",
1402 "%s cyl %u alt %u hd %u sec %u",
1465 "%s cyl %u alt %u hd %u sec %u",
1501 int cyl; local
1628 cyl = 0;
1634 label->dkl_vtoc.v_part[i].p_start = cyl * blks_per_cyl;
1636 cyl += ncyls[i];
1657 label->dkl_map[i].dkl_cylno = cyl;
2144 adjust_disk_geometry(diskaddr_t capacity, uint_t *cyl, uint_t *nhead, uint_t *nsect) argument
[all...]
H A Dctlr_ata.c306 new_defect->cyl =
491 (uint_t)chs2bn(dlist->cyl, dlist->head, dlist->sect);
H A Dio.c351 int cyl, head, sect; local
401 if (geti(buf, &cyl, &wild))
403 if ((cyl < 0) || (cyl >= (ncyl + acyl))) {
404 err_print("`%d' is out of range.\n", cyl);
432 *iptr = chs2bn(cyl, head, sect);
2100 fmt_print("<%s cyl %u alt %u hd %u sec %u>",
2140 " %s%d: <%s cyl %u alt %u hd %u sec %u>\n",
H A Dctlr_scsi.c1125 fmt_print("PAGE 3: trk skew= %d (%d) cyl skew= %d (%d) ",
1910 new_defect->cyl = (cp[0] << 16 | cp[1] << 8) | cp[2];
1932 old_cyl = new_defect->cyl;
/opensolaris-onvv-gate/usr/src/cmd/fdformat/
H A Dfdformat.c279 /* for debug only, format cyl 0 only */
284 (void) printf(gettext("\nFormat cyl Zero only\n"));
463 int cyl, hd; local
597 "5.25\" floppy cyl 80 alt 0 hd 2 sec 15");
602 "3.5\" floppy cyl 80 alt 0 hd 2 sec 18");
611 "5.25\" floppy cyl 40 alt 0 hd 2 sec 9");
625 "3.5\" floppy cyl 80 alt 0 hd 2 sec 9");
643 "3.5\" floppy cyl 77 alt 0 hd 2 sec 8");
651 "3.5\" floppy cyl 80 alt 0 hd 2 sec 36");
876 for (cyl
[all...]
/opensolaris-onvv-gate/usr/src/cmd/rmformat/
H A Drmf_menu.c225 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...]
/opensolaris-onvv-gate/usr/src/lib/libparted/common/libparted/labels/
H A Dpc98.c100 uint16_t cyl; /* starting cylinder */ member in struct:_PC98RawPartition
165 || PED_LE16_TO_CPU(raw_part->cyl) >= dev->hw_geom.cylinders
167 || PED_LE16_TO_CPU(raw_part->cyl)
172 || !chs_to_sector(dev, PED_LE16_TO_CPU(raw_part->cyl),
178 < PED_LE16_TO_CPU(raw_part->cyl))
305 return chs_to_sector (disk->dev, PED_LE16_TO_CPU(raw_part->cyl),
337 || PED_LE16_TO_CPU(raw_part->cyl)
471 raw_part->cyl = PED_CPU_TO_LE16(c);
482 raw_part->ipl_cyl = raw_part->cyl;
H A Drdb.c792 PedSector cyl; local
800 cyl = (PedSector) (dev->hw_geom.sectors * dev->hw_geom.heads);
832 partition->de_LowCyl = PED_CPU_TO_BE32(start/cyl);
833 partition->de_HighCyl = PED_CPU_TO_BE32((end+1)/cyl-1);
/opensolaris-onvv-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Dcapacity.notes.txt139 num-cyl = [60:61] / (favorite heads) * (favorite sectors)
141 The drive capacity is (num-cyl)*(favorite heads)*(favorite sectors).
150 num-cyl = ([1]*[3]*[6]) / (num heads) * (num sectors)
152 The drive capacity is (num-cyl)*(num-head)*(num-sectors).
H A Data_disk.c1789 * 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);
/opensolaris-onvv-gate/usr/src/uts/common/io/pcmcia/
H A Dpcide.c678 uint32_t cyl; local
720 cyl = resid / drvheads;
726 ac_lwcyl = cyl;
727 ac_hicyl = (cyl >> 8);
735 start_sec, cyl, head, ac_sec,
783 start_sec, cyl, head, ac_sec,
981 uint32_t cyl; local
1050 cyl = resid / drvheads;
1064 start_sec, cyl, head, ac_sec,
1470 cmn_err(CE_CONT, " cfg 0x%x, cyl
[all...]
/opensolaris-onvv-gate/usr/src/cmd/fdisk/
H A Dfdisk.c3072 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...]
/opensolaris-onvv-gate/usr/src/uts/common/io/
H A Dfd.c812 /* 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 Dfdc.c1123 fdrw(struct fcu_obj *fjp, int funit, int rw, int cyl, int head, argument
1148 csb->csb_cmd[2] = (uchar_t)cyl;
1243 fdtrkformat(struct fcu_obj *fjp, int funit, int cyl, int head, int filldata) argument
1257 (CE_NOTE, "fdformattrk unit %d cyl=%d, hd=%d", funit, cyl, head));
1271 csb->csb_npcyl = (uchar_t)(cyl * fjp->fj_chars->fdc_steps);
1317 *dp++ = (uchar_t)cyl;
1711 fdcseek(struct fdcntlr *fcp, int unit, int cyl) argument
1715 FCERRPRINT(FDEP_L0, FDEM_RECA, (CE_CONT, "fdcseek unit %d to cyl %d\n",
1716 unit, cyl));
[all...]
H A Dcmlb.c948 daddr_t spc, blk, head, cyl; local
987 cyl = cl->cl_g.dkg_ncyl + cl->cl_g.dkg_acyl - 2;
991 (cyl * (spc - cl->cl_g.dkg_apc)) +
3268 * For the rpm, we use the minimum for the disk. For the head, cyl,
3492 (void) sprintf(cl->cl_vtoc.v_asciilabel, "DEFAULT cyl %d alt %d"
3514 "cyl: %d\tacyl: %d\tnhead: %d\tnsect: %d\tcap: %d\n",
4745 int cyl; local
4772 cyl = dkl->dkl_ncyl + dkl->dkl_acyl - 1;
4781 (cyl * ((dkl->dkl_nhead * dkl->dkl_nsect) - dkl->dkl_apc)) +
5208 * For the head, cyl an
[all...]
/opensolaris-onvv-gate/usr/src/uts/sun/io/
H A Dfd.c196 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...]
/opensolaris-onvv-gate/usr/src/uts/sun4v/io/
H A Dvds.c1046 "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",
/opensolaris-onvv-gate/usr/src/uts/common/sys/scsi/impl/
H A Dcommands.h591 unsigned cyl : 24; member in struct:scsi_bfi_defect

Completed in 313 milliseconds