Searched refs:spinand (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/mtd/nand/spi/ |
| H A D | core.c | 24 spinand_fill_reset_op(struct spinand_device *spinand) in spinand_fill_reset_op() argument 26 return spinand->op_templates->reset; in spinand_fill_reset_op() 30 spinand_fill_readid_op(struct spinand_device *spinand, in spinand_fill_readid_op() argument 33 struct spi_mem_op op = spinand->op_templates->readid; in spinand_fill_readid_op() 44 spinand_fill_wr_en_op(struct spinand_device *spinand) in spinand_fill_wr_en_op() argument 46 return spinand->op_templates->wr_en; in spinand_fill_wr_en_op() 50 spinand_fill_wr_dis_op(struct spinand_device *spinand) in spinand_fill_wr_dis_op() argument 52 return spinand->op_templates->wr_dis; in spinand_fill_wr_dis_op() 56 spinand_fill_set_feature_op(struct spinand_device *spinand, u64 reg, const void *valptr) in spinand_fill_set_feature_op() argument 58 struct spi_mem_op op = spinand->op_templates->set_feature; in spinand_fill_set_feature_op() [all …]
|
| H A D | gigadevice.c | 79 static int gd5fxgm9_get_eccsr(struct spinand_device *spinand, u8 *eccsr) in gd5fxgm9_get_eccsr() argument 81 struct gigadevice_priv *priv = spinand->priv; in gd5fxgm9_get_eccsr() 88 ret = spi_mem_exec_op(spinand->spimem, &op); in gd5fxgm9_get_eccsr() 100 static int gd5fxgm9_ecc_get_status(struct spinand_device *spinand, u8 status) in gd5fxgm9_ecc_get_status() argument 102 struct nand_device *nand = spinand_to_nand(spinand); in gd5fxgm9_ecc_get_status() 111 ret = gd5fxgm9_get_eccsr(spinand, spinand->scratchbuf); in gd5fxgm9_ecc_get_status() 115 eccsr = *spinand->scratchbuf; in gd5fxgm9_ecc_get_status() 132 static int gd5fxgm9_set_continuous_read(struct spinand_device *spinand, bool enable) in gd5fxgm9_set_continuous_read() argument 134 struct gigadevice_priv *priv = spinand->priv; in gd5fxgm9_set_continuous_read() 137 ret = spinand_upd_cfg(spinand, GD_FEATURE_NR, in gd5fxgm9_set_continuous_read() [all …]
|
| H A D | macronix.c | 54 spinand_fill_macronix_read_eccsr_op(struct spinand_device *spinand, void *valptr) in spinand_fill_macronix_read_eccsr_op() argument 56 WARN_ON_ONCE(spinand->bus_iface != SSDR); in spinand_fill_macronix_read_eccsr_op() 84 static int macronix_get_eccsr(struct spinand_device *spinand, u8 *eccsr) in macronix_get_eccsr() argument 86 struct macronix_priv *priv = spinand->priv; in macronix_get_eccsr() 87 struct spi_mem_op op = SPINAND_OP(spinand, macronix_read_eccsr, eccsr); in macronix_get_eccsr() 90 ret = spi_mem_exec_op(spinand->spimem, &op); in macronix_get_eccsr() 107 static int macronix_ecc_get_status(struct spinand_device *spinand, in macronix_ecc_get_status() argument 110 struct nand_device *nand = spinand_to_nand(spinand); in macronix_ecc_get_status() 126 if (macronix_get_eccsr(spinand, spinand->scratchbuf)) in macronix_ecc_get_status() 129 eccsr = *spinand->scratchbuf; in macronix_ecc_get_status() [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-amlogic-spifc-a4.c | 1020 struct spinand_device *spinand = nand_to_spinand(nand); in aml_sfc_ecc_prepare_io_req() local 1036 memset(spinand->oobbuf, 0xff, nanddev_per_page_oobsize(nand)); in aml_sfc_ecc_prepare_io_req()
|