| /OK3568_Linux_fs/u-boot/drivers/mtd/ |
| H A D | mtd_uboot.c | 416 loff_t *maxsize, int devtype, uint64_t chipsize) in mtd_arg_off() argument 421 if (*off >= chipsize) { in mtd_arg_off() 426 *maxsize = chipsize - *off; in mtd_arg_off() 433 uint64_t chipsize) in mtd_arg_off_size() argument 439 *size = chipsize; in mtd_arg_off_size() 445 chipsize); in mtd_arg_off_size() 464 if (*size == chipsize) in mtd_arg_off_size()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | mxs_nand_spl.c | 33 if (chip->chipsize > (128 << 20)) in mxs_nand_command() 118 chip->chipsize = le32_to_cpu(p->blocks_per_lun); in mxs_flash_onfi_ident() 119 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in mxs_flash_onfi_ident() 124 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in mxs_flash_onfi_ident() 130 debug("chipsize=%lld\n", chip->chipsize); in mxs_flash_onfi_ident() 204 mtd->size = nand_chip.chipsize; in nand_init()
|
| H A D | nand_bbt.c | 272 this->chipsize >> this->bbt_erase_shift, in read_abs_bbt() 276 offs += this->chipsize >> this->bbt_erase_shift; in read_abs_bbt() 477 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() 641 numblocks = (int)(this->chipsize >> this->bbt_erase_shift); in write_bbt() 972 nrblocks = (int)(this->chipsize >> this->bbt_erase_shift); in mark_bbt_region() 1053 table_size = this->chipsize >> this->bbt_erase_shift; in verify_bbt_descr()
|
| H A D | nand_base.c | 3961 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_onfi() 3962 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_onfi() 4066 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_jedec() 4067 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_jedec() 4374 chip->chipsize = (uint64_t)type->chipsize << 20; in find_full_id_nand() 4470 chip->chipsize = (uint64_t)type->chipsize << 20; in nand_get_flash_type() 4518 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in nand_get_flash_type() 4522 if (chip->chipsize & 0xffffffff) in nand_get_flash_type() 4523 chip->chip_shift = ffs((unsigned)chip->chipsize) - 1; in nand_get_flash_type() 4525 chip->chip_shift = ffs((unsigned)(chip->chipsize >> 32)); in nand_get_flash_type() [all …]
|
| H A D | zynq_nand.c | 877 if (chip->chipsize > (128 << 20)) { in zynq_nand_cmd_function()
|
| H A D | denali.c | 1221 chip->chipsize <<= 1; in denali_multidev_fixup()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/bcm47xxnflash/ |
| H A D | ops_bcm4706.c | 378 unsigned long chipsize; /* MiB */ in bcm47xxnflash_ops_bcm4706_init() local 428 chipsize = nanddev_target_size(&b47n->nand_chip.base) >> 20; in bcm47xxnflash_ops_bcm4706_init() 429 tbits = ffs(chipsize); /* find first bit set */ in bcm47xxnflash_ops_bcm4706_init() 430 if (!tbits || tbits != fls(chipsize)) { in bcm47xxnflash_ops_bcm4706_init() 431 pr_err("Invalid flash size: 0x%lX\n", chipsize); in bcm47xxnflash_ops_bcm4706_init()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/onenand/ |
| H A D | samsung.c | 453 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status() 491 size_t len = this->chipsize; in s3c_onenand_unlock_all() 511 ofs = this->chipsize >> 1; in s3c_onenand_unlock_all() 512 len = this->chipsize >> 1; in s3c_onenand_unlock_all()
|
| H A D | onenand_bbt.c | 86 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1); in create_bbt() 198 len = this->chipsize >> (this->erase_shift + 2); in onenand_scan_bbt()
|
| H A D | onenand_uboot.c | 55 print_size(onenand_chip.chipsize, "\n"); in onenand_init()
|
| H A D | onenand_base.c | 915 unlikely(from == (this->chipsize >> 1))) { in onenand_read_ops_nolock() 2068 end = this->chipsize >> this->erase_shift; in onenand_check_lock_status() 2123 ofs = this->chipsize >> 1; in onenand_unlock_all() 2124 len = this->chipsize >> 1; in onenand_unlock_all() 2619 this->chipsize = (16 << density) << 20; in onenand_probe() 2646 this->density_mask = this->chipsize >> (this->erase_shift + 1); in onenand_probe() 2655 mtd->size = this->chipsize; in onenand_probe()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/onenand/ |
| H A D | onenand_bbt.c | 79 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1); in create_bbt() 187 len = this->chipsize >> (this->erase_shift + 2); in onenand_scan_bbt()
|
| H A D | onenand_samsung.c | 732 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status() 775 size_t len = this->chipsize; in s3c_unlock_all() 791 ofs = this->chipsize >> 1; in s3c_unlock_all() 792 len = this->chipsize >> 1; in s3c_unlock_all()
|
| H A D | onenand_base.c | 1275 unlikely(from == (this->chipsize >> 1))) { in onenand_read_ops_nolock() 2165 loff_t bdry_addr = this->chipsize >> 1; in onenand_multiblock_erase() 2614 end = this->chipsize >> this->erase_shift; in onenand_check_lock_status() 2674 ofs = this->chipsize >> 1; in onenand_unlock_all() 2675 len = this->chipsize >> 1; in onenand_unlock_all() 3734 this->chipsize = (16 << density) << 20; in onenand_probe() 3759 this->density_mask = this->chipsize >> (this->erase_shift + 1); in onenand_probe() 3768 mtd->size = this->chipsize; in onenand_probe()
|
| /OK3568_Linux_fs/u-boot/include/linux/mtd/ |
| H A D | rawnand.h | 901 uint64_t chipsize; member 992 .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) } 1005 { .name = (nm), {{ .dev_id = (devid) }}, .chipsize = (chipsz), \ 1052 unsigned int chipsize; member
|
| H A D | onenand.h | 76 unsigned int chipsize; member
|
| H A D | mtd.h | 597 loff_t *maxsize, int devtype, uint64_t chipsize); 600 uint64_t chipsize);
|
| /OK3568_Linux_fs/kernel/include/linux/mtd/ |
| H A D | rawnand.h | 1330 .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) } 1343 { .name = (nm), {{ .dev_id = (devid) }}, .chipsize = (chipsz), \ 1386 unsigned int chipsize; member
|
| H A D | onenand.h | 88 unsigned int chipsize; member
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | nand_base.c | 4608 DIV_ROUND_DOWN_ULL((u64)type->chipsize << 20, in find_full_id_nand() 4809 DIV_ROUND_DOWN_ULL((u64)type->chipsize << 20, in nand_detect()
|