/titanic_50/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 140 get_drive_geometry (struct geometry *geom, char **map, int drive) in get_drive_geometry() argument 144 if (geom->flags == -1) in get_drive_geometry() 150 fd = geom->flags; in get_drive_geometry() 153 geom->sector_size = SECTOR_SIZE; in get_drive_geometry() 168 geom->cylinders = hdg.cylinders; in get_drive_geometry() 169 geom->heads = hdg.heads; in get_drive_geometry() 170 geom->sectors = hdg.sectors; in get_drive_geometry() 171 geom->total_sectors = nr; in get_drive_geometry() 191 geom->total_sectors = media_size / sector_size; in get_drive_geometry() 194 geom->sectors = tmp; in get_drive_geometry() [all …]
|
H A D | device.h | 36 extern void get_drive_geometry (struct geometry *geom, char **map, int drive);
|
/titanic_50/usr/src/cmd/format/ |
H A D | label.c | 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() [all …]
|
/titanic_50/usr/src/grub/grub-0.97/stage2/ |
H A D | common.c | 281 struct geometry geom; in init_bios_info() local 286 if (get_diskinfo (drive, &geom)) in init_bios_info() 302 info->drive_mode = ((geom.flags & BIOSDISK_FLAG_LBA_EXTENSION) in init_bios_info() 304 info->drive_cylinders = geom.cylinders; in init_bios_info() 305 info->drive_heads = geom.heads; in init_bios_info() 306 info->drive_sectors = geom.sectors; in init_bios_info() 346 struct geometry geom; in init_bios_info() local 349 if (get_diskinfo (boot_drive, &geom) in init_bios_info() 350 || ! (geom.flags & BIOSDISK_FLAG_CDROM)) in init_bios_info()
|
H A D | boot.c | 956 struct geometry geom; in bsd_boot() local 959 get_diskinfo (i + 0x80, &geom); in bsd_boot() 963 bi.bi_bios_geom[i] = (((geom.cylinders - 1) << 16) in bsd_boot() 964 + (((geom.heads - 1) & 0xff) << 8) in bsd_boot() 965 + (geom.sectors & 0xff)); in bsd_boot()
|
H A D | builtins.c | 1803 struct geometry geom; in geometry_func() local 1816 if (get_diskinfo (current_drive, &geom)) in geometry_func() 1825 if (biosdisk (BIOSDISK_READ, current_drive, &geom, 0, 1, SCRATCHSEG)) in geometry_func() 1858 geom = disks[current_drive]; in geometry_func() 1866 if (geom.flags & BIOSDISK_FLAG_LBA_EXTENSION) in geometry_func() 1875 geom.cylinders, geom.heads, geom.sectors, in geometry_func() 1876 geom.total_sectors, msg); in geometry_func()
|
H A D | disk_io.c | 1535 struct geometry geom; in print_completions() local 1555 && ! get_diskinfo (disk_no, &geom)) in print_completions()
|
/titanic_50/usr/src/cmd/prtvtoc/ |
H A D | prtvtoc.c | 148 findfree(struct dk_geom *geom, struct extvtoc *vtoc) in findfree() argument 158 cylsize = (geom->dkg_nsect) * (geom->dkg_nhead); in findfree() 159 fullsize = (diskaddr_t)(geom->dkg_ncyl) * cylsize; in findfree() 371 struct dk_geom geom; in prtvtoc() local 389 geo = (readgeom(fd, name, &geom) == 0); in prtvtoc() 401 freemap = findfree(&geom, &vtoc); in prtvtoc() 411 puttable(&geom, &vtoc, freemap, devname, in prtvtoc() 475 puttable(struct dk_geom *geom, struct extvtoc *vtoc, freemap_t *freemap, in puttable() argument 481 cylsize = (geom->dkg_nsect) * (geom->dkg_nhead); in puttable() 490 (void) printf("* %7u sectors/track\n", geom->dkg_nsect); in puttable() [all …]
|
/titanic_50/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; in main() local 108 if (ioctl(fd, DKIOCGGEOM, &geom) == -1) { in main() 119 devinfo(&geom, fd, device); in main() 166 devinfo(struct dk_geom *geom, int fd, char *device) in devinfo() argument 182 sectorcyl = geom->dkg_nhead * geom->dkg_nsect; in devinfo()
|
/titanic_50/usr/src/cmd/fmthard/ |
H A D | fmthard.c | 379 display(struct dk_geom *geom, struct extvtoc *vtoc, char *device) in display() argument 400 (void) printf("* %d sectors/track\n", geom->dkg_nsect); in display() 401 (void) printf("* %d tracks/cylinder\n", geom->dkg_nhead); in display() 402 (void) printf("* %d cylinders\n", geom->dkg_pcyl); in display() 403 (void) printf("* %d accessible cylinders\n", geom->dkg_ncyl); in display() 532 load(FILE *fp, struct dk_geom *geom, struct extvtoc *vtoc) in load() argument 554 fullsz = (uint64_t)geom->dkg_ncyl * geom->dkg_nsect * geom->dkg_nhead; in load() 560 nblks = geom->dkg_nsect * geom->dkg_nhead; in load() 701 validate(struct dk_geom *geom, struct extvtoc *vtoc) in validate() argument 713 nblks = geom->dkg_nsect * geom->dkg_nhead; in validate() [all …]
|
/titanic_50/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; in vd_slice_flabel_write() local 1686 vd_label_to_vtocgeom(label, &vtoc, &geom); in vd_slice_flabel_write() 1687 if (vd_slice_geom_isvalid(vd, &geom) && in vd_slice_flabel_write() 2859 vd_vtocgeom_to_label(struct extvtoc *vtoc, struct dk_geom *geom, in vd_vtocgeom_to_label() argument 2869 label->dkl_ncyl = geom->dkg_ncyl; in vd_vtocgeom_to_label() 2870 label->dkl_acyl = geom->dkg_acyl; in vd_vtocgeom_to_label() 2871 label->dkl_pcyl = geom->dkg_pcyl; in vd_vtocgeom_to_label() [all …]
|
H A D | vdc.c | 614 if (vdc->geom) in vdc_detach() 615 kmem_free(vdc->geom, sizeof (struct dk_geom)); in vdc_detach() 686 vdc->geom = NULL; in vdc_do_attach() 734 vdc->geom = kmem_zalloc(sizeof (struct dk_geom), KM_SLEEP); in vdc_do_attach() 5588 struct dk_geom *geom; in vdc_dkio_gapart() local 5609 geom = vdc->geom; in vdc_dkio_gapart() 5615 (geom->dkg_nhead * geom->dkg_nsect); in vdc_dkio_gapart() 5624 (geom->dkg_nhead * geom->dkg_nsect); in vdc_dkio_gapart() 7935 struct dk_geom geom; in vdc_get_geom_convert() local 7945 VD_GEOM2DK_GEOM((vd_geom_t *)from, &geom); in vdc_get_geom_convert() [all …]
|
/titanic_50/usr/src/uts/sun4v/sys/ |
H A D | vdc.h | 312 struct dk_geom *geom; /* structure to store geometry data */ member
|
/titanic_50/usr/src/grub/grub-0.97/ |
H A D | ChangeLog | 492 reference to `geometry' structure to new `geom' one.
|