Lines Matching refs:error

69     if ((error = (x)) < 0)	\
70 return error; \
74 error = handle_interrupt (s, x); \
77 if (error != PIXMA_ECANCELED && error < 0) \
78 return error; \
422 int error;
427 return error;
1035 int error, status_len;
1041 return error;
1048 int error, status_len;
1056 return error;
1083 int error, datalen;
1109 error = pixma_read (s->io, data, IMAGE_BLOCK_SIZE - 512 + hlen);
1110 RET_IF_ERR(error);
1111 datalen += error;
1128 int error;
1137 error = len;
1139 return error;
1152 <0 error
1247 int error, status_len, tmo;
1265 return error;
1271 int error, tmo = 60;
2122 int error = 0, tmo;
2145 if ((error = query_status (s)) < 0)
2146 return error;
2159 error = send_cmd_e920 (s);
2160 switch (error)
2164 PDBG(pixma_dbg (2, "cmd e920 or d520 returned %s\n", pixma_strerror (error)));
2170 PDBG(pixma_dbg (1, "WARNING: cmd e920 or d520 failed %s\n", pixma_strerror (error)));
2171 return error;
2185 error = start_session (s);
2186 while (error == PIXMA_EBUSY && --tmo >= 0)
2190 error = PIXMA_ECANCELED;
2195 error = start_session (s);
2197 if (error == PIXMA_EBUSY || error == PIXMA_ETIMEDOUT)
2205 error = start_session (s);
2207 if ((error >= 0) || (mp->generation >= 3))
2209 if ((error >= 0) && (mp->generation <= 2))
2210 error = select_source (s);
2211 if ((error >= 0) && (mp->generation >= 3) && has_ccd_sensor (s))
2212 error = init_ccd_lamp_3 (s);
2213 if ((error >= 0) && !is_scanning_from_tpu (s))
2219 error = 0;
2221 for (i = (mp->generation >= 3) ? 3 : 1; i > 0 && error >= 0; i--)
2222 error = send_gamma_table (s);
2224 else if (error >= 0) /* in TPU mode, for gen 1, 2, and 3 */
2225 error = send_set_tpu_info (s);
2231 if ((error >= 0) || (mp->generation >= 3))
2233 if (error >= 0)
2234 error = send_scan_param (s);
2235 if ((error >= 0) && (mp->generation >= 3))
2236 error = start_scan_3 (s);
2237 if (error < 0)
2241 return error;
2248 int error;
2285 error = read_image_block (s, header, mp->imgbuf + mp->data_left_len);
2286 if (error < 0)
2288 if (error == PIXMA_ECANCELED)
2293 return error;
2296 bytes_received = error;
2335 int error;
2354 error = abort_session (s); /* FIXME: it probably doesn't work in duplex mode! */
2355 if (error < 0)
2356 PDBG(pixma_dbg (1, "WARNING:abort_session() failed %d\n", error));
2383 int error;