Lines Matching refs:xb_dev
234 xenbus_switch_state(front_info->xb_dev, XenbusStateInitialising); in sndback_disconnect()
237 static void sndback_changed(struct xenbus_device *xb_dev, in sndback_changed() argument
240 struct xen_snd_front_info *front_info = dev_get_drvdata(&xb_dev->dev); in sndback_changed()
243 dev_dbg(&xb_dev->dev, "Backend state is %s, front is %s\n", in sndback_changed()
245 xenbus_strstate(xb_dev->state)); in sndback_changed()
264 xenbus_dev_fatal(xb_dev, ret, "initializing frontend"); in sndback_changed()
266 xenbus_switch_state(xb_dev, XenbusStateInitialised); in sndback_changed()
270 if (xb_dev->state != XenbusStateInitialised) in sndback_changed()
275 xenbus_dev_fatal(xb_dev, ret, "initializing frontend"); in sndback_changed()
277 xenbus_switch_state(xb_dev, XenbusStateConnected); in sndback_changed()
290 if (xb_dev->state == XenbusStateClosed) in sndback_changed()
298 static int xen_drv_probe(struct xenbus_device *xb_dev, in xen_drv_probe() argument
303 front_info = devm_kzalloc(&xb_dev->dev, in xen_drv_probe()
308 front_info->xb_dev = xb_dev; in xen_drv_probe()
309 dev_set_drvdata(&xb_dev->dev, front_info); in xen_drv_probe()
311 return xenbus_switch_state(xb_dev, XenbusStateInitialising); in xen_drv_probe()
332 while ((xenbus_read_unsigned(front_info->xb_dev->otherend, "state", in xen_drv_remove()
340 state = xenbus_read_unsigned(front_info->xb_dev->otherend, in xen_drv_remove()