Lines Matching refs:error

167   int error;
170 error = pixma_exec (s, &mp->cb);
171 if (error >= 0)
177 return error;
278 int error;
286 error = pixma_check_result (&mp->cb);
287 if (error >= 0)
296 error = PIXMA_EPROTO;
299 return error;
325 int error = pixma_read (s->io, &temp, 0);
326 if (error < 0)
329 (1, "WARNING: reading zero-length packet failed %d\n", error));
341 int error;
344 error = pixma_exec (s, &mp->cb);
345 if (error >= 0 && buf)
351 error = len;
353 return error;
368 int error;
371 error = pixma_wait_interrupt (s->io, intr, sizeof (intr), timeout);
372 if (error == PIXMA_ETIMEDOUT)
374 if (error < 0)
375 return error;
376 if (error != 16)
379 error));
403 int error, tmo;
405 error = activate (s, 0);
406 if (error < 0)
407 return error;
408 error = query_status (s);
409 if (error < 0)
410 return error;
413 error = activate_cs (s, 0);
414 /*SIM*/ if (error < 0)
415 return error;
416 error = activate_cs (s, 0x20);
417 if (error < 0)
418 return error;
421 error = calibrate_cs (s);
422 while (error == PIXMA_EBUSY && --tmo >= 0)
429 error = calibrate_cs (s);
431 return error;
505 int error;
515 error = pixma_write (s->io, cmd, 10);
516 if (error != 10)
518 if (error < 0)
522 pixma_strerror (error)));
527 (1, " Sending a dummy command failed: count = %d\n", error));
531 error = pixma_read (s->io, cmd, sizeof (cmd));
532 if (error >= 0)
535 (1, " Got %d bytes response from a dummy command.\n", error));
541 pixma_strerror (error)));
622 int error;
643 /* change to use CCD grayscale mode --- why does this give segmentation error at runtime in mp750_check_param? */
674 error = step1 (s);
675 if (error >= 0)
676 error = start_session (s);
677 if (error >= 0)
679 if (error >= 0)
680 error = select_source (s);
681 if (error >= 0)
682 error = send_scan_param (s);
683 if (error < 0)
686 return error;
696 int error;
717 error = request_image_block (s, &block_size, &info);
718 /*SIM*/ if (error < 0)
719 return error;
778 error = request_image_block2 (s, &info);
781 if (error < 0)
782 return error;
794 error = request_image_block (s, &block_size, &info);
795 if (error < 0)
797 if (error == PIXMA_ECANCELED)
799 return error;
814 error = read_image_block (s, mp->rawimg + mp->rawimg_left);
815 if (error < 0)
818 return error;
820 bytes_received = error;
872 int error;
882 error = abort_session (s);
883 if (error == PIXMA_ECANCELED)
925 int error;
927 error = query_status (s);
928 if (error < 0)
929 return error;