Lines Matching refs:expected_read_bytes
546 pss->expected_read_bytes = 0;
1162 /* number of bytes expected must be in pss->expected_read_bytes */
1175 u_int_to_u_char3p (pss->expected_read_bytes, pss->cmd + 6);
1177 pss->read_bytes = pss->expected_read_bytes;
1218 copy.expected_read_bytes = copy.bytes_per_line;
1364 size_t expected_read_bytes;
1394 expected_read_bytes = pixels_per_line * 3 * 4;
1395 buf = (u_char *) malloc (expected_read_bytes);
1397 DBG (DL_MAJOR_ERROR, "%s: out of memory allocating calibration, %ld bytes.", me, (u_long)expected_read_bytes);
1402 loop_inc = expected_read_bytes / (num_bins * bytes_per_bin);
1426 expected_read_bytes = loop_inc * (num_bins * bytes_per_bin);
1428 expected_read_bytes = (cal_lines - i) * (num_bins * bytes_per_bin);
1430 u_int_to_u_char3p (expected_read_bytes, pss->cmd + 6);
1431 read_bytes = expected_read_bytes;
1443 if (read_bytes != expected_read_bytes) {
1444 DBG (DL_MAJOR_ERROR, "%s: read %lu of %lu calibration data\n", me, (u_long) read_bytes, (u_long) expected_read_bytes);
1452 for (j = 0; j < (int)expected_read_bytes / (num_bins * bytes_per_bin); j++) {
1517 size_t expected_read_bytes = num_lines * calibration_line_length(pss);
1525 u_int_to_u_char3p (expected_read_bytes, pss->cmd + 6);
1526 read_bytes = expected_read_bytes;
1532 if(read_bytes != expected_read_bytes) {
1533 DBG (DL_MAJOR_ERROR, "%s: read %lu of %lu calibration data\n", me, (u_long) read_bytes, (u_long) expected_read_bytes);