Lines Matching refs:spinand_device
23 static int spinand_read_reg_op(struct spinand_device *spinand, u8 reg, u8 *val) in spinand_read_reg_op()
37 static int spinand_write_reg_op(struct spinand_device *spinand, u8 reg, u8 val) in spinand_write_reg_op()
46 static int spinand_read_status(struct spinand_device *spinand, u8 *status) in spinand_read_status()
51 static int spinand_get_cfg(struct spinand_device *spinand, u8 *cfg) in spinand_get_cfg()
63 static int spinand_set_cfg(struct spinand_device *spinand, u8 cfg) in spinand_set_cfg()
93 int spinand_upd_cfg(struct spinand_device *spinand, u8 mask, u8 val) in spinand_upd_cfg()
117 int spinand_select_target(struct spinand_device *spinand, unsigned int target) in spinand_select_target()
141 static int spinand_read_cfg(struct spinand_device *spinand) in spinand_read_cfg()
165 static int spinand_init_cfg_cache(struct spinand_device *spinand) in spinand_init_cfg_cache()
180 static int spinand_init_quad_enable(struct spinand_device *spinand) in spinand_init_quad_enable()
196 static int spinand_ecc_enable(struct spinand_device *spinand, in spinand_ecc_enable()
203 static int spinand_check_ecc_status(struct spinand_device *spinand, u8 status) in spinand_check_ecc_status()
258 struct spinand_device *spinand = nand_to_spinand(nand); in spinand_ondie_ecc_init_ctx()
288 struct spinand_device *spinand = nand_to_spinand(nand); in spinand_ondie_ecc_prepare_io_req()
301 struct spinand_device *spinand = nand_to_spinand(nand); in spinand_ondie_ecc_finish_io_req()
342 static int spinand_write_enable_op(struct spinand_device *spinand) in spinand_write_enable_op()
349 static int spinand_load_page_op(struct spinand_device *spinand, in spinand_load_page_op()
359 static int spinand_read_from_cache_op(struct spinand_device *spinand, in spinand_read_from_cache_op()
420 static int spinand_write_to_cache_op(struct spinand_device *spinand, in spinand_write_to_cache_op()
479 static int spinand_program_op(struct spinand_device *spinand, in spinand_program_op()
489 static int spinand_erase_op(struct spinand_device *spinand, in spinand_erase_op()
499 static int spinand_wait(struct spinand_device *spinand, in spinand_wait()
535 static int spinand_read_id_op(struct spinand_device *spinand, u8 naddr, in spinand_read_id_op()
549 static int spinand_reset_op(struct spinand_device *spinand) in spinand_reset_op()
564 static int spinand_lock_block(struct spinand_device *spinand, u8 lock) in spinand_lock_block()
569 static int spinand_read_page(struct spinand_device *spinand, in spinand_read_page()
600 static int spinand_write_page(struct spinand_device *spinand, in spinand_write_page()
636 struct spinand_device *spinand = mtd_to_spinand(mtd); in spinand_mtd_read()
692 struct spinand_device *spinand = mtd_to_spinand(mtd); in spinand_mtd_write()
726 struct spinand_device *spinand = nand_to_spinand(nand); in spinand_isbad()
747 struct spinand_device *spinand = nand_to_spinand(nand); in spinand_mtd_block_isbad()
761 struct spinand_device *spinand = nand_to_spinand(nand); in spinand_markbad()
786 struct spinand_device *spinand = nand_to_spinand(nand); in spinand_mtd_block_markbad()
800 struct spinand_device *spinand = nand_to_spinand(nand); in spinand_erase()
830 struct spinand_device *spinand = mtd_to_spinand(mtd); in spinand_mtd_erase()
842 struct spinand_device *spinand = mtd_to_spinand(mtd); in spinand_mtd_block_isreserved()
855 static int spinand_create_dirmap(struct spinand_device *spinand, in spinand_create_dirmap()
912 static int spinand_create_dirmaps(struct spinand_device *spinand) in spinand_create_dirmaps()
952 static int spinand_manufacturer_match(struct spinand_device *spinand, in spinand_manufacturer_match()
979 static int spinand_id_detect(struct spinand_device *spinand) in spinand_id_detect()
1008 static int spinand_manufacturer_init(struct spinand_device *spinand) in spinand_manufacturer_init()
1016 static void spinand_manufacturer_cleanup(struct spinand_device *spinand) in spinand_manufacturer_cleanup()
1024 spinand_select_op_variant(struct spinand_device *spinand, in spinand_select_op_variant()
1072 int spinand_match_and_init(struct spinand_device *spinand, in spinand_match_and_init()
1122 static int spinand_detect(struct spinand_device *spinand) in spinand_detect()
1155 static int spinand_init_flash(struct spinand_device *spinand) in spinand_init_flash()
1200 struct spinand_device *spinand = mtd_to_spinand(mtd); in spinand_mtd_resume()
1214 static int spinand_init(struct spinand_device *spinand) in spinand_init()
1315 static void spinand_cleanup(struct spinand_device *spinand) in spinand_cleanup()
1327 struct spinand_device *spinand; in spinand_probe()
1361 struct spinand_device *spinand; in spinand_remove()