Lines Matching refs:steal
95 If 'steal' != NULL, then buffers may also taken from that queue if
99 also cleared if buffers need to be taken from the 'steal' queue and
104 bytesused value. For the 'steal' queue the total available buffer
110 int ivtv_queue_move(struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *steal,
126 bytes_steal = (from_free && steal) ? steal->length : 0;
132 while (steal && bytes_available < needed_bytes) {
133 struct ivtv_buffer *buf = list_entry(steal->list.prev, struct ivtv_buffer, list);
136 /* move buffers from the tail of the 'steal' queue to the tail of the
141 list_move_tail(steal->list.prev, &from->list);
143 steal->buffers--;
144 steal->length -= s->buf_size;
145 steal->bytesused -= buf->bytesused - buf->readpos;
150 if (list_empty(&steal->list))
152 buf = list_entry(steal->list.prev, struct ivtv_buffer, list);