Searched refs:spinand (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/drivers/mtd/nand/spi/ |
D | core.c | 22 static void spinand_cache_op_adjust_colum(struct spinand_device *spinand, in spinand_cache_op_adjust_colum() argument 26 struct nand_device *nand = spinand_to_nand(spinand); in spinand_cache_op_adjust_colum() 37 static int spinand_read_reg_op(struct spinand_device *spinand, u8 reg, u8 *val) in spinand_read_reg_op() argument 40 spinand->scratchbuf); in spinand_read_reg_op() 43 ret = spi_mem_exec_op(spinand->spimem, &op); in spinand_read_reg_op() 47 *val = *spinand->scratchbuf; in spinand_read_reg_op() 51 static int spinand_write_reg_op(struct spinand_device *spinand, u8 reg, u8 val) in spinand_write_reg_op() argument 54 spinand->scratchbuf); in spinand_write_reg_op() 56 *spinand->scratchbuf = val; in spinand_write_reg_op() 57 return spi_mem_exec_op(spinand->spimem, &op); in spinand_write_reg_op() [all …]
|
D | winbond.c | 63 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() 94 static int winbond_spinand_detect(struct spinand_device *spinand) in winbond_spinand_detect() argument 96 u8 *id = spinand->id.data; in winbond_spinand_detect() 106 ret = spinand_match_and_init(spinand, winbond_spinand_table, in winbond_spinand_detect() 114 static int winbond_spinand_init(struct spinand_device *spinand) in winbond_spinand_init() argument 116 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init() 124 spinand_select_target(spinand, i); in winbond_spinand_init() [all …]
|
D | macronix.c | 51 static int mx35lf1ge4ab_get_eccsr(struct spinand_device *spinand, u8 *eccsr) in mx35lf1ge4ab_get_eccsr() argument 58 return spi_mem_exec_op(spinand->spimem, &op); in mx35lf1ge4ab_get_eccsr() 61 static int mx35lf1ge4ab_ecc_get_status(struct spinand_device *spinand, in mx35lf1ge4ab_ecc_get_status() argument 64 struct nand_device *nand = spinand_to_nand(spinand); in mx35lf1ge4ab_ecc_get_status() 80 if (mx35lf1ge4ab_get_eccsr(spinand, &eccsr)) in mx35lf1ge4ab_ecc_get_status() 115 static int macronix_spinand_detect(struct spinand_device *spinand) in macronix_spinand_detect() argument 117 u8 *id = spinand->id.data; in macronix_spinand_detect() 127 ret = spinand_match_and_init(spinand, macronix_spinand_table, in macronix_spinand_detect()
|
D | micron.c | 67 static int mt29f2g01abagd_ecc_get_status(struct spinand_device *spinand, in mt29f2g01abagd_ecc_get_status() argument 105 static int micron_spinand_detect(struct spinand_device *spinand) in micron_spinand_detect() argument 107 u8 *id = spinand->id.data; in micron_spinand_detect() 117 ret = spinand_match_and_init(spinand, micron_spinand_table, in micron_spinand_detect()
|
D | Makefile | 2 spinand-objs := core.o macronix.o micron.o winbond.o 3 obj-$(CONFIG_MTD_SPI_NAND) += spinand.o
|
/Linux-v4.19/include/linux/mtd/ |
D | spinand.h | 179 int (*detect)(struct spinand_device *spinand); 180 int (*init)(struct spinand_device *spinand); 181 void (*cleanup)(struct spinand_device *spinand); 235 int (*get_status)(struct spinand_device *spinand, u8 status); 271 int (*select_target)(struct spinand_device *spinand, 342 int (*select_target)(struct spinand_device *spinand, 373 static inline struct mtd_info *spinand_to_mtd(struct spinand_device *spinand) in spinand_to_mtd() argument 375 return nanddev_to_mtd(&spinand->base); in spinand_to_mtd() 396 spinand_to_nand(struct spinand_device *spinand) in spinand_to_nand() argument 398 return &spinand->base; in spinand_to_nand() [all …]
|