Home
last modified time | relevance | path

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

/Linux-v4.19/sound/xen/
Dxen_snd_front.c233 xenbus_switch_state(front_info->xb_dev, XenbusStateInitialising); in sndback_disconnect()
236 static void sndback_changed(struct xenbus_device *xb_dev, in sndback_changed() argument
239 struct xen_snd_front_info *front_info = dev_get_drvdata(&xb_dev->dev); in sndback_changed()
242 dev_dbg(&xb_dev->dev, "Backend state is %s, front is %s\n", in sndback_changed()
244 xenbus_strstate(xb_dev->state)); in sndback_changed()
266 xenbus_dev_fatal(xb_dev, ret, "initializing frontend"); in sndback_changed()
268 xenbus_switch_state(xb_dev, XenbusStateInitialised); in sndback_changed()
272 if (xb_dev->state != XenbusStateInitialised) in sndback_changed()
277 xenbus_dev_fatal(xb_dev, ret, "initializing frontend"); in sndback_changed()
279 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_shbuf.c87 static int grant_references(struct xenbus_device *xb_dev, in grant_references() argument
102 otherend_id = xb_dev->otherend_id; in grant_references()
167 int xen_snd_front_shbuf_alloc(struct xenbus_device *xb_dev, in xen_snd_front_shbuf_alloc() argument
187 ret = grant_references(xb_dev, buf, num_pages_dir, num_pages_buffer, in xen_snd_front_shbuf_alloc()
Dxen_snd_front_alsa.c245 struct device *dev = &stream->front_info->xb_dev->dev; in alsa_hw_rule()
346 struct device *dev = &front_info->xb_dev->dev; in alsa_open()
436 ret = xen_snd_front_shbuf_alloc(stream->front_info->xb_dev, in alsa_hw_params()
441 dev_err(&stream->front_info->xb_dev->dev, in alsa_hw_params()
471 dev_err(&stream->front_info->xb_dev->dev, in alsa_prepare()
674 dev_dbg(&card_info->front_info->xb_dev->dev, in new_pcm_instance()
752 struct device *dev = &front_info->xb_dev->dev; in xen_snd_front_alsa_init()
816 dev_dbg(&front_info->xb_dev->dev, "Removing virtual sound card %d\n", in xen_snd_front_alsa_fini()
Dxen_snd_front_shbuf.h28 int xen_snd_front_shbuf_alloc(struct xenbus_device *xb_dev,
Dxen_snd_front.h23 struct xenbus_device *xb_dev; member
/Linux-v4.19/drivers/gpu/drm/xen/
Dxen_drm_front_cfg.c27 connector_path = devm_kasprintf(&front_info->xb_dev->dev, in cfg_connector()
51 struct xenbus_device *xb_dev = front_info->xb_dev; in xen_drm_front_cfg_card() local
54 if (xenbus_read_unsigned(front_info->xb_dev->nodename, in xen_drm_front_cfg_card()
63 xb_dev->nodename, i); in xen_drm_front_cfg_card()
71 xb_dev->nodename); in xen_drm_front_cfg_card()
Dxen_drm_front.c185 buf_cfg.xb_dev = front_info->xb_dev; in xen_drm_front_dbuf_create()
477 xenbus_switch_state(front_info->xb_dev, in xen_drm_drv_release()
529 struct device *dev = &front_info->xb_dev->dev; in xen_drm_drv_init()
612 xenbus_switch_state(front_info->xb_dev, in xen_drm_drv_fini()
647 xenbus_switch_state(front_info->xb_dev, XenbusStateReconfiguring); in displback_disconnect()
652 static void displback_changed(struct xenbus_device *xb_dev, in displback_changed() argument
655 struct xen_drm_front_info *front_info = dev_get_drvdata(&xb_dev->dev); in displback_changed()
660 xenbus_strstate(xb_dev->state)); in displback_changed()
671 if (xb_dev->state == XenbusStateReconfiguring) in displback_changed()
679 if (xb_dev->state == XenbusStateReconfiguring) in displback_changed()
[all …]
Dxen_drm_front_evtchnl.c147 xenbus_free_evtchn(front_info->xb_dev, evtchnl->port); in evtchnl_free()
160 struct xenbus_device *xb_dev = front_info->xb_dev; in evtchnl_alloc() local
188 ret = xenbus_grant_ring(xb_dev, sring, 1, &gref); in evtchnl_alloc()
197 ret = gnttab_grant_foreign_access(xb_dev->otherend_id, in evtchnl_alloc()
210 ret = xenbus_alloc_evtchn(xb_dev, &evtchnl->port); in evtchnl_alloc()
215 handler, 0, xb_dev->devicetype, in evtchnl_alloc()
274 struct xenbus_device *xb_dev = evtchnl->front_info->xb_dev; in evtchnl_publish() local
280 xenbus_dev_error(xb_dev, ret, "writing ring-ref"); in evtchnl_publish()
287 xenbus_dev_error(xb_dev, ret, "writing event channel"); in evtchnl_publish()
305 xenbus_dev_fatal(front_info->xb_dev, ret, in xen_drm_front_evtchnl_publish_all()
[all …]
Dxen_drm_front_shbuf.h35 struct xenbus_device *xb_dev; member
45 struct xenbus_device *xb_dev; member
Dxen_drm_front_shbuf.c209 buf->xb_dev->otherend_id); in backend_map()
295 otherend_id = buf->xb_dev->otherend_id; in guest_grant_refs_for_buffer()
321 otherend_id = buf->xb_dev->otherend_id; in grant_references()
393 buf->xb_dev = cfg->xb_dev; in xen_drm_front_shbuf_alloc()
Dxen_drm_front.h88 struct xenbus_device *xb_dev; member