Lines Matching refs:chipsize
647 if (chip->chipsize > (32 << 20)) in nand_command()
740 if (chip->chipsize > (128 << 20)) in nand_command_lp()
3358 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_onfi()
3359 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_onfi()
3454 chip->chipsize = 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_flash_detect_jedec()
3455 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in nand_flash_detect_jedec()
3762 chip->chipsize = (uint64_t)type->chipsize << 20; in find_full_id_nand()
3855 chip->chipsize = (uint64_t)type->chipsize << 20; in nand_get_flash_type()
3903 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in nand_get_flash_type()
3907 if (chip->chipsize & 0xffffffff) in nand_get_flash_type()
3908 chip->chip_shift = ffs((unsigned)chip->chipsize) - 1; in nand_get_flash_type()
3910 chip->chip_shift = ffs((unsigned)(chip->chipsize >> 32)); in nand_get_flash_type()
3935 (int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC", in nand_get_flash_type()
4036 mtd->size = i * chip->chipsize; in nand_scan_ident()