Home
last modified time | relevance | path

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

/linux-4.4.14/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.c1272 int heads, sectors_pt; in storvsc_get_chs() local
1277 heads = 0xff; in storvsc_get_chs()
1279 sector_div(cylinders, heads * sectors_pt); in storvsc_get_chs()
1280 if ((sector_t)(cylinders + 1) * heads * sectors_pt < nsect) in storvsc_get_chs()
1283 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.c2834 int heads; in megaraid_biosparam() local
2844 heads = 64; in megaraid_biosparam()
2846 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2853 heads = 255; in megaraid_biosparam()
2855 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2859 geom[0] = heads; in megaraid_biosparam()
2879 heads = 64; in megaraid_biosparam()
2881 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2885 heads = 255; in megaraid_biosparam()
2887 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.c1344 int heads = 255, sectors = 63; in stex_biosparam() local
1347 heads = 64; in stex_biosparam()
1351 sector_div(capacity, heads * sectors); in stex_biosparam()
1353 geom[0] = heads; in stex_biosparam()
Dips.c1152 int heads; in DEF_SCSI_QCMD() local
1170 heads = IPS_NORM_HEADS; in DEF_SCSI_QCMD()
1173 heads = IPS_COMP_HEADS; in DEF_SCSI_QCMD()
1177 cylinders = (unsigned long) capacity / (heads * sectors); in DEF_SCSI_QCMD()
1180 heads, sectors, cylinders); in DEF_SCSI_QCMD()
1182 geom[0] = heads; in DEF_SCSI_QCMD()
4105 uint16_t heads; in ips_msense() local
4114 heads = IPS_NORM_HEADS; in ips_msense()
4117 heads = IPS_COMP_HEADS; in ips_msense()
4123 1) / (heads * sectors); in ips_msense()
[all …]
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()
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()
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.c1292 geo->heads = diskinfo[0]; in sd_getgeo()
Dipr.c4612 int heads, sectors; in ipr_biosparam() local
4615 heads = 128; in ipr_biosparam()
4622 parm[0] = heads; in ipr_biosparam()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/tools/perf/scripts/python/
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]
/linux-4.4.14/drivers/block/paride/
Dpd.c228 int heads; /* physical geometry */ member
344 h = (block /= disk->sectors) % disk->heads; in pd_ide_command()
345 c0 = (block /= disk->heads) % 256; in pd_ide_command()
592 pd_send_command(disk, disk->sectors, 0, disk->heads - 1, 0, 0, in pd_init_dev_parms()
675 disk->heads = le16_to_cpu(*(__le16 *) (pd_scratch + 6)); in pd_identify()
680 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify()
696 disk->cylinders, disk->heads, disk->sectors, in pd_identify()
761 geo->heads = PD_LOG_HEADS; in pd_getgeo()
763 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo()
765 geo->heads = disk->heads; in pd_getgeo()
Dpf.c337 geo->heads = PF_FD_HDS; in pf_getgeo()
341 geo->heads = PF_HD_HDS; in pf_getgeo()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dpriv.h8 int index, int heads, struct nvkm_disp *);
10 int index, int heads, struct nvkm_disp **);
Dbase.c284 int index, int heads, struct nvkm_disp *disp) in nvkm_disp_ctor() argument
298 disp->head.nr = heads; in nvkm_disp_ctor()
425 ret = nvkm_event_init(&nvkm_disp_vblank_func, 1, heads, &disp->vblank); in nvkm_disp_ctor()
434 int index, int heads, struct nvkm_disp **pdisp) in nvkm_disp_new_() argument
438 return nvkm_disp_ctor(func, device, index, heads, *pdisp); in nvkm_disp_new_()
Doutp.c74 outp->info.bus, outp->info.heads); in nvkm_output_ctor()
Dnv50.h52 int index, int heads, struct nvkm_disp **);
Dnv50.c145 int index, int heads, struct nvkm_disp **pdisp) in nv50_disp_new_() argument
156 ret = nvkm_disp_ctor(&nv50_disp_, device, index, heads, &disp->base); in nv50_disp_new_()
160 return nvkm_event_init(func->uevent, 1, 1 + (heads * 4), &disp->uevent); in nv50_disp_new_()
Dgf119.c506 u32 heads = nvkm_rd32(device, 0x022448); in gf119_disp_new_() local
507 return nv50_disp_new_(func, device, index, heads, pdisp); in gf119_disp_new_()
/linux-4.4.14/drivers/vhost/
Dnet.c247 if (vq->heads[i].len == VHOST_DMA_FAILED_LEN) in vhost_zerocopy_signal_used()
249 if (VHOST_DMA_IS_DONE(vq->heads[i].len)) { in vhost_zerocopy_signal_used()
250 vq->heads[i].len = VHOST_DMA_CLEAR_LEN; in vhost_zerocopy_signal_used()
258 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
273 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback()
377 vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head); in handle_tx()
378 vq->heads[nvq->upend_idx].len = VHOST_DMA_IN_PROGRESS; in handle_tx()
449 struct vring_used_elem *heads, in get_rx_bufs() argument
492 heads[headcount].id = cpu_to_vhost32(vq, d); in get_rx_bufs()
494 heads[headcount].len = cpu_to_vhost32(vq, len); in get_rx_bufs()
[all …]
Dvhost.c338 kfree(vq->heads); in vhost_vq_free_iovecs()
339 vq->heads = NULL; in vhost_vq_free_iovecs()
353 vq->heads = kmalloc(sizeof *vq->heads * UIO_MAXIOV, GFP_KERNEL); in vhost_dev_alloc_iovecs()
354 if (!vq->indirect || !vq->log || !vq->heads) in vhost_dev_alloc_iovecs()
394 vq->heads = NULL; in vhost_dev_init()
1475 struct vring_used_elem heads = { in vhost_add_used() local
1480 return vhost_add_used_n(vq, &heads, 1); in vhost_add_used()
1485 struct vring_used_elem *heads, in __vhost_add_used_n() argument
1495 if (__put_user(heads[0].id, &used->id)) { in __vhost_add_used_n()
1499 if (__put_user(heads[0].len, &used->len)) { in __vhost_add_used_n()
[all …]
Dvhost.h101 struct vring_used_elem *heads; member
153 int vhost_add_used_n(struct vhost_virtqueue *, struct vring_used_elem *heads,
158 struct vring_used_elem *heads, unsigned count);
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
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()
/linux-4.4.14/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.4.14/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()
575 struct qxl_head *head = &qdev->monitors_config->heads[i]; in qxl_send_monitors_config()
595 qdev->monitors_config->heads[index].x = x; in qxl_monitors_config_set()
596 qdev->monitors_config->heads[index].y = y; in qxl_monitors_config_set()
597 qdev->monitors_config->heads[index].width = width; in qxl_monitors_config_set()
598 qdev->monitors_config->heads[index].height = height; in qxl_monitors_config_set()
599 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.4.14/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.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dmemx.c128 u32 heads, x, y, px = 0; in nvkm_memx_wait_vblank() local
132 heads = nvkm_rd32(device, 0x610050); in nvkm_memx_wait_vblank()
135 if (heads & (2 << (i << 3))) { in nvkm_memx_wait_vblank()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/include/linux/
Damifd.h33 unsigned int heads; /* number of heads */ member
Dperf_event.h422 struct hlist_head heads[SWEVENT_HLIST_SIZE]; member
Dlibata.h715 u16 heads; /* Number of heads */ member
/linux-4.4.14/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.c445 if (drv->heads == 0) in cciss_seq_show()
792 if (!drv->heads) { in cciss_show_lunid()
1110 if (drv->heads == 0) { in cciss_open()
1285 geo->heads = drv->heads; in cciss_getgeo()
1808 !(h->drv[curr_queue]->heads)) in cciss_check_queues()
2059 drvinfo->heads == h->drv[drv_index]->heads && in cciss_update_drive_info()
2100 h->drv[drv_index]->heads = drvinfo->heads; in cciss_update_drive_info()
2270 h->drv[drv_index]->heads = 0; in cciss_add_controller_node()
2432 drive_info->heads = 0; in cciss_clear_drive_info()
2534 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.c779 geo->heads = 64; in mm_getgeo()
781 geo->cylinders = size / (geo->heads * geo->sectors); in mm_getgeo()
Dhd.c665 geo->heads = disk->head; in hd_getgeo()
Dxen-blkfront.c417 hg->heads = 0xff; in blkif_getgeo()
419 sector_div(cylinders, hg->heads * hg->sectors); in blkif_getgeo()
421 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()
Dskd_main.c4741 geo->heads = 64; in skd_bdev_getgeo()
/linux-4.4.14/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.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Ddcb.c117 return (outp->heads << 8) | (outp->link << 6) | outp->or; in dcb_outp_hashm()
133 outp->heads = (conn & 0x00000f00) >> 8; in dcb_outp_parse()
/linux-4.4.14/include/linux/mtd/
Dnftl.h40 unsigned char heads; member
Dinftl.h33 unsigned char heads; member
/linux-4.4.14/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.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Ddcb.h20 uint8_t heads; member
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_bios.c1384 int heads, int or) in fabricate_dcb_output() argument
1390 entry->heads = heads; in fabricate_dcb_output()
1405 entry->heads = (conn >> 8) & 0xf; in parse_dcb20_entry()
1534 entry->hashm = (entry->heads << 8) | (link << 6) | entry->or; in parse_dcb20_entry()
1567 entry->heads = ((conn & 0x001c0000) >> 18) + 1; in parse_dcb15_entry()
1568 entry->or = entry->heads; /* same as heads, hopefully safe enough */ in parse_dcb15_entry()
1621 ient->heads |= jent->heads; in merge_like_dcb_entries()
Dnv50_display.c1718 encoder->possible_crtcs = dcbe->heads; in nv50_dac_create()
2126 encoder->possible_crtcs = dcbe->heads; in nv50_sor_create()
2306 encoder->possible_crtcs = dcbe->heads; in nv50_pior_create()
/linux-4.4.14/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.4.14/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.4.14/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.c243 geo->heads = 4; in xpram_getgeo()
Ddasd_diag.c487 geo->heads = 16; in dasd_diag_fill_geometry()
Ddasd_fba.c219 geo->heads = 16; in dasd_fba_fill_geometry()
/linux-4.4.14/arch/m68k/emu/
Dnfblock.c88 geo->heads = 4; in nfhd_getgeo()
/linux-4.4.14/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.4.14/drivers/gpu/drm/nouveau/dispnv04/
Dtvnv04.c231 encoder->possible_crtcs = entry->heads; in nv04_tv_create()
Ddac.c556 encoder->possible_crtcs = entry->heads; in nv04_dac_create()
Ddfp.c712 encoder->possible_crtcs = entry->heads; in nv04_dfp_create()
Dtvnv17.c823 encoder->possible_crtcs = entry->heads; in nv17_tv_create()
/linux-4.4.14/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.4.14/tools/perf/util/
Devlist.h39 struct hlist_head heads[PERF_EVLIST__HLIST_SIZE]; member
Devlist.c42 INIT_HLIST_HEAD(&evlist->heads[i]); in perf_evlist__init()
543 hlist_add_head(&sid->node, &evlist->heads[hash]); in perf_evlist__id_hash()
617 head = &evlist->heads[hash]; in perf_evlist__id2sid()
703 head = &evlist->heads[hash]; in perf_evlist__event2evsel()
/linux-4.4.14/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.4.14/Documentation/sound/oss/
DSoundPro72 butting heads with another device.
/linux-4.4.14/drivers/mtd/ubi/
Dblock.c284 geo->heads = 1; in ubiblock_getgeo()
/linux-4.4.14/drivers/scsi/arcmsr/
Darcmsr_hba.c310 int ret, heads, sectors, cylinders, total_capacity; in arcmsr_bios_param() local
321 heads = 64; in arcmsr_bios_param()
323 cylinders = total_capacity / (heads * sectors); in arcmsr_bios_param()
325 heads = 255; in arcmsr_bios_param()
327 cylinders = total_capacity / (heads * sectors); in arcmsr_bios_param()
329 geom[0] = heads; in arcmsr_bios_param()
/linux-4.4.14/fs/ntfs/
Dlayout.h61 le16 heads; /* irrelevant */ member
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_base.c2639 int heads; in megasas_bios_param() local
2645 heads = 64; in megasas_bios_param()
2648 tmp = heads * sectors; in megasas_bios_param()
2658 heads = 255; in megasas_bios_param()
2660 tmp = heads*sectors; in megasas_bios_param()
2665 geom[0] = heads; in megasas_bios_param()
/linux-4.4.14/Documentation/ioctl/
Dhdio.txt99 heads number of heads
/linux-4.4.14/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.4.14/block/
Dcompat_ioctl.c45 unsigned char heads; member
/linux-4.4.14/Documentation/ide/
Dide.txt85 ide_core.chs=[interface_number.device_number]:cyls,heads,sects
/linux-4.4.14/Documentation/development-process/
D7.AdvancedTopics42 heads, etc. It can all be a little intimidating at the outset, but the
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c1998 int heads; in scsih_bios_param() local
2003 heads = 64; in scsih_bios_param()
2006 dummy = heads * sectors; in scsih_bios_param()
2015 heads = 255; in scsih_bios_param()
2017 dummy = heads * sectors; in scsih_bios_param()
2023 params[0] = heads; in scsih_bios_param()
/linux-4.4.14/arch/um/drivers/
Dubd_kern.c1335 geo->heads = 128; in ubd_getgeo()
/linux-4.4.14/drivers/nvdimm/
Dbtt.c1218 geo->heads = 1 << 6; in btt_getgeo()
/linux-4.4.14/drivers/md/
Ddm-ioctl.c955 geometry.heads = indata[1]; in dev_set_geometry()
Ddm.c900 sector_t sz = (sector_t)geo->cylinders * geo->heads * geo->sectors; in dm_set_geometry()
Dmd.c6658 geo->heads = 2; in md_getgeo()
/linux-4.4.14/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.4.14/fs/fat/
Dinode.c1340 if (b->heads) in fat_bpb_is_zero()
/linux-4.4.14/Documentation/filesystems/
Dntfs.txt260 255 heads, 63 sectors/track, 9964 cylinders, total 160086528 sectors
/linux-4.4.14/firmware/
DWHENCE48 drops binary dsp code images on our heads, but we don't get to see
/linux-4.4.14/drivers/block/mtip32xx/
Dmtip32xx.c3671 geo->heads = 224; in mtip_block_getgeo()
3673 sector_div(capacity, (geo->heads * geo->sectors)); in mtip_block_getgeo()
/linux-4.4.14/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.4.14/drivers/mmc/card/
Dblock.c330 geo->heads = 4; in mmc_blk_getgeo()
/linux-4.4.14/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.4.14/Documentation/m68k/
Dkernel-options.txt252 Syntax: hd=<cylinders>,<heads>,<sectors>
/linux-4.4.14/fs/btrfs/
Dextent-tree.c2723 static inline u64 heads_to_leaves(struct btrfs_root *root, u64 heads) in heads_to_leaves() argument
2727 num_bytes = heads * (sizeof(struct btrfs_extent_item) + in heads_to_leaves()
2730 num_bytes += heads * sizeof(struct btrfs_tree_block_info); in heads_to_leaves()
/linux-4.4.14/drivers/nvme/host/
Dpci.c2011 geo->heads = 1 << 6; in nvme_getgeo()
/linux-4.4.14/lib/
DKconfig.debug438 Enable this to turn on debugging of RCU list heads (call_rcu() usage).
/linux-4.4.14/kernel/events/
Dcore.c6618 return &hlist->heads[hash]; in __find_swevent_head()