Home
last modified time | relevance | path

Searched refs:front_info (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/gpu/drm/xen/
H A 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 in xen_drm_front_dbuf_create()
230 xen_drm_front_dbuf_destroy(struct xen_drm_front_info *front_info, u64 dbuf_cookie) xen_drm_front_dbuf_destroy() argument
275 xen_drm_front_fb_attach(struct xen_drm_front_info *front_info, u64 dbuf_cookie, u64 fb_cookie, u32 width, u32 height, u32 pixel_format) xen_drm_front_fb_attach() argument
315 xen_drm_front_fb_detach(struct xen_drm_front_info *front_info, u64 fb_cookie) xen_drm_front_fb_detach() argument
343 xen_drm_front_page_flip(struct xen_drm_front_info *front_info, int conn_idx, u64 fb_cookie) xen_drm_front_page_flip() argument
372 xen_drm_front_on_frame_done(struct xen_drm_front_info *front_info, int conn_idx, u64 fb_cookie) xen_drm_front_on_frame_done() argument
458 struct xen_drm_front_info *front_info = drm_info->front_info; xen_drm_drv_release() local
513 xen_drm_drv_init(struct xen_drm_front_info *front_info) xen_drm_drv_init() argument
571 xen_drm_drv_fini(struct xen_drm_front_info *front_info) xen_drm_drv_fini() argument
606 displback_initwait(struct xen_drm_front_info *front_info) displback_initwait() argument
625 displback_connect(struct xen_drm_front_info *front_info) displback_connect() argument
631 displback_disconnect(struct xen_drm_front_info *front_info) displback_disconnect() argument
645 struct xen_drm_front_info *front_info = dev_get_drvdata(&xb_dev->dev); displback_changed() local
716 struct xen_drm_front_info *front_info; xen_drv_probe() local
741 struct xen_drm_front_info *front_info = dev_get_drvdata(&dev->dev); xen_drv_remove() local
[all...]
H A 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
156 evtchnl_alloc(struct xen_drm_front_info *front_info, int index, struct xen_drm_front_evtchnl *evtchnl, enum xen_drm_front_evtchnl_type type) evtchnl_alloc() argument
228 xen_drm_front_evtchnl_create_all(struct xen_drm_front_info *front_info) xen_drm_front_evtchnl_create_all() argument
294 xen_drm_front_evtchnl_publish_all(struct xen_drm_front_info *front_info) xen_drm_front_evtchnl_publish_all() argument
356 xen_drm_front_evtchnl_set_state(struct xen_drm_front_info *front_info, enum xen_drm_front_evtchnl_state state) xen_drm_front_evtchnl_set_state() argument
373 xen_drm_front_evtchnl_free_all(struct xen_drm_front_info *front_info) xen_drm_front_evtchnl_free_all() argument
[all...]
H A 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()
H A 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);
H A Dxen_drm_front.h126 struct xen_drm_front_info *front_info; member
146 int xen_drm_front_dbuf_create(struct xen_drm_front_info *front_info,
150 int xen_drm_front_fb_attach(struct xen_drm_front_info *front_info,
154 int xen_drm_front_fb_detach(struct xen_drm_front_info *front_info,
157 int xen_drm_front_page_flip(struct xen_drm_front_info *front_info,
160 void xen_drm_front_on_frame_done(struct xen_drm_front_info *front_info,
H A 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,
H A Dxen_drm_front_kms.c42 xen_drm_front_fb_detach(drm_info->front_info, in fb_destroy()
68 ret = xen_drm_front_fb_attach(drm_info->front_info, in fb_create()
156 * drm_info->front_info->io_lock, so we cannot call _sync version in xen_drm_front_kms_on_frame_done()
200 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/xen/
H A Dxen_drm_front.c43 static void dbuf_add_to_list(struct xen_drm_front_info *front_info, in dbuf_add_to_list() argument
47 list_add(&dbuf->list, &front_info->dbuf_list); in dbuf_add_to_list()
126 struct xen_drm_front_info *front_info; in xen_drm_front_mode_set() local
131 front_info = pipeline->drm_info->front_info; in xen_drm_front_mode_set()
132 evtchnl = &front_info->evt_pairs[pipeline->index].req; in xen_drm_front_mode_set()
138 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_mode_set()
148 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_mode_set()
157 int xen_drm_front_dbuf_create(struct xen_drm_front_info *front_info, in xen_drm_front_dbuf_create() argument
169 evtchnl = &front_info in xen_drm_front_dbuf_create()
229 xen_drm_front_dbuf_destroy(struct xen_drm_front_info *front_info, u64 dbuf_cookie) xen_drm_front_dbuf_destroy() argument
274 xen_drm_front_fb_attach(struct xen_drm_front_info *front_info, u64 dbuf_cookie, u64 fb_cookie, u32 width, u32 height, u32 pixel_format) xen_drm_front_fb_attach() argument
314 xen_drm_front_fb_detach(struct xen_drm_front_info *front_info, u64 fb_cookie) xen_drm_front_fb_detach() argument
342 xen_drm_front_page_flip(struct xen_drm_front_info *front_info, int conn_idx, u64 fb_cookie) xen_drm_front_page_flip() argument
371 xen_drm_front_on_frame_done(struct xen_drm_front_info *front_info, int conn_idx, u64 fb_cookie) xen_drm_front_on_frame_done() argument
457 struct xen_drm_front_info *front_info = drm_info->front_info; xen_drm_drv_release() local
487 xen_drm_drv_init(struct xen_drm_front_info *front_info) xen_drm_drv_init() argument
548 xen_drm_drv_fini(struct xen_drm_front_info *front_info) xen_drm_drv_fini() argument
583 displback_initwait(struct xen_drm_front_info *front_info) displback_initwait() argument
602 displback_connect(struct xen_drm_front_info *front_info) displback_connect() argument
608 displback_disconnect(struct xen_drm_front_info *front_info) displback_disconnect() argument
622 struct xen_drm_front_info *front_info = dev_get_drvdata(&xb_dev->dev); displback_changed() local
693 struct xen_drm_front_info *front_info; xen_drv_probe() local
718 struct xen_drm_front_info *front_info = dev_get_drvdata(&dev->dev); xen_drv_remove() local
[all...]
H A 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
155 evtchnl_alloc(struct xen_drm_front_info *front_info, int index, struct xen_drm_front_evtchnl *evtchnl, enum xen_drm_front_evtchnl_type type) evtchnl_alloc() argument
207 xen_drm_front_evtchnl_create_all(struct xen_drm_front_info *front_info) xen_drm_front_evtchnl_create_all() argument
273 xen_drm_front_evtchnl_publish_all(struct xen_drm_front_info *front_info) xen_drm_front_evtchnl_publish_all() argument
335 xen_drm_front_evtchnl_set_state(struct xen_drm_front_info *front_info, enum xen_drm_front_evtchnl_state state) xen_drm_front_evtchnl_set_state() argument
352 xen_drm_front_evtchnl_free_all(struct xen_drm_front_info *front_info) xen_drm_front_evtchnl_free_all() argument
[all...]
H A 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()
H A 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);
H A 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,
H A 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,
/kernel/linux/linux-5.10/sound/xen/
H A 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()
178 void xen_snd_front_evtchnl_free_all(struct xen_snd_front_info *front_info) in xen_snd_front_evtchnl_free_all() argument
182 if (!front_info->evt_pairs) in xen_snd_front_evtchnl_free_all()
185 for (i = 0; i < front_info->num_evt_pairs; i++) { in xen_snd_front_evtchnl_free_all()
186 evtchnl_free(front_info, &front_info in xen_snd_front_evtchnl_free_all()
194 evtchnl_alloc(struct xen_snd_front_info *front_info, int index, struct xen_snd_front_evtchnl *channel, enum xen_snd_front_evtchnl_type type) evtchnl_alloc() argument
289 xen_snd_front_evtchnl_create_all(struct xen_snd_front_info *front_info, int num_streams) xen_snd_front_evtchnl_create_all() argument
384 xen_snd_front_evtchnl_publish_all(struct xen_snd_front_info *front_info) xen_snd_front_evtchnl_publish_all() argument
[all...]
H A 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
240 struct xen_snd_front_info *front_info = dev_get_drvdata(&xb_dev->dev); sndback_changed() local
301 struct xen_snd_front_info *front_info; xen_drv_probe() local
316 struct xen_snd_front_info *front_info = dev_get_drvdata(&dev->dev); xen_drv_remove() local
[all...]
H A Dxen_snd_front_evtchnl.h41 struct xen_snd_front_info *front_info; member
81 int xen_snd_front_evtchnl_create_all(struct xen_snd_front_info *front_info,
84 void xen_snd_front_evtchnl_free_all(struct xen_snd_front_info *front_info);
86 int xen_snd_front_evtchnl_publish_all(struct xen_snd_front_info *front_info);
H A 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 in alsa_hw_params() local
800 xen_snd_front_alsa_init(struct xen_snd_front_info *front_info) xen_snd_front_alsa_init() argument
853 xen_snd_front_alsa_fini(struct xen_snd_front_info *front_info) xen_snd_front_alsa_fini() argument
[all...]
H A 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 in xen_snd_front_cfg_card()
[all...]
H A 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);
/kernel/linux/linux-6.6/sound/xen/
H A 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 in xen_snd_front_evtchnl_free_all()
191 evtchnl_alloc(struct xen_snd_front_info *front_info, int index, struct xen_snd_front_evtchnl *channel, enum xen_snd_front_evtchnl_type type) evtchnl_alloc() argument
265 xen_snd_front_evtchnl_create_all(struct xen_snd_front_info *front_info, int num_streams) xen_snd_front_evtchnl_create_all() argument
360 xen_snd_front_evtchnl_publish_all(struct xen_snd_front_info *front_info) xen_snd_front_evtchnl_publish_all() argument
[all...]
H A 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
240 struct xen_snd_front_info *front_info = dev_get_drvdata(&xb_dev->dev); sndback_changed() local
301 struct xen_snd_front_info *front_info; xen_drv_probe() local
316 struct xen_snd_front_info *front_info = dev_get_drvdata(&dev->dev); xen_drv_remove() local
[all...]
H A 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);
H A 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 in alsa_hw_params() local
766 xen_snd_front_alsa_init(struct xen_snd_front_info *front_info) xen_snd_front_alsa_init() argument
819 xen_snd_front_alsa_fini(struct xen_snd_front_info *front_info) xen_snd_front_alsa_fini() argument
[all...]
H A 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 in xen_snd_front_cfg_card()
[all...]
H A 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);

Completed in 11 milliseconds

12