Lines Matching defs:vio_dev

38 static struct vio_dev vio_bus_device  = { /* fake "parent" device */
66 * @vio_dev: struct vio_dev pointer
70 struct vio_dev *viodev;
145 static inline int vio_cmo_alloc(struct vio_dev *viodev, size_t size)
189 static inline void vio_cmo_dealloc(struct vio_dev *viodev, size_t size)
280 struct vio_dev *viodev;
389 struct vio_dev *viodev;
486 struct vio_dev *viodev = to_vio_dev(dev);
509 struct vio_dev *viodev = to_vio_dev(dev);
520 struct vio_dev *viodev = to_vio_dev(dev);
544 struct vio_dev *viodev = to_vio_dev(dev);
555 struct vio_dev *viodev = to_vio_dev(dev);
590 struct vio_dev *viodev = to_vio_dev(dev);
621 * @viodev: struct vio_dev for device to alter
628 void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired)
690 * @viodev - Pointer to struct vio_dev for device
701 static int vio_cmo_bus_probe(struct vio_dev *viodev)
803 * @viodev - Pointer to struct vio_dev for device
810 static void vio_cmo_bus_remove(struct vio_dev *viodev)
881 static void vio_cmo_set_dma_ops(struct vio_dev *viodev)
949 struct vio_dev *viodev = to_vio_dev(dev);
956 struct vio_dev *viodev = to_vio_dev(dev);
964 struct vio_dev *viodev = to_vio_dev(dev);
1056 void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired) {}
1057 static int vio_cmo_bus_probe(struct vio_dev *viodev) { return 0; }
1058 static void vio_cmo_bus_remove(struct vio_dev *viodev) {}
1059 static void vio_cmo_set_dma_ops(struct vio_dev *viodev) {}
1074 * @vdev - Pointer to a struct vio_dev for device
1096 int vio_h_cop_sync(struct vio_dev *vdev, struct vio_pfo_op *op)
1154 static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev)
1202 const struct vio_device_id *ids, const struct vio_dev *dev)
1215 * Convert from struct device to struct vio_dev and pass to driver.
1221 struct vio_dev *viodev = to_vio_dev(dev);
1245 /* convert from struct device to struct vio_dev and pass to driver. */
1248 struct vio_dev *viodev = to_vio_dev(dev);
1269 struct vio_dev *viodev = to_vio_dev(dev);
1315 /* vio_dev refcount hit 0 */
1330 * Creates and initializes a vio_dev structure from the data in
1332 * Returns a pointer to the created vio_dev or NULL if node has
1335 struct vio_dev *vio_register_device_node(struct device_node *of_node)
1337 struct vio_dev *viodev;
1375 /* allocate a vio_dev for this node */
1376 viodev = kzalloc(sizeof(struct vio_dev), GFP_KERNEL);
1552 const struct vio_dev *vio_dev = to_vio_dev(dev);
1567 return sprintf(buf, "vio:T%sS%s\n", vio_dev->type, cp);
1571 void vio_unregister_device(struct vio_dev *viodev)
1581 const struct vio_dev *vio_dev = to_vio_dev(dev);
1585 return (ids != NULL) && (vio_match_device(ids, vio_dev) != NULL);
1590 const struct vio_dev *vio_dev = to_vio_dev(dev);
1601 add_uevent_var(env, "MODALIAS=vio:T%sS%s", vio_dev->type, cp);
1635 ATTRIBUTE_GROUPS(vio_dev);
1657 const void *vio_get_attribute(struct vio_dev *vdev, char *which, int *length)
1666 static struct vio_dev *vio_find_name(const char *name)
1678 * vio_find_node - find an already-registered vio_dev
1684 struct vio_dev *vio_find_node(struct device_node *vnode)
1715 int vio_enable_interrupts(struct vio_dev *dev)
1724 int vio_disable_interrupts(struct vio_dev *dev)