Lines Matching refs:platform_device

23 struct platform_device {  struct
50 #define to_platform_device(x) container_of((x), struct platform_device, dev) argument
52 extern int platform_device_register(struct platform_device *);
53 extern void platform_device_unregister(struct platform_device *);
58 extern struct resource *platform_get_resource(struct platform_device *,
60 extern struct resource *platform_get_mem_or_io(struct platform_device *,
67 devm_platform_get_and_ioremap_resource(struct platform_device *pdev,
70 devm_platform_ioremap_resource(struct platform_device *pdev,
73 devm_platform_ioremap_resource_byname(struct platform_device *pdev,
75 extern int platform_get_irq(struct platform_device *, unsigned int);
76 extern int platform_get_irq_optional(struct platform_device *, unsigned int);
77 extern int platform_irq_count(struct platform_device *);
78 extern int devm_platform_get_irqs_affinity(struct platform_device *dev,
83 extern struct resource *platform_get_resource_byname(struct platform_device *,
86 extern int platform_get_irq_byname(struct platform_device *, const char *);
87 extern int platform_get_irq_byname_optional(struct platform_device *dev,
89 extern int platform_add_devices(struct platform_device **, int);
108 extern struct platform_device *platform_device_register_full(
125 static inline struct platform_device *platform_device_register_resndata( in platform_device_register_resndata()
166 static inline struct platform_device *platform_device_register_simple( in platform_device_register_simple()
190 static inline struct platform_device *platform_device_register_data( in platform_device_register_data()
198 extern struct platform_device *platform_device_alloc(const char *name, int id);
199 extern int platform_device_add_resources(struct platform_device *pdev,
202 extern int platform_device_add_data(struct platform_device *pdev,
204 extern int platform_device_add(struct platform_device *pdev);
205 extern void platform_device_del(struct platform_device *pdev);
206 extern void platform_device_put(struct platform_device *pdev);
209 int (*probe)(struct platform_device *);
210 int (*remove)(struct platform_device *);
211 void (*shutdown)(struct platform_device *);
212 int (*suspend)(struct platform_device *, pm_message_t state);
213 int (*resume)(struct platform_device *);
245 int (*probe)(struct platform_device *), struct module *module);
247 static inline void *platform_get_drvdata(const struct platform_device *pdev) in platform_get_drvdata()
252 static inline void platform_set_drvdata(struct platform_device *pdev, in platform_set_drvdata()
310 extern struct platform_device *__platform_create_bundle(
311 struct platform_driver *driver, int (*probe)(struct platform_device *),
361 static inline int is_sh_early_platform_device(struct platform_device *pdev) in is_sh_early_platform_device()