Home
last modified time | relevance | path

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

12

/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
557 BITS_TO_LONGS(ns->geom.pgnum))); in ns_alloc_device()
563 ns->file_buf = kmalloc(ns->geom.pgszoob, GFP_KERNEL); in ns_alloc_device()
581 ns->pages = vmalloc(array_size(sizeof(union ns_mem), ns->geom.pgnum)); in ns_alloc_device()
586 for (i = 0; i < ns->geom.pgnum; i++) { in ns_alloc_device()
590 ns->geom.pgszoob, 0, 0, NULL); in ns_alloc_device()
620 for (i = 0; i < ns->geom.pgnum; i++) { in ns_free_device()
[all …]
/linux/drivers/scsi/
H A Dfdomain.c473 int geom[]) in fdomain_biosparam() argument
479 geom[0] = p[5] + 1; /* heads */ in fdomain_biosparam()
480 geom[1] = p[6] & 0x3f; /* sectors */ in fdomain_biosparam()
483 geom[0] = 255; /* heads */ in fdomain_biosparam()
484 geom[1] = 63; /* sectors */ in fdomain_biosparam()
486 geom[0] = 128; /* heads */ in fdomain_biosparam()
487 geom[1] = 63; /* sectors */ in fdomain_biosparam()
489 geom[0] = 64; /* heads */ in fdomain_biosparam()
490 geom[1] = 32; /* sectors */ in fdomain_biosparam()
493 geom[2] = sector_div(capacity, geom[0] * geom[1]); in fdomain_biosparam()
H A Dscsicam.c60 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]) in scsi_partsize()
122 geom[0] = end_head + 1; in scsi_partsize()
123 geom[1] = end_sector; in scsi_partsize()
124 geom[2] = (unsigned long)capacity / in scsi_partsize()
H A Dwd719x.c548 sector_t capacity, int geom[]) in wd719x_biosparam() argument
551 geom[0] = 255; /* heads */ in wd719x_biosparam()
552 geom[1] = 63; /* sectors */ in wd719x_biosparam()
554 geom[0] = 64; /* heads */ in wd719x_biosparam()
555 geom[1] = 32; /* sectors */ in wd719x_biosparam()
557 geom[2] = sector_div(capacity, geom[0] * geom[1]); /* cylinders */ in wd719x_biosparam()
H A Daha1542.c995 struct block_device *bdev, sector_t capacity, int geom[]) in aha1542_biosparam() argument
1002 geom[0] = 255; /* heads */ in aha1542_biosparam()
1003 geom[1] = 63; /* sectors */ in aha1542_biosparam()
1005 geom[0] = 64; /* heads */ in aha1542_biosparam()
1006 geom[1] = 32; /* sectors */ in aha1542_biosparam()
1008 geom[2] = sector_div(capacity, geom[0] * geom[1]); /* cylinders */ in aha1542_biosparam()
H A Dmegaraid.c2784 sector_t capacity, int geom[]) in megaraid_biosparam() argument
2811 geom[0] = heads; in megaraid_biosparam()
2812 geom[1] = sectors; in megaraid_biosparam()
2813 geom[2] = cylinders; in megaraid_biosparam()
2816 if (scsi_partsize(bdev, capacity, geom)) in megaraid_biosparam()
2836 geom[0] = heads; in megaraid_biosparam()
2837 geom[1] = sectors; in megaraid_biosparam()
2838 geom[2] = cylinders; in megaraid_biosparam()
H A D3w-sas.c1407 …_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, 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 block_device *bdev, 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-xxxx.c1344 sector_t capacity, int geom[]) in tw_scsi_biosparam() argument
1361 geom[0] = heads; in tw_scsi_biosparam()
1362 geom[1] = sectors; in tw_scsi_biosparam()
1363 geom[2] = cylinders; in tw_scsi_biosparam()
H A D3w-9xxx.c1698 …_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, 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.c2146 sector_t capacity, int geom[]) in mvumi_bios_param() argument
2165 geom[0] = heads; in mvumi_bios_param()
2166 geom[1] = sectors; in mvumi_bios_param()
2167 geom[2] = cylinders; in mvumi_bios_param()
H A Dqla1280.c1027 sector_t capacity, int geom[]) in qla1280_biosparam() argument
1042 geom[0] = heads; in qla1280_biosparam()
1043 geom[1] = sectors; in qla1280_biosparam()
1044 geom[2] = cylinders; in qla1280_biosparam()
/linux/drivers/gpu/drm/omapdrm/
H A Domap_dmm_tiler.c60 } geom[TILFMT_NFORMATS] = { variable
544 w = DIV_ROUND_UP(w, geom[fmt].slot_w); in tiler_reserve_2d()
545 h = DIV_ROUND_UP(h, geom[fmt].slot_h); in tiler_reserve_2d()
548 slot_bytes = geom[fmt].slot_w * geom[fmt].cpp; in tiler_reserve_2d()
638 x_bits = CONT_WIDTH_BITS - geom[fmt].x_shft; in tiler_get_address()
639 y_bits = CONT_HEIGHT_BITS - geom[fmt].y_shft; in tiler_get_address()
640 alignment = geom[fmt].x_shft + geom[fmt].y_shft; in tiler_get_address()
672 block->area.p0.x * geom[block->fmt].slot_w, in tiler_ssptr()
673 block->area.p0.y * geom[block->fmt].slot_h); in tiler_ssptr()
683 (p->x * geom[block->fmt].slot_w) + x, in tiler_tsptr()
[all …]
/linux/include/scsi/
H A Dscsicam.h17 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]);
/linux/drivers/block/
H A Dsunvdc.c817 struct vio_disk_geom geom; in probe_disk() local
820 &geom, sizeof(geom)); in probe_disk()
826 port->vdisk_size = ((u64)geom.num_cyl * in probe_disk()
827 (u64)geom.num_hd * in probe_disk()
828 (u64)geom.num_sec); in probe_disk()
/linux/drivers/message/fusion/
H A Dmptscsih.h127 …ih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);
H A Dmptscsih.c2137 sector_t capacity, int geom[]) in mptscsih_bios_param() argument
2164 geom[0] = heads; in mptscsih_bios_param()
2165 geom[1] = sectors; in mptscsih_bios_param()
2166 geom[2] = cylinders; in mptscsih_bios_param()
/linux/drivers/scsi/aic7xxx/
H A Daic7xxx_osm.c687 sector_t capacity, int geom[]) in ahc_linux_biosparam() argument
699 if (scsi_partsize(bdev, 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(bdev, 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.c577 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys()
642 struct geom *geo = &conf->geo; in raid10_find_phys()
661 struct geom *geo = &conf->geo; in raid10_find_virt()
733 struct geom *geo = &conf->geo; in read_balance()
1613 struct geom *geo = &conf->geo; in raid10_handle_discard()
3845 static int setup_geo(struct geom *geo, struct mddev *mddev, enum geo_type new) in setup_geo()
3919 struct geom geo; in setup_conf()
4339 struct geom geo; in raid10_check_reshape()
4442 struct geom new; in raid10_start_reshape()
4612 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/ata/
H A Dlibata-scsi.c366 sector_t capacity, int geom[]) in ata_std_bios_param() argument
368 geom[0] = 255; in ata_std_bios_param()
369 geom[1] = 63; in ata_std_bios_param()
371 geom[2] = capacity; in ata_std_bios_param()
/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/arcmsr/
H A Darcmsr_hba.c380 struct block_device *bdev, sector_t capacity, int *geom) in arcmsr_bios_param() argument
384 if (scsi_partsize(bdev, capacity, geom)) in arcmsr_bios_param()
396 geom[0] = heads; in arcmsr_bios_param()
397 geom[1] = sectors; in arcmsr_bios_param()
398 geom[2] = cylinders; in arcmsr_bios_param()

12