Lines Matching refs:spinand_device
147 struct spinand_device;
186 int (*detect)(struct spinand_device *spinand);
187 int (*init)(struct spinand_device *spinand);
188 void (*cleanup)(struct spinand_device *spinand);
244 int (*get_status)(struct spinand_device *spinand, u8 status);
281 int (*select_target)(struct spinand_device *spinand,
339 struct spinand_device { struct
356 int (*select_target)(struct spinand_device *spinand, argument
376 static inline struct spinand_device *mtd_to_spinand(struct mtd_info *mtd) in mtd_to_spinand() argument
378 return container_of(mtd_to_nanddev(mtd), struct spinand_device, base); in mtd_to_spinand()
387 static inline struct mtd_info *spinand_to_mtd(struct spinand_device *spinand) in spinand_to_mtd()
398 static inline struct spinand_device *nand_to_spinand(struct nand_device *nand) in nand_to_spinand()
400 return container_of(nand, struct spinand_device, base); in nand_to_spinand()
410 spinand_to_nand(struct spinand_device *spinand) in spinand_to_nand()
423 static inline void spinand_set_of_node(struct spinand_device *spinand, in spinand_set_of_node()
436 static inline void spinand_set_ofnode(struct spinand_device *spinand, in spinand_set_ofnode()
443 int spinand_match_and_init(struct spinand_device *dev,
447 int spinand_upd_cfg(struct spinand_device *spinand, u8 mask, u8 val);
448 int spinand_select_target(struct spinand_device *spinand, unsigned int target);