Lines Matching defs:common

218 	int err, common, isr, notify, device;
247 /* check for a common config: if not, use legacy mode (bar 0). */
248 common = virtio_pci_find_capability(pci_dev, VIRTIO_PCI_CAP_COMMON_CFG,
251 if (!common) {
257 /* If common is there, these should be too... */
267 common, isr, notify);
292 mdev->common = vp_modern_map_capability(mdev, common,
296 if (!mdev->common)
356 pci_iounmap(pci_dev, mdev->common);
376 pci_iounmap(pci_dev, mdev->common);
389 struct virtio_pci_common_cfg __iomem *cfg = mdev->common;
410 struct virtio_pci_common_cfg __iomem *cfg = mdev->common;
431 struct virtio_pci_common_cfg __iomem *cfg = mdev->common;
448 struct virtio_pci_common_cfg __iomem *cfg = mdev->common;
462 struct virtio_pci_common_cfg __iomem *cfg = mdev->common;
476 struct virtio_pci_common_cfg __iomem *cfg = mdev->common;
496 cfg = (struct virtio_pci_modern_common_cfg __iomem *)mdev->common;
512 cfg = (struct virtio_pci_modern_common_cfg __iomem *)mdev->common;
536 struct virtio_pci_common_cfg __iomem *cfg = mdev->common;
555 struct virtio_pci_common_cfg __iomem *cfg = mdev->common;
577 struct virtio_pci_common_cfg __iomem *cfg = mdev->common;
599 vp_iowrite16(index, &mdev->common->queue_select);
600 vp_iowrite16(enable, &mdev->common->queue_enable);
614 vp_iowrite16(index, &mdev->common->queue_select);
616 return vp_ioread16(&mdev->common->queue_enable);
629 vp_iowrite16(index, &mdev->common->queue_select);
630 vp_iowrite16(size, &mdev->common->queue_size);
645 vp_iowrite16(index, &mdev->common->queue_select);
647 return vp_ioread16(&mdev->common->queue_size);
660 return vp_ioread16(&mdev->common->num_queues);
674 vp_iowrite16(index, &mdev->common->queue_select);
676 return vp_ioread16(&mdev->common->queue_notify_off);