Lines Matching refs:spinand
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()
106 static int w25n02kv_ecc_get_status(struct spinand_device *spinand, in w25n02kv_ecc_get_status() argument
109 struct nand_device *nand = spinand_to_nand(spinand); in w25n02kv_ecc_get_status()
111 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(0x30, spinand->scratchbuf); in w25n02kv_ecc_get_status()
126 if (spi_mem_exec_op(spinand->spimem, &op)) in w25n02kv_ecc_get_status()
129 mbf = *(spinand->scratchbuf) >> 4; in w25n02kv_ecc_get_status()
174 static int winbond_spinand_init(struct spinand_device *spinand) in winbond_spinand_init() argument
176 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init()
184 spinand_select_target(spinand, i); in winbond_spinand_init()
185 spinand_upd_cfg(spinand, WINBOND_CFG_BUF_READ, in winbond_spinand_init()