Lines Matching defs:mdl
122 static void cx18_mdl_send_to_dvb(struct cx18_stream *s, struct cx18_mdl *mdl)
126 if (s->dvb == NULL || !s->dvb->enabled || mdl->bytesused == 0)
129 /* We ignore mdl and buf readpos accounting here - it doesn't matter */
132 if (list_is_singular(&mdl->buf_list)) {
133 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer,
141 list_for_each_entry(buf, &mdl->buf_list, list) {
148 static void cx18_mdl_send_to_vb2(struct cx18_stream *s, struct cx18_mdl *mdl)
157 if (mdl->bytesused == 0)
174 list_for_each_entry(buf, &mdl->buf_list, list) {
205 struct cx18_mdl *mdl)
209 if (mdl->bytesused == 0)
212 /* We ignore mdl and buf readpos accounting here - it doesn't matter */
215 if (list_is_singular(&mdl->buf_list)) {
216 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer,
224 list_for_each_entry(buf, &mdl->buf_list, list) {
237 struct cx18_mdl *mdl;
284 mdl = cx18_queue_get_mdl(s, id, mdl_ack->data_used);
287 if (mdl == NULL) {
294 s->name, mdl->bytesused);
297 cx18_mdl_send_to_dvb(s, mdl);
298 cx18_enqueue(s, mdl, &s->q_free);
302 cx18_mdl_send_to_alsa(cx, s, mdl);
303 cx18_enqueue(s, mdl, &s->q_free);
305 cx18_enqueue(s, mdl, &s->q_full);
308 cx18_mdl_send_to_vb2(s, mdl);
309 cx18_enqueue(s, mdl, &s->q_free);
311 cx18_enqueue(s, mdl, &s->q_full);