Lines Matching refs:ubuf
64 struct saa7164_user_buffer *ubuf; in saa7164_encoder_buffers_dealloc() local
78 ubuf = list_entry(p, struct saa7164_user_buffer, list); in saa7164_encoder_buffers_dealloc()
80 saa7164_buffer_dealloc_user(ubuf); in saa7164_encoder_buffers_dealloc()
85 ubuf = list_entry(l, struct saa7164_user_buffer, list); in saa7164_encoder_buffers_dealloc()
87 saa7164_buffer_dealloc_user(ubuf); in saa7164_encoder_buffers_dealloc()
101 struct saa7164_user_buffer *ubuf; in saa7164_encoder_buffers_alloc() local
171 ubuf = saa7164_buffer_alloc_user(dev, len); in saa7164_encoder_buffers_alloc()
172 if (ubuf) { in saa7164_encoder_buffers_alloc()
174 list_add_tail(&ubuf->list, &port->list_buf_free.list); in saa7164_encoder_buffers_alloc()
590 struct saa7164_user_buffer *ubuf; in saa7164_encoder_stop_streaming() local
614 ubuf = list_entry(c, struct saa7164_user_buffer, list); in saa7164_encoder_stop_streaming()
615 ubuf->pos = 0; in saa7164_encoder_stop_streaming()
616 list_move_tail(&ubuf->list, &port->list_buf_free.list); in saa7164_encoder_stop_streaming()
760 struct saa7164_user_buffer *ubuf = NULL; in saa7164_enc_next_buf() local
766 ubuf = list_first_entry(&port->list_buf_used.list, in saa7164_enc_next_buf()
770 crc = crc32(0, ubuf->data, ubuf->actual_size); in saa7164_enc_next_buf()
771 if (crc != ubuf->crc) { in saa7164_enc_next_buf()
775 ubuf, ubuf->crc, crc); in saa7164_enc_next_buf()
782 dprintk(DBGLVL_ENC, "%s() returns %p\n", __func__, ubuf); in saa7164_enc_next_buf()
784 return ubuf; in saa7164_enc_next_buf()
792 struct saa7164_user_buffer *ubuf = NULL; in fops_read() local
834 ubuf = saa7164_enc_next_buf(port); in fops_read()
836 while ((count > 0) && ubuf) { in fops_read()
839 rem = ubuf->actual_size - ubuf->pos; in fops_read()
842 p = ubuf->data + ubuf->pos; in fops_read()
846 __func__, (int)count, cnt, rem, ubuf, ubuf->pos); in fops_read()
857 ubuf->pos += cnt; in fops_read()
862 if (ubuf->pos > ubuf->actual_size) in fops_read()
865 if (ubuf->pos == ubuf->actual_size) { in fops_read()
870 ubuf->pos = 0; in fops_read()
873 list_move_tail(&ubuf->list, &port->list_buf_free.list); in fops_read()
883 ubuf = saa7164_enc_next_buf(port); in fops_read()
887 if (!ret && !ubuf) in fops_read()