Lines Matching refs:soc
23 bool (*ctlrdy_ack)(struct brcmnand_soc *soc);
24 void (*ctlrdy_set_enabled)(struct brcmnand_soc *soc, bool en);
25 void (*prepare_data_bus)(struct brcmnand_soc *soc, bool prepare,
31 u32 (*read_reg)(struct brcmnand_soc *soc, u32 offset);
32 void (*write_reg)(struct brcmnand_soc *soc, u32 val, u32 offset);
35 static inline void brcmnand_soc_data_bus_prepare(struct brcmnand_soc *soc,
38 if (soc && soc->prepare_data_bus)
39 soc->prepare_data_bus(soc, true, is_param);
42 static inline void brcmnand_soc_data_bus_unprepare(struct brcmnand_soc *soc,
45 if (soc && soc->prepare_data_bus)
46 soc->prepare_data_bus(soc, false, is_param);
74 static inline bool brcmnand_soc_has_ops(struct brcmnand_soc *soc)
76 return soc && soc->ops && soc->ops->read_reg && soc->ops->write_reg;
79 static inline u32 brcmnand_soc_read(struct brcmnand_soc *soc, u32 offset)
81 return soc->ops->read_reg(soc, offset);
84 static inline void brcmnand_soc_write(struct brcmnand_soc *soc, u32 val,
87 soc->ops->write_reg(soc, val, offset);
90 int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc);