Lines Matching refs:assigned
364 static int is_pcidev_in_array(libxl_device_pci *assigned, int num_assigned, in is_pcidev_in_array() argument
370 if ( assigned[i].domain != dom ) in is_pcidev_in_array()
372 if ( assigned[i].bus != bus ) in is_pcidev_in_array()
374 if ( assigned[i].dev != dev ) in is_pcidev_in_array()
376 if ( assigned[i].func != func ) in is_pcidev_in_array()
414 libxl_device_pci *pcidevs = NULL, *new, *assigned; in libxl_device_pci_assignable_list() local
421 r = get_all_assigned_devices(gc, &assigned, &num_assigned); in libxl_device_pci_assignable_list()
439 if (is_pcidev_in_array(assigned, num_assigned, dom, bus, dev, func)) in libxl_device_pci_assignable_list()
1543 libxl_device_pci *assigned; in libxl__device_pci_add() local
1586 rc = get_all_assigned_devices(gc, &assigned, &num_assigned); in libxl__device_pci_add()
1592 if ( is_pcidev_in_array(assigned, num_assigned, pcidev->domain, in libxl__device_pci_add()
1877 libxl_device_pci *assigned; in do_pci_remove() local
1882 assigned = libxl_device_pci_list(ctx, domid, &num); in do_pci_remove()
1883 if (assigned == NULL) { in do_pci_remove()
1887 libxl__ptr_add(gc, assigned); in do_pci_remove()
1890 if ( !is_pcidev_in_array(assigned, num, pcidev->domain, in do_pci_remove()