Lines Matching defs:to
18 along with this program; if not, write to the Free Software
56 /* clear the buffer if it is going to be enqueued to the free queue */
89 struct ivtv_queue *to, int clear)
93 list_move_tail(from->list.next, &to->list);
100 to->buffers++;
101 to->length += s->buf_size;
102 to->bytesused += buf->bytesused - buf->readpos;
105 /* Move 'needed_bytes' worth of buffers from queue 'from' into queue 'to'.
106 If 'needed_bytes' == 0, then move all buffers from 'from' into 'to'.
110 The buffer is automatically cleared if it goes to the free queue. It is
111 also cleared if buffers need to be taken from the 'steal' queue and
114 When 'from' is q_free, then needed_bytes is compared to the total
115 available buffer length, otherwise needed_bytes is compared to the
123 struct ivtv_queue *to, int needed_bytes)
128 int to_free = to == &s->q_free;
148 /* move buffers from the tail of the 'steal' queue to the tail of the
168 u32 old_length = to->length;
170 while (to->length - old_length < needed_bytes) {
171 ivtv_queue_move_buf(s, from, to, 1);
175 u32 old_bytesused = to->bytesused;
177 while (to->bytesused - old_bytesused < needed_bytes) {
178 ivtv_queue_move_buf(s, from, to, to_free);
269 /* move all buffers to q_free */