/openbmc/u-boot/drivers/mtd/onenand/ |
H A D | onenand_bbt.c | 66 struct bbm_info *bbm = this->bbm; in create_bbt() local 86 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1); in create_bbt() 111 bbm->bbt[i >> 3] |= 0x03 << (i & 0x6); in create_bbt() 124 from += (1 << bbm->bbt_erase_shift); in create_bbt() 155 struct bbm_info *bbm = this->bbm; in onenand_isbad_bbt() local 161 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; in onenand_isbad_bbt() 195 struct bbm_info *bbm = this->bbm; in onenand_scan_bbt() local 200 bbm->bbt = malloc(len); in onenand_scan_bbt() 201 if (!bbm->bbt) in onenand_scan_bbt() 204 memset(bbm->bbt, 0x00, len); in onenand_scan_bbt() [all …]
|
H A D | onenand_base.c | 1714 struct bbm_info *bbm = this->bbm; in onenand_block_isbad_nolock() local 1717 return bbm->isbad_bbt(mtd, ofs, allowbbt); in onenand_block_isbad_nolock() 1895 struct bbm_info *bbm = this->bbm; in onenand_default_block_markbad() local 1907 if (bbm->bbt) in onenand_default_block_markbad() 1908 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1); in onenand_default_block_markbad() 1911 ofs += mtd->oobsize + (bbm->badblockpos & ~0x01); in onenand_default_block_markbad()
|
/openbmc/linux/drivers/mtd/nand/onenand/ |
H A 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 …]
|
H A 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()
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_mem.c | 50 * * Big Block Mode (BBM): A Big Block (BB) spans 1..X Linux memory blocks. 86 * State of a Big Block (BB) in BBM, covering 1..X Linux memory blocks. 154 /* If set, the driver is in SBM, otherwise in BBM. */ 219 } 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() [all …]
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | bbm.h | 3 * linux/include/linux/mtd/bbm.h 5 * NAND family Bad Block Management (BBM) header file 140 * @priv: [OPTIONAL] pointer to private bbm date
|
H A D | onenand.h | 21 #include <linux/mtd/bbm.h> 123 void *bbm; member
|
/openbmc/u-boot/arch/arm/mach-uniphier/boot-device/ |
H A D | boot-device-pxs3.c | 30 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 5, BBM Last Page)"}, 31 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 5, BBM Last Page)"},
|
/openbmc/qemu/migration/ |
H A D | block-dirty-bitmap.c | 201 * @bbm is the block_bitmap_mapping from the migration parameters. 216 static GHashTable *construct_alias_map(const BitmapMigrationNodeAliasList *bbm, in construct_alias_map() argument 226 for (; bbm; bbm = bbm->next) { in construct_alias_map() 227 const BitmapMigrationNodeAlias *bmna = bbm->value; in construct_alias_map() 332 * Run construct_alias_map() in both directions to check whether @bbm 339 bool check_dirty_bitmap_mig_alias_map(const BitmapMigrationNodeAliasList *bbm, in check_dirty_bitmap_mig_alias_map() argument 344 alias_map = construct_alias_map(bbm, true, errp); in check_dirty_bitmap_mig_alias_map() 350 alias_map = construct_alias_map(bbm, false, errp); in check_dirty_bitmap_mig_alias_map()
|
/openbmc/linux/include/linux/mtd/ |
H A D | onenand.h | 16 #include <linux/mtd/bbm.h> 80 * @bbm: [REPLACEABLE] pointer to Bad Block Management 135 void *bbm; member
|
H A D | bbm.h | 3 * NAND family Bad Block Management (BBM) header file 124 * @priv: [OPTIONAL] pointer to private bbm date
|
H A D | rawnand.h | 19 #include <linux/mtd/bbm.h> 208 * Some controllers with pipelined ECC engines override the BBM marker with 211 * BBM and consider all blocks good. 1233 * come from bbm.h. By default, these options will be copied to 1237 * position; i.e., BBM = 11110111b is good when badblockbits = 7
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | rockchip-nand-controller.c | 546 * so chip->oob_poi[0] is the bad block mask (BBM). in rk_nfc_write_page_raw() 550 * PA0 PA1 PA2 PA3 | BBM OOB1 OOB2 OOB3 | ... in rk_nfc_write_page_raw() 554 * 0xFF 0xFF 0xFF 0xFF | BBM OOB1 OOB2 OOB3 | ... in rk_nfc_write_page_raw() 561 * BBM OOB1 OOB2 OOB3 |......| PA0 PA1 PA2 PA3 in rk_nfc_write_page_raw() 564 * these 4 bytes together with 2 bytes for BBM in rk_nfc_write_page_raw() 615 * conflicts for example with the bad block marker (BBM), in rk_nfc_write_page_hwecc() 616 * so we shift all OOB data including the BBM with 4 byte positions. in rk_nfc_write_page_hwecc() 620 * PA0 PA1 PA2 PA3 | BBM OOB1 OOB2 OOB3 | ... in rk_nfc_write_page_hwecc() 625 * 0xFF 0xFF 0xFF 0xFF | BBM OOB1 OOB2 OOB3 | ... in rk_nfc_write_page_hwecc() 632 * BBM OOB1 OOB2 OOB3 |......| PA0 PA1 PA2 PA3 in rk_nfc_write_page_hwecc()
|
H A D | sunxi_nand.c | 660 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() argument 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() argument 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() argument 867 bbm, page); in sunxi_nfc_hw_ecc_read_chunk() 1033 int *cur_off, bool bbm, in sunxi_nfc_hw_ecc_write_chunk() argument [all …]
|
H A D | nand_bbt.c | 59 #include <linux/mtd/bbm.h> 437 /* Ignore ECC errors when checking for BBM */ in scan_block_fast() 457 * No need to check for a bad BBT block if the BBM area overlaps with in bbt_block_checkbad() 458 * the bad block table marker area in OOB since writing a BBM here in bbt_block_checkbad() 1367 * This function allocates and initializes a nand_bbt_descr for BBM detection
|
/openbmc/linux/drivers/mtd/nand/ |
H A D | ecc-sw-bch.c | 213 /* Reserve 2 bytes for the BBM */ in nand_ecc_sw_bch_init_ctx() 308 /* This engine does not provide BBM/free OOB bytes protection */ in nand_ecc_sw_bch_prepare_io_req() 347 /* This engine does not provide BBM/free OOB bytes protection */ in nand_ecc_sw_bch_finish_io_req()
|
/openbmc/linux/drivers/mtd/nand/spi/ |
H A D | micron.c | 78 /* Reserve 2 bytes for the BBM. */ in micron_8_ooblayout_free() 118 /* section 0 has two bytes reserved for the BBM */ in micron_4_ooblayout_free()
|
H A D | ato.c | 51 /* first byte of section 0 is reserved for the BBM */ in ato25d1ga_ooblayout_free()
|
H A D | paragon.c | 47 region->offset = 6 + (15 * section); /* 4 BBM + 2 user bytes */ in pn26g0xa_ooblayout_ecc()
|
/openbmc/u-boot/drivers/mtd/nand/spi/ |
H A D | gigadevice.c | 56 /* Reserve 2 bytes for the BBM. */ in gd5f1gq4u_ooblayout_free()
|
H A D | micron.c | 57 /* Reserve 2 bytes for the BBM. */ in mt29f2g01abagd_ooblayout_free()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | relocate_kernel.S | 50 ldr x18, [x0, #KIMAGE_ARCH_ZERO_PAGE] /* x18 = zero page for BBM */
|
/openbmc/linux/Documentation/devicetree/bindings/mtd/ |
H A D | raw-nand-chip.yaml | 66 find Bad Block Markers (BBM). These markers will help to
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | sunxi_nand.c | 743 static void sunxi_nfc_randomize_bbm(struct mtd_info *mtd, int page, u8 *bbm) in sunxi_nfc_randomize_bbm() argument 747 bbm[0] ^= state; in sunxi_nfc_randomize_bbm() 748 bbm[1] ^= sunxi_nfc_randomizer_step(state, 8); in sunxi_nfc_randomize_bbm() 810 bool bbm, int page) in sunxi_nfc_hw_ecc_read_chunk() argument 889 if (bbm && nand->options & NAND_NEED_SCRAMBLING) in sunxi_nfc_hw_ecc_read_chunk() 936 int *cur_off, bool bbm, in sunxi_nfc_hw_ecc_write_chunk() argument 950 if ((nand->options & NAND_NEED_SCRAMBLING) && bbm) { in sunxi_nfc_hw_ecc_write_chunk()
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | nested.c | 129 val &= ~(NV_FTR(MMFR2, BBM) | in access_nested_id_reg()
|