Lines Matching defs:to
18 along with this program; if not, write to the Free Software
58 /* clear the buffer if it is going to be enqueued to the free queue */
90 struct ivtv_queue *to, int clear, int full)
94 list_move_tail(from->list.next, &to->list);
107 to->buffers++;
108 to->length += s->buf_size;
109 to->bytesused += buf->bytesused - buf->readpos;
112 /* Move 'needed_bytes' worth of buffers from queue 'from' into queue 'to'.
113 If 'needed_bytes' == 0, then move all buffers from 'from' into 'to'.
117 The buffer is automatically cleared if it goes to the free queue. It is
118 also cleared if buffers need to be taken from the 'steal' queue and
121 When 'from' is q_free, then needed_bytes is compared to the total
122 available buffer length, otherwise needed_bytes is compared to the
130 struct ivtv_queue *to, int needed_bytes)
135 int to_free = to == &s->q_free;
152 u32 old_length = to->length;
154 while (to->length - old_length < needed_bytes) {
159 ivtv_queue_move_buf(s, from, to, 1, 0);
163 u32 old_bytesused = to->bytesused;
165 while (to->bytesused - old_bytesused < needed_bytes) {
170 ivtv_queue_move_buf(s, from, to, to_free, rc);
252 /* move all buffers to q_free */