Lines Matching refs:spinand
65 static int w25m02gv_select_target(struct spinand_device *spinand, in w25m02gv_select_target() argument
72 spinand->scratchbuf, in w25m02gv_select_target()
75 *spinand->scratchbuf = target; in w25m02gv_select_target()
76 return spi_mem_exec_op(spinand->spimem, &op); in w25m02gv_select_target()
125 static int w25n02kv_ecc_get_status(struct spinand_device *spinand, in w25n02kv_ecc_get_status() argument
128 struct nand_device *nand = spinand_to_nand(spinand); in w25n02kv_ecc_get_status()
130 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(0x30, spinand->scratchbuf); in w25n02kv_ecc_get_status()
146 if (spi_mem_exec_op(spinand->spimem, &op)) in w25n02kv_ecc_get_status()
149 mbf = *(spinand->scratchbuf) >> 4; in w25n02kv_ecc_get_status()
257 static int winbond_spinand_init(struct spinand_device *spinand) in winbond_spinand_init() argument
259 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init()
267 spinand_select_target(spinand, i); in winbond_spinand_init()
268 spinand_upd_cfg(spinand, WINBOND_CFG_BUF_READ, in winbond_spinand_init()