Lines Matching refs:chipsize
3275 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_onfi()
3276 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_onfi()
3378 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_jedec()
3379 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_jedec()
3686 chip->chipsize = (uint64_t)type->chipsize << 20; in find_full_id_nand()
3779 chip->chipsize = (uint64_t)type->chipsize << 20; in nand_get_flash_type()
3827 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in nand_get_flash_type()
3831 if (chip->chipsize & 0xffffffff) in nand_get_flash_type()
3832 chip->chip_shift = ffs((unsigned)chip->chipsize) - 1; in nand_get_flash_type()
3834 chip->chip_shift = ffs((unsigned)(chip->chipsize >> 32)); in nand_get_flash_type()
3874 (int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC", in nand_get_flash_type()
4024 mtd->size = i * chip->chipsize; in nand_scan_ident()