Searched defs:cyl_size (Results 1 - 6 of 6) sorted by relevance

/osnet-11/usr/src/lib/libparted/common/libparted/
H A Dunit.c116 PedSector cyl_size = dev->bios_geom.heads * dev->bios_geom.sectors; local
129 case PED_UNIT_CYLINDER: return cyl_size * dev->sector_size;
371 PedSector cyl_size = dev->bios_geom.heads * dev->bios_geom.sectors; local
404 *sector = 1LL * chs.cylinders * cyl_size
/osnet-11/usr/src/lib/libparted/common/libparted/labels/
H A Dpc98.c263 PedSector cyl_size; local
270 cyl_size = dev->hw_geom.heads * dev->hw_geom.sectors;
272 *c = sector / cyl_size;
273 *h = (sector) % cyl_size / dev->hw_geom.sectors;
274 *s = (sector) % cyl_size % dev->hw_geom.sectors;
803 PedSector cyl_size; local
810 cyl_size = disk->dev->hw_geom.sectors * disk->dev->hw_geom.heads;
812 0, cyl_size - 1);
H A Dsun.c195 PedSector cyl_size = bios_geom->sectors * bios_geom->heads; local
196 PED_ASSERT (cyl_size != 0, return NULL);
207 PED_ASSERT (bios_geom->cylinders == (PedSector) (dev->length / cyl_size),
209 sun_specific->length = ped_round_down_to (dev->length, cyl_size);
224 label->ncyl = PED_CPU_TO_BE16 (dev->length / cyl_size);
H A Drdb.c351 PedSector cyl_size; local
355 cyl_size = dev->hw_geom.sectors * dev->hw_geom.heads;
395 highest_cylinder = 1 + MAX_RDB_BLOCK / cyl_size;
396 highest_block = highest_cylinder * cyl_size - 1;
403 rdb->rdb_CylBlocks = PED_CPU_TO_BE32 (cyl_size);
1025 PedSector cyl_size = dev->hw_geom.sectors * dev->hw_geom.heads; local
1027 if (!ped_alignment_init(&start_align, 0, cyl_size))
1029 if (!ped_alignment_init(&end_align, -1, cyl_size))
H A Ddos.c574 PedSector cyl_size, head_size; local
634 * (cH - Ch) cyl_size = a_H - A_h H R1 - h R2
635 * => (if cH - Ch != 0) cyl_size = (a_H - A_h) / (cH - Ch)
645 * If h != 0 : head_size = ( a_ - c cyl_size ) / h
646 * If H != 0 : head_size = ( A_ - C cyl_size ) / H
653 cyl_size = (a_*H - A_*h) / denum;
655 if (cyl_size * denum != a_*H - A_*h)
658 PED_ASSERT (cyl_size > 0, return 0);
659 PED_ASSERT (cyl_size <= 255 * 63, return 0);
662 head_size = ( a_ - c * cyl_size ) /
1579 PedSector cyl_size = bios_geom->heads * bios_geom->sectors; local
1925 PedSector cyl_size = bios_geom->sectors * bios_geom->heads; local
2144 PedSector cyl_size; local
2242 PedSector cyl_size = dev->bios_geom.sectors * dev->bios_geom.heads; local
[all...]
/osnet-11/usr/src/cmd/parted/
H A Dparted.c1517 char* cyl_size = ped_unit_format_custom (*dev, local
1523 chs->cylinders, chs->heads, chs->sectors, cyl_size);
1527 chs->cylinders, chs->heads, chs->sectors, cyl_size); local
1530 free (cyl_size);

Completed in 383 milliseconds