Lines Matching refs:this_read
6535 size_t this_read, read_size;
6547 this_read = (size_t) bytes_per_line * (size_t) this_lines;
6550 i, this_lines, (u_long) this_read);
6552 set_triple (rcmd.transferlen, this_read);
6554 read_size = this_read;
6556 if (status != SANE_STATUS_GOOD || read_size != this_read) {
7672 size_t this_read = stripe_size - stripe_fill;
7677 if (this_read > max_bytes_per_read)
7678 this_read = (max_bytes_per_read -
7681 if (processed_bytes + this_read > total_size)
7682 this_read = total_size - processed_bytes;
7684 read_constrains(s, this_read);
7688 DBG (5, "reader_process: this_read: %lu\n", (u_long) this_read);
7697 status = read_data (s, stripe_data + stripe_fill, &this_read);
7711 this_read = 0;
7723 if (raw_fp && this_read > 0)
7724 fwrite (stripe_data + stripe_fill, this_read, 1, raw_fp);
7726 if (status == SANE_STATUS_EOF || this_read == 0) {
7737 stripe_fill += (unsigned int) this_read;
7738 processed_bytes += this_read;
7744 size_t this_read = stripe_size - stripe_fill;
7748 if (this_read > max_bytes_per_read)
7749 this_read = max_bytes_per_read;
7751 if (processed_bytes + this_read > total_size)
7752 this_read = total_size - processed_bytes;
7756 DBG (5, "reader_process: virtual this_read: %lu\n", (u_long) this_read);
7758 got = fread (stripe_data + stripe_fill, 1, this_read, rear_fp);
7761 if (got != this_read)