Lines Matching defs:device
3 * Virtio PCI driver - modern (virtio 1.0) device support
5 * This module allows virtio devices to be used over a virtual PCI device.
55 dev_err(&vdev->dev, "virtio: device uses modern interface "
71 void __iomem *device = mdev->device;
80 b = ioread8(device + offset);
84 w = cpu_to_le16(ioread16(device + offset));
88 l = cpu_to_le32(ioread32(device + offset));
92 l = cpu_to_le32(ioread32(device + offset));
94 l = cpu_to_le32(ioread32(device + offset + sizeof l));
109 void __iomem *device = mdev->device;
119 iowrite8(b, device + offset);
123 iowrite16(le16_to_cpu(w), device + offset);
127 iowrite32(le32_to_cpu(l), device + offset);
131 iowrite32(le32_to_cpu(l), device + offset);
133 iowrite32(le32_to_cpu(l), device + offset + sizeof l);
172 * device_status to return 0 before reinitializing the device.
173 * This will flush out the status write, and flush in device writes,
547 if (mdev->device)