Lines Matching refs: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) {
149 struct cx18_mdl *mdl)
157 if (mdl->bytesused == 0)
173 list_for_each_entry(buf, &mdl->buf_list, list) {
204 struct cx18_mdl *mdl)
208 if (mdl->bytesused == 0)
211 /* We ignore mdl and buf readpos accounting here - it doesn't matter */
214 if (list_is_singular(&mdl->buf_list)) {
215 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer,
223 list_for_each_entry(buf, &mdl->buf_list, list) {
236 struct cx18_mdl *mdl;
283 mdl = cx18_queue_get_mdl(s, id, mdl_ack->data_used);
286 if (mdl == NULL) {
293 s->name, mdl->bytesused);
296 cx18_mdl_send_to_dvb(s, mdl);
297 cx18_enqueue(s, mdl, &s->q_free);
301 cx18_mdl_send_to_alsa(cx, s, mdl);
302 cx18_enqueue(s, mdl, &s->q_free);
304 cx18_enqueue(s, mdl, &s->q_full);
307 cx18_mdl_send_to_videobuf(s, mdl);
308 cx18_enqueue(s, mdl, &s->q_free);
310 cx18_enqueue(s, mdl, &s->q_full);