Lines Matching refs:d_secpercyl
75 uint32_t d_secpercyl; /* # of data sectors per cylinder */
79 * are not counted in d_nsectors or d_secpercyl.
291 (display_in_cyl_units ? ((n)/xbsd_dlabel.d_secpercyl) + 1 : (n))
482 begin = (begin - 1) * xbsd_dlabel.d_secpercyl;
490 end = end * xbsd_dlabel.d_secpercyl - 1;
529 printf("sectors/cylinder: %ld\n", (long) lp->d_secpercyl);
553 if (display_in_cyl_units && lp->d_secpercyl) {
556 (long) pp->p_offset / lp->d_secpercyl + 1,
557 (pp->p_offset % lp->d_secpercyl) ? '*' : ' ',
558 (long) (pp->p_offset + pp->p_size + lp->d_secpercyl - 1) / lp->d_secpercyl,
559 ((pp->p_offset + pp->p_size) % lp->d_secpercyl) ? '*' : ' ',
560 (long) pp->p_size / lp->d_secpercyl,
561 (pp->p_size % lp->d_secpercyl) ? '*' : ' '
669 /* d->d_secpercyl can be != d->d_nsectors * d->d_ntracks */
671 d->d_secpercyl = edit_int(d->d_nsectors * d->d_ntracks,
673 if (d->d_secpercyl <= d->d_nsectors * d->d_ntracks)
685 d->d_secperunit = d->d_secpercyl * d->d_ncylinders;
881 d->d_secpercyl = sectors * heads; /* sectors/cylinder */
882 if (d->d_secpercyl == 0)
883 d->d_secpercyl = 1; /* avoid segfaults */
884 d->d_secperunit = d->d_secpercyl * d->d_ncylinders;