Lines Matching refs:vdevfn
41 unsigned int func, unsigned int vdevfn) in pcidev_struct_fill() argument
47 pcidev->vdevfn = vdevfn; in pcidev_struct_fill()
56 if (pcidev->vdevfn) in libxl_create_pci_backend_device()
57 flexarray_append_pair(back, GCSPRINTF("vdevfn-%d", num), GCSPRINTF("%x", pcidev->vdevfn)); in libxl_create_pci_backend_device()
947 char *state, *vdevfn; in qemu_pci_add_xenstore() local
954 if (pcidev->vdevfn) { in qemu_pci_add_xenstore()
957 pcidev->func, pcidev->vdevfn, pcidev->msitranslate, in qemu_pci_add_xenstore()
969 vdevfn = libxl__xs_read(gc, XBT_NULL, path); in qemu_pci_add_xenstore()
972 LOGD(ERROR, domid, "qemu refused to add device: %s", vdevfn); in qemu_pci_add_xenstore()
973 else if ( sscanf(vdevfn, "0x%x", &pcidev->vdevfn) != 1 ) { in qemu_pci_add_xenstore()
974 LOGD(ERROR, domid, "wrong format for the vdevfn: '%s'", vdevfn); in qemu_pci_add_xenstore()
1245 orig_vdev = pcidev->vdevfn & ~7U; in libxl__device_pci_add()
1248 if ( !(pcidev->vdevfn >> 3) ) { in libxl__device_pci_add()
1267 pcidev->vdevfn = orig_vdev | i; in libxl__device_pci_add()
1273 pcidev->vdevfn = orig_vdev; in libxl__device_pci_add()
1332 if ( !force && (pcidev->vdevfn & 0x7) == 0 ) { in qemu_pci_remove_xenstore()
1458 if ( (pcidev->vdevfn & 0x7) == 0 ) { in do_pci_remove()
1489 orig_vdev = pcidev->vdevfn & ~7U; in libxl__device_pci_remove_common()
1505 pcidev->vdevfn = orig_vdev | i; in libxl__device_pci_remove_common()
1507 pcidev->vdevfn = orig_vdev; in libxl__device_pci_remove_common()
1551 unsigned int domain = 0, bus = 0, dev = 0, func = 0, vdevfn = 0; in libxl__device_pci_from_xs_be() local
1558 vdevfn = strtol(s, (char **) NULL, 16); in libxl__device_pci_from_xs_be()
1560 pcidev_struct_fill(pci, domain, bus, dev, func, vdevfn); in libxl__device_pci_from_xs_be()