| /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()
|
| /linux/drivers/input/keyboard/ |
| H A D | imx-sm-bbm-key.c | 96 pr_debug("BBM Button Power key pressed\n"); in scmi_imx_bbm_key_notifier() 100 pr_err("Unexpected BBM event: %s\n", __func__); in scmi_imx_bbm_key_notifier() 123 dev_err(dev, "failed to allocate the input device for SCMI IMX BBM\n"); in scmi_imx_bbm_pwrkey_init() 147 dev_err(dev, "Failed to register BBM Button Events %d:", ret); in scmi_imx_bbm_pwrkey_init() 208 { SCMI_PROTOCOL_IMX_BBM, "imx-bbm-key" }, 217 .name = "scmi-imx-bbm-key", 224 MODULE_DESCRIPTION("IMX SM BBM Key driver");
|
| /linux/drivers/virtio/ |
| H A D | virtio_mem.c | 52 * * Big Block Mode (BBM): A Big Block (BB) spans 1..X Linux memory blocks. 88 * State of a Big Block (BB) in BBM, covering 1..X Linux memory blocks. 158 /* If set, the driver is in SBM, otherwise in BBM. */ 223 } bbm; member 228 * sbm.sb_states, bbm.bb_count, and bbm.bb_states 346 return addr / vm->bbm.bb_size; in virtio_mem_phys_to_bb_id() 355 return bb_id * vm->bbm.bb_size; in virtio_mem_bb_id_to_phys() 377 const unsigned long idx = bb_id - vm->bbm.first_bb_id; in virtio_mem_bbm_set_bb_state() 380 old_state = vm->bbm.bb_states[idx]; in virtio_mem_bbm_set_bb_state() 381 vm->bbm.bb_states[idx] = state; in virtio_mem_bbm_set_bb_state() [all …]
|
| /linux/drivers/firmware/arm_scmi/vendors/imx/ |
| H A D | Kconfig | 5 tristate "i.MX SCMI BBM EXTENSION" 9 This enables i.MX System BBM control logic which supports RTC 13 module will be called imx-sm-bbm.
|
| H A D | Makefile | 2 obj-$(CONFIG_IMX_SCMI_BBM_EXT) += imx-sm-bbm.o
|
| /linux/drivers/rtc/ |
| H A D | rtc-imx-sm-bbm.c | 86 pr_err("Unexpected bbm event: %s\n", __func__); in scmi_imx_bbm_rtc_notifier() 148 { SCMI_PROTOCOL_IMX_BBM, "imx-bbm-rtc" }, 154 .name = "scmi-imx-bbm-rtc", 161 MODULE_DESCRIPTION("IMX SM BBM RTC driver");
|
| H A D | Makefile | 81 obj-$(CONFIG_RTC_DRV_IMX_BBM_SCMI) += rtc-imx-sm-bbm.o
|
| H A D | Kconfig | 1902 tristate "NXP i.MX BBM SCMI RTC support" 1908 module will be called rtc-imx-sm-bbm.
|
| /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. 1246 * come from bbm.h. By default, these options will be copied to 1250 * position; i.e., BBM = 11110111b is good when badblockbits = 7
|
| /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()
|
| H A D | ecc-sw-hamming.c | 562 /* This engine does not provide BBM/free OOB bytes protection */ in nand_ecc_sw_hamming_prepare_io_req() 601 /* This engine does not provide BBM/free OOB bytes protection */ in nand_ecc_sw_hamming_finish_io_req()
|
| /linux/drivers/mtd/nand/raw/ |
| 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() 1366 * This function allocates and initializes a nand_bbt_descr for BBM detection
|
| H A D | denali.c | 258 /* This chunk overwraps the BBM area. Must be split */ in denali_payload_xfer() 289 /* BBM at the beginning of the OOB area */ in denali_oob_xfer() 308 /* This chunk overwraps the BBM area. Must be split */ in denali_oob_xfer()
|
| H A D | cadence-nand-controller.c | 577 /* Offset of BBM. */ 579 /* Number of bytes reserved for BBM. */ 1468 dev_err(cdns_ctrl->dev, "read BBM failed\n"); in cadence_nand_read_bbm() 1619 /* BBM at the beginning of the OOB area. */ in cadence_nand_write_page_raw() 1824 /* BBM at the beginning of the OOB area. */ in cadence_nand_read_page_raw()
|
| /linux/sound/pci/asihpi/ |
| H A D | hpi6205.c | 795 /* GRANT phase. Set up the BBM status, tell the DSP about in outstream_host_buffer_allocate() 796 the buffer so it can start using BBM. in outstream_host_buffer_allocate() 901 /* there is no BBM buffer, write via message */ in outstream_write() 932 or enough to fit from current to end of BBM buffer */ in outstream_write() 949 * already written data into the BBM buffer, but the DSP won't know in outstream_write() 1210 or enough to fit from current to end of BBM buffer */ in instream_read()
|
| H A D | hpi.h | 396 process data, and BBM host buffer counters are updated.
|
| /linux/drivers/spi/ |
| H A D | spi-mtk-snfi.c | 53 // in the returned data, which is the BBM position expected by kernel. However, 58 // 1. The [pagesize] byte on a nand page is used as BBM, which will appear at 64 // 1. Store the BBM at [page_size - (nsectors - 1) * spare_size] to [page_size], 65 // which is the expected BBM position by kernel.
|
| /linux/arch/arm64/mm/ |
| H A D | hugetlbpage.c | 523 * Break-before-make (BBM) is required for all user space mappings in huge_ptep_modify_prot_start()
|
| /linux/drivers/mtd/nand/spi/ |
| H A D | gigadevice.c | 223 /* Reserve 1 bytes for the BBM. */ in gd5fxgqx_variant2_ooblayout_free()
|
| /linux/tools/testing/selftests/kvm/arm64/ |
| H A D | set_id_regs.c | 195 REG_FTR_BITS(FTR_LOWER_SAFE, ID_AA64MMFR2_EL1, BBM, 0),
|
| /linux/arch/arm64/kvm/ |
| H A D | nested.c | 1102 * through a BBM sequence. in invalidate_vncr_va()
|
| /linux/arch/arm64/kernel/ |
| H A D | cpufeature.c | 2185 if (SYS_FIELD_GET(ID_AA64MMFR2_EL1, BBM, mmfr2) >= ID_AA64MMFR2_EL1_BBM_3) in cpu_supports_bbml3() 3100 .desc = "BBM Level 3",
|