Lines Matching defs:tmp
125 struct pci_dev *tmp = NULL, *pdev = vdev->pdev;
136 while ((tmp = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, tmp)) != NULL) {
137 if (tmp == pdev ||
138 pci_domain_nr(tmp->bus) != pci_domain_nr(pdev->bus) ||
139 pci_is_root_bus(tmp->bus))
142 if (tmp->bus->number >= pdev->bus->number &&
143 tmp->bus->number <= max_busnr) {
144 pci_dev_put(tmp);
422 struct vfio_pci_dummy_resource *dummy_res, *tmp;
462 list_for_each_entry_safe(dummy_res, tmp,
1285 struct vfio_pci_device *tmp;
1287 tmp = vfio_device_data(devs.devices[mem_idx]);
1289 ret = down_write_trylock(&tmp->memory_lock);
1294 mutex_unlock(&tmp->vma_lock);
1303 struct vfio_pci_device *tmp;
1306 tmp = vfio_device_data(device);
1309 up_write(&tmp->memory_lock);
1311 mutex_unlock(&tmp->vma_lock);
1460 struct vfio_pci_mmap_vma *mmap_vma, *tmp;
1527 list_for_each_entry_safe(mmap_vma, tmp,
2357 struct vfio_pci_device *tmp;
2380 tmp = vfio_device_data(devs.devices[i]);
2381 if (tmp->needs_reset) {
2389 tmp = vfio_device_data(devs.devices[i]);
2399 tmp->needs_reset = false;
2401 if (tmp != vdev && !disable_idle_d3)
2402 vfio_pci_set_power_state(tmp, PCI_D3hot);