Home
last modified time | relevance | path

Searched refs:heads (Results 1 – 25 of 65) sorted by relevance

123

/external/grub/stage2/
Dbios.c33 unsigned long *heads,
38 unsigned long *heads,
94 * geometry->heads in biosdisk()
110 head_offset = head % geometry->heads; in biosdisk()
111 cylinder_offset = head / geometry->heads; in biosdisk()
142 unsigned char heads; in get_cdinfo() member
157 geometry->heads = 1; in get_cdinfo()
169 geometry->heads = cdrp.heads; in get_cdinfo()
173 * geometry->heads in get_cdinfo()
213 unsigned long heads; in get_diskinfo() member
[all …]
Dfat.h49 __u16 heads; /* number of heads */ member
/external/qemu/block/
Dvpc.c65 uint8_t heads; member
179 be16_to_cpu(footer->cyls) * footer->heads * footer->secs_per_cyl; in vpc_open()
454 uint8_t* heads, uint8_t* secs_per_cyl) in calculate_geometry() argument
463 *heads = 16; in calculate_geometry()
468 *heads = (cyls_times_heads + 1023) / 1024; in calculate_geometry()
470 if (*heads < 4) in calculate_geometry()
471 *heads = 4; in calculate_geometry()
473 if (cyls_times_heads >= (*heads * 1024) || *heads > 16) { in calculate_geometry()
475 *heads = 16; in calculate_geometry()
479 if (cyls_times_heads >= (*heads * 1024)) { in calculate_geometry()
[all …]
/external/grub/util/
Dmkbimage41 heads=
293 hd) heads=16;
301 heads=2;
306 heads=2;
311 heads=2;
317 heads=2;
322 heads=2;
327 heads=2;
346 sfdisk -C $cylinders -H $heads -S $sectors -D $image<<EOT
387 geometry $device $cylinders $heads $sectors
[all …]
/external/grub/lib/
Ddevice.c52 unsigned char heads; member
165 geom->heads = hdg.heads; in get_drive_geometry()
194 geom->heads = tmp; in get_drive_geometry()
196 geom->heads = 1; in get_drive_geometry()
198 geom->heads = 16; in get_drive_geometry()
200 geom->heads = 255; in get_drive_geometry()
203 / geom->heads in get_drive_geometry()
218 geom->heads = hdg.d_ntracks; in get_drive_geometry()
240 geom->heads = DEFAULT_HD_HEADS; in get_drive_geometry()
246 geom->heads = DEFAULT_FD_HEADS; in get_drive_geometry()
[all …]
/external/qemu/
Dblockdev.c144 int cyls, heads, secs, translation; in drive_init() local
177 heads = qemu_opt_get_number(opts, "heads", 0); in drive_init()
221 if (cyls || heads || secs) { in drive_init()
226 if (heads < 1 || (type == IF_IDE && heads > 16)) { in drive_init()
259 if (cyls || secs || heads) { in drive_init()
434 bdrv_set_geometry_hint(dinfo->bdrv, cyls, heads, secs); in drive_init()
Dvl.c840 int cyls, heads, secs, translation; in drive_init() local
863 cyls = heads = secs = 0; in drive_init()
944 heads = strtol(buf, NULL, 0); in drive_init()
951 if (cyls || heads || secs) { in drive_init()
956 if (heads < 1 || heads > 16) { in drive_init()
989 if (cyls || secs || heads) { in drive_init()
1143 bdrv_set_geometry_hint(bdrv, cyls, heads, secs); in drive_init()
2072 int cyls, heads, secs, translation; in main() local
2114 cyls = heads = secs = 0; in main()
2224 0, cyls, heads, secs, in main()
[all …]
Dblock.c1173 int ret, i, heads, sectors, cylinders; in guess_disk_lchs() local
1192 heads = p->end_head + 1; in guess_disk_lchs()
1196 cylinders = nb_sectors / (heads * sectors); in guess_disk_lchs()
1199 *pheads = heads; in guess_disk_lchs()
1204 cylinders, heads, sectors); in guess_disk_lchs()
1215 int cylinders, heads, secs; in bdrv_guess_geometry() local
1220 bdrv_get_geometry_hint(bs, &cylinders, &heads, &secs); in bdrv_guess_geometry()
1224 *pheads = heads; in bdrv_guess_geometry()
1227 if (guess_disk_lchs(bs, &cylinders, &heads, &secs) == 0) { in bdrv_guess_geometry()
1228 if (heads > 16) { in bdrv_guess_geometry()
[all …]
Dvl-android.c1037 int cyls, heads, secs, translation; in drive_init() local
1060 cyls = heads = secs = 0; in drive_init()
1141 heads = strtol(buf, NULL, 0); in drive_init()
1148 if (cyls || heads || secs) { in drive_init()
1153 if (heads < 1 || heads > 16) { in drive_init()
1186 if (cyls || secs || heads) { in drive_init()
1340 bdrv_set_geometry_hint(bdrv, cyls, heads, secs); in drive_init()
2539 int cyls, heads, secs, translation; in main() local
2593 cyls = heads = secs = 0; in main()
2717 0, cyls, heads, secs, in main()
[all …]
/external/e2fsprogs/lib/ext2fs/
Ddosio.c95 chs->cyl = abss / (part->sects * part->heads); in lba2chs()
96 chs->head = (abss / part->sects) % part->heads; in lba2chs()
293 part->heads = sec[3] + 1; in dos_open()
331 (part->heads * part->sects) - 1; in dos_open()
Ddosio.h50 unsigned short heads; member
/external/chromium_org/sandbox/linux/seccomp-bpf/
Dcodegen.cc576 std::set<BasicBlock*> heads; in TopoSortBasicBlocks() local
592 heads.insert(iter->second); in TopoSortBasicBlocks()
617 if (heads.empty()) { in TopoSortBasicBlocks()
625 first_block = *heads.begin(); in TopoSortBasicBlocks()
626 heads.erase(heads.begin()); in TopoSortBasicBlocks()
/external/lzma/C/
DLzFindMt.c136 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc) \
138 const UInt32 value = (v); p++; *heads++ = pos - hash[value]; hash[value] = pos++; } }
196 … UInt32 *heads = mt->hashBuf + ((numProcessedBlocks++) & kMtHashNumBlocksMask) * kMtHashBlockSize; in HashThreadFunc() local
198 heads[0] = 2; in HashThreadFunc()
199 heads[1] = num; in HashThreadFunc()
205 …mt->GetHeadsFunc(mf->buffer, mf->pos, mf->hash + mf->fixedHashSize, mf->hashMask, heads + 2, num, … in HashThreadFunc()
206 heads[0] += num; in HashThreadFunc()
DLzFindMt.h47 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc);
/external/qemu/hw/
Dpc.c207 int cylinders, heads, sectors; in cmos_init_hd() local
208 bdrv_get_geometry_hint(hd, &cylinders, &heads, &sectors); in cmos_init_hd()
212 rtc_set_memory(s, info_ofs + 2, heads); in cmos_init_hd()
215 rtc_set_memory(s, info_ofs + 5, 0xc0 | ((heads > 8) << 3)); in cmos_init_hd()
370 int cylinders, heads, sectors, translation; in cmos_init() local
377 bdrv_get_geometry_hint(hd_table[i], &cylinders, &heads, &sectors); in cmos_init()
378 if (cylinders <= 1024 && heads <= 16 && sectors <= 63) { in cmos_init()
Dscsi-disk.c626 int cylinders, heads, secs; in scsi_send_command() local
632 bdrv_get_geometry_hint(s->bdrv, &cylinders, &heads, &secs); in scsi_send_command()
636 p[5] = heads & 0xff; in scsi_send_command()
657 int cylinders, heads, secs; in scsi_send_command() local
666 bdrv_get_geometry_hint(s->bdrv, &cylinders, &heads, &secs); in scsi_send_command()
667 p[4] = heads & 0xff; in scsi_send_command()
/external/kernel-headers/original/linux/mtd/
Dnftl.h27 unsigned char heads; member
/external/e2fsprogs/misc/
Dpartinfo.c71 loc.heads, (int)loc.sectors, loc.cylinders, in main()
/external/kernel-headers/original/linux/
Dhdreg.h376 unsigned char heads; member
451 unsigned short heads; /* Obsolete, "physical" heads */ member
/external/chromium_org/net/disk_cache/
Ddisk_format.h62 CacheAddr heads[5]; member
/external/linux-tools-perf/util/
Devlist.h23 struct hlist_head heads[PERF_EVLIST__HLIST_SIZE]; member
Devlist.c37 INIT_HLIST_HEAD(&evlist->heads[i]); in perf_evlist__init()
126 hlist_add_head(&sid->node, &evlist->heads[hash]); in perf_evlist__id_hash()
167 head = &evlist->heads[hash]; in perf_evlist__id2evsel()
/external/qemu-pc-bios/bochs/bios/
Drombios.c629 Bit16u heads; // # heads
758 Bit32u heads;
2401 write_word(ebda_seg,&EbdaData->ata.devices[device].lchs.heads,0);
2404 write_word(ebda_seg,&EbdaData->ata.devices[device].pchs.heads,0);
2572 Bit16u cylinders, heads, spt, blksize;
2587 heads = read_word(get_SS(),buffer+(3*2)); // word 3
2602 write_word(ebda_seg,&EbdaData->ata.devices[device].pchs.heads, heads);
2607 BX_INFO("ata%d-%d: PCHS=%u/%d/%d translation=", channel, slave,cylinders, heads, spt);
2635 heads = sectors_low / 1024;
2636 if (heads>128) heads = 255;
[all …]
/external/blktrace/btt/
Ddevs.c79 __destroy_heads(dip->heads); in __dip_exit()
134 dip->heads = dip_rb_mkhds(); in dip_alloc()
/external/chromium/net/disk_cache/
Ddisk_format.h73 CacheAddr heads[5]; member

123