Lines Matching defs:status

1319   /* 0x07 variant returns status with bit 0 or 1 always set to 1 */
2204 int status;
2235 status = Inb (STATUS);
2238 while ((i > 0) && ((status & 0x40)));
3042 "ECPbufferWrite failed, expected status=0xF8, got 0x%02X (%s:%d)\n",
3251 /* write 1 byte in EPP mode, returning scnner's status */
3255 int status, control;
3257 status = Inb (STATUS) & 0xF8;
3258 if ((status != 0xC8) && (status != 0xC0) && (status != 0xD0))
3262 status, __FILE__, __LINE__);
3268 return status;
3274 int status, control, j;
3281 status = Inb (STATUS) & 0xF8;
3284 while ((j < 20) && (status & 0x08));
3286 if ((status != 0xC8) && (status != 0xC0))
3290 status, __FILE__, __LINE__);
3298 status = Inb (STATUS) & 0xF8;
3299 if ((status != 0x48) && (status != 0x40))
3303 status, __FILE__, __LINE__);
3309 status = Inb (STATUS) & 0xF8;
3311 return status;
3319 int status;
3323 status = Inb (STATUS) & 0xF8;
3324 if (status != 0x38)
3327 status, __FILE__, __LINE__);
3331 status = Inb (STATUS) & 0xF8;
3332 if (status != 0x38)
3335 status, __FILE__, __LINE__);
3339 status = Inb (STATUS) & 0xF8;
3340 if (status != 0xF8)
3343 status, __FILE__, __LINE__);
3356 int status;
3368 status = EPPputByte610p (0x55);
3369 if ((status != 0xC8) && (status != 0xC0) && (status != 0xD0))
3373 status, __FILE__, __LINE__);
3376 status = EPPputByte610p (0xAA);
3377 if ((status != 0xC8) && (status != 0xC0) && (status != 0xD0))
3381 status, __FILE__, __LINE__);
3385 status = EPPgetStatus610p ();
3386 if (status == 0xC0)
3388 status = Inb (STATUS) & 0xF8;
3389 if (status != 0xC8)
3391 DBG (0, "EPPcmdSync610p: Found 0x%X expected 0xC8 (%s:%d)\n", status,
3399 status = EPPputByte610p (word[i]);
3401 if (status != 0xC8)
3403 DBG (0, "EPPcmdSync610p: Found 0x%X expected 0xC8 (%s:%d)\n", status,
3408 /* tests status */
3412 status = EPPgetStatus610p ();
3413 if (status != 0xC0)
3416 status, __FILE__, __LINE__);
3420 status = EPPgetStatus610p ();
3421 if (status != 0xC0)
3423 DBG (0, "EPPcmdSync610p: Found 0x%X expected 0xC0 (%s:%d)\n", status,
3435 int status;
3454 status = getStatus610p ();
3455 if (status != 0xC0)
3457 DBG (1, "Found 0x%X expected 0xC0 (%s:%d)\n", status, __FILE__,
3462 status = getStatus610p ();
3463 if (status != 0xC0)
3465 DBG (1, "Found 0x%X expected 0xC0 (%s:%d)\n", status, __FILE__,
3476 int data, status, control, i;
3481 status = Inb (STATUS) & 0xF8;
3482 if (status & 0x08)
3485 status = Inb (STATUS) & 0xF8;
3492 return status;
3498 int data, status;
3501 status = Inb (STATUS) & 0xF8;
3506 return status;
3852 int status;
3858 status = Inb (STATUS) & 0x08;
3859 if (status != 0)
3866 while ((count > 0) && (status != 0));
3867 if (status == 0)
3869 status = Inb (STATUS) & 0x08;
3870 if (status == 0)
3874 while ((status != 0) && (c == 0));
3885 unsigned char status, bval;
3930 rc = ioctl (fd, PPRSTATUS, &status);
3934 error = status & 0x08;
3967 rc = ioctl (fd, PPRSTATUS, &status);
3971 word = status & 0x10;
3972 error = status & 0x08;
3991 rc = ioctl (fd, PPRSTATUS, &status);
3995 error = status & 0x08;
4022 rc = ioctl (fd, PPRSTATUS, &status);
4026 error = status & 0x08;
4029 rc = ioctl (fd, PPRSTATUS, &status);
4033 error = status & 0x08;
4086 int status;
4106 status = Inb (STATUS) & 0x1F;
4107 error = status & 0x08;
4140 status = Inb (STATUS) & 0x1F;
4141 word = status & 0x10;
4142 error = status & 0x08;
4341 int tmp, status;
4366 status = Inb (STATUS) & 0xF8;
4367 if (status != 0x88)
4369 DBG (0, "SPPsendWord610p found 0x%02X expected 0x88 (%s:%d)\n", status,
4377 status = Inb (STATUS) & 0xF8;
4378 if (status != 0x88)
4380 DBG (0, "SPPsendWord610p found 0x%02X expected 0x88 (%s:%d)\n", status,
4390 status = Inb (STATUS) & 0xF8;
4391 if (status != 0x88)
4394 status, __FILE__, __LINE__);
4409 status = Inb (STATUS) & 0xF8;
4411 while ((j < 256) && (status & 0x08))
4414 status = Inb (STATUS) & 0xF8;
4416 if ((status != 0x80) && (status != 0xA0))
4419 status, __FILE__, __LINE__);
4423 status = Inb (STATUS) & 0xF8;
4424 if (status != 0xC0)
4426 DBG (0, "SPPsendWord610p found 0x%X expected 0xC0 (%s:%d)\n", status,
4442 status = Inb (STATUS) & 0xF8;
4443 if ((status != 0x80) && (status != 0xA0))
4447 status, __FILE__, __LINE__);
4451 status = Inb (STATUS) & 0xF8;
4452 if (status != 0xC0)
4455 status, __FILE__, __LINE__);
4593 int status;
4680 status = Inb (STATUS) & 0xF8;
4682 if ((status & 0xB8) != 0xB8)
4684 DBG (1, "status %d doesn't match! %s:%d\n", status, __FILE__, __LINE__);
4704 status = Inb (STATUS);
4705 /* status = 126 when scanner not connected .... */
4706 if ((status & 0xB8) != 0x18)
4708 DBG (1, "status %d doesn't match! %s:%d\n", status, __FILE__,
4730 status = Inb (STATUS);
4731 if ((status & 0x30) != 0x30)
4733 DBG (1, "status %d doesn't match! %s:%d\n", status, __FILE__,
4785 int status;
4843 /* test status */
4844 status = Inb (STATUS);
4845 status = Inb (STATUS);
4846 if ((status & 0xB8) != 0)
4849 DBG (64, "status %d doesn't match! %s:%d\n", status, __FILE__,
4875 status = Inb (STATUS);
4876 status = ((status << 1) & 0x70) | (status & 0x80);
4877 if (status != count)
4881 DBG (2, "status %d doesn't match count 0x%X! %s:%d\n", status,
4981 /* status has changed while waiting */
5033 /* check if 'finished status' received too early */
5069 int i, status, j;
5072 status = 0xC8;
5073 /* while ((i < len) && ((status & 0x08) == 0x08)) XXX STEF XXX */
5078 status = putByte610p (0x1B);
5082 status = putByte610p (0x1B);
5085 status = putByte610p (cmd[i]);
5089 while ((status & 0x08) && (j < 256))
5091 status = getStatus610p ();
5094 if ((status != 0xC0) && (status != 0xD0))
5097 "sendData610p() failed, status=0x%02X, expected 0xC0 or 0xD0 (%s:%d)\n",
5098 status, __FILE__, __LINE__);
5102 /* check if 'finished status' received too early */
5161 /* check if 'finished status' received too early */
5250 int status;
5253 status = 0xD0;
5257 status = Inb (STATUS) & 0xF8;
5263 if (status != 0xC0)
5266 status, __FILE__, __LINE__);
5270 /* check if 'finished status' received to early */
5271 if ((status == 0xC0) && (i != len))
5310 /* check if 'finished status' received to early */
5733 int status;
5764 /* ~ opb3: inquire status */
5773 status = sanei_umax_pp_scannerStatus ();
5774 DBG (8, "INQUIRE SCANNER STATUS IS 0x%02X (%s:%d)\n", status, __FILE__,
5776 if ((!recover) && (status & MOTOR_BIT) == 0x00)
5850 status = sanei_umax_pp_scannerStatus ();
5851 status = status & 0x10;
5853 while (status != 0x10); /* was 0x90 */
5857 status = sanei_umax_pp_scannerStatus ();
5858 DBG (16, "loop %d passed, status=0x%02X (%s:%d)\n", i, status,
5872 status = sanei_umax_pp_scannerStatus ();
5873 status = status & 0x10;
5875 while (status != 0x10); /* was 0x90 */
5879 status = sanei_umax_pp_scannerStatus ();
5880 DBG (16, "loop %d passed, status=0x%02X (%s:%d)\n", i, status,
5883 while ((status & MOTOR_BIT) == 0x00); /* 0xD0 when head is back home */
5918 DBG (16, "PARKING polling status is 0x%02X (%s:%d)\n",
6608 "probeECP() failed at sync step %d, status=0x%02X, expected 0x48 (%s:%d)\n",
6619 DBG (0, "probeECP() failed, status=0x%02X, expected 0x48 (%s:%d)\n",
6630 DBG (0, "probeECP() failed, status=0x%02X, expected 0xC8 (%s:%d)\n",
7646 int i, status, control;
7657 status = EPPputByte610p (0x55);
7658 if (status != 0xC8)
7660 DBG (1, "EPPcmdGet610p: Found 0x%X expected 0xC8 (%s:%d)\n", status,
7664 status = EPPputByte610p (0xAA);
7665 if (status != 0xC8)
7667 DBG (1, "EPPcmdGet610p: Found 0x%02X expected 0xC8 (%s:%d)\n", status,
7672 /* tests status */
7674 status = EPPgetStatus610p ();
7675 if (status != 0xC8)
7678 "EPPcmdGet610p: Found 0x%X expected 0xC8, status=0x%02X (%s:%d)\n",
7679 status, scannerStatus, __FILE__, __LINE__);
7685 for (i = 0; (i < 4) && (status == 0xC8); i++)
7687 status = EPPputByte610p (word[i]);
7689 if (status != 0xC8)
7692 i, status, __FILE__, __LINE__);
7698 /* tests status */
7700 status = EPPgetStatus610p ();
7701 if (status != 0xD0)
7704 "EPPcmdGet610p: Found 0x%X expected 0xD0, status=0x%02X (%s:%d)\n",
7705 status, scannerStatus, __FILE__, __LINE__);
7717 status = Inb (STATUS) & 0xF8;
7718 if (status & 0x08)
7722 i, status, __FILE__, __LINE__);
7751 status = EPPgetStatus610p ();
7752 scannerStatus = status;
7753 if (status != 0xC0)
7755 DBG (0, "EPPcmdGet610p: Found 0x%02X expected 0xC0 (%s:%d)\n", status,
7769 int i, j, status;
7791 status = getStatus610p ();
7792 scannerStatus = status;
7793 if ((status != 0xC0) && (status != 0xD0))
7795 DBG (0, "Found 0x%02X expected 0xC0 or 0xD0 (%s:%d)\n", status,
7805 status = getStatus610p ();
7806 scannerStatus = status;
7808 while ((j < 256) && (status & 0x08))
7810 status = getStatus610p ();
7813 if (status != 0xC0)
7815 DBG (0, "Found 0x%02X expected 0xC0 (%s:%d)\n", status, __FILE__,
7849 int i, status;
7867 status = EPPputByte610p (0x55);
7868 if ((status != 0xC8) && (status!=0xC0))
7870 DBG (0, "EPPcmdSet610p: Found 0x%X expected 0xC0 or 0xC8 (%s:%d)\n", status,
7874 status = EPPputByte610p (0xAA);
7875 if ((status != 0xC8) && (status!=0xC0))
7877 DBG (0, "EPPcmdSet610p: Found 0x%X expected 0xC0 or 0xC8 (%s:%d)\n", status,
7882 /* tests status */
7883 status = EPPgetStatus610p ();
7884 if ((status != 0xC8) && (status!=0xC0))
7886 DBG (0, "EPPcmdSet610p: Found 0x%02X expected 0xC0 or 0xC8 (%s:%d)\n", status,
7894 status = EPPputByte610p (word[i]);
7896 if ((status != 0xC8) && (status!=0xC0))
7899 i, status, __FILE__, __LINE__);
7905 /* tests status */
7906 status = EPPgetStatus610p ();
7907 if (status != 0xC0)
7909 DBG (0, "Found 0x%X expected 0xC0 (%s:%d)\n", status, __FILE__,
7915 status = 0xC8;
7916 for (i = 0; (i < len) && (status == 0xC8); i++)
7920 status = EPPputByte610p (0x1B);
7924 status = EPPputByte610p (0x1B);
7927 status = EPPputByte610p (val[i]);
7930 if (status != 0xC8)
7933 i, status, __FILE__, __LINE__);
7938 status = EPPgetStatus610p ();
7939 if (status != 0xC0)
7941 DBG (0, "Found 0x%X expected 0xC0 (%s:%d)\n", status, __FILE__,
7955 int i, j, status;
7981 status = getStatus610p ();
7982 scannerStatus = status;
7983 if ((status != 0xC0) && (status != 0xD0))
7985 DBG (1, "Found 0x%X expected 0xC0 or 0xD0 (%s:%d)\n", status, __FILE__,
7995 status = getStatus610p ();
7996 scannerStatus = status;
7998 while ((j < 256) && (status & 0x08))
8000 status = getStatus610p ();
8003 if (status != 0xC0)
8005 DBG (1, "Found 0x%X expected 0xC0 (%s:%d)\n", status, __FILE__,
8240 int status, i, tmp, control;
8260 status = EPPputByte610p (0x55);
8261 if ((status != 0xD0) && (status != 0xC8))
8264 status, __FILE__, __LINE__);
8267 status = EPPputByte610p (0xAA);
8268 if ((status != 0xD0) && (status != 0xC8))
8271 status, __FILE__, __LINE__);
8275 /* tests status */
8276 status = EPPgetStatus610p ();
8277 if ((status != 0xD0) && (status != 0xC8))
8280 status, __FILE__, __LINE__);
8287 status = EPPputByte610p (word[i]);
8289 if ((status != 0xC0) && (status != 0xC8))
8293 i, status, __FILE__, __LINE__);
8299 /* test status */
8300 status = EPPgetStatus610p ();
8301 if ((status != 0xC0) && (status != 0xD0))
8305 status, __FILE__, __LINE__);
8331 status = 0x20;
8334 while ((status & 0x80) != 0x80)
8348 status = Inb (STATUS) & 0xF8;
8349 if ((status & 0x80) != 0x80)
8420 status = Inb (STATUS) & 0xF8;
8421 if ((status != 0xD0) && (status != 0xC0)
8422 && (status != 0xC8))
8426 status, __FILE__, __LINE__);
8429 if (status == 0xC8)
8460 int status, i, tmp;
8482 status = getStatus610p ();
8483 scannerStatus = status;
8484 if ((status != 0xC0) && (status != 0xD0))
8486 DBG (1, "Found 0x%X expected 0xC0 or 0xD0 (%s:%d)\n", status, __FILE__,
8505 status = getStatus610p ();
8507 status = 0x20;
8510 while ((status & 0x80) == 0x00)
8523 status = Inb (STATUS) & 0xF8;
8524 if ((status & 0x80) == 0x00)
8539 status = Inb (STATUS) & 0xF8;
8540 if (status == 0xC8)
8543 status = Inb (STATUS) & 0xF8;
8612 DBG (0, "cmdGetBuffer failed: unexpected status 0x%02X ...(%s:%d)\n",
8675 "Unexpected status 0x%02X, expected 0xC0 or 0xD0 ! (%s:%d)\n",
8741 DBG (0, "cmdGetBuffer32 failed: unexpected status 0x%02X ...(%s:%d)\n",
8748 DBG (0, "cmdGetBuffer32 failed: unexpected status 0x%02X ...(%s:%d)\n",
8772 "Unexpected status 0x%02X, expected 0xC0 or 0xD0 ! (%s:%d)\n",
8913 "Time-out (%.2f s) waiting for scanner ... giving up on status 0x%02X ! (%s:%d)\n",
8923 "Unexpected status 0x%02X, expected 0xC0 or 0xD0 ! (%s:%d)\n",
8951 /* test status after read */
8972 "Time-out (%.2f s) waiting for scanner ... giving up on status 0x%02X ! (%s:%d)\n",
8981 DBG (0, "Unexpected status 0x%02X, expected 0xC0 or 0xD0 ! (%s:%d)\n",
9349 /* get status */
9986 int status = 0x90;
10003 status = sanei_umax_pp_scannerStatus ();
10004 DBG (16, "PARKING STATUS is 0x%02X (%s:%d)\n", status, __FILE__, __LINE__);
10541 int status;
10549 status = sanei_umax_pp_scannerStatus ();
10551 while ((status & MOTOR_BIT) == 0x00);
10690 /* get scanner status */
11158 /* get scanner status */
11457 /* inquire scanner status