Home
last modified time | relevance | path

Searched refs:evtchnl (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/sound/xen/
Dxen_snd_front.c27 be_stream_prepare_req(struct xen_snd_front_evtchnl *evtchnl, u8 operation) in be_stream_prepare_req() argument
31 req = RING_GET_REQUEST(&evtchnl->u.req.ring, in be_stream_prepare_req()
32 evtchnl->u.req.ring.req_prod_pvt); in be_stream_prepare_req()
34 req->id = evtchnl->evt_next_id++; in be_stream_prepare_req()
35 evtchnl->evt_id = req->id; in be_stream_prepare_req()
39 static int be_stream_do_io(struct xen_snd_front_evtchnl *evtchnl) in be_stream_do_io() argument
41 if (unlikely(evtchnl->state != EVTCHNL_STATE_CONNECTED)) in be_stream_do_io()
44 reinit_completion(&evtchnl->u.req.completion); in be_stream_do_io()
45 xen_snd_front_evtchnl_flush(evtchnl); in be_stream_do_io()
49 static int be_stream_wait_io(struct xen_snd_front_evtchnl *evtchnl) in be_stream_wait_io() argument
[all …]
Dxen_snd_front.h33 int xen_snd_front_stream_query_hw_param(struct xen_snd_front_evtchnl *evtchnl,
37 int xen_snd_front_stream_prepare(struct xen_snd_front_evtchnl *evtchnl,
43 int xen_snd_front_stream_close(struct xen_snd_front_evtchnl *evtchnl);
45 int xen_snd_front_stream_write(struct xen_snd_front_evtchnl *evtchnl,
48 int xen_snd_front_stream_read(struct xen_snd_front_evtchnl *evtchnl,
51 int xen_snd_front_stream_trigger(struct xen_snd_front_evtchnl *evtchnl,
Dxen_snd_front_alsa.h20 void xen_snd_front_alsa_handle_cur_pos(struct xen_snd_front_evtchnl *evtchnl,
Dxen_snd_front_evtchnl.h79 void xen_snd_front_evtchnl_flush(struct xen_snd_front_evtchnl *evtchnl);
Dxen_snd_front_alsa.c575 void xen_snd_front_alsa_handle_cur_pos(struct xen_snd_front_evtchnl *evtchnl, in xen_snd_front_alsa_handle_cur_pos() argument
578 struct snd_pcm_substream *substream = evtchnl->u.evt.substream; in xen_snd_front_alsa_handle_cur_pos()
/linux-5.19.10/drivers/gpu/drm/xen/
Dxen_drm_front_evtchnl.c25 struct xen_drm_front_evtchnl *evtchnl = dev_id; in evtchnl_interrupt_ctrl() local
26 struct xen_drm_front_info *front_info = evtchnl->front_info; in evtchnl_interrupt_ctrl()
31 if (unlikely(evtchnl->state != EVTCHNL_STATE_CONNECTED)) in evtchnl_interrupt_ctrl()
37 rp = evtchnl->u.req.ring.sring->rsp_prod; in evtchnl_interrupt_ctrl()
41 for (i = evtchnl->u.req.ring.rsp_cons; i != rp; i++) { in evtchnl_interrupt_ctrl()
42 resp = RING_GET_RESPONSE(&evtchnl->u.req.ring, i); in evtchnl_interrupt_ctrl()
43 if (unlikely(resp->id != evtchnl->evt_id)) in evtchnl_interrupt_ctrl()
53 evtchnl->u.req.resp_status = resp->status; in evtchnl_interrupt_ctrl()
54 complete(&evtchnl->u.req.completion); in evtchnl_interrupt_ctrl()
64 evtchnl->u.req.ring.rsp_cons = i; in evtchnl_interrupt_ctrl()
[all …]
Dxen_drm_front.c90 be_prepare_req(struct xen_drm_front_evtchnl *evtchnl, u8 operation) in be_prepare_req() argument
94 req = RING_GET_REQUEST(&evtchnl->u.req.ring, in be_prepare_req()
95 evtchnl->u.req.ring.req_prod_pvt); in be_prepare_req()
97 req->id = evtchnl->evt_next_id++; in be_prepare_req()
98 evtchnl->evt_id = req->id; in be_prepare_req()
102 static int be_stream_do_io(struct xen_drm_front_evtchnl *evtchnl, in be_stream_do_io() argument
105 reinit_completion(&evtchnl->u.req.completion); in be_stream_do_io()
106 if (unlikely(evtchnl->state != EVTCHNL_STATE_CONNECTED)) in be_stream_do_io()
109 xen_drm_front_evtchnl_flush(evtchnl); in be_stream_do_io()
113 static int be_stream_wait_io(struct xen_drm_front_evtchnl *evtchnl) in be_stream_wait_io() argument
[all …]
Dxen_drm_front_evtchnl.h74 void xen_drm_front_evtchnl_flush(struct xen_drm_front_evtchnl *evtchnl);