Home
last modified time | relevance | path

Searched refs:xb_dev (Results 1 – 5 of 5) sorted by relevance

/sound/xen/
Dxen_snd_front.c234 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()
[all …]
Dxen_snd_front_evtchnl.c68 dev_err(&front_info->xb_dev->dev, in evtchnl_interrupt_req()
171 xenbus_free_evtchn(front_info->xb_dev, channel->port); in evtchnl_free()
202 struct xenbus_device *xb_dev = front_info->xb_dev; in evtchnl_alloc() local
240 ret = xenbus_grant_ring(xb_dev, sring, 1, &gref); in evtchnl_alloc()
248 ret = gnttab_grant_foreign_access(xb_dev->otherend_id, in evtchnl_alloc()
260 ret = xenbus_alloc_evtchn(xb_dev, &channel->port); in evtchnl_alloc()
266 dev_err(&xb_dev->dev, in evtchnl_alloc()
268 front_info->xb_dev->otherend_id, channel->port, ret); in evtchnl_alloc()
277 dev_err(&xb_dev->dev, "Failed to request IRQ %d: %d\n", in evtchnl_alloc()
289 dev_err(&xb_dev->dev, "Failed to allocate ring: %d\n", ret); in evtchnl_alloc()
[all …]
Dxen_snd_front_cfg.c341 stream_path = devm_kasprintf(&front_info->xb_dev->dev, in cfg_stream()
438 devm_kcalloc(&front_info->xb_dev->dev, in cfg_device()
450 devm_kcalloc(&front_info->xb_dev->dev, in cfg_device()
478 struct xenbus_device *xb_dev = front_info->xb_dev; in xen_snd_front_cfg_card() local
487 if (!xenbus_exists(XBT_NIL, xb_dev->nodename, node)) in xen_snd_front_cfg_card()
494 dev_warn(&xb_dev->dev, in xen_snd_front_cfg_card()
496 xb_dev->nodename); in xen_snd_front_cfg_card()
501 cfg_read_pcm_hw(xb_dev->nodename, NULL, &cfg->pcm_hw); in xen_snd_front_cfg_card()
504 devm_kcalloc(&front_info->xb_dev->dev, num_devices, in xen_snd_front_cfg_card()
512 &cfg->pcm_hw, xb_dev->nodename, i, stream_cnt); in xen_snd_front_cfg_card()
Dxen_snd_front_alsa.c260 struct device *dev = &stream->front_info->xb_dev->dev; in alsa_hw_rule()
361 struct device *dev = &front_info->xb_dev->dev; in alsa_open()
479 buf_cfg.xb_dev = front_info->xb_dev; in alsa_hw_params()
496 dev_err(&front_info->xb_dev->dev, in alsa_hw_params()
523 dev_err(&stream->front_info->xb_dev->dev, in alsa_prepare()
726 dev_dbg(&card_info->front_info->xb_dev->dev, in new_pcm_instance()
804 struct device *dev = &front_info->xb_dev->dev; in xen_snd_front_alsa_init()
868 dev_dbg(&front_info->xb_dev->dev, "Removing virtual sound card %d\n", in xen_snd_front_alsa_fini()
Dxen_snd_front.h23 struct xenbus_device *xb_dev; member