Home
last modified time | relevance | path

Searched full:bbm (Results 1 – 25 of 28) sorted by relevance

12

/linux/drivers/mtd/nand/onenand/
H A Donenand_bbt.c59 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 Donenand_base.c2123 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 Dimx-sm-bbm-key.c96 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 Dvirtio_mem.c52 * * 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 DKconfig5 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 DMakefile2 obj-$(CONFIG_IMX_SCMI_BBM_EXT) += imx-sm-bbm.o
/linux/drivers/rtc/
H A Drtc-imx-sm-bbm.c86 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 DMakefile81 obj-$(CONFIG_RTC_DRV_IMX_BBM_SCMI) += rtc-imx-sm-bbm.o
H A DKconfig1902 tristate "NXP i.MX BBM SCMI RTC support"
1908 module will be called rtc-imx-sm-bbm.
/linux/include/linux/mtd/
H A Donenand.h16 #include <linux/mtd/bbm.h>
80 * @bbm: [REPLACEABLE] pointer to Bad Block Management
135 void *bbm; member
H A Dbbm.h3 * NAND family Bad Block Management (BBM) header file
124 * @priv: [OPTIONAL] pointer to private bbm date
H A Drawnand.h19 #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 Decc-sw-bch.c213 /* 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 Decc-sw-hamming.c562 /* 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 Dnand_bbt.c59 #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 Ddenali.c258 /* 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 Dcadence-nand-controller.c577 /* 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 Dhpi6205.c795 /* 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 Dhpi.h396 process data, and BBM host buffer counters are updated.
/linux/drivers/spi/
H A Dspi-mtk-snfi.c53 // 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 Dhugetlbpage.c523 * Break-before-make (BBM) is required for all user space mappings in huge_ptep_modify_prot_start()
/linux/drivers/mtd/nand/spi/
H A Dgigadevice.c223 /* Reserve 1 bytes for the BBM. */ in gd5fxgqx_variant2_ooblayout_free()
/linux/tools/testing/selftests/kvm/arm64/
H A Dset_id_regs.c195 REG_FTR_BITS(FTR_LOWER_SAFE, ID_AA64MMFR2_EL1, BBM, 0),
/linux/arch/arm64/kvm/
H A Dnested.c1102 * through a BBM sequence. in invalidate_vncr_va()
/linux/arch/arm64/kernel/
H A Dcpufeature.c2185 if (SYS_FIELD_GET(ID_AA64MMFR2_EL1, BBM, mmfr2) >= ID_AA64MMFR2_EL1_BBM_3) in cpu_supports_bbml3()
3100 .desc = "BBM Level 3",

12