Lines Matching defs:needed_bytes
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'.
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)
132 if (needed_bytes == 0) {
134 needed_bytes = from->length;
140 if (bytes_available + bytes_steal < needed_bytes) {
144 while (bytes_available < needed_bytes) {
170 while (to->length - old_length < needed_bytes) {
177 while (to->bytesused - old_bytesused < needed_bytes) {