Lines Matching defs:vio_dev
89 * vio_dev - This structure is used to describe virtual I/O devices.
96 struct vio_dev {
115 int (*probe)(struct vio_dev *dev, const struct vio_device_id *id);
116 int (*remove)(struct vio_dev *dev);
120 unsigned long (*get_desired_dma)(struct vio_dev *dev);
135 extern void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired);
137 extern void vio_unregister_device(struct vio_dev *dev);
139 extern int vio_h_cop_sync(struct vio_dev *vdev, struct vio_pfo_op *op);
143 extern struct vio_dev *vio_register_device_node(
145 extern const void *vio_get_attribute(struct vio_dev *vdev, char *which,
148 extern struct vio_dev *vio_find_node(struct device_node *vnode);
149 extern int vio_enable_interrupts(struct vio_dev *dev);
150 extern int vio_disable_interrupts(struct vio_dev *dev);
152 static inline int vio_enable_interrupts(struct vio_dev *dev)
163 static inline struct vio_dev *to_vio_dev(struct device *dev)
165 return container_of(dev, struct vio_dev, dev);