Lines Matching refs:dma_q
1275 struct cx231xx_dmaqueue *dma_q) in buffer_copy() argument
1282 if (dma_q->mpeg_buffer_done == 0) { in buffer_copy()
1283 if (list_empty(&dma_q->active)) in buffer_copy()
1286 buf = list_entry(dma_q->active.next, in buffer_copy()
1289 dma_q->mpeg_buffer_done = 1; in buffer_copy()
1295 if ((dma_q->mpeg_buffer_completed+len) < in buffer_copy()
1297 if (dma_q->add_ps_package_head == in buffer_copy()
1299 memcpy(vbuf+dma_q->mpeg_buffer_completed, in buffer_copy()
1300 dma_q->ps_head, 3); in buffer_copy()
1301 dma_q->mpeg_buffer_completed = in buffer_copy()
1302 dma_q->mpeg_buffer_completed + 3; in buffer_copy()
1303 dma_q->add_ps_package_head = in buffer_copy()
1306 memcpy(vbuf+dma_q->mpeg_buffer_completed, data, len); in buffer_copy()
1307 dma_q->mpeg_buffer_completed = in buffer_copy()
1308 dma_q->mpeg_buffer_completed + len; in buffer_copy()
1310 dma_q->mpeg_buffer_done = 0; in buffer_copy()
1313 mpeglines*mpeglinesize - dma_q->mpeg_buffer_completed; in buffer_copy()
1314 memcpy(vbuf+dma_q->mpeg_buffer_completed, in buffer_copy()
1322 dma_q->mpeg_buffer_completed = 0; in buffer_copy()
1326 dma_q->left_data_count = len - tail_data; in buffer_copy()
1327 memcpy(dma_q->p_left_data, in buffer_copy()
1334 struct cx231xx_dmaqueue *dma_q) in buffer_filled() argument
1339 if (list_empty(&dma_q->active)) in buffer_filled()
1342 buf = list_entry(dma_q->active.next, in buffer_filled()
1357 struct cx231xx_dmaqueue *dma_q = urb->context; in cx231xx_isoc_copy() local
1363 if (dma_q->left_data_count > 0) { in cx231xx_isoc_copy()
1364 buffer_copy(dev, dma_q->p_left_data, in cx231xx_isoc_copy()
1365 dma_q->left_data_count, urb, dma_q); in cx231xx_isoc_copy()
1366 dma_q->mpeg_buffer_completed = dma_q->left_data_count; in cx231xx_isoc_copy()
1367 dma_q->left_data_count = 0; in cx231xx_isoc_copy()
1375 buffer_copy(dev, p_buffer, buffer_size, urb, dma_q); in cx231xx_isoc_copy()
1383 struct cx231xx_dmaqueue *dma_q = urb->context; in cx231xx_bulk_copy() local
1394 memcpy(buffer, dma_q->ps_head, 3); in cx231xx_bulk_copy()
1396 memcpy(dma_q->ps_head, p_buffer+buffer_size-3, 3); in cx231xx_bulk_copy()
1399 buffer_filled(p_buffer, buffer_size, urb, dma_q); in cx231xx_bulk_copy()