| /linux/drivers/mtd/nand/raw/ |
| A D | nandsim.c | 331 } geom; member 659 ns->geom.pgszoob = ns->geom.pgsz + ns->geom.oobsz; in ns_init() 660 ns->geom.pgnum = div_u64(ns->geom.totsz, ns->geom.pgsz); in ns_init() 661 ns->geom.totszoob = ns->geom.totsz + (uint64_t)ns->geom.pgnum * ns->geom.oobsz; in ns_init() 662 ns->geom.secshift = ffs(ns->geom.secsz) - 1; in ns_init() 664 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in ns_init() 665 ns->geom.secszoob = ns->geom.secsz + ns->geom.oobsz * ns->geom.pgsec; in ns_init() 769 ns->geom.pgszoob); in ns_init() 1142 if (ns->regs.count < (ns->geom.pgaddrbytes - ns->geom.secaddrbytes)) in ns_accept_addr_byte() 1625 if (ns->regs.row >= ns->geom.pgnum - ns->geom.pgsec in ns_do_state_action() [all …]
|
| /linux/drivers/scsi/ |
| A D | fdomain.c | 473 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()
|
| A D | scsicam.c | 60 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()
|
| A D | aha1542.c | 995 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()
|
| A D | wd719x.c | 548 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()
|
| A D | megaraid.c | 2784 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()
|
| A D | 3w-sas.c | 1407 …_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()
|
| A D | 3w-xxxx.c | 1344 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()
|
| A D | stex.c | 1460 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()
|
| A D | 3w-9xxx.c | 1698 …_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()
|
| A D | myrb.c | 1750 sector_t capacity, int geom[]) in myrb_biosparam() argument 1754 geom[0] = cb->ldev_geom_heads; in myrb_biosparam() 1755 geom[1] = cb->ldev_geom_sectors; in myrb_biosparam() 1756 geom[2] = sector_div(capacity, geom[0] * geom[1]); in myrb_biosparam()
|
| A D | mvumi.c | 2145 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()
|
| A D | qla1280.c | 1027 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/ |
| A D | omap_dmm_tiler.c | 60 } 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() 640 alignment = geom[fmt].x_shft + geom[fmt].y_shft; in tiler_get_address() 683 (p->x * geom[block->fmt].slot_w) + x, in tiler_tsptr() 684 (p->y * geom[block->fmt].slot_h) + y); in tiler_tsptr() 690 *w = round_up(*w, geom[fmt].slot_w); in tiler_align() 691 *h = round_up(*h, geom[fmt].slot_h); in tiler_align() [all …]
|
| /linux/include/scsi/ |
| A D | scsicam.h | 17 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]);
|
| /linux/drivers/md/ |
| A D | raid10.h | 35 struct geom { struct
|
| A D | raid10.c | 582 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() 647 struct geom *geo = &conf->geo; in raid10_find_phys() 666 struct geom *geo = &conf->geo; in raid10_find_virt() 738 struct geom *geo = &conf->geo; in read_balance() 1584 struct geom *geo = &conf->geo; in raid10_handle_discard() 3811 static int setup_geo(struct geom *geo, struct mddev *mddev, enum geo_type new) in setup_geo() 3885 struct geom geo; in setup_conf() 4306 struct geom geo; in raid10_check_reshape() 4409 struct geom new; in raid10_start_reshape() 4579 static sector_t last_dev_address(sector_t s, struct geom *geo) in last_dev_address() [all …]
|
| /linux/drivers/block/ |
| A D | sunvdc.c | 817 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/ |
| A D | mptscsih.h | 126 …ih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);
|
| A D | mptscsih.c | 2137 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/ |
| A D | aic7xxx_osm.c | 687 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()
|
| A D | aic79xx_osm.c | 724 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/Documentation/userspace-api/ioctl/ |
| A D | hdio.rst | 59 struct hd_geometry geom; 61 ioctl(fd, HDIO_GETGEO, &geom);
|
| /linux/drivers/ata/ |
| A D | libata-scsi.c | 366 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/ |
| A D | linit.c | 296 sector_t capacity, int *geom) in aac_biosparm() argument 298 struct diskparm *param = (struct diskparm *)geom; in aac_biosparm()
|