Lines Matching refs:spinand_device
170 struct spinand_device;
241 int (*init)(struct spinand_device *spinand);
242 void (*cleanup)(struct spinand_device *spinand);
308 int (*get_status)(struct spinand_device *spinand, u8 status);
354 int (*select_target)(struct spinand_device *spinand,
426 struct spinand_device { struct
441 int (*select_target)(struct spinand_device *spinand, argument
461 static inline struct spinand_device *mtd_to_spinand(struct mtd_info *mtd) in mtd_to_spinand() argument
463 return container_of(mtd_to_nanddev(mtd), struct spinand_device, base); in mtd_to_spinand()
472 static inline struct mtd_info *spinand_to_mtd(struct spinand_device *spinand) in spinand_to_mtd()
483 static inline struct spinand_device *nand_to_spinand(struct nand_device *nand) in nand_to_spinand()
485 return container_of(nand, struct spinand_device, base); in nand_to_spinand()
495 spinand_to_nand(struct spinand_device *spinand) in spinand_to_nand()
507 static inline void spinand_set_of_node(struct spinand_device *spinand, in spinand_set_of_node()
513 int spinand_match_and_init(struct spinand_device *spinand,
518 int spinand_upd_cfg(struct spinand_device *spinand, u8 mask, u8 val);
519 int spinand_select_target(struct spinand_device *spinand, unsigned int target);