/linux-4.1.27/drivers/mtd/nand/ |
H A D | nandsim.c | 203 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0) 213 (((ns)->regs.row * (ns)->geom.pgszoob) + (ns)->regs.column) 216 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) 345 } geom; member in struct:nandsim 591 ns->pages_written = vzalloc(BITS_TO_LONGS(ns->geom.pgnum) * alloc_device() 598 ns->file_buf = kmalloc(ns->geom.pgszoob, GFP_KERNEL); alloc_device() 608 ns->pages = vmalloc(ns->geom.pgnum * sizeof(union ns_mem)); alloc_device() 613 for (i = 0; i < ns->geom.pgnum; i++) { alloc_device() 617 ns->geom.pgszoob, 0, 0, NULL); alloc_device() 647 for (i = 0; i < ns->geom.pgnum; i++) { free_device() 685 ns->geom.totsz = mtd->size; init_nandsim() 686 ns->geom.pgsz = mtd->writesize; init_nandsim() 687 ns->geom.oobsz = mtd->oobsize; init_nandsim() 688 ns->geom.secsz = mtd->erasesize; init_nandsim() 689 ns->geom.pgszoob = ns->geom.pgsz + ns->geom.oobsz; init_nandsim() 690 ns->geom.pgnum = div_u64(ns->geom.totsz, ns->geom.pgsz); init_nandsim() 691 ns->geom.totszoob = ns->geom.totsz + (uint64_t)ns->geom.pgnum * ns->geom.oobsz; init_nandsim() 692 ns->geom.secshift = ffs(ns->geom.secsz) - 1; init_nandsim() 693 ns->geom.pgshift = chip->page_shift; init_nandsim() 694 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; init_nandsim() 695 ns->geom.secszoob = ns->geom.secsz + ns->geom.oobsz * ns->geom.pgsec; init_nandsim() 698 if (ns->geom.pgsz == 512) { init_nandsim() 702 } else if (ns->geom.pgsz == 2048) { init_nandsim() 704 } else if (ns->geom.pgsz == 4096) { init_nandsim() 707 NS_ERR("init_nandsim: unknown page size %u\n", ns->geom.pgsz); init_nandsim() 712 if (ns->geom.totsz <= (32 << 20)) { init_nandsim() 713 ns->geom.pgaddrbytes = 3; init_nandsim() 714 ns->geom.secaddrbytes = 2; init_nandsim() 716 ns->geom.pgaddrbytes = 4; init_nandsim() 717 ns->geom.secaddrbytes = 3; init_nandsim() 720 if (ns->geom.totsz <= (128 << 20)) { init_nandsim() 721 ns->geom.pgaddrbytes = 4; init_nandsim() 722 ns->geom.secaddrbytes = 2; init_nandsim() 724 ns->geom.pgaddrbytes = 5; init_nandsim() 725 ns->geom.secaddrbytes = 3; init_nandsim() 735 remains = ns->geom.totsz; init_nandsim() 738 uint64_t part_sz = (uint64_t)parts[i] * ns->geom.secsz; init_nandsim() 768 (unsigned long long)ns->geom.totsz >> 20); init_nandsim() 769 printk("page size: %u bytes\n", ns->geom.pgsz); init_nandsim() 770 printk("OOB area size: %u bytes\n", ns->geom.oobsz); init_nandsim() 771 printk("sector size: %u KiB\n", ns->geom.secsz >> 10); init_nandsim() 772 printk("pages number: %u\n", ns->geom.pgnum); init_nandsim() 773 printk("pages per sector: %u\n", ns->geom.pgsec); init_nandsim() 775 printk("bits in sector size: %u\n", ns->geom.secshift); init_nandsim() 776 printk("bits in page size: %u\n", ns->geom.pgshift); init_nandsim() 777 printk("bits in OOB size: %u\n", ffs(ns->geom.oobsz) - 1); init_nandsim() 779 (unsigned long long)ns->geom.totszoob >> 10); init_nandsim() 780 printk("page address bytes: %u\n", ns->geom.pgaddrbytes); init_nandsim() 781 printk("sector address bytes: %u\n", ns->geom.secaddrbytes); init_nandsim() 788 ns->buf.byte = kmalloc(ns->geom.pgszoob, GFP_KERNEL); init_nandsim() 791 ns->geom.pgszoob); init_nandsim() 795 memset(ns->buf.byte, 0xFF, ns->geom.pgszoob); init_nandsim() 833 offset = (loff_t)erase_block_no * ns->geom.secsz; parse_badblocks() 1181 if (ns->regs.count < (ns->geom.pgaddrbytes - ns->geom.secaddrbytes)) accept_addr_byte() 1185 ns->geom.pgaddrbytes + accept_addr_byte() 1186 ns->geom.secaddrbytes)); accept_addr_byte() 1519 for (i = 0; i < ns->geom.pgsec; i++) erase_sector() 1528 for (i = 0; i < ns->geom.pgsec; i++) { erase_sector() 1557 memset(ns->file_buf, 0xff, ns->geom.pgszoob); prog_page() 1569 loff_t pos = (loff_t)ns->regs.row * ns->geom.pgszoob; prog_page() 1570 tx = write_file(ns, ns->cfile, ns->file_buf, ns->geom.pgszoob, pos); prog_page() 1571 if (tx != ns->geom.pgszoob) { prog_page() 1600 memset(mypage->byte, 0xFF, ns->geom.pgszoob); prog_page() 1624 if (action != ACTION_SECERASE && ns->regs.row >= ns->geom.pgnum) { do_state_action() 1637 if (ns->regs.column >= (ns->geom.pgszoob - ns->regs.off)) { do_state_action() 1641 num = ns->geom.pgszoob - ns->regs.off - ns->regs.column; do_state_action() 1649 else if (ns->regs.off < ns->geom.pgsz) do_state_action() 1655 NS_UDELAY(input_cycle * ns->geom.pgsz / 1000 / busdiv); do_state_action() 1669 if (ns->regs.row >= ns->geom.pgnum - ns->geom.pgsec do_state_action() 1670 || (ns->regs.row & ~(ns->geom.secsz - 1))) { do_state_action() 1676 8 * (ns->geom.pgaddrbytes - ns->geom.secaddrbytes)) | ns->regs.column; do_state_action() 1679 erase_block_no = ns->regs.row >> (ns->geom.secshift - ns->geom.pgshift); do_state_action() 1709 num = ns->geom.pgszoob - ns->regs.off - ns->regs.column; do_state_action() 1726 NS_UDELAY(output_cycle * ns->geom.pgsz / 1000 / busdiv); do_state_action() 1746 NS_DBG("do_state_action: set internal offset to %d\n", ns->geom.pgsz/2); do_state_action() 1747 ns->regs.off = ns->geom.pgsz/2; do_state_action() 1751 NS_DBG("do_state_action: set internal offset to %d\n", ns->geom.pgsz); do_state_action() 1752 ns->regs.off = ns->geom.pgsz; do_state_action() 1856 ns->regs.num = ns->geom.pgszoob - ns->regs.off - ns->regs.column; switch_state() 1860 ns->regs.num = ns->geom.idbytes; switch_state() 1881 ns->regs.num = ns->geom.pgaddrbytes; switch_state() 1885 ns->regs.num = ns->geom.secaddrbytes; switch_state() 1894 ns->regs.num = ns->geom.pgaddrbytes - ns->geom.secaddrbytes; switch_state() 2052 ns->regs.num = ns->geom.pgaddrbytes; ns_nand_write_byte() 2055 ns->regs.num = ns->geom.secaddrbytes; ns_nand_write_byte() 2282 nand->geom.idbytes = 8; ns_init_module() 2284 nand->geom.idbytes = 6; ns_init_module() 2286 nand->geom.idbytes = 4; ns_init_module() 2288 nand->geom.idbytes = 2; ns_init_module()
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
H A D | omap_dmm_tiler.c | 65 } geom[TILFMT_NFORMATS] = { variable in typeref:struct:__anon4308 369 w = DIV_ROUND_UP(w, geom[fmt].slot_w); tiler_reserve_2d() 370 h = DIV_ROUND_UP(h, geom[fmt].slot_h); tiler_reserve_2d() 373 min_align = max(min_align, (geom[fmt].slot_w * geom[fmt].cpp)); tiler_reserve_2d() 375 align /= geom[fmt].slot_w * geom[fmt].cpp; tiler_reserve_2d() 461 x_bits = CONT_WIDTH_BITS - geom[fmt].x_shft; tiler_get_address() 462 y_bits = CONT_HEIGHT_BITS - geom[fmt].y_shft; tiler_get_address() 463 alignment = geom[fmt].x_shft + geom[fmt].y_shft; tiler_get_address() 495 block->area.p0.x * geom[block->fmt].slot_w, tiler_ssptr() 496 block->area.p0.y * geom[block->fmt].slot_h); tiler_ssptr() 506 (p->x * geom[block->fmt].slot_w) + x, tiler_tsptr() 507 (p->y * geom[block->fmt].slot_h) + y); tiler_tsptr() 513 *w = round_up(*w, geom[fmt].slot_w); tiler_align() 514 *h = round_up(*h, geom[fmt].slot_h); tiler_align() 522 return 1 << (CONT_HEIGHT_BITS + geom[fmt].x_shft); tiler_stride() 524 return 1 << (CONT_WIDTH_BITS + geom[fmt].y_shft); tiler_stride() 530 return geom[fmt].cpp * w * h; tiler_size() 536 return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h; tiler_vsize()
|
/linux-4.1.27/drivers/scsi/ |
H A D | wd719x.c | 539 sector_t capacity, int geom[]) wd719x_biosparam() 542 geom[0] = 255; /* heads */ wd719x_biosparam() 543 geom[1] = 63; /* sectors */ wd719x_biosparam() 545 geom[0] = 64; /* heads */ wd719x_biosparam() 546 geom[1] = 32; /* sectors */ wd719x_biosparam() 548 geom[2] = sector_div(capacity, geom[0] * geom[1]); /* cylinders */ wd719x_biosparam() 538 wd719x_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) wd719x_biosparam() argument
|
H A D | aha1542.c | 922 struct block_device *bdev, sector_t capacity, int geom[]) aha1542_biosparam() 929 geom[0] = 255; /* heads */ aha1542_biosparam() 930 geom[1] = 63; /* sectors */ aha1542_biosparam() 932 geom[0] = 64; /* heads */ aha1542_biosparam() 933 geom[1] = 32; /* sectors */ aha1542_biosparam() 935 geom[2] = sector_div(capacity, geom[0] * geom[1]); /* cylinders */ aha1542_biosparam() 921 aha1542_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) aha1542_biosparam() argument
|
H A D | dpti.h | 40 sector_t, int geom[]);
|
H A D | stex.c | 1349 struct block_device *bdev, sector_t capacity, int geom[]) stex_biosparam() 1360 geom[0] = heads; stex_biosparam() 1361 geom[1] = sectors; stex_biosparam() 1362 geom[2] = capacity; stex_biosparam() 1348 stex_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) stex_biosparam() argument
|
H A D | megaraid.c | 2833 sector_t capacity, int geom[]) megaraid_biosparam() 2862 geom[0] = heads; megaraid_biosparam() 2863 geom[1] = sectors; megaraid_biosparam() 2864 geom[2] = cylinders; megaraid_biosparam() 2871 &geom[2], &geom[0], &geom[1]); megaraid_biosparam() 2894 geom[0] = heads; megaraid_biosparam() 2895 geom[1] = sectors; megaraid_biosparam() 2896 geom[2] = cylinders; megaraid_biosparam() 2832 megaraid_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) megaraid_biosparam() argument
|
H A D | mvumi.c | 2196 sector_t capacity, int geom[]) mvumi_bios_param() 2215 geom[0] = heads; mvumi_bios_param() 2216 geom[1] = sectors; mvumi_bios_param() 2217 geom[2] = cylinders; mvumi_bios_param() 2195 mvumi_bios_param(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) mvumi_bios_param() argument
|
H A D | 3w-9xxx.c | 1696 static int twa_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) twa_scsi_biosparam() argument 1713 geom[0] = heads; twa_scsi_biosparam() 1714 geom[1] = sectors; twa_scsi_biosparam() 1715 geom[2] = cylinders; twa_scsi_biosparam()
|
H A D | 3w-sas.c | 1411 static int twl_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) twl_scsi_biosparam() argument 1426 geom[0] = heads; twl_scsi_biosparam() 1427 geom[1] = sectors; twl_scsi_biosparam() 1428 geom[2] = sector_div(capacity, heads * sectors); /* cylinders */ twl_scsi_biosparam()
|
H A D | dpt_i2o.c | 484 sector_t capacity, int geom[]) adpt_bios_param() 526 geom[0] = heads; adpt_bios_param() 527 geom[1] = sectors; adpt_bios_param() 528 geom[2] = cylinders; adpt_bios_param() 483 adpt_bios_param(struct scsi_device *sdev, struct block_device *dev, sector_t capacity, int geom[]) adpt_bios_param() argument
|
H A D | 3w-xxxx.c | 1331 sector_t capacity, int geom[]) tw_scsi_biosparam() 1350 geom[0] = heads; tw_scsi_biosparam() 1351 geom[1] = sectors; tw_scsi_biosparam() 1352 geom[2] = cylinders; tw_scsi_biosparam() 1330 tw_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) tw_scsi_biosparam() argument
|
H A D | qla1280.c | 1063 sector_t capacity, int geom[]) qla1280_biosparam() 1078 geom[0] = heads; qla1280_biosparam() 1079 geom[1] = sectors; qla1280_biosparam() 1080 geom[2] = cylinders; qla1280_biosparam() 1062 qla1280_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) qla1280_biosparam() argument
|
H A D | ips.h | 420 sector_t capacity, int geom[]);
|
H A D | ips.c | 1153 sector_t capacity, int geom[]) ips_biosparam() 1186 geom[0] = heads; ips_biosparam() 1187 geom[1] = sectors; ips_biosparam() 1188 geom[2] = cylinders; ips_biosparam() 1152 ips_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) ips_biosparam() argument
|
H A D | dc395x.c | 1181 geom[0] = heads; dc395x_bios_param() 1182 geom[1] = sectors; dc395x_bios_param() 1183 geom[2] = cylinders; dc395x_bios_param()
|
/linux-4.1.27/drivers/md/ |
H A D | raid10.h | 21 struct geom { struct in struct:r10conf
|
H A D | raid10.c | 552 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) __raid10_find_phys() 617 struct geom *geo = &conf->geo; raid10_find_phys() 636 struct geom *geo = &conf->geo; raid10_find_virt() 694 struct geom *geo = &conf->geo; raid10_mergeable_bvec() 793 struct geom *geo = &conf->geo; read_balance() 3467 static int setup_geo(struct geom *geo, struct mddev *mddev, enum geo_type new) setup_geo() 3512 struct geom geo; setup_conf() 3946 struct geom geo; raid10_check_reshape() 4052 struct geom new; raid10_start_reshape() 4196 static sector_t last_dev_address(sector_t s, struct geom *geo) last_dev_address() 4211 static sector_t first_dev_address(sector_t s, struct geom *geo) first_dev_address()
|
/linux-4.1.27/drivers/block/ |
H A D | sunvdc.c | 764 struct vio_disk_geom geom; probe_disk() local 767 &geom, sizeof(geom)); probe_disk() 773 port->vdisk_size = ((u64)geom.num_cyl * probe_disk() 774 (u64)geom.num_hd * probe_disk() 775 (u64)geom.num_sec); probe_disk()
|
/linux-4.1.27/include/linux/ |
H A D | genhd.h | 45 DM6_AUX1PARTITION = 0x51, /* no DDO: use xlated geom */ 46 DM6_AUX3PARTITION = 0x53, /* no DDO: use xlated geom */ 47 DM6_PARTITION = 0x54, /* has DDO: use xlated geom & offset */
|
H A D | libata.h | 1204 sector_t capacity, int geom[]);
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_fb.c | 145 DRM_ERROR("Requested geom can not fit in framebuffer\n"); vmw_fb_check_var() 152 DRM_ERROR("Requested geom can not fit in framebuffer\n"); vmw_fb_check_var()
|
/linux-4.1.27/drivers/message/fusion/ |
H A D | mptscsih.h | 125 extern int mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);
|
H A D | mptscsih.c | 2091 sector_t capacity, int geom[]) mptscsih_bios_param() 2118 geom[0] = heads; mptscsih_bios_param() 2119 geom[1] = sectors; mptscsih_bios_param() 2120 geom[2] = cylinders; mptscsih_bios_param() 2090 mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]) mptscsih_bios_param() argument
|
/linux-4.1.27/drivers/iommu/ |
H A D | fsl_pamu_domain.c | 71 struct iommu_domain_geometry *geom; get_phys_addr() local 73 geom = &dma_domain->iommu_domain.geometry; get_phys_addr() 87 wnd = (subwin_iova - geom->aperture_start) >> ilog2(subwin_size); get_phys_addr()
|
/linux-4.1.27/drivers/scsi/aic7xxx/ |
H A D | aic7xxx_osm.c | 696 sector_t capacity, int geom[]) ahc_linux_biosparam() 713 &geom[2], &geom[0], &geom[1]); ahc_linux_biosparam() 733 geom[0] = heads; ahc_linux_biosparam() 734 geom[1] = sectors; ahc_linux_biosparam() 735 geom[2] = cylinders; ahc_linux_biosparam() 695 ahc_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) ahc_linux_biosparam() argument
|
H A D | aic79xx_osm.c | 724 sector_t capacity, int geom[]) ahd_linux_biosparam() 739 &geom[2], &geom[0], &geom[1]); ahd_linux_biosparam() 757 geom[0] = heads; ahd_linux_biosparam() 758 geom[1] = sectors; ahd_linux_biosparam() 759 geom[2] = cylinders; ahd_linux_biosparam() 723 ahd_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) ahd_linux_biosparam() argument
|
/linux-4.1.27/drivers/scsi/aacraid/ |
H A D | linit.c | 293 * @geom: geometry block to fill in 311 sector_t capacity, int *geom) aac_biosparm() 313 struct diskparm *param = (struct diskparm *)geom; aac_biosparm() 310 aac_biosparm(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *geom) aac_biosparm() argument
|
/linux-4.1.27/drivers/scsi/arcmsr/ |
H A D | arcmsr_hba.c | 311 struct block_device *bdev, sector_t capacity, int *geom) arcmsr_bios_param() 318 ret = scsi_partsize(buffer, capacity, &geom[2], &geom[0], &geom[1]); arcmsr_bios_param() 332 geom[0] = heads; arcmsr_bios_param() 333 geom[1] = sectors; arcmsr_bios_param() 334 geom[2] = cylinders; arcmsr_bios_param() 310 arcmsr_bios_param(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *geom) arcmsr_bios_param() argument
|
/linux-4.1.27/drivers/ata/ |
H A D | libata-scsi.c | 379 * @geom: location to which geometry will be output 393 sector_t capacity, int geom[]) ata_std_bios_param() 395 geom[0] = 255; ata_std_bios_param() 396 geom[1] = 63; ata_std_bios_param() 398 geom[2] = capacity; ata_std_bios_param() 392 ata_std_bios_param(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) ata_std_bios_param() argument
|
/linux-4.1.27/drivers/scsi/megaraid/ |
H A D | megaraid_sas_base.c | 2544 * @geom: geometry parameters 2548 sector_t capacity, int geom[]) megasas_bios_param() 2575 geom[0] = heads; megasas_bios_param() 2576 geom[1] = sectors; megasas_bios_param() 2577 geom[2] = cylinders; megasas_bios_param() 2547 megasas_bios_param(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) megasas_bios_param() argument
|