| /Linux-v5.4/drivers/mtd/nand/raw/ |
| D | sm_common.c | 13 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_ecc() argument 18 oobregion->length = 3; in oob_sm_ooblayout_ecc() 19 oobregion->offset = ((section + 1) * 8) - 3; in oob_sm_ooblayout_ecc() 25 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_free() argument 30 oobregion->offset = 0; in oob_sm_ooblayout_free() 31 oobregion->length = 4; in oob_sm_ooblayout_free() 35 oobregion->offset = 6; in oob_sm_ooblayout_free() 36 oobregion->length = 2; in oob_sm_ooblayout_free() 40 oobregion->offset = 11; in oob_sm_ooblayout_free() 41 oobregion->length = 2; in oob_sm_ooblayout_free() [all …]
|
| D | nand_micron.c | 102 struct mtd_oob_region *oobregion) in micron_nand_on_die_4_ooblayout_ecc() argument 107 oobregion->offset = (section * 16) + 8; in micron_nand_on_die_4_ooblayout_ecc() 108 oobregion->length = 8; in micron_nand_on_die_4_ooblayout_ecc() 115 struct mtd_oob_region *oobregion) in micron_nand_on_die_4_ooblayout_free() argument 120 oobregion->offset = (section * 16) + 2; in micron_nand_on_die_4_ooblayout_free() 121 oobregion->length = 6; in micron_nand_on_die_4_ooblayout_free() 133 struct mtd_oob_region *oobregion) in micron_nand_on_die_8_ooblayout_ecc() argument 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() 148 struct mtd_oob_region *oobregion) in micron_nand_on_die_8_ooblayout_free() argument [all …]
|
| D | fsmc_nand.c | 159 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_ecc() argument 166 oobregion->offset = (section * 16) + 2; in fsmc_ecc1_ooblayout_ecc() 167 oobregion->length = 3; in fsmc_ecc1_ooblayout_ecc() 173 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_free() argument 180 oobregion->offset = (section * 16) + 8; in fsmc_ecc1_ooblayout_free() 183 oobregion->length = 8; in fsmc_ecc1_ooblayout_free() 185 oobregion->length = mtd->oobsize - oobregion->offset; in fsmc_ecc1_ooblayout_free() 202 struct mtd_oob_region *oobregion) in fsmc_ecc4_ooblayout_ecc() argument 209 oobregion->length = chip->ecc.bytes; in fsmc_ecc4_ooblayout_ecc() 212 oobregion->offset = 0; in fsmc_ecc4_ooblayout_ecc() [all …]
|
| D | davinci_nand.c | 464 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_ecc() argument 470 oobregion->offset = 0; in hwecc4_ooblayout_small_ecc() 471 oobregion->length = 5; in hwecc4_ooblayout_small_ecc() 473 oobregion->offset = 6; in hwecc4_ooblayout_small_ecc() 474 oobregion->length = 2; in hwecc4_ooblayout_small_ecc() 476 oobregion->offset = 13; in hwecc4_ooblayout_small_ecc() 477 oobregion->length = 3; in hwecc4_ooblayout_small_ecc() 484 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_free() argument 490 oobregion->offset = 8; in hwecc4_ooblayout_small_free() 491 oobregion->length = 5; in hwecc4_ooblayout_small_free() [all …]
|
| D | lpc32xx_slc.c | 140 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument 145 oobregion->length = 6; in lpc32xx_ooblayout_ecc() 146 oobregion->offset = 10; in lpc32xx_ooblayout_ecc() 152 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument 158 oobregion->offset = 0; in lpc32xx_ooblayout_free() 159 oobregion->length = 4; in lpc32xx_ooblayout_free() 161 oobregion->offset = 6; in lpc32xx_ooblayout_free() 162 oobregion->length = 4; in lpc32xx_ooblayout_free() 607 struct mtd_oob_region oobregion = { }; in lpc32xx_nand_read_page_syndrome() local 624 error = mtd_ooblayout_ecc(mtd, 0, &oobregion); in lpc32xx_nand_read_page_syndrome() [all …]
|
| D | fsl_ifc_nand.c | 85 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_ecc() argument 92 oobregion->offset = 8; in fsl_ifc_ooblayout_ecc() 93 oobregion->length = chip->ecc.total; in fsl_ifc_ooblayout_ecc() 99 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_free() argument 109 oobregion->offset = 0; in fsl_ifc_ooblayout_free() 110 oobregion->length = 5; in fsl_ifc_ooblayout_free() 112 oobregion->offset = 6; in fsl_ifc_ooblayout_free() 113 oobregion->length = 2; in fsl_ifc_ooblayout_free() 120 oobregion->offset = 2; in fsl_ifc_ooblayout_free() 121 oobregion->length = 6; in fsl_ifc_ooblayout_free() [all …]
|
| D | mxc_nand.c | 1006 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_ecc() argument 1013 oobregion->offset = (section * 16) + 6; in mxc_v1_ooblayout_ecc() 1014 oobregion->length = MXC_V1_ECCBYTES; in mxc_v1_ooblayout_ecc() 1020 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_free() argument 1029 oobregion->offset = 0; in mxc_v1_ooblayout_free() 1030 oobregion->length = 5; in mxc_v1_ooblayout_free() 1032 oobregion->offset = 2; in mxc_v1_ooblayout_free() 1033 oobregion->length = 4; in mxc_v1_ooblayout_free() 1036 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; in mxc_v1_ooblayout_free() 1038 oobregion->length = (section * 16) + 6 - in mxc_v1_ooblayout_free() [all …]
|
| D | fsl_elbc_nand.c | 70 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_ecc() argument 78 oobregion->offset = (16 * section) + 6; in fsl_elbc_ooblayout_ecc() 80 oobregion->offset += 2; in fsl_elbc_ooblayout_ecc() 82 oobregion->length = chip->ecc.bytes; in fsl_elbc_ooblayout_ecc() 88 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_free() argument 97 oobregion->offset = 0; in fsl_elbc_ooblayout_free() 99 oobregion->offset++; in fsl_elbc_ooblayout_free() 100 oobregion->length = (priv->fmr & FMR_ECCM) ? 7 : 5; in fsl_elbc_ooblayout_free() 102 oobregion->offset = (16 * section) - in fsl_elbc_ooblayout_free() 105 oobregion->length = 13; in fsl_elbc_ooblayout_free() [all …]
|
| D | sh_flctl.c | 33 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_ecc() argument 40 oobregion->offset = 0; in flctl_4secc_ooblayout_sp_ecc() 41 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_sp_ecc() 47 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_free() argument 52 oobregion->offset = 12; in flctl_4secc_ooblayout_sp_free() 53 oobregion->length = 4; in flctl_4secc_ooblayout_sp_free() 64 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_ecc() argument 71 oobregion->offset = (section * 16) + 6; in flctl_4secc_ooblayout_lp_ecc() 72 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_lp_ecc() 78 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_free() argument [all …]
|
| D | nand_base.c | 50 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_sp() argument 59 oobregion->offset = 0; in nand_ooblayout_ecc_sp() 61 oobregion->length = 4; in nand_ooblayout_ecc_sp() 63 oobregion->length = 3; in nand_ooblayout_ecc_sp() 68 oobregion->offset = 6; in nand_ooblayout_ecc_sp() 69 oobregion->length = ecc->total - 4; in nand_ooblayout_ecc_sp() 76 struct mtd_oob_region *oobregion) in nand_ooblayout_free_sp() argument 85 oobregion->length = 8; in nand_ooblayout_free_sp() 86 oobregion->offset = 8; in nand_ooblayout_free_sp() 88 oobregion->length = 2; in nand_ooblayout_free_sp() [all …]
|
| D | lpc32xx_mlc.c | 132 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument 139 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 140 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 146 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument 153 oobregion->offset = 16 * section; in lpc32xx_ooblayout_free() 154 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free()
|
| D | cafe_nand.c | 451 struct mtd_oob_region *oobregion) in cafe_ooblayout_ecc() argument 458 oobregion->offset = 0; in cafe_ooblayout_ecc() 459 oobregion->length = chip->ecc.total; in cafe_ooblayout_ecc() 465 struct mtd_oob_region *oobregion) in cafe_ooblayout_free() argument 472 oobregion->offset = chip->ecc.total; in cafe_ooblayout_free() 473 oobregion->length = mtd->oobsize - chip->ecc.total; in cafe_ooblayout_free()
|
| D | omap2.c | 1817 struct mtd_oob_region *oobregion) in omap_ooblayout_ecc() argument 1830 oobregion->offset = off; in omap_ooblayout_ecc() 1831 oobregion->length = chip->ecc.total; in omap_ooblayout_ecc() 1837 struct mtd_oob_region *oobregion) in omap_ooblayout_free() argument 1854 oobregion->offset = off; in omap_ooblayout_free() 1855 oobregion->length = mtd->oobsize - off; in omap_ooblayout_free() 1866 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_ecc() argument 1878 oobregion->offset = off + (section * (chip->ecc.bytes + 1)); in omap_sw_ooblayout_ecc() 1879 oobregion->length = chip->ecc.bytes; in omap_sw_ooblayout_ecc() 1885 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_free() argument [all …]
|
| D | s3c2410.c | 76 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_ecc() argument 81 oobregion->offset = 0; in s3c2410_ooblayout_ecc() 82 oobregion->length = 3; in s3c2410_ooblayout_ecc() 88 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_free() argument 93 oobregion->offset = 8; in s3c2410_ooblayout_free() 94 oobregion->length = 8; in s3c2410_ooblayout_free()
|
| D | tegra_nand.c | 201 struct mtd_oob_region *oobregion) in tegra_nand_ooblayout_rs_ecc() argument 210 oobregion->offset = SKIP_SPARE_BYTES; in tegra_nand_ooblayout_rs_ecc() 211 oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4); in tegra_nand_ooblayout_rs_ecc() 217 struct mtd_oob_region *oobregion) in tegra_nand_ooblayout_no_free() argument 228 struct mtd_oob_region *oobregion) in tegra_nand_ooblayout_bch_ecc() argument 237 oobregion->offset = SKIP_SPARE_BYTES; in tegra_nand_ooblayout_bch_ecc() 238 oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4); in tegra_nand_ooblayout_bch_ecc()
|
| D | diskonchip.c | 934 struct mtd_oob_region *oobregion) in doc200x_ooblayout_ecc() argument 939 oobregion->offset = 0; in doc200x_ooblayout_ecc() 940 oobregion->length = 6; in doc200x_ooblayout_ecc() 946 struct mtd_oob_region *oobregion) in doc200x_ooblayout_free() argument 964 oobregion->offset = 8; in doc200x_ooblayout_free() 965 oobregion->length = 8; in doc200x_ooblayout_free() 967 oobregion->offset = 6; in doc200x_ooblayout_free() 968 oobregion->length = 2; in doc200x_ooblayout_free()
|
| D | denali.c | 901 struct mtd_oob_region *oobregion) in denali_ooblayout_ecc() argument 909 oobregion->offset = denali->oob_skip_bytes; in denali_ooblayout_ecc() 910 oobregion->length = chip->ecc.total; in denali_ooblayout_ecc() 916 struct mtd_oob_region *oobregion) in denali_ooblayout_free() argument 924 oobregion->offset = chip->ecc.total + denali->oob_skip_bytes; in denali_ooblayout_free() 925 oobregion->length = mtd->oobsize - oobregion->offset; in denali_ooblayout_free()
|
| D | hisi504_nand.c | 613 struct mtd_oob_region *oobregion) in hisi_ooblayout_ecc() argument 620 struct mtd_oob_region *oobregion) in hisi_ooblayout_free() argument 625 oobregion->offset = 2; in hisi_ooblayout_free() 626 oobregion->length = 6; in hisi_ooblayout_free()
|
| /Linux-v5.4/drivers/mtd/nand/raw/ingenic/ |
| D | ingenic_nand_drv.c | 76 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_ecc() argument 84 oobregion->length = ecc->total; in qi_lb60_ooblayout_ecc() 85 oobregion->offset = 12; in qi_lb60_ooblayout_ecc() 91 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_free() argument 99 oobregion->length = mtd->oobsize - ecc->total - 12; in qi_lb60_ooblayout_free() 100 oobregion->offset = 12 + ecc->total; in qi_lb60_ooblayout_free() 111 struct mtd_oob_region *oobregion) in jz4725b_ooblayout_ecc() argument 119 oobregion->length = ecc->total; in jz4725b_ooblayout_ecc() 120 oobregion->offset = 3; in jz4725b_ooblayout_ecc() 126 struct mtd_oob_region *oobregion) in jz4725b_ooblayout_free() argument [all …]
|
| /Linux-v5.4/drivers/mtd/ |
| D | mtdcore.c | 1379 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region() argument 1382 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region() 1386 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region() 1389 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region() 1393 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region() 1396 pos += oobregion->length; in mtd_ooblayout_find_region() 1404 oobregion->offset += byte - pos; in mtd_ooblayout_find_region() 1405 oobregion->length -= byte - pos; in mtd_ooblayout_find_region() 1426 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument 1428 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion() [all …]
|
| D | mtdchar.c | 456 struct mtd_oob_region oobregion; in shrink_ecclayout() local 468 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in shrink_ecclayout() 476 eccpos = oobregion.offset; in shrink_ecclayout() 478 eccpos < oobregion.offset + oobregion.length; i++) { in shrink_ecclayout() 485 ret = mtd_ooblayout_free(mtd, i, &oobregion); in shrink_ecclayout() 493 to->oobfree[i].offset = oobregion.offset; in shrink_ecclayout() 494 to->oobfree[i].length = oobregion.length; in shrink_ecclayout() 503 struct mtd_oob_region oobregion; in get_oobinfo() local 515 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in get_oobinfo() 523 if (oobregion.length + i > ARRAY_SIZE(to->eccpos)) in get_oobinfo() [all …]
|
| /Linux-v5.4/arch/arm/mach-pxa/ |
| D | spitz.c | 758 struct mtd_oob_region *oobregion) in akita_ooblayout_ecc() argument 765 oobregion->offset = 5; in akita_ooblayout_ecc() 766 oobregion->length = 1; in akita_ooblayout_ecc() 770 oobregion->offset = 1; in akita_ooblayout_ecc() 771 oobregion->length = 3; in akita_ooblayout_ecc() 775 oobregion->offset = 6; in akita_ooblayout_ecc() 776 oobregion->length = 2; in akita_ooblayout_ecc() 780 oobregion->offset += (section / 3) * 0x10; in akita_ooblayout_ecc() 786 struct mtd_oob_region *oobregion) in akita_ooblayout_free() argument 791 oobregion->offset = 8; in akita_ooblayout_free() [all …]
|
| /Linux-v5.4/drivers/mtd/nand/raw/brcmnand/ |
| D | brcmnand.c | 981 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_ecc() argument 992 oobregion->offset = (section * sas) + 6; in brcmnand_hamming_ooblayout_ecc() 993 oobregion->length = 3; in brcmnand_hamming_ooblayout_ecc() 999 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_free() argument 1010 oobregion->offset = (section / 2) * sas; in brcmnand_hamming_ooblayout_free() 1013 oobregion->offset += 9; in brcmnand_hamming_ooblayout_free() 1014 oobregion->length = 7; in brcmnand_hamming_ooblayout_free() 1016 oobregion->length = 6; in brcmnand_hamming_ooblayout_free() 1025 oobregion->offset++; in brcmnand_hamming_ooblayout_free() 1026 oobregion->length--; in brcmnand_hamming_ooblayout_free() [all …]
|
| /Linux-v5.4/drivers/mtd/nand/onenand/ |
| D | onenand_base.c | 67 struct mtd_oob_region *oobregion) in flexonenand_ooblayout_ecc() argument 72 oobregion->offset = (section * 16) + 6; in flexonenand_ooblayout_ecc() 73 oobregion->length = 10; in flexonenand_ooblayout_ecc() 79 struct mtd_oob_region *oobregion) in flexonenand_ooblayout_free() argument 84 oobregion->offset = (section * 16) + 2; in flexonenand_ooblayout_free() 85 oobregion->length = 4; in flexonenand_ooblayout_free() 103 struct mtd_oob_region *oobregion) in onenand_ooblayout_128_ecc() argument 108 oobregion->offset = (section * 16) + 7; in onenand_ooblayout_128_ecc() 109 oobregion->length = 9; in onenand_ooblayout_128_ecc() 115 struct mtd_oob_region *oobregion) in onenand_ooblayout_128_free() argument [all …]
|
| /Linux-v5.4/drivers/mtd/devices/ |
| D | docg3.c | 57 struct mtd_oob_region *oobregion) in docg3_ooblayout_ecc() argument 63 oobregion->offset = 7; in docg3_ooblayout_ecc() 64 oobregion->length = 8; in docg3_ooblayout_ecc() 70 struct mtd_oob_region *oobregion) in docg3_ooblayout_free() argument 77 oobregion->offset = 0; in docg3_ooblayout_free() 78 oobregion->length = 7; in docg3_ooblayout_free() 80 oobregion->offset = 15; in docg3_ooblayout_free() 81 oobregion->length = 1; in docg3_ooblayout_free()
|