Lines Matching refs:dev
16 const struct of_device_id *matches, const struct device *dev);
23 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device() argument
26 return of_match_device(drv->of_match_table, dev) != NULL; in of_driver_match_device()
29 extern struct platform_device *of_dev_get(struct platform_device *dev);
30 extern void of_dev_put(struct platform_device *dev);
36 extern const void *of_device_get_match_data(const struct device *dev);
38 extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len);
39 extern int of_device_request_module(struct device *dev);
41 extern void of_device_uevent(struct device *dev, struct kobj_uevent_env *env);
42 extern int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env);
44 static inline void of_device_node_put(struct device *dev) in of_device_node_put() argument
46 of_node_put(dev->of_node); in of_device_node_put()
58 int of_dma_configure(struct device *dev,
63 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device() argument
69 static inline void of_device_uevent(struct device *dev, in of_device_uevent() argument
72 static inline const void *of_device_get_match_data(const struct device *dev) in of_device_get_match_data() argument
77 static inline int of_device_modalias(struct device *dev, in of_device_modalias() argument
83 static inline int of_device_request_module(struct device *dev) in of_device_request_module() argument
88 static inline int of_device_uevent_modalias(struct device *dev, in of_device_uevent_modalias() argument
94 static inline void of_device_node_put(struct device *dev) { } in of_device_node_put() argument
97 const struct of_device_id *matches, const struct device *dev) in __of_match_device() argument
101 #define of_match_device(matches, dev) \ argument
102 __of_match_device(of_match_ptr(matches), (dev))
109 static inline int of_dma_configure(struct device *dev, in of_dma_configure() argument