Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/mtd/nand/raw/bcm47xxnflash/
Dops_bcm4706.c384 unsigned long chipsize; /* MiB */ in bcm47xxnflash_ops_bcm4706_init() local
433 chipsize = b47n->nand_chip.chipsize >> 20; in bcm47xxnflash_ops_bcm4706_init()
434 tbits = ffs(chipsize); /* find first bit set */ in bcm47xxnflash_ops_bcm4706_init()
435 if (!tbits || tbits != fls(chipsize)) { in bcm47xxnflash_ops_bcm4706_init()
436 pr_err("Invalid flash size: 0x%lX\n", chipsize); in bcm47xxnflash_ops_bcm4706_init()
/Linux-v4.19/drivers/mtd/nand/onenand/
Donenand_bbt.c79 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1); in create_bbt()
187 len = this->chipsize >> (this->erase_shift + 2); in onenand_scan_bbt()
Dsamsung.c736 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status()
779 size_t len = this->chipsize; in s3c_unlock_all()
795 ofs = this->chipsize >> 1; in s3c_unlock_all()
796 len = this->chipsize >> 1; in s3c_unlock_all()
Donenand_base.c1283 unlikely(from == (this->chipsize >> 1))) { in onenand_read_ops_nolock()
2173 loff_t bdry_addr = this->chipsize >> 1; in onenand_multiblock_erase()
2622 end = this->chipsize >> this->erase_shift; in onenand_check_lock_status()
2682 ofs = this->chipsize >> 1; in onenand_unlock_all()
2683 len = this->chipsize >> 1; in onenand_unlock_all()
3736 this->chipsize = (16 << density) << 20; in onenand_probe()
3761 this->density_mask = this->chipsize >> (this->erase_shift + 1); in onenand_probe()
3770 mtd->size = this->chipsize; in onenand_probe()
/Linux-v4.19/drivers/mtd/nand/raw/
Dnand_bbt.c274 this->chipsize >> this->bbt_erase_shift, in read_abs_bbt()
278 offs += this->chipsize >> this->bbt_erase_shift; in read_abs_bbt()
479 numblocks = this->chipsize >> this->bbt_erase_shift; in create_bbt()
545 bbtblocks = this->chipsize >> this->bbt_erase_shift; in search_bbt()
573 startblock += this->chipsize >> this->bbt_erase_shift; in search_bbt()
634 numblocks = (int)(this->chipsize >> this->bbt_erase_shift); in get_bbt_block()
735 numblocks = (int)(this->chipsize >> this->bbt_erase_shift); in write_bbt()
1048 nrblocks = (int)(this->chipsize >> this->bbt_erase_shift); in mark_bbt_region()
1129 table_size = this->chipsize >> this->bbt_erase_shift; in verify_bbt_descr()
Dsh_flctl.c1019 if (chip->chipsize > (32 << 20)) { in flctl_chip_attach_chip()
1023 } else if (chip->chipsize > (2 << 16)) { in flctl_chip_attach_chip()
1033 if (chip->chipsize > (128 << 20)) { in flctl_chip_attach_chip()
1037 } else if (chip->chipsize > (8 << 16)) { in flctl_chip_attach_chip()
Dnand_base.c5247 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_onfi()
5248 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_onfi()
5391 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_jedec()
5392 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_jedec()
5562 chip->chipsize = (uint64_t)type->chipsize << 20; in find_full_id_nand()
5733 chip->chipsize = (uint64_t)type->chipsize << 20; in nand_detect()
5771 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in nand_detect()
5775 if (chip->chipsize & 0xffffffff) in nand_detect()
5776 chip->chip_shift = ffs((unsigned)chip->chipsize) - 1; in nand_detect()
5778 chip->chip_shift = ffs((unsigned)(chip->chipsize >> 32)); in nand_detect()
[all …]
Djz4740_nand.c356 mtd->size += chip->chipsize; in jz_nand_detect_bank()
Dfsl_elbc_nand.c660 chip->chipsize); in fsl_elbc_attach_chip()
Dnandsim.c2337 chip->chipsize = new_size; in ns_init_module()
2339 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in ns_init_module()
Dfsl_ifc_nand.c725 chip->chipsize); in fsl_ifc_attach_chip()
Ddocg4.c1244 nand->chipsize = DOCG4_CHIP_SIZE; in init_mtd_structs()
Ddenali.c1200 chip->chipsize <<= 1; in denali_multidev_fixup()
/Linux-v4.19/include/linux/mtd/
Drawnand.h1323 uint64_t chipsize; member
1450 .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) }
1463 { .name = (nm), {{ .dev_id = (devid) }}, .chipsize = (chipsz), \
1510 unsigned int chipsize; member
Donenand.h91 unsigned int chipsize; member
/Linux-v4.19/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c1758 block_count = chip->chipsize >> chip->phys_erase_shift; in mx23_boot_init()