Lines Matching full:path
52 char path[16]; in xen_host_pci_fill_local_addr() local
67 snprintf(path, sizeof(path), "dev-%d", i); in xen_host_pci_fill_local_addr()
68 if (xs_node_scanf(xenstore, 0, be_path, path, NULL, in xen_host_pci_fill_local_addr()
70 error_setg(errp, "Failed to read or parse %s/%s", be_path, path); in xen_host_pci_fill_local_addr()
78 snprintf(path, sizeof(path), "vdev-%d", i); in xen_host_pci_fill_local_addr()
79 if (xs_node_scanf(xenstore, 0, be_path, path, NULL, in xen_host_pci_fill_local_addr()
81 error_setg(errp, "Failed to read or parse %s/%s", be_path, path); in xen_host_pci_fill_local_addr()
114 char path[PATH_MAX]; in xen_host_pci_get_resource() local
120 xen_host_pci_sysfs_path(d, "resource", path, sizeof(path)); in xen_host_pci_get_resource()
122 fd = open(path, O_RDONLY); in xen_host_pci_get_resource()
124 error_setg_file_open(errp, errno, path); in xen_host_pci_get_resource()
202 char path[PATH_MAX]; in xen_host_pci_get_value() local
208 xen_host_pci_sysfs_path(d, name, path, sizeof(path)); in xen_host_pci_get_value()
210 fd = open(path, O_RDONLY); in xen_host_pci_get_value()
212 error_setg_file_open(errp, errno, path); in xen_host_pci_get_value()
255 char path[PATH_MAX]; in xen_host_pci_dev_is_virtfn() local
258 xen_host_pci_sysfs_path(d, "physfn", path, sizeof(path)); in xen_host_pci_dev_is_virtfn()
260 return !stat(path, &buf); in xen_host_pci_dev_is_virtfn()
265 char path[PATH_MAX]; in xen_host_pci_config_open() local
267 xen_host_pci_sysfs_path(d, "config", path, sizeof(path)); in xen_host_pci_config_open()
269 d->config_fd = open(path, O_RDWR); in xen_host_pci_config_open()
271 error_setg_file_open(errp, errno, path); in xen_host_pci_config_open()