Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/mtd/nand/
Decc-mtk.c504 u32 max_eccdata_size; in mtk_ecc_probe() local
513 max_eccdata_size = ecc->caps->num_ecc_strength - 1; in mtk_ecc_probe()
514 max_eccdata_size = ecc->caps->ecc_strength[max_eccdata_size]; in mtk_ecc_probe()
515 max_eccdata_size = (max_eccdata_size * ecc->caps->parity_bits + 7) >> 3; in mtk_ecc_probe()
516 max_eccdata_size = round_up(max_eccdata_size, 4); in mtk_ecc_probe()
517 ecc->eccdata = devm_kzalloc(dev, max_eccdata_size, GFP_KERNEL); in mtk_ecc_probe()