/linux-master/drivers/mtd/nand/raw/ |
H A D | qcom_nandc.c | 495 * of a page, consisting of all data, ecc, spare 506 * ecc/non-ecc mode for the current nand flash 550 * @ecc_modes - ecc mode for NAND 765 static bool qcom_nandc_is_last_cw(struct nand_ecc_ctrl *ecc, int cw) argument 767 return cw == (ecc->steps - 1); 775 struct nand_ecc_ctrl *ecc = &chip->ecc; local 778 if (nandc->props->qpic_v2 && qcom_nandc_is_last_cw(ecc, cw)) 783 if (nandc->props->qpic_v2 && qcom_nandc_is_last_cw(ecc, c 1240 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1468 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1557 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1616 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1718 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1796 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1890 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1918 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1943 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1964 struct nand_ecc_ctrl *ecc = &chip->ecc; local 2038 struct nand_ecc_ctrl *ecc = &chip->ecc; local 2115 struct nand_ecc_ctrl *ecc = &chip->ecc; local 2157 struct nand_ecc_ctrl *ecc = &chip->ecc; local 2194 struct nand_ecc_ctrl *ecc = &chip->ecc; local 2318 struct nand_ecc_ctrl *ecc = &chip->ecc; local 2340 struct nand_ecc_ctrl *ecc = &chip->ecc; local 2369 struct nand_ecc_ctrl *ecc = &chip->ecc; local 2685 struct nand_ecc_ctrl *ecc = &chip->ecc; local [all...] |
H A D | diskonchip.c | 79 /* This is the ecc value computed by the HW ecc generator upon writing an empty 135 static int doc_ecc_decode(struct rs_control *rs, uint8_t *data, uint8_t *ecc) argument 143 /* Convert the ecc bytes into words */ 144 ds[0] = ((ecc[4] & 0xff) >> 0) | ((ecc[5] & 0x03) << 8); 145 ds[1] = ((ecc[5] & 0xfc) >> 2) | ((ecc[2] & 0x0f) << 6); 146 ds[2] = ((ecc[2] & 0xf0) >> 4) | ((ecc[ [all...] |
H A D | stm32_fmc2_nand.c | 328 if (chip->ecc.strength == FMC2_ECC_BCH8) { 331 } else if (chip->ecc.strength == FMC2_ECC_BCH4) { 396 dma_cfg.src_addr += chip->ecc.strength == FMC2_ECC_HAM ? 407 nfc->dma_ecc_len = chip->ecc.strength == FMC2_ECC_HAM ? 485 if (chip->ecc.strength != FMC2_ECC_HAM) { 502 static void stm32_fmc2_nfc_ham_set_ecc(const u32 ecc_sta, u8 *ecc) argument 504 ecc[0] = ecc_sta; 505 ecc[1] = ecc_sta >> 8; 506 ecc[2] = ecc_sta >> 16; 510 u8 *ecc) 509 stm32_fmc2_nfc_ham_calculate(struct nand_chip *chip, const u8 *data, u8 *ecc) argument 590 stm32_fmc2_nfc_bch_calculate(struct nand_chip *chip, const u8 *data, u8 *ecc) argument 1680 struct nand_ecc_ctrl *ecc = &chip->ecc; local 1695 struct nand_ecc_ctrl *ecc = &chip->ecc; local [all...] |
H A D | nand_base.c | 38 #include <linux/mtd/nand-ecc-sw-hamming.h> 39 #include <linux/mtd/nand-ecc-sw-bch.h> 262 res = chip->ecc.read_oob(chip, first_page + page_offset); 479 status = chip->ecc.write_oob_raw(chip, page & chip->pagemask); 481 status = chip->ecc.write_oob(chip, page & chip->pagemask); 2838 * @ecc: ECC buffer 2873 void *ecc, int ecclen, 2886 ecc_bitflips = nand_check_erased_buf(ecc, ecclen, bitflips_threshold); 2901 memset(ecc, 0xff, ecclen); 2926 * nand_read_page_raw - [INTERN] read raw page data without ecc 2872 nand_check_erased_ecc_chunk(void *data, int datalen, void *ecc, int ecclen, void *extraoob, int extraooblen, int bitflips_threshold) argument 5867 struct nand_ecc_ctrl *ecc = &chip->ecc; local 5928 struct nand_ecc_ctrl *ecc = &chip->ecc; local 6304 struct nand_ecc_ctrl *ecc = &chip->ecc; local [all...] |
H A D | mtk_nand.c | 19 #include <linux/mtd/nand-ecc-mtk.h> 146 struct mtk_ecc *ecc; member in struct:mtk_nfc 185 return (u8 *)p + i * chip->ecc.size; 211 return chip->ecc.size + mtk_nand->spare_per_sector; 225 return nfc->buffer + i * mtk_data_len(chip) + chip->ecc.size; 335 if (chip->ecc.size == 512) 341 if (chip->ecc.size == 512) 347 if (chip->ecc.size == 512) 364 if (chip->ecc.size == 1024) 383 nfc->ecc_cfg.strength = chip->ecc [all...] |
H A D | meson_nand.c | 310 pagesize = nand->ecc.size; 319 pages = len / nand->ecc.size; 372 len = nand->ecc.size * (i + 1) + (nand->ecc.bytes + 2) * i; 382 temp = nand->ecc.size + nand->ecc.bytes; 394 oob_len = nand->ecc.bytes + 2; 395 for (i = 0; i < nand->ecc.steps; i++) { 398 memcpy(buf, dsrc, nand->ecc.size); 399 buf += nand->ecc 869 struct nand_ecc_ctrl *ecc = &nand->ecc; local [all...] |
H A D | lpc32xx_mlc.c | 134 if (section >= nand_chip->ecc.steps) 137 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; 138 oobregion->length = nand_chip->ecc.bytes; 148 if (section >= nand_chip->ecc.steps) 152 oobregion->length = 16 - nand_chip->ecc.bytes; 158 .ecc = lpc32xx_ooblayout_ecc, 649 if (chip->ecc.engine_type != NAND_ECC_ENGINE_TYPE_ON_HOST) 660 chip->ecc.size = 512; 661 chip->ecc.hwctl = lpc32xx_ecc_enable; 662 chip->ecc [all...] |
H A D | fsl_elbc_nand.c | 74 if (section >= chip->ecc.steps) 81 oobregion->length = chip->ecc.bytes; 92 if (section > chip->ecc.steps) 103 if (section < chip->ecc.steps) 113 .ecc = fsl_elbc_ooblayout_ecc, 246 if (chip->ecc.engine_type != NAND_ECC_ENGINE_TYPE_ON_HOST) 734 if (chip->ecc.engine_type == NAND_ECC_ENGINE_TYPE_INVALID) { 738 chip->ecc.engine_type = NAND_ECC_ENGINE_TYPE_ON_HOST; 741 chip->ecc.engine_type = NAND_ECC_ENGINE_TYPE_SOFT; 742 chip->ecc [all...] |
/linux-master/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 771 /* v7.2 has different ecc level shift in the acc register */ 1097 chip->ecc.strength = ecc_level * 2; 1099 chip->ecc.strength = 1; /* hamming */ 1101 chip->ecc.strength = ecc_level; 1103 if (chip->ecc.size == 0) { 1105 chip->ecc.size = 1024; 1107 chip->ecc.size = 512; 1305 .ecc = brcmnand_hamming_ooblayout_ecc, 1321 oobregion->offset = ((section + 1) * sas) - chip->ecc.bytes; 1322 oobregion->length = chip->ecc 1390 struct nand_ecc_ctrl *ecc = &host->chip.ecc; local 2104 struct mtd_oob_region ecc; local [all...] |
/linux-master/drivers/mtd/ |
H A D | mtdcore.c | 310 MTD_DEVICE_ATTR_RO(corrected_bits); /* ecc stats corrected */ 320 MTD_DEVICE_ATTR_RO(ecc_failures); /* ecc stats errors */ 1730 return 0; /* device lacks ecc */ 1791 if (!master->ooblayout || !master->ooblayout->ecc) 1794 return master->ooblayout->ecc(master, section, oobecc);
|
/linux-master/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
H A D | smu_v13_0_0_ppt.c | 2931 dev_info(adev->dev, "Failed to export SMU ecc table!\n"); 2938 ecc_info_per_channel = &(eccinfo->ecc[i]);
|
H A D | aldebaran_ppt.c | 1806 dev_info(smu->adev->dev, "Failed to export SMU ecc table!\n"); 1814 ecc_info_per_channel = &(eccinfo->ecc[i]); 1826 ecc_info_per_channel = &(eccinfo->ecc[i]);
|
/linux-master/drivers/scsi/libsas/ |
H A D | sas_expander.c | 1725 static int sas_get_ex_change_count(struct domain_device *dev, int *ecc) argument 1752 *ecc = be16_to_cpu(rg_resp->rg.change_count);
|
/linux-master/drivers/spi/ |
H A D | spi-mem.c | 182 if (op->data.ecc) { 183 if (!spi_mem_controller_is_capable(ctlr, ecc))
|
/linux-master/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
H A D | sienna_cichlid_ppt.c | 4098 dev_info(smu->adev->dev, "Failed to export SMU ecc table!\n"); 4105 ecc_info_per_channel = &(eccinfo->ecc[i]);
|
/linux-master/include/linux/mtd/ |
H A D | mtd.h | 99 * @ecc: function returning an ECC region in the OOB area. 107 int (*ecc)(struct mtd_info *mtd, int section, member in struct:mtd_ooblayout_ops 283 * one region comprising an ecc step equals or exceeds this value. 300 /* the ecc step size. */ 303 /* max number of correctible bit errors per ecc step */
|
/linux-master/drivers/mtd/nand/spi/ |
H A D | winbond.c | 61 .ecc = w25m02gv_ooblayout_ecc, 104 .ecc = w25n02kv_ooblayout_ecc,
|
H A D | esmt.c | 101 .ecc = f50l1g41lb_ooblayout_ecc,
|
/linux-master/drivers/mtd/nand/raw/atmel/ |
H A D | nand-controller.c | 840 for (i = 0; i < chip->ecc.steps; i++) { 843 eccbuf += chip->ecc.bytes; 876 for (i = 0; i < chip->ecc.steps; i++) { 881 chip->ecc.size, 883 chip->ecc.bytes, 885 chip->ecc.strength); 894 databuf += chip->ecc.size; 895 eccbuf += chip->ecc.bytes; 1132 chip->ecc.strength = val; 1137 chip->ecc [all...] |
/linux-master/drivers/crypto/ |
H A D | Makefile | 7 # __init ordering requires atmel-i2c being before atmel-ecc and atmel-sha204a. 9 obj-$(CONFIG_CRYPTO_DEV_ATMEL_ECC) += atmel-ecc.o
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras.h | 414 struct ecc_info_per_ch ecc[MAX_UMC_CHANNEL_NUM]; member in struct:umc_ecc_info
|
/linux-master/fs/pstore/ |
H A D | ram.c | 69 module_param_named(ecc, ramoops_ecc, int, 0400); 227 * per-cpu records including metadata and ecc info. 690 parse_u32("ecc-size", pdata->ecc_info.ecc_size, 0); 864 pr_info("using 0x%lx@0x%llx, ecc: %d\n", 948 * For backwards compatibility ramoops.ecc=1 means 16 bytes ECC
|
/linux-master/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-core.c | 626 struct mcp251xfd_ecc *ecc = &priv->ecc; local 631 ecc->ecc_stat = 0; 1177 struct mcp251xfd_ecc *ecc = &priv->ecc; local 1199 * of a ECCIF (which is tracked in ecc->cnt). 1206 ecc->cnt) { 1210 ecc->cnt) 1257 struct mcp251xfd_ecc *ecc = &priv->ecc; local 1306 struct mcp251xfd_ecc *ecc = &priv->ecc; local [all...] |
/linux-master/drivers/net/can/esd/ |
H A D | esdacc.c | 22 /* ecc value of esdACC equals SJA1000's ECC register */ 534 if (msg->ecc & ACC_ECC_DIR) { 541 switch (msg->ecc & ACC_ECC_MASK) { 565 cf->data[3] = msg->ecc & ACC_ECC_SEG;
|
H A D | esdacc.h | 170 u8 ecc; member in struct:acc_bmmsg_buserr
|