/linux-6.1.9/drivers/mtd/nand/raw/ |
D | nandsim.c | 189 #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-6.1.9/drivers/scsi/ |
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()
|
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()
|
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()
|
D | aha1542.c | 994 struct block_device *bdev, sector_t capacity, int geom[]) in aha1542_biosparam() argument 1001 geom[0] = 255; /* heads */ in aha1542_biosparam() 1002 geom[1] = 63; /* sectors */ in aha1542_biosparam() 1004 geom[0] = 64; /* heads */ in aha1542_biosparam() 1005 geom[1] = 32; /* sectors */ in aha1542_biosparam() 1007 geom[2] = sector_div(capacity, geom[0] * geom[1]); /* cylinders */ in aha1542_biosparam()
|
D | megaraid.c | 2788 sector_t capacity, int geom[]) in megaraid_biosparam() argument 2815 geom[0] = heads; in megaraid_biosparam() 2816 geom[1] = sectors; in megaraid_biosparam() 2817 geom[2] = cylinders; in megaraid_biosparam() 2820 if (scsi_partsize(bdev, capacity, geom)) in megaraid_biosparam() 2840 geom[0] = heads; in megaraid_biosparam() 2841 geom[1] = sectors; in megaraid_biosparam() 2842 geom[2] = cylinders; in megaraid_biosparam()
|
D | 3w-sas.c | 1406 …_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) in twl_scsi_biosparam() argument 1418 geom[0] = heads; in twl_scsi_biosparam() 1419 geom[1] = sectors; in twl_scsi_biosparam() 1420 geom[2] = sector_div(capacity, heads * sectors); /* cylinders */ in twl_scsi_biosparam()
|
D | stex.c | 1457 struct block_device *bdev, sector_t capacity, int geom[]) in stex_biosparam() argument 1468 geom[0] = heads; in stex_biosparam() 1469 geom[1] = sectors; in stex_biosparam() 1470 geom[2] = capacity; in stex_biosparam()
|
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()
|
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()
|
D | myrb.c | 1751 sector_t capacity, int geom[]) in myrb_biosparam() argument 1755 geom[0] = cb->ldev_geom_heads; in myrb_biosparam() 1756 geom[1] = cb->ldev_geom_sectors; in myrb_biosparam() 1757 geom[2] = sector_div(capacity, geom[0] * geom[1]); in myrb_biosparam()
|
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()
|
D | qla1280.c | 1025 sector_t capacity, int geom[]) in qla1280_biosparam() argument 1040 geom[0] = heads; in qla1280_biosparam() 1041 geom[1] = sectors; in qla1280_biosparam() 1042 geom[2] = cylinders; in qla1280_biosparam()
|
/linux-6.1.9/drivers/gpu/drm/omapdrm/ |
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() 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-6.1.9/include/scsi/ |
D | scsicam.h | 17 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]);
|
/linux-6.1.9/drivers/md/ |
D | raid10.h | 35 struct geom { struct
|
D | raid10.c | 589 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() 654 struct geom *geo = &conf->geo; in raid10_find_phys() 673 struct geom *geo = &conf->geo; in raid10_find_virt() 745 struct geom *geo = &conf->geo; in read_balance() 1648 struct geom *geo = &conf->geo; in raid10_handle_discard() 3951 static int setup_geo(struct geom *geo, struct mddev *mddev, enum geo_type new) in setup_geo() 4011 struct geom geo; in setup_conf() 4438 struct geom geo; in raid10_check_reshape() 4543 struct geom new; in raid10_start_reshape() 4721 static sector_t last_dev_address(sector_t s, struct geom *geo) in last_dev_address() [all …]
|
/linux-6.1.9/drivers/block/ |
D | sunvdc.c | 808 struct vio_disk_geom geom; in probe_disk() local 811 &geom, sizeof(geom)); in probe_disk() 817 port->vdisk_size = ((u64)geom.num_cyl * in probe_disk() 818 (u64)geom.num_hd * in probe_disk() 819 (u64)geom.num_sec); in probe_disk()
|
/linux-6.1.9/drivers/message/fusion/ |
D | mptscsih.h | 125 …ih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);
|
D | mptscsih.c | 2086 sector_t capacity, int geom[]) in mptscsih_bios_param() argument 2113 geom[0] = heads; in mptscsih_bios_param() 2114 geom[1] = sectors; in mptscsih_bios_param() 2115 geom[2] = cylinders; in mptscsih_bios_param()
|
/linux-6.1.9/drivers/scsi/aic7xxx/ |
D | aic7xxx_osm.c | 686 sector_t capacity, int geom[]) in ahc_linux_biosparam() argument 698 if (scsi_partsize(bdev, capacity, geom)) in ahc_linux_biosparam() 716 geom[0] = heads; in ahc_linux_biosparam() 717 geom[1] = sectors; in ahc_linux_biosparam() 718 geom[2] = cylinders; in ahc_linux_biosparam()
|
D | aic79xx_osm.c | 719 sector_t capacity, int geom[]) in ahd_linux_biosparam() argument 729 if (scsi_partsize(bdev, capacity, geom)) in ahd_linux_biosparam() 745 geom[0] = heads; in ahd_linux_biosparam() 746 geom[1] = sectors; in ahd_linux_biosparam() 747 geom[2] = cylinders; in ahd_linux_biosparam()
|
/linux-6.1.9/fs/btrfs/ |
D | compression.c | 339 struct btrfs_io_geometry geom; in alloc_compressed_bio() local 356 ret = btrfs_get_io_geometry(fs_info, em, btrfs_op(bio), disk_bytenr, &geom); in alloc_compressed_bio() 362 *next_stripe_start = disk_bytenr + geom.len; in alloc_compressed_bio()
|
/linux-6.1.9/Documentation/userspace-api/ioctl/ |
D | hdio.rst | 59 struct hd_geometry geom; 61 ioctl(fd, HDIO_GETGEO, &geom);
|
/linux-6.1.9/drivers/ata/ |
D | libata-scsi.c | 271 sector_t capacity, int geom[]) in ata_std_bios_param() argument 273 geom[0] = 255; in ata_std_bios_param() 274 geom[1] = 63; in ata_std_bios_param() 276 geom[2] = capacity; in ata_std_bios_param()
|