Lines Matching +full:0 +full:x1040
112 * Returns offset of the capability, or 0.
120 pos > 0; in virtio_pci_find_capability()
142 return 0; in virtio_pci_find_capability()
221 * Return 0 on succeed otherwise fail
235 if (devid < 0) in vp_modern_probe()
239 /* We only own devices >= 0x1000 and <= 0x107f: leave the rest. */ in vp_modern_probe()
240 if (pci_dev->device < 0x1000 || pci_dev->device > 0x107f) in vp_modern_probe()
243 if (pci_dev->device < 0x1040) { in vp_modern_probe()
249 /* Modern devices: simply use PCI device id, but start from 0x1040. */ in vp_modern_probe()
250 mdev->id.device = pci_dev->device - 0x1040; in vp_modern_probe()
255 /* check for a common config: if not, use legacy mode (bar 0). */ in vp_modern_probe()
301 sizeof(struct virtio_pci_common_cfg), 4, 0, in vp_modern_probe()
308 0, 1, in vp_modern_probe()
336 0, notify_length, in vp_modern_probe()
349 mdev->device = vp_modern_map_capability(mdev, device, 0, 4, in vp_modern_probe()
350 0, PAGE_SIZE, in vp_modern_probe()
357 return 0; in vp_modern_probe()
402 vp_iowrite32(0, &cfg->device_feature_select); in vp_modern_get_features()
423 vp_iowrite32(0, &cfg->guest_feature_select); in vp_modern_get_driver_features()
442 vp_iowrite32(0, &cfg->guest_feature_select); in vp_modern_set_features()