• Home
  • Raw
  • Download

Lines Matching refs:xendev

144 int xenbus_read_otherend_details(struct xenbus_device *xendev,  in xenbus_read_otherend_details()  argument
147 int err = xenbus_gather(XBT_NIL, xendev->nodename, in xenbus_read_otherend_details()
148 id_node, "%i", &xendev->otherend_id, in xenbus_read_otherend_details()
149 path_node, NULL, &xendev->otherend, in xenbus_read_otherend_details()
152 xenbus_dev_fatal(xendev, err, in xenbus_read_otherend_details()
154 xendev->nodename); in xenbus_read_otherend_details()
157 if (strlen(xendev->otherend) == 0 || in xenbus_read_otherend_details()
158 !xenbus_exists(XBT_NIL, xendev->otherend, "")) { in xenbus_read_otherend_details()
159 xenbus_dev_fatal(xendev, -ENOENT, in xenbus_read_otherend_details()
162 xendev->nodename); in xenbus_read_otherend_details()
163 free_otherend_details(xendev); in xenbus_read_otherend_details()
322 struct xenbus_device *xendev = to_xenbus_device(dev); in cmp_dev() local
325 if (!strcmp(xendev->nodename, info->nodename)) { in cmp_dev()
326 info->dev = xendev; in cmp_dev()
344 struct xenbus_device *xendev = to_xenbus_device(dev); in cleanup_dev() local
351 if (strncmp(xendev->nodename, info->nodename, len)) in cleanup_dev()
355 if ((strlen(xendev->nodename) > len) && (xendev->nodename[len] != '/')) in cleanup_dev()
358 info->dev = xendev; in cleanup_dev()
437 struct xenbus_device *xendev; in xenbus_probe_node() local
450 xendev = kzalloc(sizeof(*xendev) + stringlen, GFP_KERNEL); in xenbus_probe_node()
451 if (!xendev) in xenbus_probe_node()
454 xendev->state = XenbusStateInitialising; in xenbus_probe_node()
458 tmpstring = (char *)(xendev + 1); in xenbus_probe_node()
460 xendev->nodename = tmpstring; in xenbus_probe_node()
464 xendev->devicetype = tmpstring; in xenbus_probe_node()
465 init_completion(&xendev->down); in xenbus_probe_node()
467 xendev->dev.bus = &bus->bus; in xenbus_probe_node()
468 xendev->dev.release = xenbus_dev_release; in xenbus_probe_node()
470 err = bus->get_bus_id(devname, xendev->nodename); in xenbus_probe_node()
474 dev_set_name(&xendev->dev, "%s", devname); in xenbus_probe_node()
477 err = device_register(&xendev->dev); in xenbus_probe_node()
479 put_device(&xendev->dev); in xenbus_probe_node()
480 xendev = NULL; in xenbus_probe_node()
486 kfree(xendev); in xenbus_probe_node()