Lines Matching defs:common
146 vp_iowrite32(0, &vp_dev->common->device_feature_select);
147 features = vp_ioread32(&vp_dev->common->device_feature);
148 vp_iowrite32(1, &vp_dev->common->device_feature_select);
149 features |= ((u64)vp_ioread32(&vp_dev->common->device_feature) << 32);
182 vp_iowrite32(0, &vp_dev->common->guest_feature_select);
183 vp_iowrite32((u32)vdev->features, &vp_dev->common->guest_feature);
184 vp_iowrite32(1, &vp_dev->common->guest_feature_select);
185 vp_iowrite32(vdev->features >> 32, &vp_dev->common->guest_feature);
264 return vp_ioread8(&vp_dev->common->config_generation);
271 return vp_ioread8(&vp_dev->common->device_status);
279 vp_iowrite8(status, &vp_dev->common->device_status);
286 vp_iowrite8(0, &vp_dev->common->device_status);
292 while (vp_ioread8(&vp_dev->common->device_status))
301 vp_iowrite16(vector, &vp_dev->common->msix_config);
304 return vp_ioread16(&vp_dev->common->msix_config);
315 struct virtio_pci_common_cfg __iomem *cfg = vp_dev->common;
420 vp_iowrite16(vq->index, &vp_dev->common->queue_select);
421 vp_iowrite16(1, &vp_dev->common->queue_enable);
432 vp_iowrite16(vq->index, &vp_dev->common->queue_select);
436 &vp_dev->common->queue_msix_vector);
438 vp_ioread16(&vp_dev->common->queue_msix_vector);
681 int err, common, isr, notify, device;
702 /* check for a common config: if not, use legacy mode (bar 0). */
703 common = virtio_pci_find_capability(pci_dev, VIRTIO_PCI_CAP_COMMON_CFG,
706 if (!common) {
712 /* If common is there, these should be too... */
722 common, isr, notify);
746 vp_dev->common = map_capability(pci_dev, common,
750 if (!vp_dev->common)
815 pci_iounmap(pci_dev, vp_dev->common);
829 pci_iounmap(pci_dev, vp_dev->common);