Home
last modified time | relevance | path

Searched refs:bitflips (Results 1 – 3 of 3) sorted by relevance

/drivers/mtd/ubi/
Dscan.c244 int len, err, second_is_newer, bitflips = 0, corrupted = 0; in compare_lebs() local
291 bitflips = 1; in compare_lebs()
306 err = bitflips << 1; in compare_lebs()
332 bitflips = 0; in compare_lebs()
336 bitflips = !!err; in compare_lebs()
347 return second_is_newer | (bitflips << 1) | (corrupted << 2); in compare_lebs()
374 int bitflips) in ubi_scan_add_used() argument
387 pnum, vol_id, lnum, ec, sqnum, bitflips); in ubi_scan_add_used()
471 seb->scrub = ((cmp_res & 2) || bitflips); in ubi_scan_add_used()
508 seb->scrub = bitflips; in ubi_scan_add_used()
[all …]
Dscan.h149 int bitflips);
/drivers/mtd/nand/
Dnandsim.c102 static unsigned int bitflips = 0; variable
125 module_param(bitflips, uint, 0400);
153 MODULE_PARM_DESC(bitflips, "Maximum number of random bit flips per page (zero by default)");
1410 if (bitflips && random32() < (1 << 22)) { in do_bit_flips()
1412 if (bitflips > 1) in do_bit_flips()
1413 flips = (random32() % (int) bitflips) + 1; in do_bit_flips()