Searched refs:bbm (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/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 | 2123 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 4007 kfree(bbm->bbt); in onenand_release() 4008 kfree(this->bbm); in onenand_release()
|
/linux-6.1.9/drivers/virtio/ |
D | virtio_mem.c | 217 } bbm; member 337 return addr / vm->bbm.bb_size; in virtio_mem_phys_to_bb_id() 346 return bb_id * vm->bbm.bb_size; in virtio_mem_bb_id_to_phys() 368 const unsigned long idx = bb_id - vm->bbm.first_bb_id; in virtio_mem_bbm_set_bb_state() 371 old_state = vm->bbm.bb_states[idx]; in virtio_mem_bbm_set_bb_state() 372 vm->bbm.bb_states[idx] = state; in virtio_mem_bbm_set_bb_state() 374 BUG_ON(vm->bbm.bb_count[old_state] == 0); in virtio_mem_bbm_set_bb_state() 375 vm->bbm.bb_count[old_state]--; in virtio_mem_bbm_set_bb_state() 376 vm->bbm.bb_count[state]++; in virtio_mem_bbm_set_bb_state() 385 return vm->bbm.bb_states[bb_id - vm->bbm.first_bb_id]; in virtio_mem_bbm_get_bb_state() [all …]
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | sunxi_nand.c | 661 static void sunxi_nfc_randomize_bbm(struct nand_chip *nand, int page, u8 *bbm) in sunxi_nfc_randomize_bbm() argument 665 bbm[0] ^= state; in sunxi_nfc_randomize_bbm() 666 bbm[1] ^= sunxi_nfc_randomizer_step(state, 8); in sunxi_nfc_randomize_bbm() 728 int step, bool bbm, int page) in sunxi_nfc_hw_ecc_get_prot_oob_bytes() argument 736 if (bbm && (nand->options & NAND_NEED_SCRAMBLING)) in sunxi_nfc_hw_ecc_get_prot_oob_bytes() 742 bool bbm, int page) in sunxi_nfc_hw_ecc_set_prot_oob_bytes() argument 748 if (bbm && (nand->options & NAND_NEED_SCRAMBLING)) { in sunxi_nfc_hw_ecc_set_prot_oob_bytes() 812 bool bbm, bool oob_required, int page) in sunxi_nfc_hw_ecc_read_chunk() argument 879 bbm, page); in sunxi_nfc_hw_ecc_read_chunk() 1045 int *cur_off, bool bbm, in sunxi_nfc_hw_ecc_write_chunk() argument [all …]
|
/linux-6.1.9/include/linux/mtd/ |
D | onenand.h | 135 void *bbm; member
|