Home | History | Annotate | Download | only in sun

Lines Matching defs:sl

242 	struct sun_disklabel *sl;
249 sl = (struct sun_disklabel *)cp;
252 sp1 = (u_short *)sl;
253 sp2 = (u_short *)(sl + 1);
263 memcpy(lp->d_packname, sl->sl_text, sizeof(lp->d_packname));
268 lp->d_nsectors = sl->sl_nsectors;
269 lp->d_ntracks = sl->sl_ntracks;
270 lp->d_ncylinders = sl->sl_ncylinders;
272 secpercyl = sl->sl_nsectors * sl->sl_ntracks;
274 lp->d_secperunit = secpercyl * sl->sl_ncylinders;
276 lp->d_sparespercyl = sl->sl_sparespercyl;
277 lp->d_acylinders = sl->sl_acylinders;
278 lp->d_rpm = sl->sl_rpm;
279 lp->d_interleave = sl->sl_interleave;
287 spp = &sl->sl_part[i];
338 struct sun_disklabel *sl;
347 sl = (struct sun_disklabel *)cp;
352 memcpy(sl->sl_text, lp->d_packname, sizeof(lp->d_packname));
353 sl->sl_rpm = lp->d_rpm;
354 sl->sl_pcylinders = lp->d_ncylinders + lp->d_acylinders; /* XXX */
355 sl->sl_sparespercyl = lp->d_sparespercyl;
356 sl->sl_interleave = lp->d_interleave;
357 sl->sl_ncylinders = lp->d_ncylinders;
358 sl->sl_acylinders = lp->d_acylinders;
359 sl->sl_ntracks = lp->d_ntracks;
360 sl->sl_nsectors = lp->d_nsectors;
362 secpercyl = sl->sl_nsectors * sl->sl_ntracks;
364 spp = &sl->sl_part[i];
378 sl->sl_magic = SUN_DKMAGIC;
381 sp1 = (u_short *)sl;
382 sp2 = (u_short *)(sl + 1);
383 sl->sl_cksum = cksum = 0;
386 sl->sl_cksum = cksum;