Home
last modified time | relevance | path

Searched refs:phys_erase_shift (Results 1 – 13 of 13) sorted by relevance

/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dmxs_nand_spl.c121 chip->phys_erase_shift = ffs(mtd->erasesize) - 1; in mxs_flash_onfi_ident()
126 debug("erasesize=%d (>>%d)\n", mtd->erasesize, chip->phys_erase_shift); in mxs_flash_onfi_ident()
164 unsigned int block = offs >> chip->phys_erase_shift; in is_badblock()
H A Dnand_base.c113 if (ofs & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len()
119 if (len & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len()
457 einfo.len = 1ULL << chip->phys_erase_shift; in nand_block_markbad_lowlevel()
2837 pages_per_block = 1 << (chip->phys_erase_shift - chip->page_shift); in nand_erase_nand()
2888 len -= (1ULL << chip->phys_erase_shift); in nand_erase_nand()
3829 chip->bbt_erase_shift = chip->phys_erase_shift = in nand_get_flash_type()
H A Dfsl_elbc_nand.c188 chip->phys_erase_shift, chip->page_shift); in set_addr()
H A Dmxc_nand.c665 int pg2blk_shift = nand_chip->phys_erase_shift -
H A Ddenali.c1222 chip->phys_erase_shift += 1; in denali_multidev_fixup()
/openbmc/linux/drivers/mtd/nand/raw/
H A Ddiskonchip.c941 blocks = mtd->size >> this->phys_erase_shift; in nftl_partscan()
1026 end -= (INFTL_BBT_RESERVED_BLOCKS << this->phys_erase_shift); in inftl_partscan()
1063 vshift = this->phys_erase_shift + mh->BlockMultiplierBits; in inftl_partscan()
1071 blocks = doc->chips_per_floor << (this->chip_shift - this->phys_erase_shift); in inftl_partscan()
H A Dfsl_elbc_nand.c196 chip->phys_erase_shift, chip->page_shift); in set_addr()
799 chip->phys_erase_shift); in fsl_elbc_attach_chip()
H A Dnand_base.c105 if (ofs & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len()
111 if (len & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len()
576 einfo.len = 1ULL << chip->phys_erase_shift; in nand_block_markbad_lowlevel()
1941 (chip->phys_erase_shift - chip->page_shift); in nand_erase_op()
4660 pages_per_block = 1 << (chip->phys_erase_shift - chip->page_shift); in nand_erase_nand()
4697 (chip->phys_erase_shift - chip->page_shift)); in nand_erase_nand()
4706 len -= (1ULL << chip->phys_erase_shift); in nand_erase_nand()
5380 chip->bbt_erase_shift = chip->phys_erase_shift = in nand_detect()
H A Ddenali.c200 iowrite32(1 << (chip->phys_erase_shift - chip->page_shift), in denali_select_target()
1000 chip->phys_erase_shift += 1; in denali_multidev_fixup()
H A Dfsl_ifc_nand.c750 chip->phys_erase_shift); in fsl_ifc_attach_chip()
/openbmc/linux/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c2191 chipnr = block >> (chip->chip_shift - chip->phys_erase_shift); in mx23_boot_init()
2192 page = block << (chip->phys_erase_shift - chip->page_shift); in mx23_boot_init()
2193 byte = block << chip->phys_erase_shift; in mx23_boot_init()
/openbmc/u-boot/include/linux/mtd/
H A Drawnand.h919 int phys_erase_shift; member
/openbmc/linux/include/linux/mtd/
H A Drawnand.h1300 unsigned int phys_erase_shift; member