Home
last modified time | relevance | path

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

1234

/drivers/mtd/
Dssfdc.c22 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()
Dnftlcore.c68 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()
Dinftlcore.c75 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()
Dsm_ftl.h54 int heads; member
/drivers/scsi/
Dscsicam.c179 unsigned long heads, sectors, cylinders, temp; in setsize() local
185 heads = capacity / temp; /* Compute value for number of heads */ in setsize()
187 heads++; /* Else, increment number of heads */ in setsize()
188 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize()
193 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize()
202 *hds = (unsigned int) heads; in setsize()
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dhead.c35 list_for_each_entry(head, &disp->heads, head) { in nvkm_head_find()
64 list_add_tail(&head->head, &disp->heads); in nvkm_head_new_()
Dgf119.c1021 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1029 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1036 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1042 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1047 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1054 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_super()
1061 list_for_each_entry(head, &disp->heads, head) in gf119_disp_super()
1143 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_intr()
1178 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_init()
1225 list_for_each_entry(head, &disp->heads, head) { in gf119_disp_init()
Dbase.c299 list_for_each_entry(head, &disp->heads, head) in nvkm_disp_oneinit()
344 while (!list_empty(&disp->heads)) { in nvkm_disp_dtor()
345 head = list_first_entry(&disp->heads, typeof(*head), head); in nvkm_disp_dtor()
373 INIT_LIST_HEAD(&disp->heads); in nvkm_disp_new_()
Dgv100.c846 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super()
854 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super()
861 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super()
867 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super()
872 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super()
879 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_super()
886 list_for_each_entry(head, &disp->heads, head) in gv100_disp_super()
1154 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_init()
1214 list_for_each_entry(head, &disp->heads, head) { in gv100_disp_init()
Dtu102.c135 list_for_each_entry(head, &disp->heads, head) { in tu102_disp_init()
196 list_for_each_entry(head, &disp->heads, head) { in tu102_disp_init()
Dnv50.c1332 list_for_each_entry(head, &disp->heads, head) { in nv50_disp_super_1()
1360 list_for_each_entry(head, &disp->heads, head) { in nv50_disp_super()
1369 list_for_each_entry(head, &disp->heads, head) { in nv50_disp_super()
1375 list_for_each_entry(head, &disp->heads, head) { in nv50_disp_super()
1380 list_for_each_entry(head, &disp->heads, head) { in nv50_disp_super()
1387 list_for_each_entry(head, &disp->heads, head) { in nv50_disp_super()
1511 list_for_each_entry(head, &disp->heads, head) { in nv50_disp_init()
/drivers/gpu/drm/qxl/
Dqxl_display.c60 heads, count), GFP_KERNEL); in qxl_alloc_client_monitors_config()
110 &qdev->rom->client_monitors_config.heads[i]; in qxl_display_copy_rom_client_monitors_config()
112 &qdev->client_monitors_config->heads[i]; in qxl_display_copy_rom_client_monitors_config()
158 head = &qdev->client_monitors_config->heads[output->index]; in qxl_update_offset_props()
268 head = &qdev->client_monitors_config->heads[h]; in qxl_add_monitors_config_modes()
305 struct qxl_head *head = &qdev->monitors_config->heads[i]; in qxl_send_monitors_config()
362 if (head.width == qdev->monitors_config->heads[i].width && in qxl_crtc_update_monitors_config()
363 head.height == qdev->monitors_config->heads[i].height && in qxl_crtc_update_monitors_config()
364 head.x == qdev->monitors_config->heads[i].x && in qxl_crtc_update_monitors_config()
365 head.y == qdev->monitors_config->heads[i].y && in qxl_crtc_update_monitors_config()
[all …]
/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()
/drivers/vhost/
Dnet.c368 if (vq->heads[i].len == VHOST_DMA_FAILED_LEN) in vhost_zerocopy_signal_used()
370 if (VHOST_DMA_IS_DONE(vq->heads[i].len)) { in vhost_zerocopy_signal_used()
371 vq->heads[i].len = VHOST_DMA_CLEAR_LEN; in vhost_zerocopy_signal_used()
379 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
396 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback()
458 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used()
851 vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head); in handle_tx_copy()
852 vq->heads[nvq->done_idx].len = 0; in handle_tx_copy()
910 vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head); in handle_tx_zerocopy()
911 vq->heads[nvq->upend_idx].len = VHOST_DMA_IN_PROGRESS; in handle_tx_zerocopy()
[all …]
Dvhost.h129 struct vring_used_elem *heads; member
214 int vhost_add_used_n(struct vhost_virtqueue *, struct vring_used_elem *heads,
219 struct vring_used_elem *heads, unsigned count);
Dvhost.c434 kfree(vq->heads); in vhost_vq_free_iovecs()
435 vq->heads = NULL; in vhost_vq_free_iovecs()
451 vq->heads = kmalloc_array(dev->iov_limit, sizeof(*vq->heads), in vhost_dev_alloc_iovecs()
453 if (!vq->indirect || !vq->log || !vq->heads) in vhost_dev_alloc_iovecs()
543 vq->heads = NULL; in vhost_dev_init()
2668 struct vring_used_elem heads = { in vhost_add_used() local
2673 return vhost_add_used_n(vq, &heads, 1); in vhost_add_used()
2678 struct vring_used_elem *heads, in __vhost_add_used_n() argument
2687 if (vhost_put_used(vq, heads, start, count)) { in __vhost_add_used_n()
2711 int vhost_add_used_n(struct vhost_virtqueue *vq, struct vring_used_elem *heads, in vhost_add_used_n() argument
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dmemx.c129 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/scsi/aic7xxx/
Daiclib.h122 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/block/
Damiflop.c179 unsigned int heads; /* number of heads */ member
1188 if (hdr.track != unit[drive].track/unit[drive].type->heads) { in dos_read()
1191 unit[drive].track/unit[drive].type->heads); in dos_read()
1195 if (hdr.side != unit[drive].track%unit[drive].type->heads) { in dos_read()
1198 unit[drive].track%unit[drive].type->heads); in dos_read()
1288 hdr.track=unit[drive].track/unit[drive].type->heads; in ms_putsec()
1289 hdr.side=unit[drive].track%unit[drive].type->heads; in ms_putsec()
1529 geo->heads = unit[drive].type->heads; in fd_getgeo()
1562 if (param < p->type->tracks * p->type->heads) in fd_locked_ioctl()
1583 getprm.head=p->type->heads; in fd_locked_ioctl()
[all …]
/drivers/gpu/drm/nouveau/dispnv50/
Dwndw.h38 const u32 *format, u32 heads,
112 enum drm_plane_type type, int index, s32 oclass, u32 heads,
/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()
/drivers/scsi/aacraid/
Dlinit.c308 param->heads = 255; in aac_biosparm()
311 param->heads = 128; in aac_biosparm()
315 param->heads = 64; in aac_biosparm()
319 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm()
342 param->heads = 64; in aac_biosparm()
346 param->heads = 128; in aac_biosparm()
350 param->heads = 255; in aac_biosparm()
362 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm()
366 param->heads, param->sectors, num)); in aac_biosparm()
372 param->heads, param->sectors)); in aac_biosparm()
/drivers/gpu/drm/nouveau/
Dnouveau_bios.c1386 int heads, int or) in fabricate_dcb_output() argument
1392 entry->heads = heads; in fabricate_dcb_output()
1407 entry->heads = (conn >> 8) & 0xf; in parse_dcb20_entry()
1541 entry->hashm = (entry->heads << 8) | (link << 6) | entry->or; in parse_dcb20_entry()
1574 entry->heads = ((conn & 0x001c0000) >> 18) + 1; in parse_dcb15_entry()
1575 entry->or = entry->heads; /* same as heads, hopefully safe enough */ in parse_dcb15_entry()
1628 ient->heads |= jent->heads; in merge_like_dcb_entries()
/drivers/memstick/core/
Dmspro_block.c127 __be16 heads; member
145 unsigned short heads; member
197 geo->heads = msb->heads; in mspro_block_bd_getgeo()
411 rc += sysfs_emit_at(buffer, rc, "heads: %x\n", be16_to_cpu(x_devinfo->heads)); in mspro_block_attr_show_devinfo()
1125 msb->heads = be16_to_cpu(dev_info->heads); in mspro_block_init_disk()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Ddcb.h22 uint8_t heads; member

1234