Lines Matching refs:spinand
65 static int macronix_get_eccsr(struct spinand_device *spinand, u8 *eccsr) in macronix_get_eccsr() argument
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()
90 static int macronix_ecc_get_status(struct spinand_device *spinand, in macronix_ecc_get_status() argument
93 struct nand_device *nand = spinand_to_nand(spinand); in macronix_ecc_get_status()
109 if (macronix_get_eccsr(spinand, spinand->scratchbuf)) in macronix_ecc_get_status()
112 eccsr = *spinand->scratchbuf; in macronix_ecc_get_status()
124 static int macronix_set_cont_read(struct spinand_device *spinand, bool enable) in macronix_set_cont_read() argument
126 struct macronix_priv *priv = spinand->priv; in macronix_set_cont_read()
129 ret = spinand_upd_cfg(spinand, MACRONIX_CFG_CONT_READ, in macronix_set_cont_read()
414 static int macronix_spinand_init(struct spinand_device *spinand) in macronix_spinand_init() argument
422 spinand->priv = priv; in macronix_spinand_init()
427 static void macronix_spinand_cleanup(struct spinand_device *spinand) in macronix_spinand_cleanup() argument
429 kfree(spinand->priv); in macronix_spinand_cleanup()