Lines Matching refs:amba_device
30 struct amba_device { struct
41 int (*probe)(struct amba_device *, const struct amba_id *); argument
42 int (*remove)(struct amba_device *);
43 void (*shutdown)(struct amba_device *);
44 int (*suspend)(struct amba_device *, pm_message_t);
45 int (*resume)(struct amba_device *);
62 #define to_amba_device(d) container_of(d, struct amba_device, dev)
69 struct amba_device *amba_device_alloc(const char *, resource_size_t, size_t);
70 void amba_device_put(struct amba_device *);
71 int amba_device_add(struct amba_device *, struct resource *);
72 int amba_device_register(struct amba_device *, struct resource *);
73 struct amba_device *amba_apb_device_add(struct device *parent, const char *name,
77 struct amba_device *amba_ahb_device_add(struct device *parent, const char *name,
81 struct amba_device *
86 struct amba_device *
91 void amba_device_unregister(struct amba_device *);
92 struct amba_device *amba_find_device(const char *, struct device *, unsigned int, unsigned int);
93 int amba_request_regions(struct amba_device *, const char *);
94 void amba_release_regions(struct amba_device *);
96 static inline int amba_pclk_enable(struct amba_device *dev) in amba_pclk_enable()
101 static inline void amba_pclk_disable(struct amba_device *dev) in amba_pclk_disable()
106 static inline int amba_pclk_prepare(struct amba_device *dev) in amba_pclk_prepare()
111 static inline void amba_pclk_unprepare(struct amba_device *dev) in amba_pclk_unprepare()
141 struct amba_device name##_device = { \
152 struct amba_device name##_device = { \