/Linux-v4.19/drivers/scsi/ |
D | scsicam.c | 235 unsigned long heads, sectors, cylinders, temp; in setsize() local 241 heads = capacity / temp; /* Compute value for number of heads */ in setsize() 243 heads++; /* Else, increment number of heads */ in setsize() 244 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize() 249 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize() 258 *hds = (unsigned int) heads; in setsize()
|
/Linux-v4.19/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() 414 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo() 416 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()
|
/Linux-v4.19/tools/perf/scripts/python/ |
D | compaction-times.py | 109 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-v4.19/arch/x86/boot/ |
D | mtools.conf.in | 11 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter 15 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
|
/Linux-v4.19/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() 612 pd_send_command(disk, disk->sectors, 0, disk->heads - 1, 0, 0, in pd_init_dev_parms() 695 disk->heads = le16_to_cpu(*(__le16 *) (pd_scratch + 6)); in pd_identify() 700 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify() 716 disk->cylinders, disk->heads, disk->sectors, in pd_identify() 777 geo->heads = PD_LOG_HEADS; in pd_getgeo() 779 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo() 781 geo->heads = disk->heads; in pd_getgeo()
|
/Linux-v4.19/block/partitions/ |
D | acorn.c | 206 (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()
|
D | ibm.c | 41 return cyl * geo->heads * geo->sectors + in cchh2blk() 59 return cyl * geo->heads * geo->sectors + in cchhb2blk() 221 geo_size = geo->cylinders * geo->heads in find_lnx1_partitions()
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/vhost/ |
D | net.c | 355 if (vq->heads[i].len == VHOST_DMA_FAILED_LEN) in vhost_zerocopy_signal_used() 357 if (VHOST_DMA_IS_DONE(vq->heads[i].len)) { in vhost_zerocopy_signal_used() 358 vq->heads[i].len = VHOST_DMA_CLEAR_LEN; in vhost_zerocopy_signal_used() 366 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used() 381 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback() 443 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used() 580 vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head); in handle_tx_copy() 581 vq->heads[nvq->done_idx].len = 0; in handle_tx_copy() 661 vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head); in handle_tx_zerocopy() 662 vq->heads[nvq->upend_idx].len = VHOST_DMA_IN_PROGRESS; in handle_tx_zerocopy() [all …]
|
D | vhost.h | 129 struct vring_used_elem *heads; member 196 int vhost_add_used_n(struct vhost_virtqueue *, struct vring_used_elem *heads, 201 struct vring_used_elem *heads, unsigned count);
|
D | vhost.c | 377 kfree(vq->heads); in vhost_vq_free_iovecs() 378 vq->heads = NULL; in vhost_vq_free_iovecs() 394 vq->heads = kmalloc_array(UIO_MAXIOV, sizeof(*vq->heads), in vhost_dev_alloc_iovecs() 396 if (!vq->indirect || !vq->log || !vq->heads) in vhost_dev_alloc_iovecs() 440 vq->heads = NULL; in vhost_dev_init() 2156 struct vring_used_elem heads = { in vhost_add_used() local 2161 return vhost_add_used_n(vq, &heads, 1); in vhost_add_used() 2166 struct vring_used_elem *heads, in __vhost_add_used_n() argument 2176 if (vhost_put_user(vq, heads[0].id, &used->id)) { in __vhost_add_used_n() 2180 if (vhost_put_user(vq, heads[0].len, &used->len)) { in __vhost_add_used_n() [all …]
|
/Linux-v4.19/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()
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/gpu/drm/qxl/ |
D | qxl_display.c | 96 &qdev->rom->client_monitors_config.heads[i]; in qxl_display_copy_rom_client_monitors_config() 98 &qdev->client_monitors_config->heads[i]; in qxl_display_copy_rom_client_monitors_config() 144 head = &qdev->client_monitors_config->heads[output->index]; in qxl_update_offset_props() 203 head = &qdev->client_monitors_config->heads[h]; in qxl_add_monitors_config_modes() 271 struct qxl_head *head = &qdev->monitors_config->heads[i]; in qxl_send_monitors_config() 325 if (head.width == qdev->monitors_config->heads[i].width && in qxl_crtc_update_monitors_config() 326 head.height == qdev->monitors_config->heads[i].height && in qxl_crtc_update_monitors_config() 327 head.x == qdev->monitors_config->heads[i].x && in qxl_crtc_update_monitors_config() 328 head.y == qdev->monitors_config->heads[i].y && in qxl_crtc_update_monitors_config() 340 qdev->monitors_config->heads[i] = head; in qxl_crtc_update_monitors_config() [all …]
|
/Linux-v4.19/Documentation/laptops/ |
D | disk-shock-protection.txt | 22 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-v4.19/drivers/ide/ |
D | ide-floppy.c | 323 u8 heads, sectors; in ide_floppy_get_flexible_disk_page() local 345 heads = buf[8 + 4]; in ide_floppy_get_flexible_disk_page() 348 capacity = cyls * heads * sectors * sector_size; in ide_floppy_get_flexible_disk_page() 353 drive->name, capacity / 1024, cyls, heads, in ide_floppy_get_flexible_disk_page() 358 drive->bios_head = heads; in ide_floppy_get_flexible_disk_page()
|
/Linux-v4.19/kernel/time/ |
D | timer.c | 1370 struct hlist_head *heads) in __collect_expired_timers() argument 1382 hlist_move_list(vec, heads++); in __collect_expired_timers() 1591 struct hlist_head *heads) in collect_expired_timers() argument 1615 return __collect_expired_timers(base, heads); in collect_expired_timers() 1619 struct hlist_head *heads) in collect_expired_timers() argument 1621 return __collect_expired_timers(base, heads); in collect_expired_timers() 1652 struct hlist_head heads[LVL_DEPTH]; in __run_timers() local 1678 levels = collect_expired_timers(base, heads); in __run_timers() 1682 expire_timers(base, heads + levels); in __run_timers()
|
/Linux-v4.19/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()
|
/Linux-v4.19/Documentation/ABI/testing/ |
D | sysfs-block-device | 28 Writing an integer value to this file will take the heads of the 32 - If the device does not support the unload heads feature,
|
/Linux-v4.19/include/linux/ |
D | amifd.h | 34 unsigned int heads; /* number of heads */ member
|
/Linux-v4.19/drivers/block/ |
D | amiflop.c | 1070 if (hdr.track != unit[drive].track/unit[drive].type->heads) { in dos_read() 1073 unit[drive].track/unit[drive].type->heads); in dos_read() 1077 if (hdr.side != unit[drive].track%unit[drive].type->heads) { in dos_read() 1080 unit[drive].track%unit[drive].type->heads); in dos_read() 1170 hdr.track=unit[drive].track/unit[drive].type->heads; in ms_putsec() 1171 hdr.side=unit[drive].track%unit[drive].type->heads; in ms_putsec() 1460 geo->heads = unit[drive].type->heads; in fd_getgeo() 1494 if (param < p->type->tracks * p->type->heads) in fd_locked_ioctl() 1515 getprm.head=p->type->heads; in fd_locked_ioctl() 1629 unit[drive].blocks=unit[drive].type->heads*unit[drive].type->tracks* in floppy_open()
|
/Linux-v4.19/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()
|
/Linux-v4.19/include/uapi/linux/ |
D | adfs_fs.h | 14 __u8 heads; member
|