Lines Matching refs:geom
64 struct dk_geom *geom, struct dk_cinfo *cinfo);
276 struct dk_geom geom; in write_label() local
384 bzero((caddr_t)&geom, sizeof (struct dk_geom)); in write_label()
385 geom.dkg_ncyl = ncyl; in write_label()
386 geom.dkg_acyl = acyl; in write_label()
389 geom.dkg_bcyl = bcyl; in write_label()
392 geom.dkg_nhead = nhead; in write_label()
393 geom.dkg_nsect = nsect; in write_label()
394 geom.dkg_intrlv = 1; in write_label()
395 geom.dkg_apc = apc; in write_label()
396 geom.dkg_rpm = cur_dtype->dtype_rpm; in write_label()
397 geom.dkg_pcyl = pcyl; in write_label()
417 if (ioctl(cur_file, DKIOCSGEOM, &geom) == -1) { in write_label()
488 struct dk_geom geom; in read_label() local
492 ioctl(fd, DKIOCGGEOM, &geom) == -1 || in read_label()
497 return (vtoc_to_label(label, &vtoc, &geom, &dkinfo)); in read_label()
748 struct dk_geom *geom, struct dk_cinfo *cinfo) in vtoc_to_label() argument
775 if (geom->dkg_ncyl == 0 || geom->dkg_nhead == 0 || in vtoc_to_label()
776 geom->dkg_nsect == 0) { in vtoc_to_label()
785 label->dkl_rpm = geom->dkg_rpm; in vtoc_to_label()
786 label->dkl_pcyl = geom->dkg_pcyl; in vtoc_to_label()
787 label->dkl_apc = geom->dkg_apc; in vtoc_to_label()
788 label->dkl_intrlv = geom->dkg_intrlv; in vtoc_to_label()
789 label->dkl_ncyl = geom->dkg_ncyl; in vtoc_to_label()
790 label->dkl_acyl = geom->dkg_acyl; in vtoc_to_label()
793 label->dkl_bcyl = geom->dkg_bcyl; in vtoc_to_label()
796 label->dkl_nhead = geom->dkg_nhead; in vtoc_to_label()
797 label->dkl_nsect = geom->dkg_nsect; in vtoc_to_label()
800 label->dkl_obs1 = geom->dkg_obs1; in vtoc_to_label()
801 label->dkl_obs2 = geom->dkg_obs2; in vtoc_to_label()
802 label->dkl_obs3 = geom->dkg_obs3; in vtoc_to_label()
805 label->dkl_write_reinstruct = geom->dkg_write_reinstruct; in vtoc_to_label()
806 label->dkl_read_reinstruct = geom->dkg_read_reinstruct; in vtoc_to_label()