Lines Matching refs:be_path

115     char *num_devs, *be_path;  in libxl__device_pci_add_xenstore()  local
128 be_path = GCSPRINTF("%s/backend/pci/%d/0", libxl__xs_get_dompath(gc, 0), domid); in libxl__device_pci_add_xenstore()
129 num_devs = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/num_devs", be_path)); in libxl__device_pci_add_xenstore()
138 if (libxl__wait_for_backend(gc, be_path, GCSPRINTF("%d", XenbusStateConnected)) < 0) in libxl__device_pci_add_xenstore()
176 libxl__xs_writev(gc, t, be_path, libxl__xs_kvs_of_flexarray(gc, back)); in libxl__device_pci_add_xenstore()
194 char *be_path, *num_devs_path, *num_devs, *xsdev, *tmp, *tmppath; in libxl__device_pci_remove_xenstore() local
198 be_path = GCSPRINTF("%s/backend/pci/%d/0", libxl__xs_get_dompath(gc, 0), domid); in libxl__device_pci_remove_xenstore()
199 num_devs_path = GCSPRINTF("%s/num_devs", be_path); in libxl__device_pci_remove_xenstore()
210 if (libxl__wait_for_backend(gc, be_path, GCSPRINTF("%d", XenbusStateConnected)) < 0) { in libxl__device_pci_remove_xenstore()
211 LOGD(DEBUG, domid, "pci backend at %s is not ready", be_path); in libxl__device_pci_remove_xenstore()
218 xsdev = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/dev-%d", be_path, i)); in libxl__device_pci_remove_xenstore()
232 …xs_write(ctx->xsh, t, GCSPRINTF("%s/state-%d", be_path, i), GCSPRINTF("%d", XenbusStateClosing), 1… in libxl__device_pci_remove_xenstore()
233 …xs_write(ctx->xsh, t, GCSPRINTF("%s/state", be_path), GCSPRINTF("%d", XenbusStateReconfiguring), 1… in libxl__device_pci_remove_xenstore()
239 if (libxl__wait_for_backend(gc, be_path, GCSPRINTF("%d", XenbusStateConnected)) < 0) { in libxl__device_pci_remove_xenstore()
240 LOGD(DEBUG, domid, "pci backend at %s is not ready", be_path); in libxl__device_pci_remove_xenstore()
247 xs_rm(ctx->xsh, t, GCSPRINTF("%s/state-%d", be_path, i)); in libxl__device_pci_remove_xenstore()
248 xs_rm(ctx->xsh, t, GCSPRINTF("%s/key-%d", be_path, i)); in libxl__device_pci_remove_xenstore()
249 xs_rm(ctx->xsh, t, GCSPRINTF("%s/dev-%d", be_path, i)); in libxl__device_pci_remove_xenstore()
250 xs_rm(ctx->xsh, t, GCSPRINTF("%s/vdev-%d", be_path, i)); in libxl__device_pci_remove_xenstore()
251 xs_rm(ctx->xsh, t, GCSPRINTF("%s/opts-%d", be_path, i)); in libxl__device_pci_remove_xenstore()
252 xs_rm(ctx->xsh, t, GCSPRINTF("%s/vdevfn-%d", be_path, i)); in libxl__device_pci_remove_xenstore()
255 tmppath = GCSPRINTF("%s/state-%d", be_path, j); in libxl__device_pci_remove_xenstore()
257 xs_write(ctx->xsh, t, GCSPRINTF("%s/state-%d", be_path, j - 1), tmp, strlen(tmp)); in libxl__device_pci_remove_xenstore()
259 tmppath = GCSPRINTF("%s/dev-%d", be_path, j); in libxl__device_pci_remove_xenstore()
261 xs_write(ctx->xsh, t, GCSPRINTF("%s/dev-%d", be_path, j - 1), tmp, strlen(tmp)); in libxl__device_pci_remove_xenstore()
263 tmppath = GCSPRINTF("%s/key-%d", be_path, j); in libxl__device_pci_remove_xenstore()
265 xs_write(ctx->xsh, t, GCSPRINTF("%s/key-%d", be_path, j - 1), tmp, strlen(tmp)); in libxl__device_pci_remove_xenstore()
267 tmppath = GCSPRINTF("%s/vdev-%d", be_path, j); in libxl__device_pci_remove_xenstore()
270 xs_write(ctx->xsh, t, GCSPRINTF("%s/vdev-%d", be_path, j - 1), tmp, strlen(tmp)); in libxl__device_pci_remove_xenstore()
273 tmppath = GCSPRINTF("%s/opts-%d", be_path, j); in libxl__device_pci_remove_xenstore()
276 xs_write(ctx->xsh, t, GCSPRINTF("%s/opts-%d", be_path, j - 1), tmp, strlen(tmp)); in libxl__device_pci_remove_xenstore()
279 tmppath = GCSPRINTF("%s/vdevfn-%d", be_path, j); in libxl__device_pci_remove_xenstore()
282 xs_write(ctx->xsh, t, GCSPRINTF("%s/vdevfn-%d", be_path, j - 1), tmp, strlen(tmp)); in libxl__device_pci_remove_xenstore()
292 if (libxl__parse_backend_path(gc, be_path, &dev) != 0) in libxl__device_pci_remove_xenstore()
1546 const char *be_path, in libxl__device_pci_from_xs_be() argument
1553 s = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/dev-%d", be_path, nr)); in libxl__device_pci_from_xs_be()
1556 s = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/vdevfn-%d", be_path, nr)); in libxl__device_pci_from_xs_be()
1562 s = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/opts-%d", be_path, nr)); in libxl__device_pci_from_xs_be()
1586 char *be_path, *num_devs; in libxl_device_pci_list() local
1592 be_path = GCSPRINTF("%s/backend/pci/%d/0", libxl__xs_get_dompath(gc, 0), domid); in libxl_device_pci_list()
1593 num_devs = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/num_devs", be_path)); in libxl_device_pci_list()
1601 libxl__device_pci_from_xs_be(gc, be_path, pcidevs + i, i); in libxl_device_pci_list()