Lines Matching refs:sg_pending_size
119 int idx = s->sg_pending_size; in stream_enc_dma_append()
179 if (s->sg_pending_size == 0 && ivtv_use_dma(s)) { in stream_enc_dma_append()
242 s->sg_pending_size = idx; in stream_enc_dma_append()
393 s->sg_pending_size = idx; in ivtv_dma_stream_dec_prepare()
459 s->sg_pending[s->sg_pending_size - 1].size += 256; in ivtv_dma_enc_start()
470 if (s->type == IVTV_ENC_STREAM_TYPE_MPG && s_vbi->sg_pending_size && in ivtv_dma_enc_start()
471 s->sg_pending_size + s_vbi->sg_pending_size <= s->buffers) { in ivtv_dma_enc_start()
474 s_vbi->sg_pending[s_vbi->sg_pending_size - 1].size += 256; in ivtv_dma_enc_start()
475 for (i = 0; i < s_vbi->sg_pending_size; i++) { in ivtv_dma_enc_start()
476 s->sg_pending[s->sg_pending_size++] = s_vbi->sg_pending[i]; in ivtv_dma_enc_start()
479 s_vbi->sg_pending_size = 0; in ivtv_dma_enc_start()
486 memcpy(s->sg_processing, s->sg_pending, sizeof(struct ivtv_sg_host_element) * s->sg_pending_size); in ivtv_dma_enc_start()
487 s->sg_processing_size = s->sg_pending_size; in ivtv_dma_enc_start()
488 s->sg_pending_size = 0; in ivtv_dma_enc_start()
515 memcpy(s->sg_processing, s->sg_pending, sizeof(struct ivtv_sg_host_element) * s->sg_pending_size); in ivtv_dma_dec_start()
516 s->sg_processing_size = s->sg_pending_size; in ivtv_dma_dec_start()
517 s->sg_pending_size = 0; in ivtv_dma_dec_start()