/Linux-v4.19/drivers/mtd/nand/raw/ |
D | sm_common.c | 16 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_ecc() argument 21 oobregion->length = 3; in oob_sm_ooblayout_ecc() 22 oobregion->offset = ((section + 1) * 8) - 3; in oob_sm_ooblayout_ecc() 28 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_free() argument 33 oobregion->offset = 0; in oob_sm_ooblayout_free() 34 oobregion->length = 4; in oob_sm_ooblayout_free() 38 oobregion->offset = 6; in oob_sm_ooblayout_free() 39 oobregion->length = 2; in oob_sm_ooblayout_free() 43 oobregion->offset = 11; in oob_sm_ooblayout_free() 44 oobregion->length = 2; in oob_sm_ooblayout_free() [all …]
|
D | nand_micron.c | 111 struct mtd_oob_region *oobregion) in micron_nand_on_die_4_ooblayout_ecc() argument 116 oobregion->offset = (section * 16) + 8; in micron_nand_on_die_4_ooblayout_ecc() 117 oobregion->length = 8; in micron_nand_on_die_4_ooblayout_ecc() 124 struct mtd_oob_region *oobregion) in micron_nand_on_die_4_ooblayout_free() argument 129 oobregion->offset = (section * 16) + 2; in micron_nand_on_die_4_ooblayout_free() 130 oobregion->length = 6; in micron_nand_on_die_4_ooblayout_free() 142 struct mtd_oob_region *oobregion) in micron_nand_on_die_8_ooblayout_ecc() argument 149 oobregion->offset = mtd->oobsize - chip->ecc.total; in micron_nand_on_die_8_ooblayout_ecc() 150 oobregion->length = chip->ecc.total; in micron_nand_on_die_8_ooblayout_ecc() 157 struct mtd_oob_region *oobregion) in micron_nand_on_die_8_ooblayout_free() argument [all …]
|
D | fsmc_nand.c | 168 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_ecc() argument 175 oobregion->offset = (section * 16) + 2; in fsmc_ecc1_ooblayout_ecc() 176 oobregion->length = 3; in fsmc_ecc1_ooblayout_ecc() 182 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_free() argument 189 oobregion->offset = (section * 16) + 8; in fsmc_ecc1_ooblayout_free() 192 oobregion->length = 8; in fsmc_ecc1_ooblayout_free() 194 oobregion->length = mtd->oobsize - oobregion->offset; in fsmc_ecc1_ooblayout_free() 211 struct mtd_oob_region *oobregion) in fsmc_ecc4_ooblayout_ecc() argument 218 oobregion->length = chip->ecc.bytes; in fsmc_ecc4_ooblayout_ecc() 221 oobregion->offset = 0; in fsmc_ecc4_ooblayout_ecc() [all …]
|
D | davinci_nand.c | 482 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_ecc() argument 488 oobregion->offset = 0; in hwecc4_ooblayout_small_ecc() 489 oobregion->length = 5; in hwecc4_ooblayout_small_ecc() 491 oobregion->offset = 6; in hwecc4_ooblayout_small_ecc() 492 oobregion->length = 2; in hwecc4_ooblayout_small_ecc() 494 oobregion->offset = 13; in hwecc4_ooblayout_small_ecc() 495 oobregion->length = 3; in hwecc4_ooblayout_small_ecc() 502 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_free() argument 508 oobregion->offset = 8; in hwecc4_ooblayout_small_free() 509 oobregion->length = 5; in hwecc4_ooblayout_small_free() [all …]
|
D | lpc32xx_slc.c | 149 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument 154 oobregion->length = 6; in lpc32xx_ooblayout_ecc() 155 oobregion->offset = 10; in lpc32xx_ooblayout_ecc() 161 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument 167 oobregion->offset = 0; in lpc32xx_ooblayout_free() 168 oobregion->length = 4; in lpc32xx_ooblayout_free() 170 oobregion->offset = 6; in lpc32xx_ooblayout_free() 171 oobregion->length = 4; in lpc32xx_ooblayout_free() 618 struct mtd_oob_region oobregion = { }; in lpc32xx_nand_read_page_syndrome() local 635 error = mtd_ooblayout_ecc(mtd, 0, &oobregion); in lpc32xx_nand_read_page_syndrome() [all …]
|
D | fsl_ifc_nand.c | 97 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_ecc() argument 104 oobregion->offset = 8; in fsl_ifc_ooblayout_ecc() 105 oobregion->length = chip->ecc.total; in fsl_ifc_ooblayout_ecc() 111 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_free() argument 121 oobregion->offset = 0; in fsl_ifc_ooblayout_free() 122 oobregion->length = 5; in fsl_ifc_ooblayout_free() 124 oobregion->offset = 6; in fsl_ifc_ooblayout_free() 125 oobregion->length = 2; in fsl_ifc_ooblayout_free() 132 oobregion->offset = 2; in fsl_ifc_ooblayout_free() 133 oobregion->length = 6; in fsl_ifc_ooblayout_free() [all …]
|
D | mxc_nand.c | 1022 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_ecc() argument 1029 oobregion->offset = (section * 16) + 6; in mxc_v1_ooblayout_ecc() 1030 oobregion->length = MXC_V1_ECCBYTES; in mxc_v1_ooblayout_ecc() 1036 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_free() argument 1045 oobregion->offset = 0; in mxc_v1_ooblayout_free() 1046 oobregion->length = 5; in mxc_v1_ooblayout_free() 1048 oobregion->offset = 2; in mxc_v1_ooblayout_free() 1049 oobregion->length = 4; in mxc_v1_ooblayout_free() 1052 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; in mxc_v1_ooblayout_free() 1054 oobregion->length = (section * 16) + 6 - in mxc_v1_ooblayout_free() [all …]
|
D | fsl_elbc_nand.c | 83 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_ecc() argument 91 oobregion->offset = (16 * section) + 6; in fsl_elbc_ooblayout_ecc() 93 oobregion->offset += 2; in fsl_elbc_ooblayout_ecc() 95 oobregion->length = chip->ecc.bytes; in fsl_elbc_ooblayout_ecc() 101 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_free() argument 110 oobregion->offset = 0; in fsl_elbc_ooblayout_free() 112 oobregion->offset++; in fsl_elbc_ooblayout_free() 113 oobregion->length = (priv->fmr & FMR_ECCM) ? 7 : 5; in fsl_elbc_ooblayout_free() 115 oobregion->offset = (16 * section) - in fsl_elbc_ooblayout_free() 118 oobregion->length = 13; in fsl_elbc_ooblayout_free() [all …]
|
D | sh_flctl.c | 46 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_ecc() argument 53 oobregion->offset = 0; in flctl_4secc_ooblayout_sp_ecc() 54 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_sp_ecc() 60 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_free() argument 65 oobregion->offset = 12; in flctl_4secc_ooblayout_sp_free() 66 oobregion->length = 4; in flctl_4secc_ooblayout_sp_free() 77 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_ecc() argument 84 oobregion->offset = (section * 16) + 6; in flctl_4secc_ooblayout_lp_ecc() 85 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_lp_ecc() 91 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_free() argument [all …]
|
D | nand_base.c | 58 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_sp() argument 67 oobregion->offset = 0; in nand_ooblayout_ecc_sp() 69 oobregion->length = 4; in nand_ooblayout_ecc_sp() 71 oobregion->length = 3; in nand_ooblayout_ecc_sp() 76 oobregion->offset = 6; in nand_ooblayout_ecc_sp() 77 oobregion->length = ecc->total - 4; in nand_ooblayout_ecc_sp() 84 struct mtd_oob_region *oobregion) in nand_ooblayout_free_sp() argument 93 oobregion->length = 8; in nand_ooblayout_free_sp() 94 oobregion->offset = 8; in nand_ooblayout_free_sp() 96 oobregion->length = 2; in nand_ooblayout_free_sp() [all …]
|
D | lpc32xx_mlc.c | 142 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument 149 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 150 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 156 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument 163 oobregion->offset = 16 * section; in lpc32xx_ooblayout_free() 164 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free()
|
D | cafe_nand.c | 452 struct mtd_oob_region *oobregion) in cafe_ooblayout_ecc() argument 459 oobregion->offset = 0; in cafe_ooblayout_ecc() 460 oobregion->length = chip->ecc.total; in cafe_ooblayout_ecc() 466 struct mtd_oob_region *oobregion) in cafe_ooblayout_free() argument 473 oobregion->offset = chip->ecc.total; in cafe_ooblayout_free() 474 oobregion->length = mtd->oobsize - chip->ecc.total; in cafe_ooblayout_free()
|
D | s3c2410.c | 89 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_ecc() argument 94 oobregion->offset = 0; in s3c2410_ooblayout_ecc() 95 oobregion->length = 3; in s3c2410_ooblayout_ecc() 101 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_free() argument 106 oobregion->offset = 8; in s3c2410_ooblayout_free() 107 oobregion->length = 8; in s3c2410_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 | 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 | sunxi_nand.c | 1633 struct mtd_oob_region *oobregion) in sunxi_nand_ooblayout_ecc() argument 1641 oobregion->offset = section * (ecc->bytes + 4) + 4; in sunxi_nand_ooblayout_ecc() 1642 oobregion->length = ecc->bytes; in sunxi_nand_ooblayout_ecc() 1648 struct mtd_oob_region *oobregion) in sunxi_nand_ooblayout_free() argument 1662 oobregion->offset = 2; in sunxi_nand_ooblayout_free() 1663 oobregion->length = 2; in sunxi_nand_ooblayout_free() 1668 oobregion->offset = section * (ecc->bytes + 4); in sunxi_nand_ooblayout_free() 1671 oobregion->length = 4; in sunxi_nand_ooblayout_free() 1673 oobregion->offset = mtd->oobsize - oobregion->offset; in sunxi_nand_ooblayout_free()
|
D | docg4.c | 226 struct mtd_oob_region *oobregion) in docg4_ooblayout_ecc() argument 231 oobregion->offset = 7; in docg4_ooblayout_ecc() 232 oobregion->length = 9; in docg4_ooblayout_ecc() 238 struct mtd_oob_region *oobregion) in docg4_ooblayout_free() argument 243 oobregion->offset = 2; in docg4_ooblayout_free() 244 oobregion->length = 5; in docg4_ooblayout_free()
|
D | denali.c | 1129 struct mtd_oob_region *oobregion) in denali_ooblayout_ecc() argument 1137 oobregion->offset = denali->oob_skip_bytes; in denali_ooblayout_ecc() 1138 oobregion->length = chip->ecc.total; in denali_ooblayout_ecc() 1144 struct mtd_oob_region *oobregion) in denali_ooblayout_free() argument 1152 oobregion->offset = chip->ecc.total + denali->oob_skip_bytes; in denali_ooblayout_free() 1153 oobregion->length = mtd->oobsize - oobregion->offset; in denali_ooblayout_free()
|
/Linux-v4.19/arch/mips/jz4740/ |
D | board-qi_lb60.c | 95 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_ecc() argument 100 oobregion->length = 36; in qi_lb60_ooblayout_ecc() 101 oobregion->offset = 6; in qi_lb60_ooblayout_ecc() 104 oobregion->length *= 2; in qi_lb60_ooblayout_ecc() 105 oobregion->offset *= 2; in qi_lb60_ooblayout_ecc() 112 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_free() argument 125 oobregion->offset = 2; in qi_lb60_ooblayout_free() 126 oobregion->length = eccoff - 2; in qi_lb60_ooblayout_free() 128 oobregion->offset = eccoff + eccbytes; in qi_lb60_ooblayout_free() 129 oobregion->length = mtd->oobsize - oobregion->offset; in qi_lb60_ooblayout_free()
|
/Linux-v4.19/drivers/mtd/ |
D | mtdcore.c | 1298 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region() argument 1301 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region() 1305 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region() 1308 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region() 1312 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region() 1315 pos += oobregion->length; in mtd_ooblayout_find_region() 1323 oobregion->offset += byte - pos; in mtd_ooblayout_find_region() 1324 oobregion->length -= byte - pos; in mtd_ooblayout_find_region() 1345 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument 1347 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion() [all …]
|
D | mtdchar.c | 470 struct mtd_oob_region oobregion; in shrink_ecclayout() local 482 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in shrink_ecclayout() 490 eccpos = oobregion.offset; in shrink_ecclayout() 492 eccpos < oobregion.offset + oobregion.length; i++) { in shrink_ecclayout() 499 ret = mtd_ooblayout_free(mtd, i, &oobregion); in shrink_ecclayout() 507 to->oobfree[i].offset = oobregion.offset; in shrink_ecclayout() 508 to->oobfree[i].length = oobregion.length; in shrink_ecclayout() 517 struct mtd_oob_region oobregion; in get_oobinfo() local 529 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in get_oobinfo() 537 if (oobregion.length + i > ARRAY_SIZE(to->eccpos)) in get_oobinfo() [all …]
|
/Linux-v4.19/arch/arm/mach-pxa/ |
D | spitz.c | 752 struct mtd_oob_region *oobregion) in akita_ooblayout_ecc() argument 759 oobregion->offset = 5; in akita_ooblayout_ecc() 760 oobregion->length = 1; in akita_ooblayout_ecc() 764 oobregion->offset = 1; in akita_ooblayout_ecc() 765 oobregion->length = 3; in akita_ooblayout_ecc() 769 oobregion->offset = 6; in akita_ooblayout_ecc() 770 oobregion->length = 2; in akita_ooblayout_ecc() 774 oobregion->offset += (section / 3) * 0x10; in akita_ooblayout_ecc() 780 struct mtd_oob_region *oobregion) in akita_ooblayout_free() argument 785 oobregion->offset = 8; in akita_ooblayout_free() [all …]
|
/Linux-v4.19/drivers/mtd/nand/raw/brcmnand/ |
D | brcmnand.c | 873 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_ecc() argument 884 oobregion->offset = (section * sas) + 6; in brcmnand_hamming_ooblayout_ecc() 885 oobregion->length = 3; in brcmnand_hamming_ooblayout_ecc() 891 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_free() argument 902 oobregion->offset = (section / 2) * sas; in brcmnand_hamming_ooblayout_free() 905 oobregion->offset += 9; in brcmnand_hamming_ooblayout_free() 906 oobregion->length = 7; in brcmnand_hamming_ooblayout_free() 908 oobregion->length = 6; in brcmnand_hamming_ooblayout_free() 917 oobregion->offset++; in brcmnand_hamming_ooblayout_free() 918 oobregion->length--; in brcmnand_hamming_ooblayout_free() [all …]
|
/Linux-v4.19/drivers/staging/mt29f_spinand/ |
D | mt29f_spinand.c | 46 struct mtd_oob_region *oobregion) in spinand_ooblayout_64_ecc() argument 51 oobregion->offset = (section * 16) + 1; in spinand_ooblayout_64_ecc() 52 oobregion->length = 6; in spinand_ooblayout_64_ecc() 58 struct mtd_oob_region *oobregion) in spinand_ooblayout_64_free() argument 63 oobregion->offset = (section * 16) + 8; in spinand_ooblayout_64_free() 64 oobregion->length = 8; in spinand_ooblayout_64_free()
|
/Linux-v4.19/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 70 struct mtd_oob_region *oobregion) in flexonenand_ooblayout_ecc() argument 75 oobregion->offset = (section * 16) + 6; in flexonenand_ooblayout_ecc() 76 oobregion->length = 10; in flexonenand_ooblayout_ecc() 82 struct mtd_oob_region *oobregion) in flexonenand_ooblayout_free() argument 87 oobregion->offset = (section * 16) + 2; in flexonenand_ooblayout_free() 88 oobregion->length = 4; in flexonenand_ooblayout_free() 106 struct mtd_oob_region *oobregion) in onenand_ooblayout_128_ecc() argument 111 oobregion->offset = (section * 16) + 7; in onenand_ooblayout_128_ecc() 112 oobregion->length = 9; in onenand_ooblayout_128_ecc() 118 struct mtd_oob_region *oobregion) in onenand_ooblayout_128_free() argument [all …]
|