/illumos-gate/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 140 get_drive_geometry (struct geometry *geom, char **map, int drive) argument 144 if (geom->flags == -1) 150 fd = geom->flags; 153 geom->sector_size = SECTOR_SIZE; 168 geom->cylinders = hdg.cylinders; 169 geom->heads = hdg.heads; 170 geom->sectors = hdg.sectors; 171 geom->total_sectors = nr; 191 geom->total_sectors = media_size / sector_size; 194 geom [all...] |
H A D | device.h | 36 extern void get_drive_geometry (struct geometry *geom, char **map, int drive);
|
/illumos-gate/usr/src/cmd/devinfo/ |
H A D | devinfo.c | 63 static void devinfo(struct dk_geom *geom, int fd, char *device); 71 struct dk_geom geom; local 108 if (ioctl(fd, DKIOCGGEOM, &geom) == -1) { 119 devinfo(&geom, fd, device); 166 devinfo(struct dk_geom *geom, int fd, char *device) argument 182 sectorcyl = geom->dkg_nhead * geom->dkg_nsect;
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | common.c | 281 struct geometry geom; local 286 if (get_diskinfo (drive, &geom)) 302 info->drive_mode = ((geom.flags & BIOSDISK_FLAG_LBA_EXTENSION) 304 info->drive_cylinders = geom.cylinders; 305 info->drive_heads = geom.heads; 306 info->drive_sectors = geom.sectors; 346 struct geometry geom; local 349 if (get_diskinfo (boot_drive, &geom) 350 || ! (geom.flags & BIOSDISK_FLAG_CDROM))
|
H A D | boot.c | 956 struct geometry geom; local 959 get_diskinfo (i + 0x80, &geom); 963 bi.bi_bios_geom[i] = (((geom.cylinders - 1) << 16) 964 + (((geom.heads - 1) & 0xff) << 8) 965 + (geom.sectors & 0xff));
|
H A D | builtins.c | 1824 struct geometry geom; 1837 if (get_diskinfo (current_drive, &geom)) 1846 if (biosdisk (BIOSDISK_READ, current_drive, &geom, 0, 1, SCRATCHSEG)) 1879 geom = disks[current_drive]; 1887 if (geom.flags & BIOSDISK_FLAG_LBA_EXTENSION) 1896 geom.cylinders, geom.heads, geom.sectors, 1897 geom.total_sectors, msg); 1803 struct geometry geom; local
|
H A D | disk_io.c | 1535 struct geometry geom; local 1555 && ! get_diskinfo (disk_no, &geom))
|
/illumos-gate/usr/src/cmd/format/ |
H A D | label.c | 64 struct dk_geom *geom, struct dk_cinfo *cinfo); 276 struct dk_geom geom; local 384 bzero((caddr_t)&geom, sizeof (struct dk_geom)); 385 geom.dkg_ncyl = ncyl; 386 geom.dkg_acyl = acyl; 389 geom.dkg_bcyl = bcyl; 392 geom.dkg_nhead = nhead; 393 geom.dkg_nsect = nsect; 394 geom.dkg_intrlv = 1; 395 geom 488 struct dk_geom geom; local 747 vtoc_to_label(struct dk_label *label, struct extvtoc *vtoc, struct dk_geom *geom, struct dk_cinfo *cinfo) argument [all...] |
/illumos-gate/usr/src/cmd/prtvtoc/ |
H A D | prtvtoc.c | 148 findfree(struct dk_geom *geom, struct extvtoc *vtoc) argument 158 cylsize = (geom->dkg_nsect) * (geom->dkg_nhead); 159 fullsize = (diskaddr_t)(geom->dkg_ncyl) * cylsize; 371 struct dk_geom geom; local 389 geo = (readgeom(fd, name, &geom) == 0); 401 freemap = findfree(&geom, &vtoc); 411 puttable(&geom, &vtoc, freemap, devname, 475 puttable(struct dk_geom *geom, struct extvtoc *vtoc, freemap_t *freemap, argument 481 cylsize = (geom 589 readgeom(int fd, char *name, struct dk_geom *geom) argument [all...] |
/illumos-gate/usr/src/cmd/fmthard/ |
H A D | fmthard.c | 379 display(struct dk_geom *geom, struct extvtoc *vtoc, char *device) argument 400 (void) printf("* %d sectors/track\n", geom->dkg_nsect); 401 (void) printf("* %d tracks/cylinder\n", geom->dkg_nhead); 402 (void) printf("* %d cylinders\n", geom->dkg_pcyl); 403 (void) printf("* %d accessible cylinders\n", geom->dkg_ncyl); 532 load(FILE *fp, struct dk_geom *geom, struct extvtoc *vtoc) argument 554 fullsz = (uint64_t)geom->dkg_ncyl * geom->dkg_nsect * geom->dkg_nhead; 560 nblks = geom 701 validate(struct dk_geom *geom, struct extvtoc *vtoc) argument [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_nameinfo.c | 103 * Should always get geom from metadevice unit if metadevice. 105 * have MD_EFI_FG_ values, otherwise it will have geom from 495 struct dk_geom geom; local 584 (void) memset(&geom, 0, sizeof (geom)); 585 if (ioctl(fd, DKIOCGGEOM, &geom) != 0) { 659 meta_efi_to_mdgeom(mdev, gpt, &dnp->geom); 673 meta_geom_to_md(&geom, &dnp->geom); 733 struct dk_geom geom; local [all...] |
H A D | meta_repartition.c | 61 struct dk_geom geom; local 88 ioctl_return = ioctl(fd, DKIOCGGEOM, &geom);
|
H A D | meta_metad.c | 65 v2_dp->geom.ncyl = v1_dp->geom.ncyl; 66 v2_dp->geom.nhead = v1_dp->geom.nhead; 67 v2_dp->geom.nsect = v1_dp->geom.nsect; 68 v2_dp->geom.rpm = v1_dp->geom.rpm; 69 v2_dp->geom.write_reinstruct = v1_dp->geom [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vds.c | 682 static void vd_vtocgeom_to_label(struct extvtoc *vtoc, struct dk_geom *geom, 685 struct dk_geom *geom); 686 static boolean_t vd_slice_geom_isvalid(vd_t *vd, struct dk_geom *geom); 1662 struct dk_geom geom; local 1686 vd_label_to_vtocgeom(label, &vtoc, &geom); 1687 if (vd_slice_geom_isvalid(vd, &geom) && 2859 vd_vtocgeom_to_label(struct extvtoc *vtoc, struct dk_geom *geom, argument 2869 label->dkl_ncyl = geom->dkg_ncyl; 2870 label->dkl_acyl = geom->dkg_acyl; 2871 label->dkl_pcyl = geom 2912 vd_label_to_vtocgeom(struct dk_label *label, struct extvtoc *vtoc, struct dk_geom *geom) argument 2963 vd_slice_geom_isvalid(vd_t *vd, struct dk_geom *geom) argument 3048 struct dk_geom *geom; local 3236 struct dk_geom *geom = &vd->dk_geom; local 3291 struct dk_geom *geom; local [all...] |
H A D | vdc.c | 614 if (vdc->geom) 615 kmem_free(vdc->geom, sizeof (struct dk_geom)); 686 vdc->geom = NULL; 734 vdc->geom = kmem_zalloc(sizeof (struct dk_geom), KM_SLEEP); 5588 struct dk_geom *geom; local 5609 geom = vdc->geom; 5615 (geom->dkg_nhead * geom->dkg_nsect); 5624 (geom 8307 struct dk_geom geom; local 8684 vdc_store_label_vtoc(vdc_t *vdc, struct dk_geom *geom, struct extvtoc *vtoc) argument [all...] |
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vdc.h | 312 struct dk_geom *geom; /* structure to store geometry data */ member in struct:vdc
|
/illumos-gate/usr/src/uts/common/sys/lvm/ |
H A D | mdiox.x | 670 mdgeom_t geom; /* disk geometry */ 695 o_mdgeom_t geom; /* disk geometry (old style) */
|