Home
last modified time | relevance | path

Searched refs:error_max (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/mtd/nand/raw/
H A Domap_gpmc.c497 uint32_t error_count = 0, error_max; in omap_correct_data_bch() local
549 error_max = SECTOR_BYTES + (ecc->bytes - 1); in omap_correct_data_bch()
552 error_max = SECTOR_BYTES + ecc->bytes; in omap_correct_data_bch()
557 byte_pos = error_max - (error_loc[count] / 8) - 1; in omap_correct_data_bch()
562 } else if (byte_pos < error_max) { in omap_correct_data_bch()
/openbmc/linux/drivers/mtd/nand/raw/
H A Domap2.c1228 u32 bit_pos, byte_pos, error_max, pos; in omap_elm_correct_data() local
1336 error_max = (ecc->size + actual_eccbytes) * 8; in omap_elm_correct_data()
1341 byte_pos = (error_max - pos - 1) / 8; in omap_elm_correct_data()
1343 if (pos < error_max) { in omap_elm_correct_data()