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

/linux-master/drivers/mtd/nand/onenand/
H A Donenand_bbt.c59 struct bbm_info *bbm = this->bbm; local
79 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1);
103 bbm->bbt[i >> 3] |= 0x03 << (i & 0x6);
116 from += (1 << bbm->bbt_erase_shift);
147 struct bbm_info *bbm = this->bbm; local
153 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03;
184 struct bbm_info *bbm = this->bbm; local
232 struct bbm_info *bbm; local
[all...]
H A Donenand_base.c2123 struct bbm_info *bbm = this->bbm; local
2126 return bbm->isbad_bbt(mtd, ofs, allowbbt);
2446 struct bbm_info *bbm = this->bbm; local
2458 if (bbm->bbt)
2459 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
4005 if (this->bbm) {
4006 struct bbm_info *bbm = this->bbm; local
[all...]
/linux-master/drivers/virtio/
H A Dvirtio_mem.c219 } bbm; member in union:virtio_mem::__anon248
224 * sbm.sb_states, bbm.bb_count, and bbm.bb_states
339 return addr / vm->bbm.bb_size;
348 return bb_id * vm->bbm.bb_size;
370 const unsigned long idx = bb_id - vm->bbm.first_bb_id;
373 old_state = vm->bbm.bb_states[idx];
374 vm->bbm.bb_states[idx] = state;
376 BUG_ON(vm->bbm.bb_count[old_state] == 0);
377 vm->bbm
[all...]
/linux-master/include/linux/mtd/
H A Donenand.h16 #include <linux/mtd/bbm.h>
80 * @bbm: [REPLACEABLE] pointer to Bad Block Management
135 void *bbm; member in struct:onenand_chip
H A Drawnand.h19 #include <linux/mtd/bbm.h>
1246 * come from bbm.h. By default, these options will be copied to
/linux-master/drivers/mtd/nand/raw/
H A Dsunxi_nand.c660 static void sunxi_nfc_randomize_bbm(struct nand_chip *nand, int page, u8 *bbm) argument
664 bbm[0] ^= state;
665 bbm[1] ^= sunxi_nfc_randomizer_step(state, 8);
716 int step, bool bbm, int page)
724 if (bbm && (nand->options & NAND_NEED_SCRAMBLING))
730 bool bbm, int page)
736 if (bbm && (nand->options & NAND_NEED_SCRAMBLING)) {
800 bool bbm, bool oob_required, int page)
867 bbm, page);
1033 int *cur_off, bool bbm,
715 sunxi_nfc_hw_ecc_get_prot_oob_bytes(struct nand_chip *nand, u8 *oob, int step, bool bbm, int page) argument
728 sunxi_nfc_hw_ecc_set_prot_oob_bytes(struct nand_chip *nand, const u8 *oob, int step, bool bbm, int page) 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) 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) argument
[all...]
H A Dnand_bbt.c59 #include <linux/mtd/bbm.h>

Completed in 181 milliseconds