Lines Matching refs:sg_pending_size
108 int idx = s->sg_pending_size; in stream_enc_dma_append()
168 if (s->sg_pending_size == 0 && ivtv_use_dma(s)) { in stream_enc_dma_append()
231 s->sg_pending_size = idx; in stream_enc_dma_append()
366 s->sg_pending_size = idx; in ivtv_dma_stream_dec_prepare()
427 s->sg_pending[s->sg_pending_size - 1].size += 256; in ivtv_dma_enc_start()
438 if (s->type == IVTV_ENC_STREAM_TYPE_MPG && s_vbi->sg_pending_size && in ivtv_dma_enc_start()
439 s->sg_pending_size + s_vbi->sg_pending_size <= s->buffers) { in ivtv_dma_enc_start()
442 s_vbi->sg_pending[s_vbi->sg_pending_size - 1].size += 256; in ivtv_dma_enc_start()
443 for (i = 0; i < s_vbi->sg_pending_size; i++) { in ivtv_dma_enc_start()
444 s->sg_pending[s->sg_pending_size++] = s_vbi->sg_pending[i]; in ivtv_dma_enc_start()
447 s_vbi->sg_pending_size = 0; in ivtv_dma_enc_start()
454 memcpy(s->sg_processing, s->sg_pending, sizeof(struct ivtv_sg_host_element) * s->sg_pending_size); in ivtv_dma_enc_start()
455 s->sg_processing_size = s->sg_pending_size; in ivtv_dma_enc_start()
456 s->sg_pending_size = 0; in ivtv_dma_enc_start()
483 memcpy(s->sg_processing, s->sg_pending, sizeof(struct ivtv_sg_host_element) * s->sg_pending_size); in ivtv_dma_dec_start()
484 s->sg_processing_size = s->sg_pending_size; in ivtv_dma_dec_start()
485 s->sg_pending_size = 0; in ivtv_dma_dec_start()