Home
last modified time | relevance | path

Searched full:ecc (Results 1 – 25 of 608) sorted by relevance

12345678910>>...25

/linux/drivers/mtd/nand/
H A Decc-mtk.c3 * MTK ECC controller driver.
18 #include <linux/mtd/nand-ecc-mtk.h>
71 /* ecc strength that each IP supports */
126 static inline int mtk_ecc_wait_idle(struct mtk_ecc *ecc, in mtk_ecc_wait_idle() argument
129 struct device *dev = ecc->dev; in mtk_ecc_wait_idle()
133 ret = readl_poll_timeout_atomic(ecc->regs + ECC_IDLE_REG(op), val, in mtk_ecc_wait_idle()
145 struct mtk_ecc *ecc = id; in mtk_ecc_irq() local
148 dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECIRQ_STA]) in mtk_ecc_irq()
151 dec = readw(ecc in mtk_ecc_irq()
175 mtk_ecc_config(struct mtk_ecc * ecc,struct mtk_ecc_config * config) mtk_ecc_config() argument
222 mtk_ecc_get_stats(struct mtk_ecc * ecc,struct mtk_ecc_stats * stats,int sectors) mtk_ecc_get_stats() argument
250 mtk_ecc_release(struct mtk_ecc * ecc) mtk_ecc_release() argument
257 mtk_ecc_hw_init(struct mtk_ecc * ecc) mtk_ecc_hw_init() argument
269 struct mtk_ecc *ecc; mtk_ecc_get() local
295 struct mtk_ecc *ecc = NULL; of_mtk_ecc_get() local
311 mtk_ecc_enable(struct mtk_ecc * ecc,struct mtk_ecc_config * config) mtk_ecc_enable() argument
359 mtk_ecc_disable(struct mtk_ecc * ecc) mtk_ecc_disable() argument
386 mtk_ecc_wait_done(struct mtk_ecc * ecc,enum mtk_ecc_operation op) mtk_ecc_wait_done() argument
401 mtk_ecc_encode(struct mtk_ecc * ecc,struct mtk_ecc_config * config,u8 * data,u32 bytes) mtk_ecc_encode() argument
450 mtk_ecc_adjust_strength(struct mtk_ecc * ecc,u32 * p) mtk_ecc_adjust_strength() argument
469 mtk_ecc_get_parity_bits(struct mtk_ecc * ecc) mtk_ecc_get_parity_bits() argument
539 struct mtk_ecc *ecc; mtk_ecc_probe() local
594 struct mtk_ecc *ecc = dev_get_drvdata(dev); mtk_ecc_suspend() local
603 struct mtk_ecc *ecc = dev_get_drvdata(dev); mtk_ecc_resume() local
[all...]
H A Decc.c3 * Generic Error-Correcting Code (ECC) engine
10 * This file describes the abstraction of any NAND ECC engine. It has been
13 * There are three main situations where instantiating this ECC engine makes
15 * - external: The ECC engine is outside the NAND pipeline, typically this
16 * is a software ECC engine, or an hardware engine that is
18 * - pipelined: The ECC engine is inside the NAND pipeline, ie. on the
20 * controllers. In the pipeline case, the ECC bytes are
23 * - ondie: The ECC engine is inside the NAND pipeline, on the chip's side.
28 * - prepare: Prepare an I/O request. Enable/disable the ECC engine based on
30 * engine, this step may involve to derive the ECC bytes and place
[all …]
H A Decc-sw-bch.c3 * This file provides ECC correction for more than 1 bit per block of data,
15 #include <linux/mtd/nand-ecc-sw-bch.h>
18 * nand_ecc_sw_bch_calculate - Calculate the ECC corresponding to a data block
21 * @code: Output buffer with ECC
26 struct nand_ecc_sw_bch_conf *engine_conf = nand->ecc.ctx.priv; in nand_ecc_sw_bch_calculate()
30 bch_encode(engine_conf->bch, buf, nand->ecc.ctx.conf.step_size, code); in nand_ecc_sw_bch_calculate()
44 * @read_ecc: ECC bytes from the chip
45 * @calc_ecc: ECC calculated from the raw data
52 struct nand_ecc_sw_bch_conf *engine_conf = nand->ecc.ctx.priv; in nand_ecc_sw_bch_correct()
53 unsigned int step_size = nand->ecc in nand_ecc_sw_bch_correct()
[all...]
H A DKconfig12 menu "ECC engine support"
19 bool "Software Hamming ECC engine"
31 bool "NAND ECC Smart Media byte order"
35 Software ECC according to the Smart Media Specification.
39 bool "Software BCH ECC engine"
46 ECC codes. They are used with NAND devices requiring more than 1 bit
50 bool "Macronix external hardware ECC engine"
54 This enables support for the hardware ECC engine from Macronix.
57 tristate "Mediatek hardware ECC engine"
62 This enables support for the hardware ECC engine from Mediatek.
[all …]
/linux/drivers/mtd/nand/raw/ingenic/
H A Dingenic_ecc.c3 * JZ47xx ECC common code
19 * ingenic_ecc_calculate() - calculate ECC for a data buffer
20 * @ecc: ECC device.
21 * @params: ECC parameters.
23 * @ecc_code: output buffer with ECC.
25 * Return: 0 on success, -ETIMEDOUT if timed out while waiting for ECC
28 int ingenic_ecc_calculate(struct ingenic_ecc *ecc, in ingenic_ecc_calculate() argument
32 return ecc->ops->calculate(ecc, param in ingenic_ecc_calculate()
48 ingenic_ecc_correct(struct ingenic_ecc * ecc,struct ingenic_ecc_params * params,u8 * buf,u8 * ecc_code) ingenic_ecc_correct() argument
69 struct ingenic_ecc *ecc; ingenic_ecc_get() local
103 struct ingenic_ecc *ecc = NULL; of_ingenic_ecc_get() local
126 ingenic_ecc_release(struct ingenic_ecc * ecc) ingenic_ecc_release() argument
135 struct ingenic_ecc *ecc; ingenic_ecc_probe() local
[all...]
H A Djz4740_ecc.c3 * JZ4740 ECC controller driver
45 static void jz4740_ecc_reset(struct ingenic_ecc *ecc, bool calc_ecc) in jz4740_ecc_reset() argument
50 writel(0, ecc->base + JZ_REG_NAND_IRQ_STAT); in jz4740_ecc_reset()
52 /* Initialize and enable ECC hardware */ in jz4740_ecc_reset()
53 reg = readl(ecc->base + JZ_REG_NAND_ECC_CTRL); in jz4740_ecc_reset()
57 if (calc_ecc) /* calculate ECC from data */ in jz4740_ecc_reset()
59 else /* correct data from ECC */ in jz4740_ecc_reset()
62 writel(reg, ecc->base + JZ_REG_NAND_ECC_CTRL); in jz4740_ecc_reset()
65 static int jz4740_ecc_calculate(struct ingenic_ecc *ecc, in jz4740_ecc_calculate() argument
73 jz4740_ecc_reset(ecc, true); in jz4740_ecc_calculate()
[all …]
H A Dingenic_ecc.h17 * struct ingenic_ecc_params - ECC parameters
18 * @size: data bytes per ECC step.
19 * @bytes: ECC bytes per step.
20 * @strength: number of correctable bits per ECC step.
29 int ingenic_ecc_calculate(struct ingenic_ecc *ecc,
32 int ingenic_ecc_correct(struct ingenic_ecc *ecc,
36 void ingenic_ecc_release(struct ingenic_ecc *ecc);
39 static inline int ingenic_ecc_calculate(struct ingenic_ecc *ecc, in ingenic_ecc_calculate() argument
46 static inline int ingenic_ecc_correct(struct ingenic_ecc *ecc, in ingenic_ecc_correct() argument
53 static inline void ingenic_ecc_release(struct ingenic_ecc *ecc) in ingenic_ecc_release() argument
[all …]
/linux/drivers/dma/ti/
H A Dedma.c219 struct edma_cc *ecc; member
300 static inline unsigned int edma_read(struct edma_cc *ecc, int offset) in edma_read() argument
302 return (unsigned int)__raw_readl(ecc->base + offset); in edma_read()
305 static inline void edma_write(struct edma_cc *ecc, int offset, int val) in edma_write() argument
307 __raw_writel(val, ecc->base + offset); in edma_write()
310 static inline void edma_modify(struct edma_cc *ecc, int offset, unsigned and, in edma_modify() argument
313 unsigned val = edma_read(ecc, offset); in edma_modify()
317 edma_write(ecc, offset, val); in edma_modify()
320 static inline void edma_or(struct edma_cc *ecc, int offset, unsigned or) in edma_or() argument
322 unsigned val = edma_read(ecc, offse in edma_or()
328 edma_read_array(struct edma_cc * ecc,int offset,int i) edma_read_array() argument
334 edma_write_array(struct edma_cc * ecc,int offset,int i,unsigned val) edma_write_array() argument
340 edma_modify_array(struct edma_cc * ecc,int offset,int i,unsigned and,unsigned or) edma_modify_array() argument
346 edma_or_array2(struct edma_cc * ecc,int offset,int i,int j,unsigned or) edma_or_array2() argument
352 edma_write_array2(struct edma_cc * ecc,int offset,int i,int j,unsigned val) edma_write_array2() argument
358 edma_shadow0_read_array(struct edma_cc * ecc,int offset,int i) edma_shadow0_read_array() argument
364 edma_shadow0_write(struct edma_cc * ecc,int offset,unsigned val) edma_shadow0_write() argument
370 edma_shadow0_write_array(struct edma_cc * ecc,int offset,int i,unsigned val) edma_shadow0_write_array() argument
376 edma_param_modify(struct edma_cc * ecc,int offset,int param_no,unsigned and,unsigned or) edma_param_modify() argument
382 edma_assign_priority_to_queue(struct edma_cc * ecc,int queue_no,int priority) edma_assign_priority_to_queue() argument
392 struct edma_cc *ecc = echan->ecc; edma_set_chmap() local
403 struct edma_cc *ecc = echan->ecc; edma_setup_interrupt() local
419 edma_write_slot(struct edma_cc * ecc,unsigned slot,const struct edmacc_param * param) edma_write_slot() argument
428 edma_read_slot(struct edma_cc * ecc,unsigned slot,struct edmacc_param * param) edma_read_slot() argument
454 edma_alloc_slot(struct edma_cc * ecc,int slot) edma_alloc_slot() argument
488 edma_free_slot(struct edma_cc * ecc,unsigned slot) edma_free_slot() argument
506 edma_link(struct edma_cc * ecc,unsigned from,unsigned to) edma_link() argument
528 edma_get_position(struct edma_cc * ecc,unsigned slot,bool dst) edma_get_position() argument
548 struct edma_cc *ecc = echan->ecc; edma_start() local
575 struct edma_cc *ecc = echan->ecc; edma_stop() local
621 struct edma_cc *ecc = echan->ecc; edma_trigger_channel() local
634 struct edma_cc *ecc = echan->ecc; edma_clean_channel() local
653 struct edma_cc *ecc = echan->ecc; edma_assign_channel_eventq() local
671 struct edma_cc *ecc = echan->ecc; edma_alloc_channel() local
720 struct edma_cc *ecc = echan->ecc; edma_execute() local
1493 struct edma_cc *ecc = data; dma_irq_handler() local
1538 struct edma_cc *ecc = echan->ecc; edma_error_handler() local
1579 edma_error_pending(struct edma_cc * ecc) edma_error_pending() argument
1592 struct edma_cc *ecc = data; dma_ccerr_handler() local
1668 struct edma_cc *ecc = echan->ecc; edma_alloc_chan_resources() local
1922 edma_dma_init(struct edma_cc * ecc,bool legacy_mode) edma_dma_init() argument
2019 edma_setup_from_hw(struct device * dev,struct edma_soc_info * pdata,struct edma_cc * ecc) edma_setup_from_hw() argument
2232 struct edma_cc *ecc = ofdma->of_dma_data; of_edma_xlate() local
2296 struct edma_cc *ecc; edma_probe() local
2570 struct edma_cc *ecc = dev_get_drvdata(dev); edma_remove() local
2590 struct edma_cc *ecc = dev_get_drvdata(dev); edma_pm_suspend() local
2604 struct edma_cc *ecc = dev_get_drvdata(dev); edma_pm_resume() local
[all...]
/linux/drivers/mtd/nand/raw/
H A Dnand_micron.c15 * corrected by on-die ECC and should be rewritten.
20 * On chips with 8-bit ECC and additional bit can be used to distinguish
66 struct micron_on_die_ecc ecc; member
127 .ecc = micron_nand_on_die_4_ooblayout_ecc,
140 oobregion->offset = mtd->oobsize - chip->ecc.total; in micron_nand_on_die_8_ooblayout_ecc()
141 oobregion->length = chip->ecc.total; in micron_nand_on_die_8_ooblayout_ecc()
156 oobregion->length = mtd->oobsize - chip->ecc.total - 2; in micron_nand_on_die_8_ooblayout_free()
162 .ecc = micron_nand_on_die_8_ooblayout_ecc,
172 if (micron->ecc.forced) in micron_nand_on_die_ecc_setup()
175 if (micron->ecc.enabled == enable) in micron_nand_on_die_ecc_setup()
[all …]
H A Dlpc32xx_slc.c55 #define SLCCTRL_ECC_CLEAR (1 << 1) /* Reset ECC bit */
62 #define SLCCFG_DMA_ECC (1 << 4) /* Enable DMA ECC bit */
63 #define SLCCFG_ECC_EN (1 << 3) /* ECC enable bit */
107 /* ECC line party fetch macro */
112 * DMA requires storage space for the DMA local buffer and the hardware ECC
119 /* Number of bytes used for ECC stored in NAND per 256 bytes */
133 * NAND ECC Layout for small page NAND devices
166 .ecc = lpc32xx_ooblayout_ecc,
227 * DMA and CPU addresses of ECC work area and data buffer
323 * Prepares SLC for transfers with H/W ECC enable in lpc32xx_wp_disable()
405 lpc32xx_slc_ecc_copy(uint8_t * spare,const uint32_t * ecc,int count) lpc32xx_slc_ecc_copy() argument
[all...]
H A Domap_elm.c98 * @bch_type: Type of BCH ecc
99 * @ecc_steps: ECC steps to assign to config
100 * @ecc_step_size: ECC step size to assign to config
101 * @ecc_syndrome_size: ECC syndrome size to assign to config
113 /* ELM cannot detect ECC errors for chunks > 1KB */ in elm_config()
115 dev_err(dev, "unsupported config ecc-size=%d\n", ecc_step_size); in elm_config()
120 dev_err(dev, "unsupported config ecc-step=%d\n", ecc_steps); in elm_config()
160 * @ecc: buffer with calculated ecc
162 * Load syndrome fragment registers with calculated ecc i
165 elm_load_syndrome(struct elm_info * info,struct elm_errorvec * err_vec,u8 * ecc) elm_load_syndrome() argument
[all...]
H A Dmtk_nand.c19 #include <linux/mtd/nand-ecc-mtk.h>
146 struct mtk_ecc *ecc; member
185 return (u8 *)p + i * chip->ecc.size; in data_ptr()
211 return chip->ecc.size + mtk_nand->spare_per_sector; in mtk_data_len()
225 return nfc->buffer + i * mtk_data_len(chip) + chip->ecc.size; in mtk_oob_ptr()
335 if (chip->ecc.size == 512) in mtk_nfc_hw_runtime_config()
341 if (chip->ecc.size == 512) in mtk_nfc_hw_runtime_config()
347 if (chip->ecc.size == 512) in mtk_nfc_hw_runtime_config()
364 if (chip->ecc.size == 1024) in mtk_nfc_hw_runtime_config()
383 nfc->ecc_cfg.strength = chip->ecc in mtk_nfc_hw_runtime_config()
[all...]
H A Dstm32_fmc2_nand.c28 /* ECC step size */
43 /* Max ECC buffer length */
326 /* Configure ECC algorithm (default configuration is Hamming) */ in stm32_fmc2_nfc_setup()
329 if (chip->ecc.strength == FMC2_ECC_BCH8) { in stm32_fmc2_nfc_setup()
332 } else if (chip->ecc.strength == FMC2_ECC_BCH4) { in stm32_fmc2_nfc_setup()
341 /* Set ECC sector size */ in stm32_fmc2_nfc_setup()
397 dma_cfg.src_addr += chip->ecc.strength == FMC2_ECC_HAM ? in stm32_fmc2_nfc_select_chip()
403 dev_err(nfc->dev, "ECC DMA engine slave config failed\n"); in stm32_fmc2_nfc_select_chip()
407 /* Calculate ECC length needed for one sector */ in stm32_fmc2_nfc_select_chip()
408 nfc->dma_ecc_len = chip->ecc in stm32_fmc2_nfc_select_chip()
503 stm32_fmc2_nfc_ham_set_ecc(const u32 ecc_sta,u8 * ecc) stm32_fmc2_nfc_ham_set_ecc() argument
511 stm32_fmc2_nfc_ham_calculate(struct nand_chip * chip,const u8 * data,u8 * ecc) stm32_fmc2_nfc_ham_calculate() argument
592 stm32_fmc2_nfc_bch_calculate(struct nand_chip * chip,const u8 * data,u8 * ecc) stm32_fmc2_nfc_bch_calculate() argument
1682 struct nand_ecc_ctrl *ecc = &chip->ecc; stm32_fmc2_nfc_ooblayout_ecc() local
1697 struct nand_ecc_ctrl *ecc = &chip->ecc; stm32_fmc2_nfc_ooblayout_free() local
[all...]
H A Dnuvoton-ma35d1-nand-controller.c73 /* Define for the BCH hardware ECC engine */
121 oob_region->length = chip->ecc.total; in ma35_ooblayout_ecc()
135 oob_region->length = mtd->oobsize - chip->ecc.total - 2; in ma35_ooblayout_free()
143 .ecc = ma35_ooblayout_ecc,
248 /* Protect redundant 3 bytes and disable ECC engine */ in ma35_nand_hwecc_init()
253 if (chip->ecc.strength != 0) { in ma35_nand_hwecc_init()
254 chip->ecc.steps = mtd->writesize / chip->ecc.size; in ma35_nand_hwecc_init()
255 nvtnand->eccstatus = (chip->ecc.steps < 4) ? 1 : chip->ecc in ma35_nand_hwecc_init()
[all...]
/linux/Documentation/devicetree/bindings/mtd/
H A Drockchip,nand-controller.yaml66 nand-ecc-mode:
69 nand-ecc-step-size:
72 nand-ecc-strength:
75 The ECC configurations that can be supported are as follows.
76 NFC v600 ECC 16, 24, 40, 60
79 NFC v622 ECC 16, 24, 40, 60
82 NFC v800 ECC 16
85 NFC v900 ECC 16, 40, 60, 70
96 The NFC driver need this information to select ECC
100 rockchip,boot-ecc-strength:
[all …]
H A Dhisi504-nand.txt11 - nand-ecc-mode: Support none and hw ecc mode.
17 - nand-ecc-strength: Number of bits to correct per ECC step.
18 - nand-ecc-step-size: Number of data bytes covered by a single ECC step.
20 The following ECC strength and step size are currently supported:
22 - nand-ecc-strength = <16>, nand-ecc-step-size = <1024>
34 nand-ecc-mode = "hw";
35 nand-ecc-strength = <16>;
36 nand-ecc-step-size = <1024>;
H A Dmediatek,nand-ecc-engine.yaml4 $id: http://devicetree.org/schemas/mtd/mediatek,nand-ecc-engine.yaml#
7 title: MediaTek(MTK) SoCs NAND ECC engine
13 MTK NAND ECC engine can cowork with MTK raw NAND and SPI NAND controller.
18 - mediatek,mt2701-ecc
19 - mediatek,mt2712-ecc
20 - mediatek,mt7622-ecc
21 - mediatek,mt7986-ecc
25 - description: Base physical address and size of ECC.
29 - description: ECC interrupt
56 bch: ecc@1100e000 {
[all …]
H A Dmediatek,mtk-nfc.yaml37 ecc-engine:
38 description: device-tree node of the required ECC engine.
48 nand-ecc-mode:
63 nand-ecc-step-size:
65 nand-ecc-strength:
78 nand-ecc-step-size:
80 nand-ecc-strength:
93 nand-ecc-step-size:
95 nand-ecc-strength:
104 - ecc-engine
[all …]
H A Dmxicy,nand-ecc-engine.yaml4 $id: http://devicetree.org/schemas/mtd/mxicy,nand-ecc-engine.yaml#
7 title: Macronix NAND ECC engine
14 const: mxicy,nand-ecc-engine-rev3
46 nand-ecc-engine = <&ecc_engine0>;
50 ecc_engine0: ecc@43c40000 {
51 compatible = "mxicy,nand-ecc-engine-rev3";
65 nand-ecc-engine = <&ecc_engine1>;
70 nand-ecc-engine = <&spi_controller1>;
74 ecc_engine1: ecc@43c40000 {
75 compatible = "mxicy,nand-ecc-engine-rev3";
/linux/Documentation/driver-api/
H A Dmtdnand.rst357 Hardware ECC support
363 The nand driver supports three different types of hardware ECC.
367 Hardware ECC generator providing 3 bytes ECC per 256 byte.
371 Hardware ECC generator providing 3 bytes ECC per 512 byte.
375 Hardware ECC generator providing 6 bytes ECC per 512 byte.
379 Hardware ECC generator providing 8 bytes ECC per 512 byte.
396 Transfer the ECC from the hardware to the buffer. If the option
402 In case of an ECC error this function is called for error detection
409 Hardware ECC with syndrome calculation
412 Many hardware ECC implementations provide Reed-Solomon codes and
[all …]
/linux/arch/arm/mach-socfpga/
H A Docram.c21 np = of_find_compatible_node(NULL, NULL, "altr,socfpga-ocram-ecc"); in socfpga_init_ocram_ecc()
23 pr_err("Unable to find socfpga-ocram-ecc\n"); in socfpga_init_ocram_ecc()
30 pr_err("Unable to map OCRAM ecc regs.\n"); in socfpga_init_ocram_ecc()
34 /* Clear any pending OCRAM ECC interrupts, then enable ECC */ in socfpga_init_ocram_ecc()
58 /* ECC Manager Defines */
89 * This function uses the memory initialization block in the Arria10 ECC
90 * controller to initialize/clear the entire memory data and ECC data.
106 /* Clear any pending ECC interrupts */ in altr_init_memory_port()
125 np = of_find_compatible_node(NULL, NULL, "altr,socfpga-a10-ocram-ecc"); in socfpga_init_arria10_ocram_ecc()
127 pr_err("Unable to find socfpga-a10-ocram-ecc\n"); in socfpga_init_arria10_ocram_ecc()
[all …]
H A Dl2_cache.c11 /* A10 System Manager L2 ECC Control register */
19 /* A10 System Manager L2 ECC IRQ Clear register */
28 np = of_find_compatible_node(NULL, NULL, "altr,socfpga-l2-ecc"); in socfpga_init_l2_ecc()
30 pr_err("Unable to find socfpga-l2-ecc in dtb\n"); in socfpga_init_l2_ecc()
37 pr_err("Unable to find L2 ECC mapping in dtb\n"); in socfpga_init_l2_ecc()
41 /* Enable ECC */ in socfpga_init_l2_ecc()
52 np = of_find_compatible_node(NULL, NULL, "altr,socfpga-a10-l2-ecc"); in socfpga_init_arria10_l2_ecc()
54 pr_err("Unable to find socfpga-a10-l2-ecc in dtb\n"); in socfpga_init_arria10_l2_ecc()
61 pr_err("Unable to find L2 ECC mapping in dtb\n"); in socfpga_init_arria10_l2_ecc()
66 pr_err("System Manager not mapped for L2 ECC\n"); in socfpga_init_arria10_l2_ecc()
[all …]
/linux/arch/sparc/include/asm/
H A Dchafsr.h33 /* Hardware corrected E-cache Tag ECC error */
38 /* SW handled correctable E-cache Tag ECC error */
43 /* Uncorrectable E-cache Tag ECC error */
48 /* Uncorrectable system bus data ECC error due to prefetch
64 * This bit is not set when multiple ECC errors happen within a single
65 * 64-byte system bus transaction. Only the first ECC error in a 16-byte
96 /* HW Corrected system bus MTAG ECC error */
101 /* Uncorrectable system bus MTAG ECC error */
106 /* HW Corrected system bus data ECC error for read of interrupt vector */
111 /* Uncorrectable system bus data ECC error for read of interrupt vector */
[all …]
/linux/fs/ocfs2/
H A Dblockcheck.c5 * Checksum and ECC codes for the OCFS2 userspace library.
326 mlog(ML_NOTICE, "ECC recovery count has wrapped\n"); in ocfs2_blockcheck_inc_recover()
338 * ocfs2_block_check structure describing the crc32 and the ecc.
353 u32 ecc; in ocfs2_block_check_compute() local
358 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute()
361 * No ecc'd ocfs2 structure is larger than 4K, so ecc will be no in ocfs2_block_check_compute()
364 BUG_ON(ecc > USHRT_MAX); in ocfs2_block_check_compute()
367 bc->bc_ecc = cpu_to_le16((u16)ecc); in ocfs2_block_check_compute()
385 u32 crc, ecc; in ocfs2_block_check_validate() local
401 "CRC32 failed: stored: 0x%x, computed 0x%x. Applying ECC.\n", in ocfs2_block_check_validate()
[all …]
/linux/include/linux/mtd/
H A Dnand.h138 * enum nand_ecc_engine_type - NAND ECC engine type
140 * @NAND_ECC_ENGINE_TYPE_NONE: No ECC correction
141 * @NAND_ECC_ENGINE_TYPE_SOFT: Software ECC correction
142 * @NAND_ECC_ENGINE_TYPE_ON_HOST: On host hardware ECC correction
143 * @NAND_ECC_ENGINE_TYPE_ON_DIE: On chip hardware ECC correction
154 * enum nand_ecc_placement - NAND ECC bytes placement
155 * @NAND_ECC_PLACEMENT_UNKNOWN: The actual position of the ECC bytes is unknown
156 * @NAND_ECC_PLACEMENT_OOB: The ECC bytes are located in the OOB area
157 * @NAND_ECC_PLACEMENT_INTERLEAVED: Syndrome layout, there are ECC bytes
168 * enum nand_ecc_algo - NAND ECC algorithm
[all …]

12345678910>>...25