Lines Matching defs:avail_bytes
535 int avail_bytes, data_count = count;
545 avail_bytes = runtime->fragment_size - stream->received_stage0;
548 if (avail_bytes >= data_count) {
566 if (copy_from_user(dst, buf, avail_bytes))
569 data_count -= avail_bytes;
570 stream->received_stage0 += avail_bytes;
571 stream->copied_total += avail_bytes;
572 buf += avail_bytes;
587 avail_bytes = stream->compr_buffer.bytes - stream->stage1_pointer;
589 if (copy_from_user(dst, buf, avail_bytes))
592 if (copy_from_user(stream->compr_buffer.area, buf + avail_bytes,
593 data_count - avail_bytes))
596 stream->stage1_pointer = data_count - avail_bytes;