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()
267 xenbus_dev_fatal(xb_dev, ret, "initializing frontend"); in sndback_changed()
269 xenbus_switch_state(xb_dev, XenbusStateInitialised); in sndback_changed()
273 if (xb_dev->state != XenbusStateInitialised) in sndback_changed()
278 xenbus_dev_fatal(xb_dev, ret, "initializing frontend"); in sndback_changed()
280 xenbus_switch_state(xb_dev, XenbusStateConnected); in sndback_changed()
294 if (xb_dev->state == XenbusStateClosed) in sndback_changed()
302 static int xen_drv_probe(struct xenbus_device *xb_dev, in xen_drv_probe() argument
307 front_info = devm_kzalloc(&xb_dev->dev, in xen_drv_probe()
312 front_info->xb_dev = xb_dev; in xen_drv_probe()
313 dev_set_drvdata(&xb_dev->dev, front_info); in xen_drv_probe()
315 return xenbus_switch_state(xb_dev, XenbusStateInitialising); in xen_drv_probe()
336 while ((xenbus_read_unsigned(front_info->xb_dev->otherend, "state", in xen_drv_remove()
344 state = xenbus_read_unsigned(front_info->xb_dev->otherend, in xen_drv_remove()