Lines Matching refs:chipsize
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()
4565 (int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC", in nand_get_flash_type()
4717 mtd->size = i * chip->chipsize; in nand_scan_ident()