Searched refs:heads (Results 1 - 24 of 24) sorted by relevance

/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Ddevice_io.h44 unsigned char heads; member in struct:hd_geometry
H A Ddevice.c667 * ntfs_device_heads_get - get number of heads of device
670 * On success, return the number of heads on the device @dev. On error return
688 ntfs_log_debug("HDIO_GETGEO heads = %u (0x%x)\n",
689 (unsigned)geo.heads,
690 (unsigned)geo.heads);
691 return geo.heads;
H A Dlayout.h59 /*0x0f*/u16 heads; /* Required to boot Windows. */ member in struct:__anon2335
H A Dwin32_io.c443 * In Windows NT+: fills size, sectors, and cylinders and sets heads to -1.
444 * In Windows XP+: fills size, sectors, cylinders, and heads.
449 * If fails, sets sectors, cylinders, heads, and size to -1.
1370 argp->heads = fd->geo_heads;
/haiku-fatelf/src/system/kernel/disk_device_manager/
H A DKFileDiskDevice.cpp171 uint32 heads = (blocks + ULONG_MAX - 1) / ULONG_MAX; local
172 if (heads == 0)
173 heads = 1;
176 geometry->cylinder_count = blocks / heads;
177 geometry->head_count = heads;
/haiku-fatelf/src/tools/anyboot/
H A Danyboot.cpp66 uint32_t heads = 0; local
77 heads = temp++;
79 sectors = offset - (sectorsPerTrack * heads) + 1;
81 address[0] = heads;
/haiku-fatelf/src/tools/fs_shell/
H A Dunistd.cpp175 uint32_t heads = (blocks + ULONG_MAX - 1) local
177 if (heads == 0)
178 heads = 1;
180 geometry->head_count = heads;
181 geometry->cylinder_count = blocks / heads;
185 if (hdGeometry.heads == 0) {
188 off_t bytesPerCylinder = (off_t)hdGeometry.heads
193 geometry->head_count = hdGeometry.heads;
/haiku-fatelf/src/system/kernel/device_manager/
H A DFileDevice.cpp260 uint32 heads = (blocks + 0xfffffffe) / 0xffffffff; local
261 if (heads == 0)
262 heads = 1;
267 geometry.cylinder_count = blocks / heads;
268 geometry.head_count = heads;
/haiku-fatelf/src/tests/kits/storage/virtualdrive/
H A Dmkvirtualdrive.cpp122 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 Dvirtualdrive.cpp226 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-fatelf/src/tools/vmdkimage/
H A Dvmdkimage.cpp284 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-fatelf/src/tests/add-ons/kernel/partitioning_systems/
H A DPartitioningSystemsTest.cpp64 uint32 heads = (blocks + ULONG_MAX - 1) / ULONG_MAX; local
65 if (heads == 0)
66 heads = 1;
69 device->geometry.cylinder_count = blocks / heads;
70 device->geometry.head_count = heads;
/haiku-fatelf/src/system/boot/platform/atari_m68k/
H A Ddevices.cpp48 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-fatelf/src/add-ons/kernel/bus_managers/ide/
H A Dide_device_infoblock.h57 uint16 heads; // 6 member in struct:tagdevice_infoblock
H A Data.c743 infoblock->current_heads = infoblock->heads;
/haiku-fatelf/src/libs/ncurses/progs/
H A Dinfocmp.c805 ENTRY *heads[MAXCOMPARE]; local
838 heads[filecount] = _nc_head;
847 for (qp = heads[0]; qp; qp = qp->next) {
848 for (rp = heads[1]; rp; rp = rp->next)
864 for (qp = heads[0]; qp; qp = qp->next) {
879 for (rp = heads[1]; rp; rp = rp->next) {
895 for (qp = heads[0]; qp; qp = qp->next)
901 for (rp = heads[1]; rp; rp = rp->next)
907 for (qp = heads[0]; qp; qp = qp->next) {
931 for (qp = heads[
[all...]
/haiku-fatelf/src/system/boot/platform/bios_ia32/
H A Ddevices.cpp64 uint32 heads; member in struct:drive_parameters
259 parameters->heads = ((regs.edx >> 8) & 0xff) + 1;
260 // heads and cylinders start counting from 0
262 parameters->sectors = parameters->cylinders * parameters->heads
558 TRACE((" cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n",
559 fParameters.cylinders, fParameters.heads, fParameters.sectors_per_track,
572 TRACE(("cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n",
573 fParameters.cylinders, fParameters.heads, fParameters.sectors_per_track,
645 uint32 cylinder = head / fParameters.heads;
646 head %= fParameters.heads;
[all...]
H A Dstage1.S417 ; compute heads and cylinders
/haiku-fatelf/src/add-ons/kernel/partitioning_systems/amiga/
H A Damiga_rdb.h21 /* block list heads */
34 uint32 heads; member in struct:rigid_disk_block
/haiku-fatelf/src/bin/ideinfo/
H A Dideinfo.c123 capacity = (ide_info.cylinders * ide_info.heads *
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/fs_shell/
H A Dsysdep.c404 off_t bytesPerCylinder = (off_t)hdGeometry.heads
409 geometry->head_count = hdGeometry.heads;
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/utils/
H A Dmkntfs.c200 long heads; /* -H, number of heads on device */ member in struct:mkntfs_options
401 opts2->heads = -1;
3303 /* If user didn't specify the number of heads, determine it now. */
3304 if (opts.heads < 0) {
3305 opts.heads = ntfs_device_heads_get(vol->dev);
3306 if (opts.heads < 0) {
3307 ntfs_log_warning("The number of heads was not "
3311 opts.heads = 0;
3313 } else if (opts.heads > 6553
[all...]
/haiku-fatelf/data/etc/bash_completion.d/
H A Dgit315 printf "${1:- (%s)}" "$c${b##refs/heads/}${f:+ $f}$r$p"
516 refs/heads
523 n,refs/heads/*) is_hash=y; echo "${i#refs/heads/}" ;;
568 refs="refs/tags refs/heads refs/remotes"
595 n,refs/heads/*) is_hash=y; echo "${i#refs/heads/}" ;;
617 n,refs/heads/*)
619 echo "$i:refs/remotes/$1/${i#refs/heads/}"
1175 __gitcomp "create list-heads verif
[all...]
/haiku-fatelf/src/bin/makebootable/platform/bios_ia32/
H A Dmakebootable.cpp501 deviceSize = (int64)geometry.heads * geometry.sectors

Completed in 376 milliseconds