Lines Matching refs:mdl
122 static void cx18_mdl_send_to_dvb(struct cx18_stream *s, struct cx18_mdl *mdl) in cx18_mdl_send_to_dvb() argument
126 if (s->dvb == NULL || !s->dvb->enabled || mdl->bytesused == 0) in cx18_mdl_send_to_dvb()
132 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_send_to_dvb()
133 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_send_to_dvb()
141 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_dvb()
149 struct cx18_mdl *mdl) in cx18_mdl_send_to_videobuf() argument
157 if (mdl->bytesused == 0) in cx18_mdl_send_to_videobuf()
173 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_videobuf()
204 struct cx18_mdl *mdl) in cx18_mdl_send_to_alsa() argument
208 if (mdl->bytesused == 0) in cx18_mdl_send_to_alsa()
214 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_send_to_alsa()
215 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_send_to_alsa()
223 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_alsa()
236 struct cx18_mdl *mdl; in epu_dma_done() local
283 mdl = cx18_queue_get_mdl(s, id, mdl_ack->data_used); in epu_dma_done()
286 if (mdl == NULL) { in epu_dma_done()
293 s->name, mdl->bytesused); in epu_dma_done()
296 cx18_mdl_send_to_dvb(s, mdl); in epu_dma_done()
297 cx18_enqueue(s, mdl, &s->q_free); in epu_dma_done()
301 cx18_mdl_send_to_alsa(cx, s, mdl); in epu_dma_done()
302 cx18_enqueue(s, mdl, &s->q_free); in epu_dma_done()
304 cx18_enqueue(s, mdl, &s->q_full); in epu_dma_done()
307 cx18_mdl_send_to_videobuf(s, mdl); in epu_dma_done()
308 cx18_enqueue(s, mdl, &s->q_free); in epu_dma_done()
310 cx18_enqueue(s, mdl, &s->q_full); in epu_dma_done()