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

/linux-4.1.27/drivers/mtd/tests/
H A Doobtest.c41 MODULE_PARM_DESC(bitflip_limit, "Max. allowed bitflips per page");
126 * Return number of bitflips encountered.
133 size_t bitflips = 0; memcmpshow() local
140 bitflips += hweight8(res); memcmpshow()
144 return bitflips; memcmpshow()
149 * comparison failure. Return number of bitflips encountered.
157 size_t bitflips = 0; memffshow() local
165 bitflips += hweight8(res); memffshow()
169 return bitflips; memffshow()
178 size_t bitflips; verify_eraseblock() local
198 bitflips = memcmpshow(addr, readbuf, verify_eraseblock()
201 if (bitflips > bitflip_limit) { verify_eraseblock()
209 } else if (bitflips) { verify_eraseblock()
231 bitflips = memcmpshow(addr, readbuf + use_offset, verify_eraseblock()
236 bitflips += memffshow(addr, 0, readbuf, use_offset); verify_eraseblock()
240 bitflips += memffshow(addr, k, readbuf + k, verify_eraseblock()
243 if (bitflips > bitflip_limit) { verify_eraseblock()
251 } else if (bitflips) { verify_eraseblock()
268 size_t bitflips; verify_eraseblock_in_one_go() local
292 bitflips = memcmpshow(addr, readbuf + (i * oobavail), verify_eraseblock_in_one_go()
294 if (bitflips > bitflip_limit) { verify_eraseblock_in_one_go()
302 } else if (bitflips) { verify_eraseblock_in_one_go()
/linux-4.1.27/drivers/mtd/ubi/
H A Dattach.c327 int len, err, second_is_newer, bitflips = 0, corrupted = 0; ubi_compare_lebs() local
369 return bitflips << 1; ubi_compare_lebs()
380 bitflips = 1; ubi_compare_lebs()
409 bitflips = 0; ubi_compare_lebs()
413 bitflips |= !!err; ubi_compare_lebs()
424 return second_is_newer | (bitflips << 1) | (corrupted << 2); ubi_compare_lebs()
440 * @bitflips: if bit-flips were detected when this physical eraseblock was read
450 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips) ubi_add_to_av()
462 dbg_bld("PEB %d, LEB %d:%d, EC %d, sqnum %llu, bitflips %d", ubi_add_to_av()
463 pnum, vol_id, lnum, ec, sqnum, bitflips); ubi_add_to_av()
546 aeb->scrub = ((cmp_res & 2) || bitflips); ubi_add_to_av()
582 aeb->scrub = bitflips; ubi_add_to_av()
823 int err, bitflips = 0, vol_id = -1, ec_err = 0; scan_peb() local
843 bitflips = 1; scan_peb()
857 * corrupted. Set %bitflips flag in order to make this PEB be scan_peb()
862 bitflips = 1; scan_peb()
926 bitflips = 1; scan_peb()
978 if (ec_err || bitflips) scan_peb()
1040 err = ubi_add_to_av(ubi, ai, pnum, ec, vidh, bitflips); scan_peb()
449 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) ubi_add_to_av() argument
H A Dubi.h786 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
/linux-4.1.27/drivers/mtd/
H A Dmtdconcat.c94 /* Save information about bitflips! */ concat_read()
257 /* Save information about bitflips! */ concat_read_oob()
H A Dmtdcore.c880 * representing the maximum number of bitflips that were corrected on mtd_read()
938 * representing max bitflips. In other cases, mtd->_read_oob() may mtd_read_oob()
/linux-4.1.27/drivers/mtd/nand/
H A Dnandsim.c104 static unsigned int bitflips = 0; variable
136 module_param(bitflips, uint, 0400);
166 MODULE_PARM_DESC(bitflips, "Maximum number of random bit flips per page (zero by default)");
1451 if (bitflips && prandom_u32() < (1 << 22)) { do_bit_flips()
1453 if (bitflips > 1) do_bit_flips()
1454 flips = (prandom_u32() % (int) bitflips) + 1; do_bit_flips()
H A Ddenali.c950 unsigned int bitflips = 0; handle_ecc() local
990 bitflips++; handle_ecc()
1012 *max_bitflips = bitflips; handle_ecc()
H A Ddocg4.c374 * Called after a page read when hardware reports bitflips. correct_data()
375 * Up to four bitflips can be corrected. correct_data()
807 /* If bitflips are reported, attempt to correct with ecc */ read_page()
H A Datmel_nand.c928 int bitflips = 0; atmel_nand_pmecc_read_page() local
947 bitflips = pmecc_correction(mtd, stat, buf, &oob[eccpos[0]]); atmel_nand_pmecc_read_page()
948 if (bitflips < 0) atmel_nand_pmecc_read_page()
953 return bitflips; atmel_nand_pmecc_read_page()
H A Dfsl_elbc_nand.c255 * count the number of sub-pages with bitflips and update fsl_elbc_run_command()
H A Dpxa3xx_nand.c649 * and we need to store maximum number of corrected bitflips pxa3xx_nand_irq()
H A Dnand_base.c1519 * when there are too many bitflips in a page (i.e., ECC error). After setting
1600 * the read methods return max bitflips per ecc step. nand_do_read_ops()
3872 * Requirement (2) ensures we can correct even when all bitflips are clumped
/linux-4.1.27/include/linux/mtd/
H A Dmtd.h158 * read ops return -EUCLEAN if max number of bitflips corrected on any
H A Dnand.h474 * requirements; returns maximum number of bitflips corrected in
475 * any single ECC step, 0 if bitflips uncorrectable, -EIO hw error
/linux-4.1.27/drivers/mtd/onenand/
H A Donenand_base.c1203 /* return max bitflips per ecc step; ONENANDs correct 1 bit only */ onenand_mlc_read_ops_nolock()
1336 /* return max bitflips per ecc step; ONENANDs correct 1 bit only */ onenand_read_ops_nolock()
/linux-4.1.27/fs/btrfs/
H A Ddisk-io.c3970 * Hint to catch really bogus numbers, bitflips or so, more exact checks are btrfs_check_super_valid()

Completed in 439 milliseconds