Home
last modified time | relevance | path

Searched refs:bbm (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/drivers/mtd/nand/onenand/
H A Donenand_bbt.c59 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
232 struct bbm_info *bbm; onenand_default_bbt() local
[all...]
H A Donenand_base.c2114 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
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/onenand/
H A Donenand_bbt.c59 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
232 struct bbm_info *bbm; onenand_default_bbt() local
[all...]
H A Donenand_base.c2123 struct bbm_info *bbm = this->bbm; in onenand_block_isbad_nolock() local
2126 return bbm->isbad_bbt(mtd, ofs, allowbbt); in onenand_block_isbad_nolock()
2446 struct bbm_info *bbm = this->bbm; in onenand_default_block_markbad() local
2458 if (bbm->bbt) in onenand_default_block_markbad()
2459 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1); in onenand_default_block_markbad()
4005 if (this->bbm) { in onenand_release()
4006 struct bbm_info *bbm = this->bbm; in onenand_release() local
[all...]
/kernel/linux/linux-6.6/drivers/virtio/
H A Dvirtio_mem.c219 } bbm; member
224 * sbm.sb_states, bbm.bb_count, and bbm.bb_states
339 return addr / vm->bbm.bb_size; in virtio_mem_phys_to_bb_id()
348 return bb_id * vm->bbm.bb_size; in virtio_mem_bb_id_to_phys()
370 const unsigned long idx = bb_id - vm->bbm.first_bb_id; in virtio_mem_bbm_set_bb_state()
373 old_state = vm->bbm.bb_states[idx]; in virtio_mem_bbm_set_bb_state()
374 vm->bbm.bb_states[idx] = state; in virtio_mem_bbm_set_bb_state()
376 BUG_ON(vm->bbm.bb_count[old_state] == 0); in virtio_mem_bbm_set_bb_state()
377 vm->bbm in virtio_mem_bbm_set_bb_state()
[all...]
/kernel/linux/linux-5.10/include/linux/mtd/
H A Donenand.h16 #include <linux/mtd/bbm.h>
80 * @bbm: [REPLACEABLE] pointer to Bad Block Management
135 void *bbm; member
H A Drawnand.h19 #include <linux/mtd/bbm.h>
1183 * come from bbm.h. By default, these options will be copied to
/kernel/linux/linux-6.6/include/linux/mtd/
H A Donenand.h16 #include <linux/mtd/bbm.h>
80 * @bbm: [REPLACEABLE] pointer to Bad Block Management
135 void *bbm; member
H A Drawnand.h19 #include <linux/mtd/bbm.h>
1233 * come from bbm.h. By default, these options will be copied to
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dsunxi_nand.c660 static void sunxi_nfc_randomize_bbm(struct nand_chip *nand, int page, u8 *bbm) in sunxi_nfc_randomize_bbm() argument
664 bbm[0] ^= state; in sunxi_nfc_randomize_bbm()
665 bbm[1] ^= sunxi_nfc_randomizer_step(state, 8); in sunxi_nfc_randomize_bbm()
716 int step, bool bbm, int page) in sunxi_nfc_hw_ecc_get_prot_oob_bytes()
724 if (bbm && (nand->options & NAND_NEED_SCRAMBLING)) in sunxi_nfc_hw_ecc_get_prot_oob_bytes()
730 bool bbm, int page) in sunxi_nfc_hw_ecc_set_prot_oob_bytes()
736 if (bbm && (nand->options & NAND_NEED_SCRAMBLING)) { in sunxi_nfc_hw_ecc_set_prot_oob_bytes()
800 bool bbm, bool oob_required, int page) in sunxi_nfc_hw_ecc_read_chunk()
867 bbm, page); in sunxi_nfc_hw_ecc_read_chunk()
1033 int *cur_off, bool bbm, in sunxi_nfc_hw_ecc_write_chunk()
715 sunxi_nfc_hw_ecc_get_prot_oob_bytes(struct nand_chip *nand, u8 *oob, int step, bool bbm, int page) sunxi_nfc_hw_ecc_get_prot_oob_bytes() argument
728 sunxi_nfc_hw_ecc_set_prot_oob_bytes(struct nand_chip *nand, const u8 *oob, int step, bool bbm, int page) sunxi_nfc_hw_ecc_set_prot_oob_bytes() argument
795 sunxi_nfc_hw_ecc_read_chunk(struct nand_chip *nand, u8 *data, int data_off, u8 *oob, int oob_off, int *cur_off, unsigned int *max_bitflips, bool bbm, bool oob_required, int page) sunxi_nfc_hw_ecc_read_chunk() argument
1030 sunxi_nfc_hw_ecc_write_chunk(struct nand_chip *nand, const u8 *data, int data_off, const u8 *oob, int oob_off, int *cur_off, bool bbm, int page) sunxi_nfc_hw_ecc_write_chunk() argument
[all...]
H A Dnand_bbt.c59 #include <linux/mtd/bbm.h>
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dsunxi_nand.c650 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()
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()
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()
868 bbm, page); in sunxi_nfc_hw_ecc_read_chunk()
1029 int *cur_off, bool bbm, in sunxi_nfc_hw_ecc_write_chunk()
716 sunxi_nfc_hw_ecc_get_prot_oob_bytes(struct nand_chip *nand, u8 *oob, int step, bool bbm, int page) sunxi_nfc_hw_ecc_get_prot_oob_bytes() argument
729 sunxi_nfc_hw_ecc_set_prot_oob_bytes(struct nand_chip *nand, const u8 *oob, int step, bool bbm, int page) sunxi_nfc_hw_ecc_set_prot_oob_bytes() argument
796 sunxi_nfc_hw_ecc_read_chunk(struct nand_chip *nand, u8 *data, int data_off, u8 *oob, int oob_off, int *cur_off, unsigned int *max_bitflips, bool bbm, bool oob_required, int page) sunxi_nfc_hw_ecc_read_chunk() argument
1026 sunxi_nfc_hw_ecc_write_chunk(struct nand_chip *nand, const u8 *data, int data_off, const u8 *oob, int oob_off, int *cur_off, bool bbm, int page) sunxi_nfc_hw_ecc_write_chunk() argument
[all...]
H A Dnand_bbt.c59 #include <linux/mtd/bbm.h>

Completed in 27 milliseconds