Lines Matching refs:xdev
98 const struct xenbus_device *xdev; in xenbus_uevent_backend() local
107 xdev = to_xenbus_device(dev); in xenbus_uevent_backend()
108 bus = container_of(xdev->dev.bus, struct xen_bus_type, bus); in xenbus_uevent_backend()
110 if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype)) in xenbus_uevent_backend()
114 if (add_uevent_var(env, "XENBUS_TYPE=%s", xdev->devicetype)) in xenbus_uevent_backend()
117 if (add_uevent_var(env, "XENBUS_PATH=%s", xdev->nodename)) in xenbus_uevent_backend()
126 return drv->uevent(xdev, env); in xenbus_uevent_backend()
260 struct xenbus_device *xdev; in backend_reclaim_memory() local
266 xdev = to_xenbus_device(dev); in backend_reclaim_memory()
267 if (down_trylock(&xdev->reclaim_sem)) in backend_reclaim_memory()
269 drv->reclaim_memory(xdev); in backend_reclaim_memory()
270 up(&xdev->reclaim_sem); in backend_reclaim_memory()