/drivers/mtd/ |
D | ssfdc.c | 25 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() 413 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo() 415 geo->heads = ssfdc->heads; in ssfdcr_getgeo()
|
D | nftlcore.c | 81 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()
|
D | inftlcore.c | 88 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()
|
D | sm_ftl.h | 60 int heads; member
|
/drivers/scsi/ |
D | scsicam.c | 234 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()
|
/drivers/block/paride/ |
D | pd.c | 228 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()
|
/drivers/vhost/ |
D | net.c | 248 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() 443 vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head); in handle_tx() 444 vq->heads[nvq->upend_idx].len = VHOST_DMA_IN_PROGRESS; in handle_tx() 566 struct vring_used_elem *heads, in get_rx_bufs() argument 609 heads[headcount].id = cpu_to_vhost32(vq, d); in get_rx_bufs() 611 heads[headcount].len = cpu_to_vhost32(vq, len); in get_rx_bufs() [all …]
|
D | vhost.c | 360 kfree(vq->heads); in vhost_vq_free_iovecs() 361 vq->heads = NULL; in vhost_vq_free_iovecs() 375 vq->heads = kmalloc(sizeof *vq->heads * UIO_MAXIOV, GFP_KERNEL); in vhost_dev_alloc_iovecs() 376 if (!vq->indirect || !vq->log || !vq->heads) in vhost_dev_alloc_iovecs() 421 vq->heads = NULL; in vhost_dev_init() 2065 struct vring_used_elem heads = { in vhost_add_used() local 2070 return vhost_add_used_n(vq, &heads, 1); in vhost_add_used() 2075 struct vring_used_elem *heads, in __vhost_add_used_n() argument 2085 if (vhost_put_user(vq, heads[0].id, &used->id)) { in __vhost_add_used_n() 2089 if (vhost_put_user(vq, heads[0].len, &used->len)) { in __vhost_add_used_n() [all …]
|
D | vhost.h | 126 struct vring_used_elem *heads; member 190 int vhost_add_used_n(struct vhost_virtqueue *, struct vring_used_elem *heads, 195 struct vring_used_elem *heads, unsigned count);
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | priv.h | 8 int index, int heads, struct nvkm_disp *); 10 int index, int heads, struct nvkm_disp **);
|
D | base.c | 285 int index, int heads, struct nvkm_disp *disp) in nvkm_disp_ctor() argument 299 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_()
|
/drivers/gpu/drm/qxl/ |
D | qxl_display.c | 88 &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() 622 struct qxl_head *head = &qdev->monitors_config->heads[i]; in qxl_send_monitors_config() 642 qdev->monitors_config->heads[index].x = x; in qxl_monitors_config_set() 643 qdev->monitors_config->heads[index].y = y; in qxl_monitors_config_set() 644 qdev->monitors_config->heads[index].width = width; in qxl_monitors_config_set() 645 qdev->monitors_config->heads[index].height = height; in qxl_monitors_config_set() 646 qdev->monitors_config->heads[index].surface_id = surf_id; in qxl_monitors_config_set() [all …]
|
D | qxl_cmd.c | 433 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()
|
/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/ide/ |
D | ide-floppy.c | 317 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()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | memx.c | 128 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()
|
/drivers/scsi/aic7xxx/ |
D | aiclib.h | 137 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()
|
/drivers/block/rsxx/ |
D | dev.c | 95 geo->heads = 64; in rsxx_getgeo() 97 do_div(blocks, (geo->heads * geo->sectors)); in rsxx_getgeo() 100 geo->heads = 0; in rsxx_getgeo()
|
/drivers/block/ |
D | amiflop.c | 1071 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()
|
D | mg_disk.c | 122 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() 771 geo->heads = (unsigned char)host->heads; in mg_getgeo()
|
/drivers/scsi/aacraid/ |
D | linit.c | 322 param->heads = 255; in aac_biosparm() 325 param->heads = 128; in aac_biosparm() 329 param->heads = 64; in aac_biosparm() 333 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 356 param->heads = 64; in aac_biosparm() 360 param->heads = 128; in aac_biosparm() 364 param->heads = 255; in aac_biosparm() 376 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 380 param->heads, param->sectors, num)); in aac_biosparm() 385 param->heads, param->sectors)); in aac_biosparm()
|
/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/gpu/drm/nouveau/ |
D | nouveau_bios.c | 1387 int heads, int or) in fabricate_dcb_output() argument 1393 entry->heads = heads; in fabricate_dcb_output() 1408 entry->heads = (conn >> 8) & 0xf; in parse_dcb20_entry() 1537 entry->hashm = (entry->heads << 8) | (link << 6) | entry->or; in parse_dcb20_entry() 1570 entry->heads = ((conn & 0x001c0000) >> 18) + 1; in parse_dcb15_entry() 1571 entry->or = entry->heads; /* same as heads, hopefully safe enough */ in parse_dcb15_entry() 1624 ient->heads |= jent->heads; in merge_like_dcb_entries()
|
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | dcb.h | 20 uint8_t heads; member
|
/drivers/memstick/core/ |
D | mspro_block.c | 131 __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() 1207 msb->heads = be16_to_cpu(dev_info->heads); in mspro_block_init_disk()
|