Lines Matching refs:error
229 pixma_strerror (int error)
234 switch (error)
265 snprintf (buf, sizeof (buf), "EUNKNOWN:%d", error);
616 int error;
625 error = pixma_map_status_errno (pixma_get_be16 (r));
631 error = PIXMA_EPROTO;
639 error = PIXMA_EPROTO;
644 error = PIXMA_EPROTO;
647 if (error == PIXMA_EPROTO)
654 return error;
661 int error, tmo;
663 error = pixma_write (s->io, cmd, cmdlen);
664 if (error != (int) cmdlen)
666 if (error >= 0)
671 (unsigned) error, cmdlen));
672 error = PIXMA_ETIMEDOUT;
674 return error;
688 error = pixma_read (s->io, data, expected_len);
689 if (error == PIXMA_ETIMEDOUT)
701 while (error == PIXMA_ETIMEDOUT && --tmo != 0);
702 if (error < 0)
710 return error; /* length of the result packet or error */
785 int error;
803 error = pixma_connect (devnr, &s->io);
804 if (error < 0)
807 (2, "pixma_connect() failed %s\n", pixma_strerror (error)));
814 error = s->ops->open (s);
815 if (error < 0)
817 error = pixma_deactivate (s->io);
818 if (error < 0)
824 PDBG (pixma_dbg (2, "pixma_open() failed %s\n", pixma_strerror (error)));
826 return error;
861 int error;
863 error = pixma_check_scan_param (s, sp);
864 if (error < 0)
865 return error;
894 error = s->ops->scan (s);
895 if (error >= 0)
902 (3, "pixma_scan() failed %s\n", pixma_strerror (error)));
905 return error;