Lines Matching refs:xsh
67 tid = qemu_xen_xs_transaction_start(xenbus->xsh); in xen_device_unplug()
73 xs_node_printf(xenbus->xsh, tid, xendev->backend_path, "online", in xen_device_unplug()
79 xs_node_printf(xenbus->xsh, tid, xendev->backend_path, "state", in xen_device_unplug()
85 if (!qemu_xen_xs_transaction_end(xenbus->xsh, tid, false)) { in xen_device_unplug()
100 qemu_xen_xs_transaction_end(xenbus->xsh, tid, true); in xen_device_unplug()
129 tid = qemu_xen_xs_transaction_start(xenbus->xsh); in xen_bus_backend_create()
135 key = qemu_xen_xs_directory(xenbus->xsh, tid, path, &n); in xen_bus_backend_create()
137 if (!qemu_xen_xs_transaction_end(xenbus->xsh, tid, true)) { in xen_bus_backend_create()
159 if (xs_node_scanf(xenbus->xsh, tid, path, key[i], NULL, "%ms", in xen_bus_backend_create()
168 if (!qemu_xen_xs_transaction_end(xenbus->xsh, tid, false)) { in xen_bus_backend_create()
195 backend = qemu_xen_xs_directory(xenbus->xsh, XBT_NULL, domain_path, &n); in xen_bus_type_enumerate()
206 if (xs_node_scanf(xenbus->xsh, XBT_NULL, backend_path, "state", in xen_bus_type_enumerate()
210 if (xs_node_scanf(xenbus->xsh, XBT_NULL, backend_path, "online", in xen_bus_type_enumerate()
241 type = qemu_xen_xs_directory(xenbus->xsh, XBT_NULL, "backend", &n); in xen_bus_enumerate()
303 xs_node_unwatch(xenbus->xsh, xenbus->backend_watch[i]); in xen_bus_unrealize()
311 if (xenbus->xsh) { in xen_bus_unrealize()
312 qemu_xen_xs_close(xenbus->xsh); in xen_bus_unrealize()
327 xenbus->xsh = qemu_xen_xs_open(); in xen_bus_realize()
328 if (!xenbus->xsh) { in xen_bus_realize()
336 if (xs_node_scanf(xenbus->xsh, XBT_NULL, "", /* domain root node */ in xen_bus_realize()
353 xs_node_watch(xenbus->xsh, node, key, xen_bus_backend_changed, in xen_bus_realize()
415 g_assert(xenbus->xsh); in xen_device_backend_printf()
418 xs_node_vprintf(xenbus->xsh, XBT_NULL, xendev->backend_path, key, in xen_device_backend_printf()
435 g_assert(xenbus->xsh); in xen_device_backend_scanf()
438 rc = xs_node_vscanf(xenbus->xsh, XBT_NULL, xendev->backend_path, key, in xen_device_backend_scanf()
558 g_assert(xenbus->xsh); in xen_device_backend_create()
560 xs_node_create(xenbus->xsh, XBT_NULL, xendev->backend_path, in xen_device_backend_create()
568 xs_node_watch(xendev->xsh, xendev->backend_path, in xen_device_backend_create()
577 xs_node_watch(xendev->xsh, xendev->backend_path, in xen_device_backend_create()
592 xs_node_unwatch(xendev->xsh, xendev->backend_online_watch); in xen_device_backend_destroy()
597 xs_node_unwatch(xendev->xsh, xendev->backend_state_watch); in xen_device_backend_destroy()
605 g_assert(xenbus->xsh); in xen_device_backend_destroy()
607 xs_node_destroy(xenbus->xsh, XBT_NULL, xendev->backend_path, in xen_device_backend_destroy()
624 g_assert(xenbus->xsh); in xen_device_frontend_printf()
627 xs_node_vprintf(xenbus->xsh, XBT_NULL, xendev->frontend_path, key, in xen_device_frontend_printf()
643 g_assert(xenbus->xsh); in xen_device_frontend_scanf()
646 rc = xs_node_vscanf(xenbus->xsh, XBT_NULL, xendev->frontend_path, key, in xen_device_frontend_scanf()
737 g_assert(xenbus->xsh); in xen_device_frontend_create()
739 xs_node_create(xenbus->xsh, XBT_NULL, xendev->frontend_path, in xen_device_frontend_create()
749 xs_node_watch(xendev->xsh, xendev->frontend_path, "state", in xen_device_frontend_create()
762 xs_node_unwatch(xendev->xsh, xendev->frontend_state_watch); in xen_device_frontend_destroy()
770 g_assert(xenbus->xsh); in xen_device_frontend_destroy()
772 xs_node_destroy(xenbus->xsh, XBT_NULL, xendev->frontend_path, in xen_device_frontend_destroy()
994 if (xendev->xsh) { in xen_device_unrealize()
995 qemu_xen_xs_close(xendev->xsh); in xen_device_unrealize()
996 xendev->xsh = NULL; in xen_device_unrealize()
1040 xendev->xsh = qemu_xen_xs_open(); in xen_device_realize()
1041 if (!xendev->xsh) { in xen_device_realize()