Lines Matching refs:status
162 * status and commands are repeatedly reissued (by kernel error handler) */
814 SANE_Status status;
822 status = sanei_scsi_cmd (sfd, inquiry.cmd, inquiry.size, buffer, &size);
823 if (status)
825 DBG (DBG_error, "pie_do_inquiry: command returned status %s\n",
826 sane_strstatus (status));
832 status = sanei_scsi_cmd (sfd, inquiry.cmd, inquiry.size, buffer, &size);
833 if (status)
835 DBG (DBG_error, "pie_do_inquiry: command returned status %s\n",
836 sane_strstatus (status));
952 SANE_Status status;
973 status = sanei_scsi_cmd (sfd, buffer, swrite.size + size, NULL, NULL);
974 if (status)
977 "pie_get_halftones: write command returned status %s\n",
978 sane_strstatus (status));
989 status = sanei_scsi_cmd (sfd, sread.cmd, sread.size, buffer, &size);
990 if (status)
993 "pie_get_halftones: read command returned status %s\n",
994 sane_strstatus (status));
1017 SANE_Status status;
1037 status = sanei_scsi_cmd (sfd, buffer, swrite.size + size, NULL, NULL);
1038 if (status)
1040 DBG (DBG_error, "pie_get_cal_info: write command returned status %s\n",
1041 sane_strstatus (status));
1052 status = sanei_scsi_cmd (sfd, sread.cmd, sread.size, buffer, &size);
1053 if (status)
1056 "pie_get_cal_info: read command returned status %s\n",
1057 sane_strstatus (status));
1476 SANE_Status status;
1494 status =
1496 if (status)
1498 DBG (DBG_error, "pie_power_save: write command returned status %s\n",
1499 sane_strstatus (status));
1502 return status;
1513 SANE_Status status;
1534 status =
1536 if (status)
1539 "pie_send_exposure_one: write command returned status %s\n",
1540 sane_strstatus (status));
1543 return status;
1551 SANE_Status status;
1555 status = pie_send_exposure_one (scanner, FILTER_RED, 100);
1556 if (status)
1557 return status;
1559 status = pie_send_exposure_one (scanner, FILTER_GREEN, 100);
1560 if (status)
1561 return status;
1563 status = pie_send_exposure_one (scanner, FILTER_BLUE, 100);
1564 if (status)
1565 return status;
1579 SANE_Status status;
1601 status =
1603 if (status)
1606 "pie_send_highlight_shadow_one: write command returned status %s\n",
1607 sane_strstatus (status));
1610 return status;
1618 SANE_Status status;
1622 status = pie_send_highlight_shadow_one (scanner, FILTER_RED, 100, 0);
1623 if (status)
1624 return status;
1626 status = pie_send_highlight_shadow_one (scanner, FILTER_GREEN, 100, 0);
1627 if (status)
1628 return status;
1630 status = pie_send_highlight_shadow_one (scanner, FILTER_BLUE, 100, 0);
1631 if (status)
1632 return status;
1658 SANE_Status status;
1711 status = pie_wait_scanner (scanner);
1712 if (status)
1719 return status;
1727 status =
1731 if (status)
1734 "pie_perform_cal: read command returned status %s\n",
1735 sane_strstatus (status));
1741 return status;
1888 status = pie_wait_scanner (scanner);
1889 if (status)
1896 return status;
1902 status =
1905 if (status)
1907 DBG (DBG_error, "pie_perform_cal: write command returned status %s\n",
1908 sane_strstatus (status));
1914 return status;
1931 SANE_Status status;
1943 status = pie_perform_cal (scanner, cal_index);
1944 if (status != SANE_STATUS_GOOD)
1945 return status;
1959 SANE_Status status;
1966 status = pie_wait_scanner (scanner);
1967 if (status)
1969 return status;
2007 status =
2009 if (status)
2012 "pie_dwnld_gamma_one: write command returned status %s\n",
2013 sane_strstatus (status));
2018 return status;
2026 SANE_Status status;
2032 status =
2034 if (status)
2035 return status;
2038 status =
2040 if (status)
2041 return status;
2043 status =
2045 if (status)
2046 return status;
2058 status = pie_dwnld_gamma_one (scanner, FILTER_GREEN, table);
2059 if (status)
2060 return status;
2075 SANE_Status status;
2115 status =
2117 if (status)
2119 DBG (DBG_error, "pie_set_window: write command returned status %s\n",
2120 sane_strstatus (status));
2123 return status;
2133 SANE_Status status;
2286 status =
2288 if (status)
2290 DBG (DBG_error, "pie_mode_select: write command returned status %s\n",
2291 sane_strstatus (status));
2294 return status;
2303 SANE_Status status;
2308 status = pie_wait_scanner (scanner);
2309 if (status)
2311 return status;
2318 status = sanei_scsi_cmd (scanner->sfd, scan.cmd, scan.size, NULL, NULL);
2319 if (status)
2321 DBG (DBG_error, "pie_scan: write command returned status %s\n",
2322 sane_strstatus (status));
2326 while (start && status);
2330 return status;
2340 SANE_Status status;
2353 status =
2358 if (status)
2363 sane_strstatus (status));
2369 while (status != SANE_STATUS_GOOD);
2374 return status;
2384 SANE_Status status;
2390 status = pie_wait_scanner (scanner);
2391 if (status)
2392 return status;
2402 status =
2405 if (status)
2407 DBG (DBG_error, "pie_get_params: command returned status %s\n",
2408 sane_strstatus (status));
2458 return status;
2468 SANE_Status status;
2473 status = pie_wait_scanner (scanner);
2474 if (status)
2475 return status;
2477 status =
2482 if (status)
2484 DBG (DBG_error, "pie_grab_scanner: command returned status %s\n",
2485 sane_strstatus (status));
2492 return status;
2502 SANE_Status status;
2506 status =
2509 if (status)
2511 DBG (DBG_error, "pie_give_scanner: command returned status %s\n",
2512 sane_strstatus (status));
2518 return status;
2527 int status;
2592 status =
2596 while (status);
2707 int status;
2733 status =
2737 while (status);
2801 int status;
2839 status = pie_reader_process (scanner, fp);
2841 status = pie_reader_process_indexed (scanner, fp);
2843 status = SANE_STATUS_UNSUPPORTED;
2849 return status;
3051 SANE_Status status;
3069 status = attach_scanner (devicename, &dev);
3070 if (status != SANE_STATUS_GOOD)
3072 return status;
3220 SANE_Status status;
3322 status = sanei_constrain_value (scanner->opt + option, val, info);
3323 if (status != SANE_STATUS_GOOD)
3325 return status;
3519 int status;
3676 status = pie_do_cal (scanner);
3677 if (status)
3678 return status;