Home
last modified time | relevance | path

Searched refs:front_info (Results 1 – 15 of 15) sorted by relevance

/linux-5.19.10/drivers/gpu/drm/xen/
Dxen_drm_front.c44 static void dbuf_add_to_list(struct xen_drm_front_info *front_info, in dbuf_add_to_list() argument
48 list_add(&dbuf->list, &front_info->dbuf_list); in dbuf_add_to_list()
127 struct xen_drm_front_info *front_info; in xen_drm_front_mode_set() local
132 front_info = pipeline->drm_info->front_info; in xen_drm_front_mode_set()
133 evtchnl = &front_info->evt_pairs[pipeline->index].req; in xen_drm_front_mode_set()
139 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_mode_set()
149 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_mode_set()
158 int xen_drm_front_dbuf_create(struct xen_drm_front_info *front_info, in xen_drm_front_dbuf_create() argument
170 evtchnl = &front_info->evt_pairs[GENERIC_OP_EVT_CHNL].req; in xen_drm_front_dbuf_create()
178 dbuf_add_to_list(front_info, dbuf, dbuf_cookie); in xen_drm_front_dbuf_create()
[all …]
Dxen_drm_front_evtchnl.c26 struct xen_drm_front_info *front_info = evtchnl->front_info; in evtchnl_interrupt_ctrl() local
34 spin_lock_irqsave(&front_info->io_lock, flags); in evtchnl_interrupt_ctrl()
77 spin_unlock_irqrestore(&front_info->io_lock, flags); in evtchnl_interrupt_ctrl()
84 struct xen_drm_front_info *front_info = evtchnl->front_info; in evtchnl_interrupt_evt() local
92 spin_lock_irqsave(&front_info->io_lock, flags); in evtchnl_interrupt_evt()
109 xen_drm_front_on_frame_done(front_info, evtchnl->index, in evtchnl_interrupt_evt()
119 spin_unlock_irqrestore(&front_info->io_lock, flags); in evtchnl_interrupt_evt()
123 static void evtchnl_free(struct xen_drm_front_info *front_info, in evtchnl_free() argument
147 xenbus_free_evtchn(front_info->xb_dev, evtchnl->port); in evtchnl_free()
155 static int evtchnl_alloc(struct xen_drm_front_info *front_info, int index, in evtchnl_alloc() argument
[all …]
Dxen_drm_front_cfg.c21 static int cfg_connector(struct xen_drm_front_info *front_info, in cfg_connector() argument
27 connector_path = devm_kasprintf(&front_info->xb_dev->dev, in cfg_connector()
48 int xen_drm_front_cfg_card(struct xen_drm_front_info *front_info, in xen_drm_front_cfg_card() argument
51 struct xenbus_device *xb_dev = front_info->xb_dev; in xen_drm_front_cfg_card()
54 if (xenbus_read_unsigned(front_info->xb_dev->nodename, in xen_drm_front_cfg_card()
62 ret = cfg_connector(front_info, &cfg->connectors[i], in xen_drm_front_cfg_card()
Dxen_drm_front_evtchnl.h39 struct xen_drm_front_info *front_info; member
70 int xen_drm_front_evtchnl_create_all(struct xen_drm_front_info *front_info);
72 int xen_drm_front_evtchnl_publish_all(struct xen_drm_front_info *front_info);
76 void xen_drm_front_evtchnl_set_state(struct xen_drm_front_info *front_info,
79 void xen_drm_front_evtchnl_free_all(struct xen_drm_front_info *front_info);
Dxen_drm_front.h117 struct xen_drm_front_info *front_info; member
137 int xen_drm_front_dbuf_create(struct xen_drm_front_info *front_info,
141 int xen_drm_front_fb_attach(struct xen_drm_front_info *front_info,
145 int xen_drm_front_fb_detach(struct xen_drm_front_info *front_info,
148 int xen_drm_front_page_flip(struct xen_drm_front_info *front_info,
151 void xen_drm_front_on_frame_done(struct xen_drm_front_info *front_info,
Dxen_drm_front_cfg.h25 struct xen_drm_front_info *front_info; member
34 int xen_drm_front_cfg_card(struct xen_drm_front_info *front_info,
Dxen_drm_front_kms.c43 xen_drm_front_fb_detach(drm_info->front_info, in fb_destroy()
69 ret = xen_drm_front_fb_attach(drm_info->front_info, in fb_create()
201 ret = xen_drm_front_page_flip(drm_info->front_info, in display_send_page_flip()
350 for (i = 0; i < drm_info->front_info->cfg.num_connectors; i++) { in xen_drm_front_kms_init()
352 &drm_info->front_info->cfg.connectors[i]; in xen_drm_front_kms_init()
372 for (i = 0; i < drm_info->front_info->cfg.num_connectors; i++) { in xen_drm_front_kms_fini()
Dxen_drm_front_gem.c147 if (drm_info->front_info->cfg.be_alloc) { in gem_create()
270 ret = xen_drm_front_dbuf_create(drm_info->front_info, in xen_drm_front_gem_import_sg_table()
/linux-5.19.10/sound/xen/
Dxen_snd_front_evtchnl.c24 struct xen_snd_front_info *front_info = channel->front_info; in evtchnl_interrupt_req() local
64 dev_err(&front_info->xb_dev->dev, in evtchnl_interrupt_req()
143 static void evtchnl_free(struct xen_snd_front_info *front_info, in evtchnl_free() argument
167 xenbus_free_evtchn(front_info->xb_dev, channel->port); in evtchnl_free()
175 void xen_snd_front_evtchnl_free_all(struct xen_snd_front_info *front_info) in xen_snd_front_evtchnl_free_all() argument
179 if (!front_info->evt_pairs) in xen_snd_front_evtchnl_free_all()
182 for (i = 0; i < front_info->num_evt_pairs; i++) { in xen_snd_front_evtchnl_free_all()
183 evtchnl_free(front_info, &front_info->evt_pairs[i].req); in xen_snd_front_evtchnl_free_all()
184 evtchnl_free(front_info, &front_info->evt_pairs[i].evt); in xen_snd_front_evtchnl_free_all()
187 kfree(front_info->evt_pairs); in xen_snd_front_evtchnl_free_all()
[all …]
Dxen_snd_front.c203 static void xen_snd_drv_fini(struct xen_snd_front_info *front_info) in xen_snd_drv_fini() argument
205 xen_snd_front_alsa_fini(front_info); in xen_snd_drv_fini()
206 xen_snd_front_evtchnl_free_all(front_info); in xen_snd_drv_fini()
209 static int sndback_initwait(struct xen_snd_front_info *front_info) in sndback_initwait() argument
214 ret = xen_snd_front_cfg_card(front_info, &num_streams); in sndback_initwait()
219 ret = xen_snd_front_evtchnl_create_all(front_info, num_streams); in sndback_initwait()
223 return xen_snd_front_evtchnl_publish_all(front_info); in sndback_initwait()
226 static int sndback_connect(struct xen_snd_front_info *front_info) in sndback_connect() argument
228 return xen_snd_front_alsa_init(front_info); in sndback_connect()
231 static void sndback_disconnect(struct xen_snd_front_info *front_info) in sndback_disconnect() argument
[all …]
Dxen_snd_front_alsa.c26 struct xen_snd_front_info *front_info; member
60 struct xen_snd_front_info *front_info; member
260 struct device *dev = &stream->front_info->xb_dev->dev; in alsa_hw_rule()
359 struct xen_snd_front_info *front_info = in alsa_open() local
360 pcm_instance->card_info->front_info; in alsa_open()
361 struct device *dev = &front_info->xb_dev->dev; in alsa_open()
378 stream->evt_pair = &front_info->evt_pairs[stream->index]; in alsa_open()
380 stream->front_info = front_info; in alsa_open()
465 struct xen_snd_front_info *front_info = stream->front_info; in alsa_hw_params() local
479 buf_cfg.xb_dev = front_info->xb_dev; in alsa_hw_params()
[all …]
Dxen_snd_front_evtchnl.h32 struct xen_snd_front_info *front_info; member
72 int xen_snd_front_evtchnl_create_all(struct xen_snd_front_info *front_info,
75 void xen_snd_front_evtchnl_free_all(struct xen_snd_front_info *front_info);
77 int xen_snd_front_evtchnl_publish_all(struct xen_snd_front_info *front_info);
Dxen_snd_front_cfg.c331 static int cfg_stream(struct xen_snd_front_info *front_info, in cfg_stream() argument
341 stream_path = devm_kasprintf(&front_info->xb_dev->dev, in cfg_stream()
383 static int cfg_device(struct xen_snd_front_info *front_info, in cfg_device() argument
438 devm_kcalloc(&front_info->xb_dev->dev, in cfg_device()
450 devm_kcalloc(&front_info->xb_dev->dev, in cfg_device()
463 ret = cfg_stream(front_info, pcm_instance, device_path, i, in cfg_device()
475 int xen_snd_front_cfg_card(struct xen_snd_front_info *front_info, in xen_snd_front_cfg_card() argument
478 struct xenbus_device *xb_dev = front_info->xb_dev; in xen_snd_front_cfg_card()
479 struct xen_front_cfg_card *cfg = &front_info->cfg; in xen_snd_front_cfg_card()
504 devm_kcalloc(&front_info->xb_dev->dev, num_devices, in xen_snd_front_cfg_card()
[all …]
Dxen_snd_front_alsa.h16 int xen_snd_front_alsa_init(struct xen_snd_front_info *front_info);
18 void xen_snd_front_alsa_fini(struct xen_snd_front_info *front_info);
Dxen_snd_front_cfg.h43 int xen_snd_front_cfg_card(struct xen_snd_front_info *front_info,