Lines Matching refs:bus
136 struct xen_bus_type *bus = in watch_otherend() local
137 container_of(dev->dev.bus, struct xen_bus_type, bus); in watch_otherend()
140 bus->otherend_changed, in watch_otherend()
301 struct xen_bus_type *bus, in xenbus_register_driver_common() argument
305 drv->driver.bus = &bus->bus; in xenbus_register_driver_common()
338 struct bus_type *bus) in xenbus_device_find() argument
342 bus_for_each_dev(bus, NULL, &info, cmp_dev); in xenbus_device_find()
367 static void xenbus_cleanup_devices(const char *path, struct bus_type *bus) in xenbus_cleanup_devices() argument
373 bus_for_each_dev(bus, NULL, &info, cleanup_dev); in xenbus_cleanup_devices()
404 return sprintf(buf, "%s:%s\n", dev->bus->name, in modalias_show()
426 int xenbus_probe_node(struct xen_bus_type *bus, in xenbus_probe_node() argument
462 xendev->dev.bus = &bus->bus; in xenbus_probe_node()
465 err = bus->get_bus_id(devname, xendev->nodename); in xenbus_probe_node()
483 static int xenbus_probe_device_type(struct xen_bus_type *bus, const char *type) in xenbus_probe_device_type() argument
490 dir = xenbus_directory(XBT_NIL, bus->root, type, &dir_n); in xenbus_probe_device_type()
495 err = bus->probe(bus, type, dir[i]); in xenbus_probe_device_type()
504 int xenbus_probe_devices(struct xen_bus_type *bus) in xenbus_probe_devices() argument
510 dir = xenbus_directory(XBT_NIL, bus->root, "", &dir_n); in xenbus_probe_devices()
515 err = xenbus_probe_device_type(bus, dir[i]); in xenbus_probe_devices()
548 void xenbus_dev_changed(const char *node, struct xen_bus_type *bus) in xenbus_dev_changed() argument
560 xenbus_cleanup_devices(node, &bus->bus); in xenbus_dev_changed()
569 rootlen = strsep_len(node, '/', bus->levels); in xenbus_dev_changed()
576 dev = xenbus_device_find(root, &bus->bus); in xenbus_dev_changed()
578 xenbus_probe_node(bus, type, root); in xenbus_dev_changed()