Home
last modified time | relevance | path

Searched refs:geom (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/mtd/nand/raw/
H A Dnandsim.c189 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0)
199 (((ns)->regs.row * (ns)->geom.pgszoob) + (ns)->regs.column)
202 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz)
331 } geom; member
555 ns->pages_written = vcalloc(BITS_TO_LONGS(ns->geom.pgnum), in ns_alloc_device()
562 ns->file_buf = kmalloc(ns->geom.pgszoob, GFP_KERNEL); in ns_alloc_device()
580 ns->pages = vmalloc_array(ns->geom.pgnum, sizeof(union ns_mem)); in ns_alloc_device()
585 for (i = 0; i < ns->geom.pgnum; i++) { in ns_alloc_device()
589 ns->geom.pgszoob, 0, 0, NULL); in ns_alloc_device()
619 for (i = 0; i < ns->geom.pgnum; i++) { in ns_free_device()
[all …]
/linux/drivers/gpu/drm/omapdrm/
H A Domap_dmm_tiler.c62 } geom[TILFMT_NFORMATS] = { variable
546 w = DIV_ROUND_UP(w, geom[fmt].slot_w); in tiler_reserve_2d()
547 h = DIV_ROUND_UP(h, geom[fmt].slot_h); in tiler_reserve_2d()
550 slot_bytes = geom[fmt].slot_w * geom[fmt].cpp; in tiler_reserve_2d()
640 x_bits = CONT_WIDTH_BITS - geom[fmt].x_shft; in tiler_get_address()
641 y_bits = CONT_HEIGHT_BITS - geom[fmt].y_shft; in tiler_get_address()
642 alignment = geom[fmt].x_shft + geom[fmt].y_shft; in tiler_get_address()
674 block->area.p0.x * geom[block->fmt].slot_w, in tiler_ssptr()
675 block->area.p0.y * geom[block->fmt].slot_h); in tiler_ssptr()
685 (p->x * geom[block->fmt].slot_w) + x, in tiler_tsptr()
[all …]
/linux/drivers/block/
H A Dsunvdc.c816 struct vio_disk_geom geom; in probe_disk() local
819 &geom, sizeof(geom)); in probe_disk()
825 port->vdisk_size = ((u64)geom.num_cyl * in probe_disk()
826 (u64)geom.num_hd * in probe_disk()
827 (u64)geom.num_sec); in probe_disk()
/linux/drivers/scsi/
H A Dmegaraid.c2785 sector_t capacity, int geom[]) in megaraid_biosparam() argument
2812 geom[0] = heads; in megaraid_biosparam()
2813 geom[1] = sectors; in megaraid_biosparam()
2814 geom[2] = cylinders; in megaraid_biosparam()
2817 if (scsi_partsize(disk, capacity, geom)) in megaraid_biosparam()
2837 geom[0] = heads; in megaraid_biosparam()
2838 geom[1] = sectors; in megaraid_biosparam()
2839 geom[2] = cylinders; in megaraid_biosparam()
H A D3w-sas.c1407 …twl_scsi_biosparam(struct scsi_device *sdev, struct gendisk *unused, sector_t capacity, int geom[]) in twl_scsi_biosparam() argument
1419 geom[0] = heads; in twl_scsi_biosparam()
1420 geom[1] = sectors; in twl_scsi_biosparam()
1421 geom[2] = sector_div(capacity, heads * sectors); /* cylinders */ in twl_scsi_biosparam()
H A Dstex.c1460 struct gendisk *unused, sector_t capacity, int geom[]) in stex_biosparam() argument
1471 geom[0] = heads; in stex_biosparam()
1472 geom[1] = sectors; in stex_biosparam()
1473 geom[2] = capacity; in stex_biosparam()
H A D3w-9xxx.c1698 …twa_scsi_biosparam(struct scsi_device *sdev, struct gendisk *unused, sector_t capacity, int geom[]) in twa_scsi_biosparam() argument
1712 geom[0] = heads; in twa_scsi_biosparam()
1713 geom[1] = sectors; in twa_scsi_biosparam()
1714 geom[2] = cylinders; in twa_scsi_biosparam()
H A Dmyrb.c1749 sector_t capacity, int geom[]) in myrb_biosparam() argument
1753 geom[0] = cb->ldev_geom_heads; in myrb_biosparam()
1754 geom[1] = cb->ldev_geom_sectors; in myrb_biosparam()
1755 geom[2] = sector_div(capacity, geom[0] * geom[1]); in myrb_biosparam()
H A Dmvumi.c2145 sector_t capacity, int geom[]) in mvumi_bios_param() argument
2164 geom[0] = heads; in mvumi_bios_param()
2165 geom[1] = sectors; in mvumi_bios_param()
2166 geom[2] = cylinders; in mvumi_bios_param()
H A Dips.c1128 sector_t capacity, int geom[]) in DEF_SCSI_QCMD()
1161 geom[0] = heads; in DEF_SCSI_QCMD()
1162 geom[1] = sectors; in DEF_SCSI_QCMD()
1163 geom[2] = cylinders; in DEF_SCSI_QCMD()
/linux/drivers/scsi/aic7xxx/
H A Daic7xxx_osm.c687 sector_t capacity, int geom[]) in ahc_linux_biosparam() argument
699 if (scsi_partsize(disk, capacity, geom)) in ahc_linux_biosparam()
717 geom[0] = heads; in ahc_linux_biosparam()
718 geom[1] = sectors; in ahc_linux_biosparam()
719 geom[2] = cylinders; in ahc_linux_biosparam()
H A Daic79xx_osm.c724 sector_t capacity, int geom[]) in ahd_linux_biosparam() argument
734 if (scsi_partsize(disk, capacity, geom)) in ahd_linux_biosparam()
750 geom[0] = heads; in ahd_linux_biosparam()
751 geom[1] = sectors; in ahd_linux_biosparam()
752 geom[2] = cylinders; in ahd_linux_biosparam()
/linux/drivers/md/
H A Draid10.c581 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys()
646 struct geom *geo = &conf->geo; in raid10_find_phys()
665 struct geom *geo = &conf->geo; in raid10_find_virt()
737 struct geom *geo = &conf->geo; in read_balance()
1605 struct geom *geo = &conf->geo; in raid10_handle_discard()
3763 static int setup_geo(struct geom *geo, struct mddev *mddev, enum geo_type new) in setup_geo()
3837 struct geom geo; in setup_conf()
4259 struct geom geo; in raid10_check_reshape()
4361 struct geom new; in raid10_start_reshape()
4533 static sector_t last_dev_address(sector_t s, struct geom *geo) in last_dev_address()
[all …]
/linux/Documentation/userspace-api/ioctl/
H A Dhdio.rst59 struct hd_geometry geom;
61 ioctl(fd, HDIO_GETGEO, &geom);
/linux/drivers/scsi/aacraid/
H A Dlinit.c296 sector_t capacity, int *geom) in aac_biosparm() argument
298 struct diskparm *param = (struct diskparm *)geom; in aac_biosparm()
/linux/drivers/scsi/megaraid/
H A Dmegaraid_sas_base.c3145 sector_t capacity, int geom[]) in megasas_bios_param() argument
3173 geom[0] = heads; in megasas_bios_param()
3174 geom[1] = sectors; in megasas_bios_param()
3175 geom[2] = cylinders; in megasas_bios_param()