/linux/drivers/mtd/nand/raw/ |
A D | sm_common.c | 18 oobregion->length = 3; in oob_sm_ooblayout_ecc() 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() 67 oobregion->length = 3; in oob_sm_small_ooblayout_ecc() 68 oobregion->offset = 0; in oob_sm_small_ooblayout_ecc() 79 oobregion->offset = 3; in oob_sm_small_ooblayout_free() [all …]
|
A 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 …]
|
A D | fsmc_nand.c | 168 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_ecc() argument 176 oobregion->length = 3; in fsmc_ecc1_ooblayout_ecc() 192 oobregion->length = 8; in fsmc_ecc1_ooblayout_free() 194 oobregion->length = mtd->oobsize - oobregion->offset; in fsmc_ecc1_ooblayout_free() 218 oobregion->length = chip->ecc.bytes; in fsmc_ecc4_ooblayout_ecc() 221 oobregion->offset = 0; in fsmc_ecc4_ooblayout_ecc() 239 oobregion->length = 3; in fsmc_ecc4_ooblayout_free() 241 oobregion->length = mtd->oobsize - oobregion->offset; in fsmc_ecc4_ooblayout_free() 733 struct mtd_oob_region oobregion; in fsmc_read_page_hwecc() local 739 off = oobregion.offset; in fsmc_read_page_hwecc() [all …]
|
A D | fsl_ifc_nand.c | 84 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_ecc() argument 91 oobregion->offset = 8; in fsl_ifc_ooblayout_ecc() 92 oobregion->length = chip->ecc.total; in fsl_ifc_ooblayout_ecc() 108 oobregion->offset = 0; in fsl_ifc_ooblayout_free() 109 oobregion->length = 5; in fsl_ifc_ooblayout_free() 111 oobregion->offset = 6; in fsl_ifc_ooblayout_free() 112 oobregion->length = 2; in fsl_ifc_ooblayout_free() 119 oobregion->offset = 2; in fsl_ifc_ooblayout_free() 120 oobregion->length = 6; in fsl_ifc_ooblayout_free() 123 oobregion->length = mtd->oobsize - oobregion->offset; in fsl_ifc_ooblayout_free() [all …]
|
A D | lpc32xx_slc.c | 139 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument 144 oobregion->length = 6; in lpc32xx_ooblayout_ecc() 145 oobregion->offset = 10; in lpc32xx_ooblayout_ecc() 151 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument 157 oobregion->offset = 0; in lpc32xx_ooblayout_free() 158 oobregion->length = 4; in lpc32xx_ooblayout_free() 160 oobregion->offset = 6; in lpc32xx_ooblayout_free() 161 oobregion->length = 4; in lpc32xx_ooblayout_free() 606 struct mtd_oob_region oobregion = { }; in lpc32xx_nand_read_page_syndrome() local 674 struct mtd_oob_region oobregion = { }; in lpc32xx_nand_write_page_syndrome() local [all …]
|
A D | davinci_nand.c | 452 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_ecc() argument 458 oobregion->offset = 0; in hwecc4_ooblayout_small_ecc() 459 oobregion->length = 5; in hwecc4_ooblayout_small_ecc() 461 oobregion->offset = 6; in hwecc4_ooblayout_small_ecc() 462 oobregion->length = 2; in hwecc4_ooblayout_small_ecc() 464 oobregion->offset = 13; in hwecc4_ooblayout_small_ecc() 465 oobregion->length = 3; in hwecc4_ooblayout_small_ecc() 478 oobregion->offset = 8; in hwecc4_ooblayout_small_free() 479 oobregion->length = 5; in hwecc4_ooblayout_small_free() 481 oobregion->offset = 16; in hwecc4_ooblayout_small_free() [all …]
|
A D | mxc_nand.c | 1027 oobregion->offset = 0; in mxc_v1_ooblayout_free() 1028 oobregion->length = 5; in mxc_v1_ooblayout_free() 1030 oobregion->offset = 2; in mxc_v1_ooblayout_free() 1031 oobregion->length = 4; in mxc_v1_ooblayout_free() 1037 oobregion->offset; in mxc_v1_ooblayout_free() 1039 oobregion->length = mtd->oobsize - oobregion->offset; in mxc_v1_ooblayout_free() 1076 oobregion->offset = 0; in mxc_v2_ooblayout_free() 1077 oobregion->length = 5; in mxc_v2_ooblayout_free() 1079 oobregion->offset = 2; in mxc_v2_ooblayout_free() 1080 oobregion->length = 4; in mxc_v2_ooblayout_free() [all …]
|
A D | fsl_elbc_nand.c | 69 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_ecc() argument 77 oobregion->offset = (16 * section) + 6; in fsl_elbc_ooblayout_ecc() 79 oobregion->offset += 2; in fsl_elbc_ooblayout_ecc() 81 oobregion->length = chip->ecc.bytes; in fsl_elbc_ooblayout_ecc() 87 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_free() argument 96 oobregion->offset = 0; in fsl_elbc_ooblayout_free() 98 oobregion->offset++; in fsl_elbc_ooblayout_free() 99 oobregion->length = (priv->fmr & FMR_ECCM) ? 7 : 5; in fsl_elbc_ooblayout_free() 101 oobregion->offset = (16 * section) - in fsl_elbc_ooblayout_free() 104 oobregion->length = 13; in fsl_elbc_ooblayout_free() [all …]
|
A 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() 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 72 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_lp_ecc() 85 oobregion->offset = section * 16; in flctl_4secc_ooblayout_lp_free() 86 oobregion->length = 6; in flctl_4secc_ooblayout_lp_free() 89 oobregion->offset += 2; in flctl_4secc_ooblayout_lp_free() [all …]
|
A D | intel-nand-controller.c | 240 struct mtd_oob_region *oobregion) in ebu_nand_ooblayout_ecc() argument 247 oobregion->offset = HSNAND_ECC_OFFSET; in ebu_nand_ooblayout_ecc() 248 oobregion->length = chip->ecc.total; in ebu_nand_ooblayout_ecc() 254 struct mtd_oob_region *oobregion) in ebu_nand_ooblayout_free() argument 261 oobregion->offset = chip->ecc.total + HSNAND_ECC_OFFSET; in ebu_nand_ooblayout_free() 262 oobregion->length = mtd->oobsize - oobregion->offset; in ebu_nand_ooblayout_free()
|
A D | lpc32xx_mlc.c | 131 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument 138 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 139 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 145 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument 152 oobregion->offset = 16 * section; in lpc32xx_ooblayout_free() 153 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free()
|
A 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()
|
A D | omap2.c | 1869 struct mtd_oob_region *oobregion) in omap_ooblayout_ecc() argument 1882 oobregion->offset = off; in omap_ooblayout_ecc() 1883 oobregion->length = chip->ecc.total; in omap_ooblayout_ecc() 1889 struct mtd_oob_region *oobregion) in omap_ooblayout_free() argument 1906 oobregion->offset = off; in omap_ooblayout_free() 1907 oobregion->length = mtd->oobsize - off; in omap_ooblayout_free() 1918 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_ecc() argument 1933 oobregion->length = ecc_bytes; in omap_sw_ooblayout_ecc() 1939 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_free() argument 1957 oobregion->offset = off; in omap_sw_ooblayout_free() [all …]
|
A D | s3c2410.c | 75 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_ecc() argument 80 oobregion->offset = 0; in s3c2410_ooblayout_ecc() 81 oobregion->length = 3; in s3c2410_ooblayout_ecc() 87 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_free() argument 92 oobregion->offset = 8; in s3c2410_ooblayout_free() 93 oobregion->length = 8; in s3c2410_ooblayout_free()
|
A 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()
|
A D | diskonchip.c | 811 struct mtd_oob_region *oobregion) in doc200x_ooblayout_ecc() argument 816 oobregion->offset = 0; in doc200x_ooblayout_ecc() 817 oobregion->length = 6; in doc200x_ooblayout_ecc() 823 struct mtd_oob_region *oobregion) in doc200x_ooblayout_free() argument 841 oobregion->offset = 8; in doc200x_ooblayout_free() 842 oobregion->length = 8; in doc200x_ooblayout_free() 844 oobregion->offset = 6; in doc200x_ooblayout_free() 845 oobregion->length = 2; in doc200x_ooblayout_free()
|
A D | pl35x-nand-controller.c | 160 struct mtd_oob_region *oobregion) in pl35x_ecc_ooblayout16_ecc() argument 167 oobregion->offset = (section * chip->ecc.bytes); in pl35x_ecc_ooblayout16_ecc() 168 oobregion->length = chip->ecc.bytes; in pl35x_ecc_ooblayout16_ecc() 174 struct mtd_oob_region *oobregion) in pl35x_ecc_ooblayout16_free() argument 181 oobregion->offset = (section * chip->ecc.bytes) + 8; in pl35x_ecc_ooblayout16_free() 182 oobregion->length = 8; in pl35x_ecc_ooblayout16_free()
|
/linux/drivers/mtd/nand/ |
A D | ecc.c | 167 oobregion->offset = 0; in nand_ooblayout_ecc_sp() 169 oobregion->length = 4; in nand_ooblayout_ecc_sp() 176 oobregion->offset = 6; in nand_ooblayout_ecc_sp() 193 oobregion->length = 8; in nand_ooblayout_free_sp() 194 oobregion->offset = 8; in nand_ooblayout_free_sp() 196 oobregion->length = 2; in nand_ooblayout_free_sp() 227 oobregion->offset = mtd->oobsize - oobregion->length; in nand_ooblayout_ecc_lp() 242 oobregion->offset = 2; in nand_ooblayout_free_lp() 283 if (oobregion->offset + oobregion->length > mtd->oobsize) in nand_ooblayout_ecc_lp_hamming() 311 oobregion->offset = 2; in nand_ooblayout_free_lp_hamming() [all …]
|
/linux/drivers/mtd/nand/raw/ingenic/ |
A D | ingenic_nand_drv.c | 72 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_ecc() argument 80 oobregion->length = ecc->total; in qi_lb60_ooblayout_ecc() 81 oobregion->offset = 12; in qi_lb60_ooblayout_ecc() 87 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_free() argument 96 oobregion->offset = 12 + ecc->total; in qi_lb60_ooblayout_free() 107 struct mtd_oob_region *oobregion) in jz4725b_ooblayout_ecc() argument 115 oobregion->length = ecc->total; in jz4725b_ooblayout_ecc() 116 oobregion->offset = 3; in jz4725b_ooblayout_ecc() 122 struct mtd_oob_region *oobregion) in jz4725b_ooblayout_free() argument 130 oobregion->length = mtd->oobsize - ecc->total - 3; in jz4725b_ooblayout_free() [all …]
|
/linux/drivers/mtd/nand/spi/ |
A D | gigadevice.c | 140 struct mtd_oob_region *oobregion) in gd5fxgq4xc_ooblayout_256_ecc() argument 145 oobregion->offset = 128; in gd5fxgq4xc_ooblayout_256_ecc() 146 oobregion->length = 128; in gd5fxgq4xc_ooblayout_256_ecc() 152 struct mtd_oob_region *oobregion) in gd5fxgq4xc_ooblayout_256_free() argument 157 oobregion->offset = 1; in gd5fxgq4xc_ooblayout_256_free() 158 oobregion->length = 127; in gd5fxgq4xc_ooblayout_256_free()
|
/linux/drivers/mtd/ |
A D | mtdchar.c | 446 struct mtd_oob_region oobregion; in shrink_ecclayout() local 466 eccpos = oobregion.offset; in shrink_ecclayout() 468 eccpos < oobregion.offset + oobregion.length; i++) { in shrink_ecclayout() 475 ret = mtd_ooblayout_free(mtd, i, &oobregion); in shrink_ecclayout() 483 to->oobfree[i].offset = oobregion.offset; in shrink_ecclayout() 484 to->oobfree[i].length = oobregion.length; in shrink_ecclayout() 493 struct mtd_oob_region oobregion; in get_oobinfo() local 516 eccpos = oobregion.offset; in get_oobinfo() 517 for (; eccpos < oobregion.offset + oobregion.length; i++) { in get_oobinfo() 532 to->oobfree[i][0] = oobregion.offset; in get_oobinfo() [all …]
|
A D | mtdcore.c | 1714 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region() 1721 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region() 1724 pos += oobregion->length; in mtd_ooblayout_find_region() 1732 oobregion->offset += byte - pos; in mtd_ooblayout_find_region() 1733 oobregion->length -= byte - pos; in mtd_ooblayout_find_region() 1781 struct mtd_oob_region oobregion; in mtd_ooblayout_get_bytes() local 1785 &oobregion, iter); in mtd_ooblayout_get_bytes() 1824 struct mtd_oob_region oobregion; in mtd_ooblayout_set_bytes() local 1828 &oobregion, iter); in mtd_ooblayout_set_bytes() 1861 struct mtd_oob_region oobregion; in mtd_ooblayout_count_bytes() local [all …]
|
/linux/arch/arm/mach-pxa/ |
A D | spitz.c | 776 struct mtd_oob_region *oobregion) in akita_ooblayout_ecc() argument 783 oobregion->offset = 5; in akita_ooblayout_ecc() 784 oobregion->length = 1; in akita_ooblayout_ecc() 788 oobregion->offset = 1; in akita_ooblayout_ecc() 789 oobregion->length = 3; in akita_ooblayout_ecc() 793 oobregion->offset = 6; in akita_ooblayout_ecc() 794 oobregion->length = 2; in akita_ooblayout_ecc() 798 oobregion->offset += (section / 3) * 0x10; in akita_ooblayout_ecc() 804 struct mtd_oob_region *oobregion) in akita_ooblayout_free() argument 809 oobregion->offset = 8; in akita_ooblayout_free() [all …]
|
/linux/drivers/mtd/nand/raw/brcmnand/ |
A D | brcmnand.c | 1156 oobregion->length = 3; in brcmnand_hamming_ooblayout_ecc() 1183 oobregion->offset = 2; in brcmnand_hamming_ooblayout_free() 1186 oobregion->offset = 0; in brcmnand_hamming_ooblayout_free() 1191 oobregion->length = next - oobregion->offset; in brcmnand_hamming_ooblayout_free() 1214 oobregion->length = chip->ecc.bytes; in brcmnand_bch_ooblayout_ecc() 1234 oobregion->offset = section * sas; in brcmnand_bch_ooblayout_free_lp() 1238 oobregion->offset++; in brcmnand_bch_ooblayout_free_lp() 1239 oobregion->length--; in brcmnand_bch_ooblayout_free_lp() 1258 oobregion->offset = 0; in brcmnand_bch_ooblayout_free_sp() 1259 oobregion->length = 5; in brcmnand_bch_ooblayout_free_sp() [all …]
|
/linux/drivers/mtd/nand/onenand/ |
A D | onenand_base.c | 72 oobregion->offset = (section * 16) + 6; in flexonenand_ooblayout_ecc() 73 oobregion->length = 10; in flexonenand_ooblayout_ecc() 84 oobregion->offset = (section * 16) + 2; in flexonenand_ooblayout_free() 85 oobregion->length = 4; in flexonenand_ooblayout_free() 108 oobregion->offset = (section * 16) + 7; in onenand_ooblayout_128_ecc() 109 oobregion->length = 9; in onenand_ooblayout_128_ecc() 125 oobregion->length = 3; in onenand_ooblayout_128_free() 145 oobregion->length = 5; in onenand_ooblayout_32_64_ecc() 151 struct mtd_oob_region *oobregion) in onenand_ooblayout_32_64_free() argument 160 oobregion->length = 2; in onenand_ooblayout_32_64_free() [all …]
|