Searched refs:d_secpercyl (Results 26 - 50 of 124) sorted by relevance

12345

/netbsd-6-1-5-RELEASE/sys/arch/atari/stand/tostools/libtos/
H A Ddisklbl.h69 u_int32_t d_secpercyl; /* # of data sectors per cylinder */ member in struct:disklabel
74 * d_nsectors or d_secpercyl. Spare sectors are assumed to
/netbsd-6-1-5-RELEASE/sys/arch/hp700/hp700/
H A Ddisksubr.c169 if (lp->d_secpercyl == 0)
215 bp->b_cylinder = btodb(HP700_LIF_VOLSTART) / lp->d_secpercyl;
239 dbp->b_cylinder = (HP700_LIF_DIRSTART) / lp->d_secpercyl;
283 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
/netbsd-6-1-5-RELEASE/sys/arch/hpc/hpc/
H A Ddisksubr.c165 cyl = LABELSECTOR / lp->d_secpercyl;
174 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
223 lp->d_secpercyl = lp->d_ntracks * lp->d_nsectors;
224 lp->d_ncylinders = lp->d_secperunit / lp->d_secpercyl;
325 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0
386 cyl = LABELSECTOR / lp->d_secpercyl;
395 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
/netbsd-6-1-5-RELEASE/sys/arch/arc/arc/
H A Ddisksubr.c188 cyl = LABELSECTOR / lp->d_secpercyl;
198 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
252 lp->d_secpercyl =
255 lp->d_secperunit / lp->d_secpercyl;
370 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
431 cyl = LABELSECTOR / lp->d_secpercyl;
440 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
/netbsd-6-1-5-RELEASE/sys/arch/sbmips/sbmips/
H A Ddisksubr.c135 cyl = LABELSECTOR / lp->d_secpercyl;
145 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
274 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0
334 cyl = LABELSECTOR / lp->d_secpercyl;
344 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
/netbsd-6-1-5-RELEASE/sys/arch/cobalt/cobalt/
H A Ddisksubr.c137 cyl = LABELSECTOR / lp->d_secpercyl;
146 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
272 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
333 cyl = LABELSECTOR / lp->d_secpercyl;
342 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
/netbsd-6-1-5-RELEASE/sys/kern/
H A Dsubr_disk.c157 dname, unit, sn, sn / lp->d_secpercyl);
158 sn %= lp->d_secpercyl;
361 if (lp->d_secpercyl == 0) {
402 (lp->d_secsize / DEV_BSIZE) / lp->d_secpercyl;
414 bp->b_cylinder = sector / lp->d_secpercyl;
/netbsd-6-1-5-RELEASE/sys/arch/vax/boot/boot/
H A Dmfm.c449 lp->d_secpercyl = lp->d_nsectors * lp->d_ntracks;
476 if (lp->d_secpercyl == 0)
477 lp->d_secpercyl = 30;
486 cyl = block / lp->d_secpercyl;
487 sect = block % lp->d_secpercyl;
562 if (lp->d_secpercyl == 0)
563 lp->d_secpercyl = 102;
574 cyl = block / lp->d_secpercyl;
575 sect = block % lp->d_secpercyl;
/netbsd-6-1-5-RELEASE/sys/arch/sh3/sh3/
H A Ddisksubr.c89 SW32(d_secpercyl);
179 SW32(d_secpercyl);
345 cyl = LABELSECTOR / lp->d_secpercyl;
354 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
403 lp->d_secpercyl = lp->d_ntracks * lp->d_nsectors;
404 lp->d_ncylinders = lp->d_secperunit / lp->d_secpercyl;
543 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0
604 cyl = LABELSECTOR / lp->d_secpercyl;
613 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
/netbsd-6-1-5-RELEASE/distrib/utils/edlabel/
H A Dedlabel.c69 { "sectors/cylinder", dloff(d_secpercyl), 4 },
205 d->d_secpercyl = spc;
215 marker = (val % d->d_secpercyl) ? '*' : ' ';
337 if (d->d_secpercyl == 0) {
338 d->d_secpercyl = (d->d_nsectors * d->d_ntracks);
339 printf("bad sect/cyl, set to %d\n", d->d_secpercyl);
/netbsd-6-1-5-RELEASE/sys/arch/sgimips/sgimips/
H A Ddisksubr.c94 bp->b_cylinder = bp->b_blkno / lp->d_secpercyl;
115 bp->b_cylinder = bp->b_blkno / lp->d_secpercyl;
190 bp->b_cylinder = bp->b_blkno / lp->d_secpercyl;
212 bp->b_cylinder = bp->b_blkno / lp->d_secpercyl;
275 lp->d_secpercyl = lp->d_nsectors * lp->d_ntracks;
276 lp->d_secperunit = lp->d_secpercyl * lp->d_ncylinders;
/netbsd-6-1-5-RELEASE/sys/arch/mipsco/mipsco/
H A Ddisksubr.c90 bp->b_cylinder = bp->b_blkno / lp->d_secpercyl;
111 bp->b_cylinder = bp->b_blkno / lp->d_secpercyl;
208 bp->b_cylinder = bp->b_blkno / lp->d_secpercyl;
230 bp->b_cylinder = bp->b_blkno / lp->d_secpercyl;
292 lp->d_secpercyl = lp->d_nsectors * lp->d_ntracks;
293 lp->d_secperunit = lp->d_secpercyl * lp->d_ncylinders;
/netbsd-6-1-5-RELEASE/sys/arch/macppc/macppc/
H A Ddisksubr.c345 bp->b_cylinder = 1 / lp->d_secpercyl;
422 bp->b_cylinder = 1 / lp->d_secpercyl;
490 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl;
586 bp->b_cylinder = bp->b_blkno / (lp->d_secsize / DEV_BSIZE) / lp->d_secpercyl;
634 if (lp->d_secpercyl == 0) {
644 bp->b_cylinder = 1 / lp->d_secpercyl;
692 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0
735 bp->b_cylinder = bp->b_blkno / (lp->d_secsize / DEV_BSIZE) / lp->d_secpercyl;
/netbsd-6-1-5-RELEASE/sbin/disklabel/
H A Dbswap.c94 nlp->d_secpercyl = bswap32(olp->d_secpercyl);
H A Dinteract.c268 /* d_secpercyl */
270 snprintf(def, sizeof(def), "%" PRIu32, lp->d_secpercyl);
281 lp->d_secpercyl = u;
708 size / (float) lp->d_secpercyl,
727 #define ROUND(a) ((((a) / lp->d_secpercyl) + \
728 (((a) % lp->d_secpercyl) ? 1 : 0)) * lp->d_secpercyl)
739 rv = (intmax_t) (d * lp->d_secpercyl);
/netbsd-6-1-5-RELEASE/distrib/utils/sysinst/arch/evbarm/
H A Dmd.c104 dlcylsize = disklabel.d_secpercyl;
/netbsd-6-1-5-RELEASE/distrib/utils/sysinst/arch/hp700/
H A Dmd.c98 dlcylsize = disklabel.d_secpercyl;
/netbsd-6-1-5-RELEASE/distrib/utils/sysinst/arch/sgimips/
H A Dmd.c111 dlcylsize = disklabel.d_secpercyl;
/netbsd-6-1-5-RELEASE/distrib/utils/sysinst/arch/shark/
H A Dmd.c97 dlcylsize = disklabel.d_secpercyl;
/netbsd-6-1-5-RELEASE/usr.sbin/diskpart/
H A Ddiskpart.c176 spc = dp->d_secpercyl;
305 if (dp->d_secpercyl != dp->d_nsectors * dp->d_ntracks)
306 printf("sc#%d:", dp->d_secpercyl);
478 dp->d_secpercyl = dp->d_nsectors * dp->d_ntracks;
480 dp->d_secpercyl = atol(buf);
/netbsd-6-1-5-RELEASE/sys/arch/atari/atari/
H A Ddisksubr.c89 if (lp->d_secpercyl == 0)
152 if (nlp->d_secpercyl == 0 || nlp->d_npartitions > MAXPARTITIONS ||
209 bp->b_cylinder = blk / lp->d_secpercyl;
231 bp->b_cylinder = blk / lp->d_secpercyl;
259 bp->b_cylinder = blkno / label->d_secpercyl;
361 i = ahdi_getparts(dev, strat, dl->d_secpercyl,
/netbsd-6-1-5-RELEASE/sys/arch/vax/boot/xxboot/
H A Dbootxx.c341 : "g"(bn),"g"(dp->d_secpercyl),"g"(dp->d_nsectors)
344 cn = bn / dp->d_secpercyl;
345 sn = bn % dp->d_secpercyl;
/netbsd-6-1-5-RELEASE/sys/sys/
H A Ddisklabel.h131 uint32_t d_secpercyl; /* # of data sectors per cylinder */ member in struct:disklabel
136 * d_nsectors or d_secpercyl. Spare sectors are assumed to
225 uint32_t d_secpercyl; member in struct:olddisklabel
268 .set d_secpercyl,56
/netbsd-6-1-5-RELEASE/distrib/utils/sysinst/arch/hp300/
H A Dmd.c99 dlcylsize = disklabel.d_secpercyl;
/netbsd-6-1-5-RELEASE/sys/arch/vax/mba/
H A Dhp.c188 dl->d_secpercyl = 32;
218 bp->b_cylinder = bp->b_rawblkno / lp->d_secpercyl;
254 cn = bn / lp->d_secpercyl;
255 sn = bn % lp->d_secpercyl;

Completed in 307 milliseconds

12345