Lines Matching defs:ocp_device
102 struct ocp_device {
118 int (*probe) (struct ocp_device *dev); /* New device inserted */
119 void (*remove) (struct ocp_device *dev); /* Device removed (NULL if not a hot-plug capable driver) */
120 int (*suspend) (struct ocp_device *dev, pm_message_t state); /* Device suspended */
121 int (*resume) (struct ocp_device *dev); /* Device woken up */
125 #define to_ocp_dev(n) container_of(n, struct ocp_device, dev)
133 ocp_get_drvdata(struct ocp_device *pdev)
139 ocp_set_drvdata(struct ocp_device *pdev, void *data)
150 ocp_force_power_off(struct ocp_device *odev)
156 ocp_force_power_on(struct ocp_device *odev)
173 extern struct ocp_device *ocp_find_device(unsigned int vendor, unsigned int function, int index);
185 extern void ocp_for_each_device(void(*callback)(struct ocp_device *, void *arg), void *arg);
192 struct ocp_device *odev = to_ocp_dev(dev); \