Lines Matching +full:1 +full:- +full:512

1 // SPDX-License-Identifier: GPL-2.0
29 SPINAND_PAGE_READ_FROM_CACHE_X4_OP(0, 1, NULL, 0),
30 SPINAND_PAGE_READ_FROM_CACHE_X2_OP(0, 1, NULL, 0),
31 SPINAND_PAGE_READ_FROM_CACHE_FAST_OP(0, 1, NULL, 0),
32 SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 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()
68 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(0x7c, 1), in macronix_get_eccsr()
70 SPI_MEM_OP_DUMMY(1, 1), in macronix_get_eccsr()
71 SPI_MEM_OP_DATA_IN(1, eccsr, 1)); 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()
142 NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
143 NAND_ECCREQ(4, 512),
152 NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 2, 1, 1),
153 NAND_ECCREQ(4, 512),
163 NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
164 NAND_ECCREQ(8, 512),
174 NAND_MEMORG(1, 4096, 128, 64, 2048, 40, 1, 1, 1),
175 NAND_ECCREQ(8, 512),
185 NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
186 NAND_ECCREQ(8, 512),
194 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1),
195 NAND_ECCREQ(8, 512),
202 SPINAND_INFO("MX35LF2G24AD-Z4I8",
204 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
205 NAND_ECCREQ(8, 512),
213 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 2, 1, 1),
214 NAND_ECCREQ(8, 512),
221 SPINAND_INFO("MX35LF4G24AD-Z4I8",
223 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
224 NAND_ECCREQ(8, 512),
232 NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
233 NAND_ECCREQ(8, 512),
242 NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
243 NAND_ECCREQ(8, 512),
253 NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 2, 1, 1),
254 NAND_ECCREQ(4, 512),
265 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 2, 1, 1),
266 NAND_ECCREQ(8, 512),
274 SPINAND_INFO("MX35UF4G24AD-Z4I8",
276 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
277 NAND_ECCREQ(8, 512),
286 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
287 NAND_ECCREQ(8, 512),
297 NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 2, 1, 1),
298 NAND_ECCREQ(4, 512),
309 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1),
310 NAND_ECCREQ(8, 512),
318 SPINAND_INFO("MX35UF2G24AD-Z4I8",
320 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
321 NAND_ECCREQ(8, 512),
330 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
331 NAND_ECCREQ(8, 512),
341 NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
342 NAND_ECCREQ(4, 512),
352 NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
353 NAND_ECCREQ(4, 512),
362 NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
363 NAND_ECCREQ(8, 512),
372 NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
373 NAND_ECCREQ(8, 512),
383 NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
384 NAND_ECCREQ(4, 512),
394 NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
395 NAND_ECCREQ(8, 512),
404 NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
405 NAND_ECCREQ(8, 512),
420 return -ENOMEM; in macronix_spinand_init()
422 spinand->priv = priv; in macronix_spinand_init()
429 kfree(spinand->priv); in macronix_spinand_cleanup()