Lines Matching +full:wear +full:- +full:leveling
1 // SPDX-License-Identifier: GPL-2.0
45 return -ERANGE; in mx35lfxge4ab_ooblayout_ecc()
52 return -ERANGE; in mx35lfxge4ab_ooblayout_free()
54 region->offset = 2; in mx35lfxge4ab_ooblayout_free()
55 region->length = mtd->oobsize - 2; in mx35lfxge4ab_ooblayout_free()
67 struct macronix_priv *priv = spinand->priv; in macronix_get_eccsr()
73 int ret = spi_mem_exec_op(spinand->spimem, &op); in macronix_get_eccsr()
82 if (!priv->cont_read) in macronix_get_eccsr()
101 return -EBADMSG; in macronix_ecc_get_status()
106 * in order to avoid forcing the wear-leveling layer to move in macronix_ecc_get_status()
109 if (macronix_get_eccsr(spinand, spinand->scratchbuf)) in macronix_ecc_get_status()
110 return nanddev_get_ecc_conf(nand)->strength; in macronix_ecc_get_status()
112 eccsr = *spinand->scratchbuf; in macronix_ecc_get_status()
113 if (WARN_ON(eccsr > nanddev_get_ecc_conf(nand)->strength || !eccsr)) in macronix_ecc_get_status()
114 return nanddev_get_ecc_conf(nand)->strength; in macronix_ecc_get_status()
121 return -EINVAL; in macronix_ecc_get_status()
126 struct macronix_priv *priv = spinand->priv; in macronix_set_cont_read()
134 priv->cont_read = enable; in macronix_set_cont_read()
202 SPINAND_INFO("MX35LF2G24AD-Z4I8",
221 SPINAND_INFO("MX35LF4G24AD-Z4I8",
274 SPINAND_INFO("MX35UF4G24AD-Z4I8",
318 SPINAND_INFO("MX35UF2G24AD-Z4I8",
420 return -ENOMEM; in macronix_spinand_init()
422 spinand->priv = priv; in macronix_spinand_init()
429 kfree(spinand->priv); in macronix_spinand_cleanup()