Home
last modified time | relevance | path

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

12345678910>>...12

/openbmc/qemu/hw/block/
H A Dhd-geometry.c59 int i, heads, sectors, cylinders; in guess_disk_lchs() local
79 heads = p->end_head + 1; in guess_disk_lchs()
84 cylinders = nb_sectors / (heads * sectors); in guess_disk_lchs()
88 *pheads = heads; in guess_disk_lchs()
91 trace_hd_geometry_lchs_guess(blk, cylinders, heads, sectors); in guess_disk_lchs()
121 int cylinders, heads, secs, translation; in hd_geometry_guess() local
129 *pheads = geo.heads; in hd_geometry_guess()
131 } else if (guess_disk_lchs(blk, &cylinders, &heads, &secs) < 0) { in hd_geometry_guess()
135 } else if (heads > 16) { in hd_geometry_guess()
146 *pheads = heads; in hd_geometry_guess()
[all …]
H A Dblock.c256 if (!conf->cyls && !conf->heads && !conf->secs) { in blkconf_geometry()
258 &conf->cyls, &conf->heads, &conf->secs, in blkconf_geometry()
261 *ptrans = hd_bios_chs_auto_trans(conf->cyls, conf->heads, conf->secs); in blkconf_geometry()
263 if (conf->cyls || conf->heads || conf->secs) { in blkconf_geometry()
268 if (conf->heads < 1 || conf->heads > heads_max) { in blkconf_geometry()
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch150 - geo->heads = fd_str.head;
165 - /* Didn't work either... assign a geometry of 64 heads, 32 sectors; this is
169 - geo->heads = opt.heads ? : 64;
171 - geo->cylinders = totalbytes / (geo->heads * geo->sectors << SECTOR_SHIFT);
174 - if (!opt.sectors && !opt.heads) {
176 - "Warning: unable to obtain device geometry (defaulting to %d heads, %d sectors)\n"
178 - geo->heads, geo->sectors);
217 - if (opt.heads)
218 - geo.heads = opt.heads;
225 - dprintf("heads = %u, sect = %u\n", geo.heads, geo.sectors);
[all …]
/openbmc/linux/drivers/mtd/
H A Dssfdc.c22 unsigned char heads; member
317 ssfdc->heads = 16; in ssfdcr_add_mtd()
319 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); in ssfdcr_add_mtd()
321 ((long)ssfdc->sectors * (long)ssfdc->heads)); in ssfdcr_add_mtd()
324 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd()
325 (long)ssfdc->cylinders * (long)ssfdc->heads * in ssfdcr_add_mtd()
328 ssfdc->mbd.size = (long)ssfdc->heads * (long)ssfdc->cylinders * in ssfdcr_add_mtd()
411 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo()
413 geo->heads = ssfdc->heads; in ssfdcr_getgeo()
H A Dnftlcore.c68 nftl->heads = 16; in nftl_add_mtd()
70 temp = nftl->cylinders * nftl->heads; in nftl_add_mtd()
75 nftl->heads = nftl->mbd.size / temp; in nftl_add_mtd()
78 nftl->heads++; in nftl_add_mtd()
79 temp = nftl->heads * nftl->sectors; in nftl_add_mtd()
84 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd()
93 nftl->cylinders, nftl->heads , nftl->sectors, in nftl_add_mtd()
94 (long)nftl->cylinders * (long)nftl->heads * in nftl_add_mtd()
770 geo->heads = nftl->heads; in nftl_getgeo()
H A Dinftlcore.c75 inftl->heads = 16; in inftl_add_mtd()
77 temp = inftl->cylinders * inftl->heads; in inftl_add_mtd()
82 inftl->heads = inftl->mbd.size / temp; in inftl_add_mtd()
85 inftl->heads++; in inftl_add_mtd()
86 temp = inftl->heads * inftl->sectors; in inftl_add_mtd()
91 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd()
100 inftl->cylinders, inftl->heads , inftl->sectors, in inftl_add_mtd()
101 (long)inftl->cylinders * (long)inftl->heads * in inftl_add_mtd()
920 geo->heads = inftl->heads; in inftl_getgeo()
/openbmc/linux/drivers/scsi/
H A Dscsicam.c179 unsigned long heads, sectors, cylinders, temp; in setsize() local
185 heads = capacity / temp; /* Compute value for number of heads */ in setsize()
187 heads++; /* Else, increment number of heads */ in setsize()
188 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize()
193 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize()
202 *hds = (unsigned int) heads; in setsize()
/openbmc/qemu/block/
H A Dvpc.c84 uint8_t heads; member
305 be16_to_cpu(footer->cyls) * footer->heads * footer->secs_per_cyl; in vpc_open()
788 uint8_t *heads, uint8_t *secs_per_cyl) in calculate_geometry() argument
796 *heads = 16; in calculate_geometry()
801 *heads = DIV_ROUND_UP(cyls_times_heads, 1024); in calculate_geometry()
803 if (*heads < 4) { in calculate_geometry()
804 *heads = 4; in calculate_geometry()
807 if (cyls_times_heads >= (*heads * 1024) || *heads > 16) { in calculate_geometry()
809 *heads = 16; in calculate_geometry()
813 if (cyls_times_heads >= (*heads * 1024)) { in calculate_geometry()
[all …]
/openbmc/qemu/qapi/
H A Dblock.json22 # @auto: If cylinder/heads/sizes are passed, choose between none and
25 # heads, large if QEMU can guess that the disk had 131072 or fewer
26 # tracks across all heads (i.e. cylinders*heads<131072), otherwise
32 # heads (if fewer than 255 are enough to cover the whole disk with
34 # computed based on the number of sectors and heads.
37 # correspondingly scaling up the number of heads.
/openbmc/linux/tools/perf/scripts/python/
H A Dcompaction-times.py109 heads = {} variable in chead
121 head = cls.heads[pid]
126 head = cls.heads[pid] = chead(comm, pid, filtered)
133 head = cls.heads[pid]
142 head = cls.heads[pid]
152 for i in cls.heads:
153 yield cls.heads[i]
/openbmc/qemu/hw/ide/
H A Dide-bus.c87 int16_t *cyls, int8_t *heads, int8_t *secs) in ide_get_geometry() argument
96 *heads = s->heads; in ide_get_geometry()
/openbmc/qemu/include/hw/block/
H A Dblock.h30 uint32_t cyls, heads, secs; member
77 DEFINE_PROP_UINT32("heads", _state, _conf.heads, 0), \
108 int hd_bios_chs_auto_trans(uint32_t cyls, uint32_t heads, uint32_t secs);
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dhead.c35 list_for_each_entry(head, &disp->heads, head) { in nvkm_head_find()
64 list_add_tail(&head->head, &disp->heads); in nvkm_head_new_()
H A Dgf119.c1021 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1029 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1036 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1042 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1047 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1054 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1061 list_for_each_entry(head, &disp->heads, head) in gf119_disp_super()
1143 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_intr()
1178 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_init()
1225 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_init()
H A Dbase.c299 list_for_each_entry(head, &disp->heads, head) in nvkm_disp_oneinit()
344 while (!list_empty(&disp->heads)) { in nvkm_disp_dtor()
345 head = list_first_entry(&disp->heads, typeof(*head), head); in nvkm_disp_dtor()
373 INIT_LIST_HEAD(&disp->heads); in nvkm_disp_new_()
/openbmc/linux/arch/x86/boot/
H A Dmtools.conf.in11 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter
15 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
/openbmc/linux/net/xdp/
H A Dxsk_buff_pool.c41 kvfree(pool->heads); in xp_destroy()
68 pool->heads = kvcalloc(umem->chunks, sizeof(*pool->heads), GFP_KERNEL); in xp_create_and_assign_umem()
69 if (!pool->heads) in xp_create_and_assign_umem()
99 xskb = &pool->heads[i]; in xp_create_and_assign_umem()
122 pool->heads[i].xdp.rxq = rxq; in xp_set_rxq_info()
400 struct xdp_buff_xsk *xskb = &pool->heads[i]; in xp_init_dma_info()
519 xskb = &pool->heads[xp_aligned_extract_idx(pool, addr)]; in __xp_alloc()
586 xskb = &pool->heads[xp_aligned_extract_idx(pool, addr)]; in xp_alloc_new_from_fq()
/openbmc/linux/block/partitions/
H A Dacorn.c200 (dr->heads + (dr->lowsector & 0x40 ? 1 : 0)) * in adfspart_check_CUMANA()
252 unsigned long start_sect, nr_sects, sectscyl, heads; in adfspart_check_ADFS() local
269 heads = dr->heads + ((dr->lowsector >> 6) & 1); in adfspart_check_ADFS()
270 sectscyl = dr->secspertrack * heads; in adfspart_check_ADFS()
/openbmc/qemu/pc-bios/s390-ccw/
H A Dvirtio-blkdev.c150 vdev->config.blk.geometry.heads = 15; in virtio_assume_eckd()
189 return vdev->config.blk.geometry.heads; in virtio_get_heads()
192 ? vdev->config.blk.geometry.heads : 255; in virtio_get_heads()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dhwsq.c139 u32 heads, x, y, px = 0; in nvkm_hwsq_wait_vblank() local
142 heads = nvkm_rd32(device, 0x610050); in nvkm_hwsq_wait_vblank()
145 if (heads & (2 << (i << 3))) { in nvkm_hwsq_wait_vblank()
/openbmc/linux/drivers/gpu/drm/qxl/
H A Dqxl_display.c60 heads, count), GFP_KERNEL); in qxl_alloc_client_monitors_config()
110 &qdev->rom->client_monitors_config.heads[i]; in qxl_display_copy_rom_client_monitors_config()
112 &qdev->client_monitors_config->heads[i]; in qxl_display_copy_rom_client_monitors_config()
158 head = &qdev->client_monitors_config->heads[output->index]; in qxl_update_offset_props()
268 head = &qdev->client_monitors_config->heads[h]; in qxl_add_monitors_config_modes()
305 struct qxl_head *head = &qdev->monitors_config->heads[i]; in qxl_send_monitors_config()
362 if (head.width == qdev->monitors_config->heads[i].width && in qxl_crtc_update_monitors_config()
363 head.height == qdev->monitors_config->heads[i].height && in qxl_crtc_update_monitors_config()
364 head.x == qdev->monitors_config->heads[i].x && in qxl_crtc_update_monitors_config()
365 head.y == qdev->monitors_config->heads[i].y && in qxl_crtc_update_monitors_config()
[all …]
/openbmc/linux/drivers/scsi/aic7xxx/
H A Daiclib.h122 aic_sector_div(sector_t capacity, int heads, int sectors) in aic_sector_div() argument
125 sector_div(capacity, (heads * sectors)); in aic_sector_div()
/openbmc/linux/drivers/vhost/
H A Dnet.c368 if (vq->heads[i].len == VHOST_DMA_FAILED_LEN) in vhost_zerocopy_signal_used()
370 if (VHOST_DMA_IS_DONE(vq->heads[i].len)) { in vhost_zerocopy_signal_used()
371 vq->heads[i].len = VHOST_DMA_CLEAR_LEN; in vhost_zerocopy_signal_used()
379 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
396 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback()
458 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used()
851 vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head); in handle_tx_copy()
852 vq->heads[nvq->done_idx].len = 0; in handle_tx_copy()
910 vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head); in handle_tx_zerocopy()
911 vq->heads[nvq->upend_idx].len = VHOST_DMA_IN_PROGRESS; in handle_tx_zerocopy()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dmemx.c129 u32 heads, x, y, px = 0; in nvkm_memx_wait_vblank() local
133 heads = nvkm_rd32(device, 0x610050); in nvkm_memx_wait_vblank()
136 if (heads & (2 << (i << 3))) { in nvkm_memx_wait_vblank()
/openbmc/linux/Documentation/admin-guide/laptops/
H A Ddisk-shock-protection.rst23 unload disk heads. This feature is being used in modern laptops in
26 the internal hard drive and park its heads on the ramp when critical
43 Otherwise, writing an integer value to this file will take the heads
49 -EOVERFLOW, but heads will be parked anyway and the timeout will be
62 For example, do the following in order to park the heads of drive
101 instead of /dev/sda), then parking the heads of one drive (drive X)

12345678910>>...12