Searched refs:bitflips (Results 1 - 16 of 16) sorted by relevance

/linux-master/drivers/mtd/tests/
H A Doobtest.c29 MODULE_PARM_DESC(bitflip_limit, "Max. allowed bitflips per page");
114 * Return number of bitflips encountered.
122 size_t bitflips = 0; local
130 bitflips += hweight8(res);
134 return bitflips;
142 * comparison failure. Return number of bitflips encountered.
150 size_t bitflips = 0; local
158 bitflips += hweight8(res);
162 return bitflips;
171 size_t bitflips; local
268 size_t bitflips; local
[all...]
/linux-master/include/linux/mtd/
H A Dnand-ecc-mtk.h23 u32 bitflips; member in struct:mtk_ecc_stats
H A Drawnand.h99 * Set this flag if your implementation does not fix bitflips in erased
145 * Some MLC NANDs need data scrambling to limit bitflips caused by repeated
316 * corrected bitflips, -EBADMSG if the number of bitflips exceed
337 * requirements; returns maximum number of bitflips corrected in
1263 * @pagecache.bitflips: Number of bitflips of the cached page
1322 unsigned int bitflips; member in struct:nand_chip::__anon570
/linux-master/drivers/mtd/nand/raw/
H A Dnand_toshiba.c60 unsigned int i, bitflips = 0; local
63 bitflips = ecc_status[i] & TOSHIBA_NAND_ECC_STATUS_MASK;
64 if (bitflips == TOSHIBA_NAND_ECC_STATUS_UNCORR) {
67 mtd->ecc_stats.corrected += bitflips;
68 max_bitflips = max(max_bitflips, bitflips);
H A Dmeson_nand.c534 static int meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips, argument
546 *bitflips = max_t(u32, *bitflips, ECC_ERR_CNT(*info));
553 *bitflips = max_t(u32, *bitflips,
871 u32 bitflips = 0; local
880 ret = meson_nfc_ecc_correct(nand, &bitflips, &correct_bitmap);
888 return bitflips;
908 bitflips = max_t(u32, bitflips, re
[all...]
H A Dfsl_ifc_nand.c635 * The controller does not check for bitflips in erased pages,
644 int i, res, bitflips = 0; local
659 bitflips = max(res, bitflips);
664 return bitflips;
H A Ddenali.c463 * The register holds the maximum of per-sector corrected bitflips.
479 unsigned int bitflips = 0; local
502 bitflips = 0;
528 bitflips += flips_in_byte;
530 max_bitflips = max(max_bitflips, bitflips);
H A Dmtk_nand.c936 return stats.bitflips;
948 int bitflips = 0; local
1015 bitflips = -EIO;
1018 bitflips = rc < 0 ? -ETIMEDOUT :
1035 return bitflips;
H A Dnandsim.c93 static unsigned int bitflips = 0; variable
125 module_param(bitflips, uint, 0400);
155 MODULE_PARM_DESC(bitflips, "Maximum number of random bit flips per page (zero by default)");
1405 if (bitflips && get_random_u16() < (1 << 6)) {
1407 if (bitflips > 1)
1408 flips = get_random_u32_inclusive(1, bitflips);
H A Dnand_base.c2783 * @bitflips_threshold: maximum number of bitflips
2787 * The bitflips_threshold specify the maximum number of bitflips before
2791 * testing the whole buffer if the number of bitflips exceed the
2794 * Returns a positive number of bitflips less than or equal to
2795 * bitflips_threshold, or -ERROR_CODE for bitflips in excess of the
2801 int bitflips = 0; local
2807 bitflips += BITS_PER_BYTE - weight;
2808 if (unlikely(bitflips > bitflips_threshold))
2818 bitflips += BITS_PER_LONG - weight;
2819 if (unlikely(bitflips > bitflips_threshol
[all...]
/linux-master/drivers/mtd/ubi/
H A Dattach.c441 int len, err, second_is_newer, bitflips = 0, corrupted = 0; local
483 return bitflips << 1;
494 bitflips = 1;
523 bitflips = 0;
527 bitflips |= !!err;
538 return second_is_newer | (bitflips << 1) | (corrupted << 2);
554 * @bitflips: if bit-flips were detected when this physical eraseblock was read
564 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips)
576 dbg_bld("PEB %d, LEB %d:%d, EC %d, sqnum %llu, bitflips %d",
577 pnum, vol_id, lnum, ec, sqnum, bitflips);
563 ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips) argument
948 int err, bitflips = 0, vol_id = -1, ec_err = 0; local
[all...]
H A Ddebug.c34 FAIL_ACTION(bitflips, fault_bitflips_attr)
H A Dubi.h826 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
/linux-master/drivers/mtd/nand/
H A Decc-mtk.c224 u32 bitflips = 0; local
241 bitflips = max_t(u32, bitflips, err);
244 stats->bitflips = bitflips;
/linux-master/drivers/spi/
H A Dspi-mtk-snfi.c776 return snf->ecc_stats.failed ? -EBADMSG : snf->ecc_stats.bitflips;
1009 snf->ecc_stats.bitflips = 0;
/linux-master/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c2088 * Check a page to see if it is erased (w/ bitflips) after an uncorrectable ECC
2093 * page with bitflips, not a truly corrupted page.
2098 * bitflips-per-ECC-sector to the caller.
2106 int bitflips = 0; local
2133 bitflips = max(bitflips, ret);
2136 return bitflips;
2197 * bitflips, apply sw verification for older controllers only
2202 /* erased page bitflips corrected */

Completed in 210 milliseconds