Lines Matching refs:to
44 /* clear the buffer if it is going to be enqueued to the free queue */
77 struct ivtv_queue *to, int clear)
81 list_move_tail(from->list.next, &to->list);
88 to->buffers++;
89 to->length += s->buf_size;
90 to->bytesused += buf->bytesused - buf->readpos;
93 /* Move 'needed_bytes' worth of buffers from queue 'from' into queue 'to'.
94 If 'needed_bytes' == 0, then move all buffers from 'from' into 'to'.
98 The buffer is automatically cleared if it goes to the free queue. It is
99 also cleared if buffers need to be taken from the 'steal' queue and
102 When 'from' is q_free, then needed_bytes is compared to the total
103 available buffer length, otherwise needed_bytes is compared to the
111 struct ivtv_queue *to, int needed_bytes)
116 int to_free = to == &s->q_free;
136 /* move buffers from the tail of the 'steal' queue to the tail of the
156 u32 old_length = to->length;
158 while (to->length - old_length < needed_bytes) {
159 ivtv_queue_move_buf(s, from, to, 1);
163 u32 old_bytesused = to->bytesused;
165 while (to->bytesused - old_bytesused < needed_bytes) {
166 ivtv_queue_move_buf(s, from, to, to_free);
258 /* move all buffers to q_free */