Searched refs:bbm (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.15/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 | 2111 struct bbm_info *bbm = this->bbm; in onenand_block_isbad_nolock() local 2114 return bbm->isbad_bbt(mtd, ofs, allowbbt); in onenand_block_isbad_nolock() 2434 struct bbm_info *bbm = this->bbm; in onenand_default_block_markbad() local 2446 if (bbm->bbt) in onenand_default_block_markbad() 2447 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1); in onenand_default_block_markbad() 3993 if (this->bbm) { in onenand_release() 3994 struct bbm_info *bbm = this->bbm; in onenand_release() local 3995 kfree(bbm->bbt); in onenand_release() 3996 kfree(this->bbm); in onenand_release()
|
/Linux-v5.15/drivers/virtio/ |
D | virtio_mem.c | 216 } bbm; member 321 return addr / vm->bbm.bb_size; in virtio_mem_phys_to_bb_id() 330 return bb_id * vm->bbm.bb_size; in virtio_mem_bb_id_to_phys() 352 const unsigned long idx = bb_id - vm->bbm.first_bb_id; in virtio_mem_bbm_set_bb_state() 355 old_state = vm->bbm.bb_states[idx]; in virtio_mem_bbm_set_bb_state() 356 vm->bbm.bb_states[idx] = state; in virtio_mem_bbm_set_bb_state() 358 BUG_ON(vm->bbm.bb_count[old_state] == 0); in virtio_mem_bbm_set_bb_state() 359 vm->bbm.bb_count[old_state]--; in virtio_mem_bbm_set_bb_state() 360 vm->bbm.bb_count[state]++; in virtio_mem_bbm_set_bb_state() 369 return vm->bbm.bb_states[bb_id - vm->bbm.first_bb_id]; in virtio_mem_bbm_get_bb_state() [all …]
|
/Linux-v5.15/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-v5.15/include/linux/mtd/ |
D | onenand.h | 135 void *bbm; member
|