Lines Matching refs:dma_q
1267 struct cx231xx_dmaqueue *dma_q) in buffer_copy() argument
1274 if (dma_q->mpeg_buffer_done == 0) { in buffer_copy()
1275 if (list_empty(&dma_q->active)) in buffer_copy()
1278 buf = list_entry(dma_q->active.next, in buffer_copy()
1281 dma_q->mpeg_buffer_done = 1; in buffer_copy()
1287 if ((dma_q->mpeg_buffer_completed+len) < in buffer_copy()
1289 if (dma_q->add_ps_package_head == in buffer_copy()
1291 memcpy(vbuf+dma_q->mpeg_buffer_completed, in buffer_copy()
1292 dma_q->ps_head, 3); in buffer_copy()
1293 dma_q->mpeg_buffer_completed = in buffer_copy()
1294 dma_q->mpeg_buffer_completed + 3; in buffer_copy()
1295 dma_q->add_ps_package_head = in buffer_copy()
1298 memcpy(vbuf+dma_q->mpeg_buffer_completed, data, len); in buffer_copy()
1299 dma_q->mpeg_buffer_completed = in buffer_copy()
1300 dma_q->mpeg_buffer_completed + len; in buffer_copy()
1302 dma_q->mpeg_buffer_done = 0; in buffer_copy()
1305 mpeglines*mpeglinesize - dma_q->mpeg_buffer_completed; in buffer_copy()
1306 memcpy(vbuf+dma_q->mpeg_buffer_completed, in buffer_copy()
1314 dma_q->mpeg_buffer_completed = 0; in buffer_copy()
1318 dma_q->left_data_count = len - tail_data; in buffer_copy()
1319 memcpy(dma_q->p_left_data, in buffer_copy()
1326 struct cx231xx_dmaqueue *dma_q) in buffer_filled() argument
1331 if (list_empty(&dma_q->active)) in buffer_filled()
1334 buf = list_entry(dma_q->active.next, in buffer_filled()
1349 struct cx231xx_dmaqueue *dma_q = urb->context; in cx231xx_isoc_copy() local
1355 if (dma_q->left_data_count > 0) { in cx231xx_isoc_copy()
1356 buffer_copy(dev, dma_q->p_left_data, in cx231xx_isoc_copy()
1357 dma_q->left_data_count, urb, dma_q); in cx231xx_isoc_copy()
1358 dma_q->mpeg_buffer_completed = dma_q->left_data_count; in cx231xx_isoc_copy()
1359 dma_q->left_data_count = 0; in cx231xx_isoc_copy()
1367 buffer_copy(dev, p_buffer, buffer_size, urb, dma_q); in cx231xx_isoc_copy()
1375 struct cx231xx_dmaqueue *dma_q = urb->context; in cx231xx_bulk_copy() local
1386 memcpy(buffer, dma_q->ps_head, 3); in cx231xx_bulk_copy()
1388 memcpy(dma_q->ps_head, p_buffer+buffer_size-3, 3); in cx231xx_bulk_copy()
1391 buffer_filled(p_buffer, buffer_size, urb, dma_q); in cx231xx_bulk_copy()