Home
last modified time | relevance | path

Searched refs:chipsize (Results 1 – 20 of 20) sorted by relevance

/openbmc/u-boot/drivers/mtd/
H A Dmtd_uboot.c399 loff_t *maxsize, int devtype, uint64_t chipsize) in mtd_arg_off() argument
404 if (*off >= chipsize) { in mtd_arg_off()
409 *maxsize = chipsize - *off; in mtd_arg_off()
416 uint64_t chipsize) in mtd_arg_off_size() argument
422 *size = chipsize; in mtd_arg_off_size()
428 chipsize); in mtd_arg_off_size()
447 if (*size == chipsize) in mtd_arg_off_size()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dmxs_nand_spl.c32 if (chip->chipsize > (128 << 20)) in mxs_nand_command()
117 chip->chipsize = le32_to_cpu(p->blocks_per_lun); in mxs_flash_onfi_ident()
118 chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count; in mxs_flash_onfi_ident()
123 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in mxs_flash_onfi_ident()
129 debug("chipsize=%lld\n", chip->chipsize); in mxs_flash_onfi_ident()
203 mtd->size = nand_chip.chipsize; in nand_init()
H A Dnand_bbt.c272 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()
543 bbtblocks = this->chipsize >> this->bbt_erase_shift; in search_bbt()
571 startblock += this->chipsize >> this->bbt_erase_shift; in search_bbt()
639 numblocks = (int)(this->chipsize >> this->bbt_erase_shift); in write_bbt()
970 nrblocks = (int)(this->chipsize >> this->bbt_erase_shift); in mark_bbt_region()
1051 table_size = this->chipsize >> this->bbt_erase_shift; in verify_bbt_descr()
H A Dnand_base.c3275 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()
[all …]
H A Dzynq_nand.c876 if (chip->chipsize > (128 << 20)) { in zynq_nand_cmd_function()
H A Ddenali.c1220 chip->chipsize <<= 1; in denali_multidev_fixup()
/openbmc/linux/drivers/mtd/nand/raw/bcm47xxnflash/
H A Dops_bcm4706.c378 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()
/openbmc/u-boot/drivers/mtd/onenand/
H A Donenand_bbt.c86 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 Donenand_uboot.c55 print_size(onenand_chip.chipsize, "\n"); in onenand_init()
H A Dsamsung.c452 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status()
490 size_t len = this->chipsize; in s3c_onenand_unlock_all()
510 ofs = this->chipsize >> 1; in s3c_onenand_unlock_all()
511 len = this->chipsize >> 1; in s3c_onenand_unlock_all()
H A Donenand_base.c915 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()
/openbmc/linux/drivers/mtd/nand/onenand/
H A Donenand_bbt.c79 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 Donenand_samsung.c733 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status()
776 size_t len = this->chipsize; in s3c_unlock_all()
792 ofs = this->chipsize >> 1; in s3c_unlock_all()
793 len = this->chipsize >> 1; in s3c_unlock_all()
H A Donenand_base.c1275 unlikely(from == (this->chipsize >> 1))) { in onenand_read_ops_nolock()
2174 loff_t bdry_addr = this->chipsize >> 1; in onenand_multiblock_erase()
2623 end = this->chipsize >> this->erase_shift; in onenand_check_lock_status()
2683 ofs = this->chipsize >> 1; in onenand_unlock_all()
2684 len = this->chipsize >> 1; in onenand_unlock_all()
3741 this->chipsize = (16 << density) << 20; in onenand_probe()
3766 this->density_mask = this->chipsize >> (this->erase_shift + 1); in onenand_probe()
3775 mtd->size = this->chipsize; in onenand_probe()
/openbmc/u-boot/include/linux/mtd/
H A Drawnand.h923 uint64_t chipsize; member
1012 .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) }
1025 { .name = (nm), {{ .dev_id = (devid) }}, .chipsize = (chipsz), \
1072 unsigned int chipsize; member
H A Donenand.h76 unsigned int chipsize; member
H A Dmtd.h592 loff_t *maxsize, int devtype, uint64_t chipsize);
595 uint64_t chipsize);
/openbmc/linux/include/linux/mtd/
H A Donenand.h88 unsigned int chipsize; member
H A Drawnand.h1395 .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) }
1408 { .name = (nm), {{ .dev_id = (devid) }}, .chipsize = (chipsz), \
1451 unsigned int chipsize; member
/openbmc/linux/drivers/mtd/nand/raw/
H A Dnand_base.c5081 DIV_ROUND_DOWN_ULL((u64)type->chipsize << 20, in find_full_id_nand()
5345 DIV_ROUND_DOWN_ULL((u64)type->chipsize << 20, in nand_detect()