Lines Matching refs:chipsize
639 if (chip->chipsize > (32 << 20)) in nand_command()
732 if (chip->chipsize > (128 << 20)) in nand_command_lp()
3216 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_onfi()
3217 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_onfi()
3312 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_jedec()
3313 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_jedec()
3620 chip->chipsize = (uint64_t)type->chipsize << 20; in find_full_id_nand()
3713 chip->chipsize = (uint64_t)type->chipsize << 20; in nand_get_flash_type()
3764 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in nand_get_flash_type()
3768 if (chip->chipsize & 0xffffffff) in nand_get_flash_type()
3769 chip->chip_shift = ffs((unsigned)chip->chipsize) - 1; in nand_get_flash_type()
3771 chip->chip_shift = ffs((unsigned)(chip->chipsize >> 32)); in nand_get_flash_type()
3796 (int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC", in nand_get_flash_type()
3855 mtd->size = i * chip->chipsize; in nand_scan_ident()