Home
last modified time | relevance | path

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

/linux/drivers/mtd/nand/spi/
A Dcore.c59 *cfg = spinand->cfg_cache[spinand->cur_target]; in spinand_get_cfg()
72 if (spinand->cfg_cache[spinand->cur_target] == cfg) in spinand_set_cfg()
79 spinand->cfg_cache[spinand->cur_target] = cfg; in spinand_set_cfg()
133 ret = spinand->select_target(spinand, target); in spinand_select_target()
208 return spinand->eccinfo.get_status(spinand, status); in spinand_check_ecc_status()
876 spinand->dirmaps = devm_kzalloc(&spinand->spimem->spi->dev, in spinand_create_dirmaps()
966 return spinand->manufacturer->ops->init(spinand); in spinand_manufacturer_init()
975 return spinand->manufacturer->ops->cleanup(spinand); in spinand_manufacturer_cleanup()
1201 spinand->oobbuf = spinand->databuf + nanddev_page_size(nand); in spinand_init()
1286 spinand = devm_kzalloc(&mem->spi->dev, sizeof(*spinand), in spinand_probe()
[all …]
A Dmicron.c93 struct spinand_device *spinand = mtd_to_spinand(mtd); in micron_4_ooblayout_ecc() local
95 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_ecc()
108 struct spinand_device *spinand = mtd_to_spinand(mtd); in micron_4_ooblayout_free() local
110 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_free()
131 static int micron_select_target(struct spinand_device *spinand, in micron_select_target() argument
135 spinand->scratchbuf); in micron_select_target()
140 *spinand->scratchbuf = MICRON_SELECT_DIE(target); in micron_select_target()
142 return spi_mem_exec_op(spinand->spimem, &op); in micron_select_target()
286 static int micron_spinand_init(struct spinand_device *spinand) in micron_spinand_init() argument
293 if (spinand->flags & SPINAND_HAS_CR_FEAT_BIT) in micron_spinand_init()
[all …]
A Dwinbond.c63 static int w25m02gv_select_target(struct spinand_device *spinand, in w25m02gv_select_target() argument
70 spinand->scratchbuf, in w25m02gv_select_target()
73 *spinand->scratchbuf = target; in w25m02gv_select_target()
74 return spi_mem_exec_op(spinand->spimem, &op); in w25m02gv_select_target()
99 static int winbond_spinand_init(struct spinand_device *spinand) in winbond_spinand_init() argument
101 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init()
109 spinand_select_target(spinand, i); in winbond_spinand_init()
110 spinand_upd_cfg(spinand, WINBOND_CFG_BUF_READ, in winbond_spinand_init()
A Dgigadevice.c84 static int gd5fxgq4xa_ecc_get_status(struct spinand_device *spinand, in gd5fxgq4xa_ecc_get_status() argument
168 static int gd5fxgq4uexxg_ecc_get_status(struct spinand_device *spinand, in gd5fxgq4uexxg_ecc_get_status() argument
185 ret = spi_mem_exec_op(spinand->spimem, &op); in gd5fxgq4uexxg_ecc_get_status()
210 static int gd5fxgq5xexxg_ecc_get_status(struct spinand_device *spinand, in gd5fxgq5xexxg_ecc_get_status() argument
227 ret = spi_mem_exec_op(spinand->spimem, &op); in gd5fxgq5xexxg_ecc_get_status()
247 static int gd5fxgq4ufxxg_ecc_get_status(struct spinand_device *spinand, in gd5fxgq4ufxxg_ecc_get_status() argument
A Dmacronix.c52 static int mx35lf1ge4ab_get_eccsr(struct spinand_device *spinand, u8 *eccsr) in mx35lf1ge4ab_get_eccsr() argument
59 int ret = spi_mem_exec_op(spinand->spimem, &op); in mx35lf1ge4ab_get_eccsr()
67 static int mx35lf1ge4ab_ecc_get_status(struct spinand_device *spinand, in mx35lf1ge4ab_ecc_get_status() argument
70 struct nand_device *nand = spinand_to_nand(spinand); in mx35lf1ge4ab_ecc_get_status()
86 if (mx35lf1ge4ab_get_eccsr(spinand, &eccsr)) in mx35lf1ge4ab_ecc_get_status()
A DMakefile2 spinand-objs := core.o gigadevice.o macronix.o micron.o paragon.o toshiba.o winbond.o
3 obj-$(CONFIG_MTD_SPI_NAND) += spinand.o
A Dtoshiba.c71 static int tx58cxgxsxraix_ecc_get_status(struct spinand_device *spinand, in tx58cxgxsxraix_ecc_get_status() argument
74 struct nand_device *nand = spinand_to_nand(spinand); in tx58cxgxsxraix_ecc_get_status()
92 if (spi_mem_exec_op(spinand->spimem, &op)) in tx58cxgxsxraix_ecc_get_status()
A Dparagon.c70 static int pn26g0xa_ecc_get_status(struct spinand_device *spinand, in pn26g0xa_ecc_get_status() argument
/linux/include/linux/mtd/
A Dspinand.h241 int (*init)(struct spinand_device *spinand);
242 void (*cleanup)(struct spinand_device *spinand);
304 int (*get_status)(struct spinand_device *spinand, u8 status);
350 int (*select_target)(struct spinand_device *spinand,
435 int (*select_target)(struct spinand_device *spinand,
468 return nanddev_to_mtd(&spinand->base); in spinand_to_mtd()
489 spinand_to_nand(struct spinand_device *spinand) in spinand_to_nand() argument
491 return &spinand->base; in spinand_to_nand()
504 nanddev_set_of_node(&spinand->base, np); in spinand_set_of_node()
507 int spinand_match_and_init(struct spinand_device *spinand,
[all …]

Completed in 37 milliseconds