Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/scsi/
Dscsicam.c234 unsigned long heads, sectors, cylinders, temp; in setsize() local
240 heads = capacity / temp; /* Compute value for number of heads */ in setsize()
242 heads++; /* Else, increment number of heads */ in setsize()
243 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize()
248 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize()
257 *hds = (unsigned int) heads; in setsize()
Dultrastor.c235 unsigned char heads; member
279 unsigned char heads; member
462 config.heads = mapping_table[config_2.mapping_mode].heads; in ultrastor_14f_detect()
596 config.heads = mapping_table[(config_2 >> 3) & 3].heads; in ultrastor_24f_detect()
1038 unsigned int s = config.heads * config.sectors; in ultrastor_biosparam()
1040 dkinfo[0] = config.heads; in ultrastor_biosparam()
Dstorvsc_drv.c1450 int heads, sectors_pt; in storvsc_get_chs() local
1455 heads = 0xff; in storvsc_get_chs()
1457 sector_div(cylinders, heads * sectors_pt); in storvsc_get_chs()
1458 if ((sector_t)(cylinders + 1) * heads * sectors_pt < nsect) in storvsc_get_chs()
1461 info[0] = heads; in storvsc_get_chs()
D3w-xxxx.c1333 int heads, sectors, cylinders; in tw_scsi_biosparam() local
1339 heads = 64; in tw_scsi_biosparam()
1341 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam()
1344 heads = 255; in tw_scsi_biosparam()
1346 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam()
1349 …w-xxxx: tw_scsi_biosparam(): heads = %d, sectors = %d, cylinders = %d\n", heads, sectors, cylinder… in tw_scsi_biosparam()
1350 geom[0] = heads; in tw_scsi_biosparam()
Dmegaraid.c2837 int heads; in megaraid_biosparam() local
2847 heads = 64; in megaraid_biosparam()
2849 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2856 heads = 255; in megaraid_biosparam()
2858 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2862 geom[0] = heads; in megaraid_biosparam()
2882 heads = 64; in megaraid_biosparam()
2884 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2888 heads = 255; in megaraid_biosparam()
2890 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
[all …]
DBusLogic.c3398 diskparam->heads = 255; in blogic_diskparam()
3401 diskparam->heads = 128; in blogic_diskparam()
3405 diskparam->heads = 64; in blogic_diskparam()
3408 diskparam->cylinders = (unsigned long) capacity / (diskparam->heads * diskparam->sectors); in blogic_diskparam()
3427 diskparam->heads = 64; in blogic_diskparam()
3431 diskparam->heads = 128; in blogic_diskparam()
3435 diskparam->heads = 255; in blogic_diskparam()
3445 diskparam->cylinders = (unsigned long) capacity / (diskparam->heads * diskparam->sectors); in blogic_diskparam()
3448 …blogic_warn("Adopting Geometry %d/%d from Partition Table\n", adapter, diskparam->heads, diskparam… in blogic_diskparam()
3451 …h current BusLogic " "Host Adapter Geometry %d/%d\n", adapter, diskparam->heads, diskparam->sector… in blogic_diskparam()
Dinitio.c593 u8 *heads; in initio_init() local
647 heads = bios_addr + 0x180; in initio_init()
657 host->targets[i].heads = *heads++; in initio_init()
658 if (host->targets[i].heads == 255) in initio_init()
662 host->targets[i].sectors = *heads++; in initio_init()
2703 if (tc->heads) { in i91u_biosparam()
2704 info_array[0] = tc->heads; in i91u_biosparam()
2706 info_array[2] = (unsigned long)capacity / tc->heads / tc->sectors; in i91u_biosparam()
Du14-34f.c604 unsigned char heads; member
818 unsigned char heads; in port_detect() member
926 HD(j)->heads = mapping_table[config_2.mapping_mode].heads; in port_detect()
1535 dkinfo[0] = HD(j)->heads; in u14_34f_bios_param()
1537 dkinfo[2] = size / (HD(j)->heads * HD(j)->sectors); in u14_34f_bios_param()
Deata_generic.h372 __u32 heads; /* number of heads */ member
Ddpt_i2o.c486 int heads=-1; in DEF_SCSI_QCMD() local
494 heads = 18; in DEF_SCSI_QCMD()
499 heads = 64; in DEF_SCSI_QCMD()
504 heads = 65; in DEF_SCSI_QCMD()
509 heads = 128; in DEF_SCSI_QCMD()
514 heads = 255; in DEF_SCSI_QCMD()
517 cylinders = sector_div(capacity, heads * sectors); in DEF_SCSI_QCMD()
521 heads = 252; in DEF_SCSI_QCMD()
526 geom[0] = heads; in DEF_SCSI_QCMD()
D3w-sas.c1413 int heads, sectors; in twl_scsi_biosparam() local
1419 heads = 255; in twl_scsi_biosparam()
1422 heads = 64; in twl_scsi_biosparam()
1426 geom[0] = heads; in twl_scsi_biosparam()
1428 geom[2] = sector_div(capacity, heads * sectors); /* cylinders */ in twl_scsi_biosparam()
Dfdomain.c1597 unsigned char heads; in fdomain_16x0_biosparam() member
1668 info_array[0] = i.heads; in fdomain_16x0_biosparam()
1676 info_array[0] = i.heads + 1; in fdomain_16x0_biosparam()
D3w-9xxx.c1698 int heads, sectors, cylinders; in twa_scsi_biosparam() local
1704 heads = 255; in twa_scsi_biosparam()
1706 cylinders = sector_div(capacity, heads * sectors); in twa_scsi_biosparam()
1708 heads = 64; in twa_scsi_biosparam()
1710 cylinders = sector_div(capacity, heads * sectors); in twa_scsi_biosparam()
1713 geom[0] = heads; in twa_scsi_biosparam()
Dinitio.h470 u8 heads; member
Dmvumi.c2198 int heads, sectors; in mvumi_bios_param() local
2202 heads = 64; in mvumi_bios_param()
2204 tmp = heads * sectors; in mvumi_bios_param()
2209 heads = 255; in mvumi_bios_param()
2211 tmp = heads * sectors; in mvumi_bios_param()
2215 geom[0] = heads; in mvumi_bios_param()
Dstex.c1351 int heads = 255, sectors = 63; in stex_biosparam() local
1354 heads = 64; in stex_biosparam()
1358 sector_div(capacity, heads * sectors); in stex_biosparam()
1360 geom[0] = heads; in stex_biosparam()
Dips.c1156 int heads; in DEF_SCSI_QCMD() local
1174 heads = IPS_NORM_HEADS; in DEF_SCSI_QCMD()
1177 heads = IPS_COMP_HEADS; in DEF_SCSI_QCMD()
1181 cylinders = (unsigned long) capacity / (heads * sectors); in DEF_SCSI_QCMD()
1184 heads, sectors, cylinders); in DEF_SCSI_QCMD()
1186 geom[0] = heads; in DEF_SCSI_QCMD()
4109 uint16_t heads; in ips_msense() local
4118 heads = IPS_NORM_HEADS; in ips_msense()
4121 heads = IPS_COMP_HEADS; in ips_msense()
4127 1) / (heads * sectors); in ips_msense()
[all …]
Datp870u.c3115 int heads, sectors, cylinders; in atp870u_biosparam() local
3117 heads = 64; in atp870u_biosparam()
3119 cylinders = (unsigned long)capacity / (heads * sectors); in atp870u_biosparam()
3121 heads = 255; in atp870u_biosparam()
3123 cylinders = (unsigned long)capacity / (heads * sectors); in atp870u_biosparam()
3125 ip[0] = heads; in atp870u_biosparam()
Dqla1280.c1065 int heads, sectors, cylinders; in qla1280_biosparam() local
1067 heads = 64; in qla1280_biosparam()
1069 cylinders = (unsigned long)capacity / (heads * sectors); in qla1280_biosparam()
1071 heads = 255; in qla1280_biosparam()
1073 cylinders = (unsigned long)capacity / (heads * sectors); in qla1280_biosparam()
1078 geom[0] = heads; in qla1280_biosparam()
DBusLogic.h1093 int heads; member
Dgdth.c144 static void gdth_eval_mapping(u32 size, u32 *cyls, int *heads, int *secs);
498 static void gdth_eval_mapping(u32 size, u32 *cyls, int *heads, int *secs) in gdth_eval_mapping() argument
502 *heads = HEADS; in gdth_eval_mapping()
507 *heads = MEDHEADS; in gdth_eval_mapping()
511 *heads = BIGHEADS; in gdth_eval_mapping()
1943 ha->hdr[hdrive].heads = (u8)drv_hds; in gdth_analyse_hdrive()
3982 if (b != ha->virt_bus || ha->hdr[t].heads == 0) { in gdth_bios_param()
3987 ip[0] = ha->hdr[t].heads; in gdth_bios_param()
4404 ha->hdr[i].heads = hds; in ioc_rescan()
Ddc395x.c1166 int heads, sectors, cylinders; in DEF_SCSI_QCMD() local
1172 heads = 64; in DEF_SCSI_QCMD()
1174 cylinders = size / (heads * sectors); in DEF_SCSI_QCMD()
1177 heads = 255; in DEF_SCSI_QCMD()
1179 cylinders = size / (heads * sectors); in DEF_SCSI_QCMD()
1181 geom[0] = heads; in DEF_SCSI_QCMD()
Dgdth.h882 u8 heads; /* mapping */ member
Dsd.c1277 geo->heads = diskinfo[0]; in sd_getgeo()
Dipr.c4607 int heads, sectors; in ipr_biosparam() local
4610 heads = 128; in ipr_biosparam()
4617 parm[0] = heads; in ipr_biosparam()
/linux-4.1.27/drivers/mtd/
Dssfdc.c25 unsigned char heads; member
320 ssfdc->heads = 16; in ssfdcr_add_mtd()
322 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); in ssfdcr_add_mtd()
324 ((long)ssfdc->sectors * (long)ssfdc->heads)); in ssfdcr_add_mtd()
327 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd()
328 (long)ssfdc->cylinders * (long)ssfdc->heads * in ssfdcr_add_mtd()
331 ssfdc->mbd.size = (long)ssfdc->heads * (long)ssfdc->cylinders * in ssfdcr_add_mtd()
414 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo()
416 geo->heads = ssfdc->heads; in ssfdcr_getgeo()
Dnftlcore.c81 nftl->heads = 16; in nftl_add_mtd()
83 temp = nftl->cylinders * nftl->heads; in nftl_add_mtd()
88 nftl->heads = nftl->mbd.size / temp; in nftl_add_mtd()
91 nftl->heads++; in nftl_add_mtd()
92 temp = nftl->heads * nftl->sectors; in nftl_add_mtd()
97 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd()
106 nftl->cylinders, nftl->heads , nftl->sectors, in nftl_add_mtd()
107 (long)nftl->cylinders * (long)nftl->heads * in nftl_add_mtd()
784 geo->heads = nftl->heads; in nftl_getgeo()
Dinftlcore.c88 inftl->heads = 16; in inftl_add_mtd()
90 temp = inftl->cylinders * inftl->heads; in inftl_add_mtd()
95 inftl->heads = inftl->mbd.size / temp; in inftl_add_mtd()
98 inftl->heads++; in inftl_add_mtd()
99 temp = inftl->heads * inftl->sectors; in inftl_add_mtd()
104 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd()
113 inftl->cylinders, inftl->heads , inftl->sectors, in inftl_add_mtd()
114 (long)inftl->cylinders * (long)inftl->heads * in inftl_add_mtd()
933 geo->heads = inftl->heads; in inftl_getgeo()
Dsm_ftl.h60 int heads; member
Dsm_ftl.c652 ftl->heads = chs_table[i].head; in sm_get_media_info()
660 ftl->heads = 33; in sm_get_media_info()
1122 geo->heads = ftl->heads; in sm_getgeo()
Dinftlmount.c503 s->EraseSize, s->heads, s->sectors, s->cylinders, in INFTL_dumptables()
Drfd_ftl.c750 geo->heads = 1; in rfd_ftl_getgeo()
Dftl.c989 geo->heads = 1; in ftl_getgeo()
/linux-4.1.27/arch/frv/kernel/
DMakefile5 heads-y := head-uc-fr401.o head-uc-fr451.o head-uc-fr555.o
6 heads-$(CONFIG_MMU) := head-mmu-fr451.o
10 obj-y := $(heads-y) entry.o entry-table.o break.o switch_to.o \
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dgm107.c58 int heads = nv_rd32(parent, 0x022448); in gm107_disp_ctor() local
61 ret = nvkm_disp_create(parent, engine, oclass, heads, in gm107_disp_ctor()
76 priv->head.nr = heads; in gm107_disp_ctor()
Dgk110.c58 int heads = nv_rd32(parent, 0x022448); in gk110_disp_ctor() local
61 ret = nvkm_disp_create(parent, engine, oclass, heads, in gk110_disp_ctor()
76 priv->head.nr = heads; in gk110_disp_ctor()
Dgm204.c59 int heads = nv_rd32(parent, 0x022448); in gm204_disp_ctor() local
62 ret = nvkm_disp_create(parent, engine, oclass, heads, in gm204_disp_ctor()
77 priv->head.nr = heads; in gm204_disp_ctor()
Dgk104.c223 int heads = nv_rd32(parent, 0x022448); in gk104_disp_ctor() local
226 ret = nvkm_disp_create(parent, engine, oclass, heads, in gk104_disp_ctor()
241 priv->head.nr = heads; in gk104_disp_ctor()
Dbase.c187 struct nvkm_oclass *oclass, int heads, const char *intname, in nvkm_disp_create_() argument
235 ret = nvkm_event_init(impl->vblank, 1, heads, &disp->vblank); in nvkm_disp_create_()
Dpriv.h29 struct nvkm_oclass *, int heads,
Doutp.c87 dcbE->bus, dcbE->heads); in nvkm_output_create_()
Dgf110.c1259 int heads = nv_rd32(parent, 0x022448); in gf110_disp_ctor() local
1262 ret = nvkm_disp_create(parent, engine, oclass, heads, in gf110_disp_ctor()
1277 priv->head.nr = heads; in gf110_disp_ctor()
/linux-4.1.27/arch/x86/boot/
Dmtools.conf.in11 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter
15 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
/linux-4.1.27/drivers/block/paride/
Dpd.c228 int heads; /* physical geometry */ member
342 h = (block /= disk->sectors) % disk->heads; in pd_ide_command()
343 c0 = (block /= disk->heads) % 256; in pd_ide_command()
590 pd_send_command(disk, disk->sectors, 0, disk->heads - 1, 0, 0, in pd_init_dev_parms()
673 disk->heads = le16_to_cpu(*(__le16 *) (pd_scratch + 6)); in pd_identify()
678 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify()
694 disk->cylinders, disk->heads, disk->sectors, in pd_identify()
759 geo->heads = PD_LOG_HEADS; in pd_getgeo()
761 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo()
763 geo->heads = disk->heads; in pd_getgeo()
Dpf.c336 geo->heads = PF_FD_HDS; in pf_getgeo()
340 geo->heads = PF_HD_HDS; in pf_getgeo()
/linux-4.1.27/drivers/vhost/
Dvhost.c259 kfree(vq->heads); in vhost_vq_free_iovecs()
260 vq->heads = NULL; in vhost_vq_free_iovecs()
274 vq->heads = kmalloc(sizeof *vq->heads * UIO_MAXIOV, GFP_KERNEL); in vhost_dev_alloc_iovecs()
275 if (!vq->indirect || !vq->log || !vq->heads) in vhost_dev_alloc_iovecs()
315 vq->heads = NULL; in vhost_dev_init()
1360 struct vring_used_elem heads = { in vhost_add_used() local
1365 return vhost_add_used_n(vq, &heads, 1); in vhost_add_used()
1370 struct vring_used_elem *heads, in __vhost_add_used_n() argument
1380 if (__put_user(heads[0].id, &used->id)) { in __vhost_add_used_n()
1384 if (__put_user(heads[0].len, &used->len)) { in __vhost_add_used_n()
[all …]
Dnet.c248 if (vq->heads[i].len == VHOST_DMA_FAILED_LEN) in vhost_zerocopy_signal_used()
250 if (VHOST_DMA_IS_DONE(vq->heads[i].len)) { in vhost_zerocopy_signal_used()
251 vq->heads[i].len = VHOST_DMA_CLEAR_LEN; in vhost_zerocopy_signal_used()
259 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
274 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback()
378 vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head); in handle_tx()
379 vq->heads[nvq->upend_idx].len = VHOST_DMA_IN_PROGRESS; in handle_tx()
450 struct vring_used_elem *heads, in get_rx_bufs() argument
493 heads[headcount].id = cpu_to_vhost32(vq, d); in get_rx_bufs()
495 heads[headcount].len = cpu_to_vhost32(vq, len); in get_rx_bufs()
[all …]
Dvhost.h101 struct vring_used_elem *heads; member
145 int vhost_add_used_n(struct vhost_virtqueue *, struct vring_used_elem *heads,
150 struct vring_used_elem *heads, unsigned count);
/linux-4.1.27/block/partitions/
Dacorn.c206 (dr->heads + (dr->lowsector & 0x40 ? 1 : 0)) * in adfspart_check_CUMANA()
258 unsigned long start_sect, nr_sects, sectscyl, heads; in adfspart_check_ADFS() local
275 heads = dr->heads + ((dr->lowsector >> 6) & 1); in adfspart_check_ADFS()
276 sectscyl = dr->secspertrack * heads; in adfspart_check_ADFS()
Dibm.c40 return cyl * geo->heads * geo->sectors + in cchh2blk()
58 return cyl * geo->heads * geo->sectors + in cchhb2blk()
220 geo_size = geo->cylinders * geo->heads in find_lnx1_partitions()
/linux-4.1.27/drivers/staging/i2o/
Di2o_block.c544 unsigned long heads, sectors, cylinders; in i2o_block_biosparam() local
548 heads = 16; in i2o_block_biosparam()
550 heads = 32; in i2o_block_biosparam()
552 heads = 64; in i2o_block_biosparam()
554 heads = 128; in i2o_block_biosparam()
556 heads = 255; in i2o_block_biosparam()
558 cylinders = (unsigned long)capacity / (heads * sectors); in i2o_block_biosparam()
562 *hds = (unsigned char)heads; in i2o_block_biosparam()
637 &geo->cylinders, &geo->heads, &geo->sectors); in i2o_block_getgeo()
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_display.c88 &qdev->rom->client_monitors_config.heads[i]; in qxl_display_copy_rom_client_monitors_config()
90 &qdev->client_monitors_config->heads[i]; in qxl_display_copy_rom_client_monitors_config()
114 head = &qdev->client_monitors_config->heads[output->index]; in qxl_update_offset_props()
155 head = &qdev->client_monitors_config->heads[h]; in qxl_add_monitors_config_modes()
567 struct qxl_head *head = &qdev->monitors_config->heads[i]; in qxl_send_monitors_config()
587 qdev->monitors_config->heads[index].x = x; in qxl_monitors_config_set()
588 qdev->monitors_config->heads[index].y = y; in qxl_monitors_config_set()
589 qdev->monitors_config->heads[index].width = width; in qxl_monitors_config_set()
590 qdev->monitors_config->heads[index].height = height; in qxl_monitors_config_set()
591 qdev->monitors_config->heads[index].surface_id = surf_id; in qxl_monitors_config_set()
[all …]
Dqxl_cmd.c433 qdev->monitors_config->heads[0].width : -1, in qxl_io_monitors_config()
435 qdev->monitors_config->heads[0].height : -1, in qxl_io_monitors_config()
437 qdev->monitors_config->heads[0].x : -1, in qxl_io_monitors_config()
439 qdev->monitors_config->heads[0].y : -1 in qxl_io_monitors_config()
Dqxl_dev.h258 struct qxl_urect heads[64]; member
874 struct qxl_head heads[0]; member
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dmemx.c126 u32 heads, x, y, px = 0; in nvkm_memx_wait_vblank() local
130 heads = nv_rd32(pmu, 0x610050); in nvkm_memx_wait_vblank()
133 if (heads & (2 << (i << 3))) { in nvkm_memx_wait_vblank()
/linux-4.1.27/drivers/scsi/aic7xxx/
Daiclib.h137 aic_sector_div(sector_t capacity, int heads, int sectors) in aic_sector_div() argument
140 sector_div(capacity, (heads * sectors)); in aic_sector_div()
Daic7xxx_osm.c699 int heads; in ahc_linux_biosparam() local
718 heads = 64; in ahc_linux_biosparam()
720 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam()
729 heads = 255; in ahc_linux_biosparam()
731 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam()
733 geom[0] = heads; in ahc_linux_biosparam()
Daic79xx_osm.c727 int heads; in ahd_linux_biosparam() local
744 heads = 64; in ahd_linux_biosparam()
746 cylinders = aic_sector_div(capacity, heads, sectors); in ahd_linux_biosparam()
753 heads = 255; in ahd_linux_biosparam()
755 cylinders = aic_sector_div(capacity, heads, sectors); in ahd_linux_biosparam()
757 geom[0] = heads; in ahd_linux_biosparam()
/linux-4.1.27/drivers/ide/
Dide-floppy.c317 u8 heads, sectors; in ide_floppy_get_flexible_disk_page() local
339 heads = buf[8 + 4]; in ide_floppy_get_flexible_disk_page()
342 capacity = cyls * heads * sectors * sector_size; in ide_floppy_get_flexible_disk_page()
347 drive->name, capacity / 1024, cyls, heads, in ide_floppy_get_flexible_disk_page()
352 drive->bios_head = heads; in ide_floppy_get_flexible_disk_page()
Dide-gd.c280 geo->heads = drive->bios_head;
/linux-4.1.27/Documentation/laptops/
Ddisk-shock-protection.txt22 unload disk heads. This feature is being used in modern laptops in
25 the internal hard drive and park its heads on the ramp when critical
42 Otherwise, writing an integer value to this file will take the heads
48 -EOVERFLOW, but heads will be parked anyway and the timeout will be
61 For example, do the following in order to park the heads of drive
100 instead of /dev/sda), then parking the heads of one drive (drive X)
/linux-4.1.27/drivers/scsi/aacraid/
Dlinit.c323 param->heads = 255; in aac_biosparm()
326 param->heads = 128; in aac_biosparm()
330 param->heads = 64; in aac_biosparm()
334 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm()
357 param->heads = 64; in aac_biosparm()
361 param->heads = 128; in aac_biosparm()
365 param->heads = 255; in aac_biosparm()
377 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm()
381 param->heads, param->sectors, num)); in aac_biosparm()
386 param->heads, param->sectors)); in aac_biosparm()
Daacraid.h102 int heads; member
/linux-4.1.27/drivers/block/rsxx/
Ddev.c95 geo->heads = 64; in rsxx_getgeo()
97 do_div(blocks, (geo->heads * geo->sectors)); in rsxx_getgeo()
100 geo->heads = 0; in rsxx_getgeo()
/linux-4.1.27/include/linux/
Damifd.h33 unsigned int heads; /* number of heads */ member
Dperf_event.h331 struct hlist_head heads[SWEVENT_HLIST_SIZE]; member
Dlibata.h714 u16 heads; /* Number of heads */ member
/linux-4.1.27/drivers/block/
Damiflop.c1071 if (hdr.track != unit[drive].track/unit[drive].type->heads) { in dos_read()
1074 unit[drive].track/unit[drive].type->heads); in dos_read()
1078 if (hdr.side != unit[drive].track%unit[drive].type->heads) { in dos_read()
1081 unit[drive].track%unit[drive].type->heads); in dos_read()
1171 hdr.track=unit[drive].track/unit[drive].type->heads; in ms_putsec()
1172 hdr.side=unit[drive].track%unit[drive].type->heads; in ms_putsec()
1457 geo->heads = unit[drive].type->heads; in fd_getgeo()
1491 if (param < p->type->tracks * p->type->heads) in fd_locked_ioctl()
1512 getprm.head=p->type->heads; in fd_locked_ioctl()
1626 unit[drive].blocks=unit[drive].type->heads*unit[drive].type->tracks* in floppy_open()
Dmg_disk.c122 u16 heads; member
375 host->heads = id[ATA_ID_HEADS]; in mg_get_disk_id()
378 if (MG_RES_SEC && host->heads && host->sectors) { in mg_get_disk_id()
381 host->heads / host->sectors; in mg_get_disk_id()
383 host->heads * host->sectors; in mg_get_disk_id()
774 geo->heads = (unsigned char)host->heads; in mg_getgeo()
Dcpqarray.h51 unsigned heads; member
Dcciss.c447 if (drv->heads == 0) in cciss_seq_show()
776 if (!drv->heads) { in cciss_show_lunid()
1094 if (drv->heads == 0) { in cciss_open()
1269 geo->heads = drv->heads; in cciss_getgeo()
1792 !(h->drv[curr_queue]->heads)) in cciss_check_queues()
2043 drvinfo->heads == h->drv[drv_index]->heads && in cciss_update_drive_info()
2084 h->drv[drv_index]->heads = drvinfo->heads; in cciss_update_drive_info()
2254 h->drv[drv_index]->heads = 0; in cciss_add_controller_node()
2416 drive_info->heads = 0; in cciss_clear_drive_info()
2518 if (h->drv[i] && h->drv[i]->heads) in deregister_disk()
[all …]
Dvirtio_blk.c287 geometry.heads, &geo->heads); in virtblk_getgeo()
292 geo->heads = 1 << 6; in virtblk_getgeo()
Dcpqarray.c1128 geo->heads = drv->heads; in ida_getgeo()
1132 geo->heads = 0xff; in ida_getgeo()
1760 drv->heads = id_ldrive->drv.heads; in getgeometry()
Dida_cmd.h140 __u8 heads; member
Dcciss.h38 int heads; member
Dsunvdc.c116 geo->heads = 0xff; in vdc_getgeo()
118 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo()
120 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo()
Dfloppy.c2276 int heads; in rw_interrupt() local
2298 heads = 2; in rw_interrupt()
2300 heads = 1; in rw_interrupt()
2302 nr_sectors = (((R_TRACK - TRACK) * heads + in rw_interrupt()
2313 pr_info("heads=%d eoc=%d\n", heads, eoc); in rw_interrupt()
3375 geo->heads = g->head; in fd_getgeo()
Dumem.c777 geo->heads = 64; in mm_getgeo()
779 geo->cylinders = size / (geo->heads * geo->sectors); in mm_getgeo()
Dhd.c665 geo->heads = disk->head; in hd_getgeo()
Dxen-blkfront.c340 hg->heads = 0xff; in blkif_getgeo()
342 sector_div(cylinders, hg->heads * hg->sectors); in blkif_getgeo()
344 if ((sector_t)(hg->cylinders + 1) * hg->heads * hg->sectors < nsect) in blkif_getgeo()
Dswim.c734 geo->heads = g->head; in floppy_getgeo()
Dxsysace.c944 geo->heads = cf_id[ATA_ID_HEADS]; in ace_getgeo()
DDAC960.c114 geo->heads = p->V1.GeometryTranslationHeads; in DAC960_getgeo()
117 LogicalDriveSize / (geo->heads * geo->sectors); in DAC960_getgeo()
123 geo->heads = 128; in DAC960_getgeo()
127 geo->heads = 255; in DAC960_getgeo()
137 (geo->heads * geo->sectors); in DAC960_getgeo()
Dsx8.c440 geo->heads = (u8) port->dev_geom_head; in carm_bdev_getgeo()
Dnvme-core.c1973 geo->heads = 1 << 6; in nvme_getgeo()
Dskd_main.c4741 geo->heads = 64; in skd_bdev_getgeo()
/linux-4.1.27/include/uapi/linux/
Dadfs_fs.h13 __u8 heads; member
Dvirtio_blk.h66 __u8 heads; member
Dhdreg.h324 unsigned char heads; member
402 unsigned short heads; /* Obsolete, "physical" heads */ member
Dmsdos_fs.h123 __le16 heads; /* number of heads */ member
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Ddcb.c118 return (outp->heads << 8) | (outp->link << 6) | outp->or; in dcb_outp_hashm()
134 outp->heads = (conn & 0x00000f00) >> 8; in dcb_outp_parse()
/linux-4.1.27/include/linux/mtd/
Dnftl.h40 unsigned char heads; member
Dinftl.h33 unsigned char heads; member
/linux-4.1.27/Documentation/scsi/
Daha152x.txt111 The number of cylinders/heads/sectors is called geometry and is required
127 namely the address space is limited to up to 255 heads, up to 63 sectors
130 The AHA-1522 BIOS calculates the geometry by fixing the number of heads
138 extended translation. This means that the BIOS uses 255 for heads,
Dscsi_mid_low_api.txt377 scsi_partsize - parse partition table into cylinders, heads + sectors
551 * scsi_partsize - parse partition table into cylinders, heads + sectors
555 * @hds: outputs number of heads calculated via this pointer
766 * params[0] number of heads (max 255)
DChangeLog.1992-19971958 (heads & sectors turned around).
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Ddcb.h20 uint8_t heads; member
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_bios.c1383 int heads, int or) in fabricate_dcb_output() argument
1389 entry->heads = heads; in fabricate_dcb_output()
1404 entry->heads = (conn >> 8) & 0xf; in parse_dcb20_entry()
1535 entry->hashm = (entry->heads << 8) | (link << 6) | entry->or; in parse_dcb20_entry()
1568 entry->heads = ((conn & 0x001c0000) >> 18) + 1; in parse_dcb15_entry()
1569 entry->or = entry->heads; /* same as heads, hopefully safe enough */ in parse_dcb15_entry()
1622 ient->heads |= jent->heads; in merge_like_dcb_entries()
Dnv50_display.c1693 encoder->possible_crtcs = dcbe->heads; in nv50_dac_create()
2088 encoder->possible_crtcs = dcbe->heads; in nv50_sor_create()
2263 encoder->possible_crtcs = dcbe->heads; in nv50_pior_create()
/linux-4.1.27/drivers/scsi/dpt/
Ddpti_ioctl.h93 unsigned heads; /* heads for drives on cntlr. */ member
Dsys_info.h83 uCHAR heads; /* Up to 255 */ member
/linux-4.1.27/drivers/memstick/core/
Dmspro_block.c131 __be16 heads; member
149 unsigned short heads; member
239 geo->heads = msb->heads; in mspro_block_bd_getgeo()
487 be16_to_cpu(x_devinfo->heads)); in mspro_block_attr_show_devinfo()
1209 msb->heads = be16_to_cpu(dev_info->heads); in mspro_block_init_disk()
Dms_block.c1751 msb->geometry.heads = chs_table[i].head; in msb_init_card()
/linux-4.1.27/drivers/s390/block/
Ddasd_eckd.c242 u16 heads, beghead, endhead; in define_extent() local
301 heads = private->rdc_data.trk_per_cyl; in define_extent()
302 begcyl = trk / heads; in define_extent()
303 beghead = trk % heads; in define_extent()
304 endcyl = totrk / heads; in define_extent()
305 endhead = totrk % heads; in define_extent()
488 u16 heads, beghead, endhead; in prefix_LRE() local
594 heads = basepriv->rdc_data.trk_per_cyl; in prefix_LRE()
595 begcyl = trk / heads; in prefix_LRE()
596 beghead = trk % heads; in prefix_LRE()
[all …]
Dxpram.c241 geo->heads = 4; in xpram_getgeo()
Ddasd_diag.c480 geo->heads = 16; in dasd_diag_fill_geometry()
Ddasd_fba.c219 geo->heads = 16; in dasd_fba_fill_geometry()
/linux-4.1.27/arch/m68k/emu/
Dnfblock.c87 geo->heads = 4; in nfhd_getgeo()
/linux-4.1.27/drivers/block/aoe/
Daoeblk.c307 geo->heads = d->geo.heads; in aoeblk_getgeo()
Daoecmd.c1011 d->geo.heads = 255; in ataid_complete()
1021 d->geo.heads = get_unaligned_le16(&id[55 << 1]); in ataid_complete()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Dtvnv04.c227 encoder->possible_crtcs = entry->heads; in nv04_tv_create()
Ddac.c551 encoder->possible_crtcs = entry->heads; in nv04_dac_create()
Ddfp.c713 encoder->possible_crtcs = entry->heads; in nv04_dfp_create()
Dtvnv17.c831 encoder->possible_crtcs = entry->heads; in nv17_tv_create()
/linux-4.1.27/tools/perf/util/
Devlist.c41 INIT_HLIST_HEAD(&evlist->heads[i]); in perf_evlist__init()
480 hlist_add_head(&sid->node, &evlist->heads[hash]); in perf_evlist__id_hash()
554 head = &evlist->heads[hash]; in perf_evlist__id2sid()
625 head = &evlist->heads[hash]; in perf_evlist__event2evsel()
Devlist.h36 struct hlist_head heads[PERF_EVLIST__HLIST_SIZE]; member
/linux-4.1.27/drivers/ata/
Dlibata-core.c100 u16 heads, u16 sectors);
725 block = (cyl * dev->heads + head) * dev->sectors + sect - 1; in ata_tf_read_block()
830 cyl = track / dev->heads; in ata_build_rw_tf()
831 head = track % dev->heads; in ata_build_rw_tf()
2242 dev->heads = 0; in ata_dev_configure()
2326 dev->heads = id[3]; in ata_dev_configure()
2332 dev->heads = id[55]; in ata_dev_configure()
2345 dev->heads, dev->sectors); in ata_dev_configure()
4559 u16 heads, u16 sectors) in ata_dev_init_params() argument
4565 if (sectors < 1 || sectors > 255 || heads < 1 || heads > 16) in ata_dev_init_params()
[all …]
Dlibata-scsi.c1618 cyl = track / dev->heads; in ata_scsi_verify_xlat()
1619 head = track % dev->heads; in ata_scsi_verify_xlat()
/linux-4.1.27/drivers/message/fusion/
Dmptscsih.c2093 int heads; in mptscsih_bios_param() local
2098 heads = 64; in mptscsih_bios_param()
2101 dummy = heads * sectors; in mptscsih_bios_param()
2110 heads = 255; in mptscsih_bios_param()
2112 dummy = heads * sectors; in mptscsih_bios_param()
2118 geom[0] = heads; in mptscsih_bios_param()
/linux-4.1.27/Documentation/sound/oss/
DSoundPro72 butting heads with another device.
/linux-4.1.27/drivers/mtd/ubi/
Dblock.c283 geo->heads = 1; in ubiblock_getgeo()
/linux-4.1.27/drivers/scsi/arcmsr/
Darcmsr_hba.c313 int ret, heads, sectors, cylinders, total_capacity; in arcmsr_bios_param() local
324 heads = 64; in arcmsr_bios_param()
326 cylinders = total_capacity / (heads * sectors); in arcmsr_bios_param()
328 heads = 255; in arcmsr_bios_param()
330 cylinders = total_capacity / (heads * sectors); in arcmsr_bios_param()
332 geom[0] = heads; in arcmsr_bios_param()
/linux-4.1.27/fs/ntfs/
Dlayout.h61 le16 heads; /* irrelevant */ member
/linux-4.1.27/drivers/scsi/megaraid/
Dmegaraid_sas_base.c2550 int heads; in megasas_bios_param() local
2555 heads = 64; in megasas_bios_param()
2558 tmp = heads * sectors; in megasas_bios_param()
2568 heads = 255; in megasas_bios_param()
2570 tmp = heads*sectors; in megasas_bios_param()
2575 geom[0] = heads; in megasas_bios_param()
/linux-4.1.27/Documentation/ioctl/
Dhdio.txt99 heads number of heads
/linux-4.1.27/Documentation/block/
Dbiodoc.txt56 (instead of using buffer heads at the i/o layer)
369 Prior to 2.5, buffer heads were used as the unit of i/o at the generic block
371 buffer heads for a contiguous i/o request. This led to certain inefficiencies
420 mapping at all (unlike buffer heads).
849 heads. This work is still in progress.
/linux-4.1.27/Documentation/ide/
Dide.txt85 ide_core.chs=[interface_number.device_number]:cyls,heads,sects
/linux-4.1.27/Documentation/development-process/
D7.AdvancedTopics42 heads, etc. It can all be a little intimidating at the outset, but the
/linux-4.1.27/block/
Dcompat_ioctl.c45 unsigned char heads; member
/linux-4.1.27/drivers/scsi/mpt2sas/
Dmpt2sas_scsih.c2145 int heads; in _scsih_bios_param() local
2150 heads = 64; in _scsih_bios_param()
2153 dummy = heads * sectors; in _scsih_bios_param()
2162 heads = 255; in _scsih_bios_param()
2164 dummy = heads * sectors; in _scsih_bios_param()
2170 params[0] = heads; in _scsih_bios_param()
/linux-4.1.27/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c1812 int heads; in _scsih_bios_param() local
1817 heads = 64; in _scsih_bios_param()
1820 dummy = heads * sectors; in _scsih_bios_param()
1829 heads = 255; in _scsih_bios_param()
1831 dummy = heads * sectors; in _scsih_bios_param()
1837 params[0] = heads; in _scsih_bios_param()
/linux-4.1.27/arch/um/drivers/
Dubd_kern.c1335 geo->heads = 128; in ubd_getgeo()
/linux-4.1.27/drivers/md/
Ddm-ioctl.c955 geometry.heads = indata[1]; in dev_set_geometry()
Ddm.c867 sector_t sz = (sector_t)geo->cylinders * geo->heads * geo->sectors; in dm_set_geometry()
Dmd.c6521 geo->heads = 2; in md_getgeo()
/linux-4.1.27/fs/reiserfs/
Djournal.c2103 static void brelse_array(struct buffer_head **heads, int num) in brelse_array() argument
2107 brelse(heads[i]); in brelse_array()
/linux-4.1.27/drivers/block/mtip32xx/
Dmtip32xx.c3637 geo->heads = 224; in mtip_block_getgeo()
3639 sector_div(capacity, (geo->heads * geo->sectors)); in mtip_block_getgeo()
/linux-4.1.27/fs/fat/
Dinode.c1339 if (b->heads) in fat_bpb_is_zero()
/linux-4.1.27/Documentation/filesystems/
Dntfs.txt260 255 heads, 63 sectors/track, 9964 cylinders, total 160086528 sectors
/linux-4.1.27/firmware/
DWHENCE48 drops binary dsp code images on our heads, but we don't get to see
/linux-4.1.27/drivers/mmc/card/
Dblock.c328 geo->heads = 4; in mmc_blk_getgeo()
/linux-4.1.27/Documentation/
DDMA-API.txt88 for alignment, like queue heads needing to be aligned on N-byte boundaries.
DDMA-API-HOWTO.txt431 like queue heads needing to be aligned on N byte boundaries.
/linux-4.1.27/fs/btrfs/
Dextent-tree.c2619 static inline u64 heads_to_leaves(struct btrfs_root *root, u64 heads) in heads_to_leaves() argument
2623 num_bytes = heads * (sizeof(struct btrfs_extent_item) + in heads_to_leaves()
2626 num_bytes += heads * sizeof(struct btrfs_tree_block_info); in heads_to_leaves()
/linux-4.1.27/drivers/video/fbdev/
DKconfig266 Appian Jeronimo PRO (both heads) PCI
1307 3.9.17 preview you can use both heads if you use SVGA over fbdev or
/linux-4.1.27/Documentation/m68k/
Dkernel-options.txt252 Syntax: hd=<cylinders>,<heads>,<sectors>
/linux-4.1.27/lib/
DKconfig.debug428 Enable this to turn on debugging of RCU list heads (call_rcu() usage).
/linux-4.1.27/kernel/events/
Dcore.c6320 return &hlist->heads[hash]; in __find_swevent_head()