Lines Matching refs:xendev
145 int xenbus_read_otherend_details(struct xenbus_device *xendev, in xenbus_read_otherend_details() argument
148 int err = xenbus_gather(XBT_NIL, xendev->nodename, in xenbus_read_otherend_details()
149 id_node, "%i", &xendev->otherend_id, in xenbus_read_otherend_details()
150 path_node, NULL, &xendev->otherend, in xenbus_read_otherend_details()
153 xenbus_dev_fatal(xendev, err, in xenbus_read_otherend_details()
155 xendev->nodename); in xenbus_read_otherend_details()
158 if (strlen(xendev->otherend) == 0 || in xenbus_read_otherend_details()
159 !xenbus_exists(XBT_NIL, xendev->otherend, "")) { in xenbus_read_otherend_details()
160 xenbus_dev_fatal(xendev, -ENOENT, in xenbus_read_otherend_details()
163 xendev->nodename); in xenbus_read_otherend_details()
164 free_otherend_details(xendev); in xenbus_read_otherend_details()
326 struct xenbus_device *xendev = to_xenbus_device(dev); in cmp_dev() local
329 if (!strcmp(xendev->nodename, info->nodename)) { in cmp_dev()
330 info->dev = xendev; in cmp_dev()
348 struct xenbus_device *xendev = to_xenbus_device(dev); in cleanup_dev() local
355 if (strncmp(xendev->nodename, info->nodename, len)) in cleanup_dev()
359 if ((strlen(xendev->nodename) > len) && (xendev->nodename[len] != '/')) in cleanup_dev()
362 info->dev = xendev; in cleanup_dev()
432 struct xenbus_device *xendev; in xenbus_probe_node() local
445 xendev = kzalloc(sizeof(*xendev) + stringlen, GFP_KERNEL); in xenbus_probe_node()
446 if (!xendev) in xenbus_probe_node()
449 xendev->state = XenbusStateInitialising; in xenbus_probe_node()
453 tmpstring = (char *)(xendev + 1); in xenbus_probe_node()
455 xendev->nodename = tmpstring; in xenbus_probe_node()
459 xendev->devicetype = tmpstring; in xenbus_probe_node()
460 init_completion(&xendev->down); in xenbus_probe_node()
462 xendev->dev.bus = &bus->bus; in xenbus_probe_node()
463 xendev->dev.release = xenbus_dev_release; in xenbus_probe_node()
465 err = bus->get_bus_id(devname, xendev->nodename); in xenbus_probe_node()
469 dev_set_name(&xendev->dev, "%s", devname); in xenbus_probe_node()
472 err = device_register(&xendev->dev); in xenbus_probe_node()
478 kfree(xendev); in xenbus_probe_node()