/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | device_io.h | 50 unsigned char heads; member in struct:hd_geometry
|
H A D | device.c | 762 dev->d_heads = res->disk_geo.heads; 773 ntfs_log_debug("EDD/BIOD legacy heads = %u, sectors " 785 dev->d_heads = geo.heads; 787 ntfs_log_debug("HDIO_GETGEO heads = %u, sectors per " 800 * ntfs_device_heads_get - get number of heads of device 803 * On success, return the number of heads on the device @dev. On error return
|
H A D | layout.h | 59 /*0x0f*/le16 heads; /* Required to boot Windows. */ member in struct:__anon15
|
H A D | win32_io.c | 681 * In Windows NT+: fills size, sectors, and cylinders and sets heads to -1. 682 * In Windows XP+: fills size, sectors, cylinders, and heads. 687 * If fails, sets sectors, cylinders, heads, and size to -1. 1815 argp->heads = fd->geo_heads;
|
/haiku/src/system/kernel/disk_device_manager/ |
H A D | KFileDiskDevice.cpp | 165 uint32 heads = (blocks + ULONG_MAX - 1) / ULONG_MAX; local 166 if (heads == 0) 167 heads = 1; 170 geometry->cylinder_count = blocks / heads; 171 geometry->head_count = heads;
|
/haiku/src/add-ons/kernel/drivers/disk/virtual/virtio_block/ |
H A D | virtio_blk.h | 58 uint8_t heads; member in struct:virtio_blk_config::virtio_blk_geometry
|
/haiku/src/tools/fs_shell/ |
H A D | unistd.cpp | 178 uint32_t heads = (blocks + ULONG_MAX - 1) local 180 if (heads == 0) 181 heads = 1; 183 geometry->head_count = heads; 184 geometry->cylinder_count = blocks / heads; 188 if (hdGeometry.heads == 0) { 191 off_t bytesPerCylinder = (off_t)hdGeometry.heads 196 geometry->head_count = hdGeometry.heads;
|
/haiku/src/tests/kits/storage/virtualdrive/ |
H A D | mkvirtualdrive.cpp | 122 uint32 heads = (blocks + ULONG_MAX - 1) / ULONG_MAX; local 123 if (heads == 0) 124 heads = 1; 127 info.geometry.cylinder_count = blocks / heads; 128 info.geometry.head_count = heads;
|
H A D | virtualdrive.cpp | 226 uint32 heads = (blocks + ULONG_MAX - 1) / ULONG_MAX; local 227 if (heads == 0) 228 heads = 1; 231 info.geometry.cylinder_count = blocks / heads; 232 info.geometry.head_count = heads;
|
/haiku/src/tools/vmdkimage/ |
H A D | vmdkimage.cpp | 284 uint64_t heads; local 289 heads = 16; 290 cylinders = imageSize / (sectors * heads * 512); 293 heads *= 2; 295 off_t actualImageSize = (off_t)cylinders * sectors * heads * 512; 359 "ddb.geometry.heads = \"%llu\"\n" 361 (unsigned long long)sectors, (unsigned long long)heads,
|
/haiku/src/tools/anyboot/ |
H A D | anyboot.cpp | 83 uint32_t heads = 0; 94 heads = temp++; 96 sectors = offset - (sectorsPerTrack * heads) + 1; 98 address[0] = heads;
|
/haiku/src/tests/add-ons/kernel/partitioning_systems/ |
H A D | PartitioningSystemsTest.cpp | 66 uint32 heads = (blocks + ULONG_MAX - 1) / ULONG_MAX; local 67 if (heads == 0) 68 heads = 1; 71 device->geometry.cylinder_count = blocks / heads; 72 device->geometry.head_count = heads;
|
/haiku/src/system/boot/platform/atari_m68k/ |
H A D | devices.cpp | 48 uint32 heads; member in struct:drive_parameters 225 parameters->heads = ((regs.edx >> 8) & 0xff) + 1; 226 // heads and cylinders start counting from 0 228 parameters->sectors = parameters->cylinders * parameters->heads 711 fParameters.heads = 2; 717 parameters->heads = 2; 718 parameters->sectors = parameters->cylinders * parameters->heads 730 TRACE((" cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n", 731 fParameters.cylinders, fParameters.heads, fParameters.sectors_per_track, 744 TRACE(("cylinders: %lu, heads 828 int heads = fParameters.heads; local [all...] |
/haiku/src/add-ons/kernel/partitioning_systems/sun/ |
H A D | sun.cpp | 65 uint16_t heads; member in struct:sun_vtoc 142 off_t headCount = B_BENDIAN_TO_HOST_INT16(vtoc->heads); 146 TRACE(("%" B_PRIdOFF " heads, %" B_PRIdOFF " sectors, cylindersize %"
|
/haiku/src/system/kernel/device_manager/ |
H A D | FileDevice.cpp | 323 uint32 heads = (blocks + 0xfffffffe) / 0xffffffff; local 324 if (heads == 0) 325 heads = 1; 330 geometry.cylinder_count = blocks / heads; 331 geometry.head_count = heads;
|
/haiku/src/system/boot/platform/bios_ia32/ |
H A D | devices.cpp | 63 uint32 heads; member in struct:drive_parameters 258 parameters->heads = ((regs.edx >> 8) & 0xff) + 1; 259 // heads and cylinders start counting from 0 261 parameters->sectors = parameters->cylinders * parameters->heads 587 TRACE((" cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n", 588 fParameters.cylinders, fParameters.heads, fParameters.sectors_per_track, 601 TRACE(("cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n", 602 fParameters.cylinders, fParameters.heads, fParameters.sectors_per_track, 674 uint32 cylinder = head / fParameters.heads; 675 head %= fParameters.heads; [all...] |
/haiku/src/add-ons/kernel/partitioning_systems/amiga/ |
H A D | amiga_rdb.h | 21 /* block list heads */ 34 uint32 heads; member in struct:rigid_disk_block
|
/haiku/src/add-ons/kernel/file_systems/ntfs/utils/ |
H A D | mkntfs.c | 213 long heads; /* -H, number of heads on device */ member in struct:mkntfs_options 461 opts2->heads = -1; 3363 /* If user didn't specify the number of heads, determine it now. */ 3364 if (opts.heads < 0) { 3365 opts.heads = ntfs_device_heads_get(vol->dev); 3366 if (opts.heads < 0) { 3367 ntfs_log_warning("The number of heads was not " 3371 opts.heads = 0; 3373 } else if (opts.heads > 6553 [all...] |
/haiku/src/bin/makebootable/platform/bios_ia32/ |
H A D | makebootable.cpp | 518 deviceSize = (int64)geometry.heads * geometry.sectors
|