/drivers/mtd/ |
D | ssfdc.c | 22 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()
|
D | nftlcore.c | 68 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()
|
D | inftlcore.c | 75 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()
|
D | sm_ftl.h | 54 int heads; member
|
D | sm_ftl.c | 646 ftl->heads = chs_table[i].head; in sm_get_media_info() 654 ftl->heads = 33; in sm_get_media_info() 1125 geo->heads = ftl->heads; in sm_getgeo()
|
/drivers/scsi/ |
D | scsicam.c | 181 unsigned long heads, sectors, cylinders, temp; in setsize() local 187 heads = capacity / temp; /* Compute value for number of heads */ in setsize() 189 heads++; /* Else, increment number of heads */ in setsize() 190 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize() 195 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize() 204 *hds = (unsigned int) heads; in setsize()
|
D | BusLogic.c | 3243 diskparam->heads = 255; in blogic_diskparam() 3246 diskparam->heads = 128; in blogic_diskparam() 3250 diskparam->heads = 64; in blogic_diskparam() 3253 diskparam->cylinders = (unsigned long) capacity / (diskparam->heads * diskparam->sectors); in blogic_diskparam() 3273 diskparam->heads = 64; in blogic_diskparam() 3277 diskparam->heads = 128; in blogic_diskparam() 3281 diskparam->heads = 255; in blogic_diskparam() 3291 diskparam->cylinders = (unsigned long) capacity / (diskparam->heads * diskparam->sectors); in blogic_diskparam() 3294 …blogic_warn("Adopting Geometry %d/%d from Partition Table\n", adapter, diskparam->heads, diskparam… in blogic_diskparam() 3297 …with current BusLogic Host Adapter Geometry %d/%d\n", adapter, diskparam->heads, diskparam->sector… in blogic_diskparam()
|
/drivers/block/paride/ |
D | pd.c | 228 int heads; /* physical geometry */ member 351 h = (block /= disk->sectors) % disk->heads; in pd_ide_command() 352 c0 = (block /= disk->heads) % 256; in pd_ide_command() 638 pd_send_command(disk, disk->sectors, 0, disk->heads - 1, 0, 0, in pd_init_dev_parms() 721 disk->heads = le16_to_cpu(*(__le16 *) (pd_scratch + 6)); in pd_identify() 726 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify() 742 disk->cylinders, disk->heads, disk->sectors, in pd_identify() 811 geo->heads = PD_LOG_HEADS; in pd_getgeo() 813 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo() 815 geo->heads = disk->heads; in pd_getgeo()
|
/drivers/gpu/drm/qxl/ |
D | qxl_display.c | 57 heads, count), GFP_KERNEL); in qxl_alloc_client_monitors_config() 107 &qdev->rom->client_monitors_config.heads[i]; in qxl_display_copy_rom_client_monitors_config() 109 &qdev->client_monitors_config->heads[i]; in qxl_display_copy_rom_client_monitors_config() 155 head = &qdev->client_monitors_config->heads[output->index]; in qxl_update_offset_props() 262 head = &qdev->client_monitors_config->heads[h]; in qxl_add_monitors_config_modes() 299 struct qxl_head *head = &qdev->monitors_config->heads[i]; in qxl_send_monitors_config() 356 if (head.width == qdev->monitors_config->heads[i].width && in qxl_crtc_update_monitors_config() 357 head.height == qdev->monitors_config->heads[i].height && in qxl_crtc_update_monitors_config() 358 head.x == qdev->monitors_config->heads[i].x && in qxl_crtc_update_monitors_config() 359 head.y == qdev->monitors_config->heads[i].y && in qxl_crtc_update_monitors_config() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
D | hwsq.c | 139 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()
|
/drivers/vhost/ |
D | net.c | 367 if (vq->heads[i].len == VHOST_DMA_FAILED_LEN) in vhost_zerocopy_signal_used() 369 if (VHOST_DMA_IS_DONE(vq->heads[i].len)) { in vhost_zerocopy_signal_used() 370 vq->heads[i].len = VHOST_DMA_CLEAR_LEN; in vhost_zerocopy_signal_used() 378 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used() 394 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback() 456 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used() 849 vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head); in handle_tx_copy() 850 vq->heads[nvq->done_idx].len = 0; in handle_tx_copy() 908 vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head); in handle_tx_zerocopy() 909 vq->heads[nvq->upend_idx].len = VHOST_DMA_IN_PROGRESS; in handle_tx_zerocopy() [all …]
|
D | vhost.h | 118 struct vring_used_elem *heads; member 200 int vhost_add_used_n(struct vhost_virtqueue *, struct vring_used_elem *heads, 205 struct vring_used_elem *heads, unsigned count);
|
D | vhost.c | 388 kfree(vq->heads); in vhost_vq_free_iovecs() 389 vq->heads = NULL; in vhost_vq_free_iovecs() 405 vq->heads = kmalloc_array(dev->iov_limit, sizeof(*vq->heads), in vhost_dev_alloc_iovecs() 407 if (!vq->indirect || !vq->log || !vq->heads) in vhost_dev_alloc_iovecs() 501 vq->heads = NULL; in vhost_dev_init() 2365 struct vring_used_elem heads = { in vhost_add_used() local 2370 return vhost_add_used_n(vq, &heads, 1); in vhost_add_used() 2375 struct vring_used_elem *heads, in __vhost_add_used_n() argument 2384 if (vhost_put_used(vq, heads, start, count)) { in __vhost_add_used_n() 2408 int vhost_add_used_n(struct vhost_virtqueue *vq, struct vring_used_elem *heads, in vhost_add_used_n() argument [all …]
|
/drivers/scsi/aic7xxx/ |
D | aiclib.h | 122 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()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | memx.c | 129 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()
|
/drivers/block/rsxx/ |
D | dev.c | 83 geo->heads = 64; in rsxx_getgeo() 85 do_div(blocks, (geo->heads * geo->sectors)); in rsxx_getgeo() 88 geo->heads = 0; in rsxx_getgeo()
|
/drivers/block/ |
D | amiflop.c | 180 unsigned int heads; /* number of heads */ member 1189 if (hdr.track != unit[drive].track/unit[drive].type->heads) { in dos_read() 1192 unit[drive].track/unit[drive].type->heads); in dos_read() 1196 if (hdr.side != unit[drive].track%unit[drive].type->heads) { in dos_read() 1199 unit[drive].track%unit[drive].type->heads); in dos_read() 1289 hdr.track=unit[drive].track/unit[drive].type->heads; in ms_putsec() 1290 hdr.side=unit[drive].track%unit[drive].type->heads; in ms_putsec() 1530 geo->heads = unit[drive].type->heads; in fd_getgeo() 1564 if (param < p->type->tracks * p->type->heads) in fd_locked_ioctl() 1585 getprm.head=p->type->heads; in fd_locked_ioctl() [all …]
|
/drivers/gpu/drm/nouveau/dispnv50/ |
D | wndw.h | 41 const u32 *format, u32 heads, 115 enum drm_plane_type type, int index, s32 oclass, u32 heads,
|
D | wndwc37e.c | 355 enum drm_plane_type type, int index, s32 oclass, u32 heads, in wndwc37e_new_() argument 367 wndwc37e_format, heads, NV50_DISP_INTERLOCK_WNDW, in wndwc37e_new_()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | dcb.c | 117 return (outp->heads << 8) | (outp->link << 6) | outp->or; in dcb_outp_hashm() 133 outp->heads = (conn & 0x00000f00) >> 8; in dcb_outp_parse()
|
/drivers/scsi/aacraid/ |
D | linit.c | 310 param->heads = 255; in aac_biosparm() 313 param->heads = 128; in aac_biosparm() 317 param->heads = 64; in aac_biosparm() 321 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 344 param->heads = 64; in aac_biosparm() 348 param->heads = 128; in aac_biosparm() 352 param->heads = 255; in aac_biosparm() 364 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 368 param->heads, param->sectors, num)); in aac_biosparm() 374 param->heads, param->sectors)); in aac_biosparm()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_bios.c | 1385 int heads, int or) in fabricate_dcb_output() argument 1391 entry->heads = heads; in fabricate_dcb_output() 1406 entry->heads = (conn >> 8) & 0xf; in parse_dcb20_entry() 1540 entry->hashm = (entry->heads << 8) | (link << 6) | entry->or; in parse_dcb20_entry() 1573 entry->heads = ((conn & 0x001c0000) >> 18) + 1; in parse_dcb15_entry() 1574 entry->or = entry->heads; /* same as heads, hopefully safe enough */ in parse_dcb15_entry() 1627 ient->heads |= jent->heads; in merge_like_dcb_entries()
|
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | dcb.h | 22 uint8_t heads; member
|
/drivers/memstick/core/ |
D | mspro_block.c | 127 __be16 heads; member 146 unsigned short heads; member 235 geo->heads = msb->heads; in mspro_block_bd_getgeo() 483 be16_to_cpu(x_devinfo->heads)); in mspro_block_attr_show_devinfo() 1197 msb->heads = be16_to_cpu(dev_info->heads); in mspro_block_init_disk()
|
/drivers/scsi/dpt/ |
D | dpti_ioctl.h | 90 unsigned heads; /* heads for drives on cntlr. */ member
|