Searched refs:bbm (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/drivers/mtd/nand/onenand/ |
D | onenand_bbt.c | 59 struct bbm_info *bbm = this->bbm; in create_bbt() local 79 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1); in create_bbt() 103 bbm->bbt[i >> 3] |= 0x03 << (i & 0x6); in create_bbt() 116 from += (1 << bbm->bbt_erase_shift); in create_bbt() 147 struct bbm_info *bbm = this->bbm; in onenand_isbad_bbt() local 153 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; in onenand_isbad_bbt() 184 struct bbm_info *bbm = this->bbm; in onenand_scan_bbt() local 189 bbm->bbt = kzalloc(len, GFP_KERNEL); in onenand_scan_bbt() 190 if (!bbm->bbt) in onenand_scan_bbt() 194 bbm->bbt_erase_shift = this->erase_shift; in onenand_scan_bbt() [all …]
|
D | onenand_base.c | 2114 struct bbm_info *bbm = this->bbm; in onenand_block_isbad_nolock() local 2117 return bbm->isbad_bbt(mtd, ofs, allowbbt); in onenand_block_isbad_nolock() 2437 struct bbm_info *bbm = this->bbm; in onenand_default_block_markbad() local 2449 if (bbm->bbt) in onenand_default_block_markbad() 2450 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1); in onenand_default_block_markbad() 3998 if (this->bbm) { in onenand_release() 3999 struct bbm_info *bbm = this->bbm; in onenand_release() local 4000 kfree(bbm->bbt); in onenand_release() 4001 kfree(this->bbm); in onenand_release()
|
/Linux-v5.10/drivers/mtd/nand/raw/ |
D | sunxi_nand.c | 650 static void sunxi_nfc_randomize_bbm(struct nand_chip *nand, int page, u8 *bbm) in sunxi_nfc_randomize_bbm() argument 654 bbm[0] ^= state; in sunxi_nfc_randomize_bbm() 655 bbm[1] ^= sunxi_nfc_randomizer_step(state, 8); in sunxi_nfc_randomize_bbm() 717 int step, bool bbm, int page) in sunxi_nfc_hw_ecc_get_prot_oob_bytes() argument 725 if (bbm && (nand->options & NAND_NEED_SCRAMBLING)) in sunxi_nfc_hw_ecc_get_prot_oob_bytes() 731 bool bbm, int page) in sunxi_nfc_hw_ecc_set_prot_oob_bytes() argument 737 if (bbm && (nand->options & NAND_NEED_SCRAMBLING)) { in sunxi_nfc_hw_ecc_set_prot_oob_bytes() 801 bool bbm, bool oob_required, int page) in sunxi_nfc_hw_ecc_read_chunk() argument 868 bbm, page); in sunxi_nfc_hw_ecc_read_chunk() 1029 int *cur_off, bool bbm, in sunxi_nfc_hw_ecc_write_chunk() argument [all …]
|
/Linux-v5.10/include/linux/mtd/ |
D | onenand.h | 135 void *bbm; member
|