Lines Matching defs:needed_bytes
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'.
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)
120 if (needed_bytes == 0) {
122 needed_bytes = from->length;
128 if (bytes_available + bytes_steal < needed_bytes) {
132 while (steal && bytes_available < needed_bytes) {
158 while (to->length - old_length < needed_bytes) {
165 while (to->bytesused - old_bytesused < needed_bytes) {