Lines Matching refs:result
329 sense_handler (int scsi_fd, u_char * result, void *arg)
334 switch (result[2] & 0x0F)
368 uint8_t result[22];
369 size_t size = sizeof (result);
373 memset (result, 0, sizeof (result));
380 STORE8 (cmd + 4, sizeof (result));
381 sanei_scsi_cmd (s->fd, cmd, sizeof (cmd), result, &size);
383 if (result[7] != 14)
385 DBG (ERROR_MESSAGE, "Additional Length %u\n", (unsigned int) result[7]);
390 status = sense_handler (s->fd, result, NULL);
397 if (result[18] & 0x80)
400 if (result[18] & 0x40)
403 if (result[18] & 0x20)
406 if (result[18] & 0x10)
413 if (result[18] & 0x08)
415 if (result[18] & 0x04)
417 if (result[18] & 0x02)
419 if (result[18] & 0x01)
421 if (result[19] & 0x80)
423 if (result[19] & 0x40)
425 if (result[19] & 0x20)
429 if (result[18] & 0x08)
431 if (result[18] & 0x04)
433 if (result[18] & 0x02)
435 if (result[18] & 0x01)
437 if (result[19] & 0x08)
439 if (result[19] & 0x04)
443 if (result[18] & 0x08)
446 if (result[18] & 0x04)
448 if (result[18] & 0x02)
450 if (result[18] & 0x01)
452 if (result[19] & 0x10)
454 if (result[19] & 0x02)
464 DBG (USER_MESSAGE, "Sense: Optical gain %u.\n", (unsigned int) result[20]);
476 char result[INQ_LEN];
477 const char *model_name = result + 44;
494 result[0]=0x06;
495 strcpy(result + 8, "APPLE ");
498 strcpy(result + 16, "SCANNER A9M0337 ");
500 strcpy(result + 16, "SCANNER II ");
502 strcpy(result + 16, "SCANNER III ");
517 size = sizeof (result);
518 status = sanei_scsi_cmd (fd, inquiry, sizeof (inquiry), result, &size);
534 apple_scanner = (strncmp (result + 8, "APPLE ", 8) == 0);
535 model_name = result + 16;
537 apple_scanner = apple_scanner && (result[0] == 0x06);
542 "(result[0]=%#02x)\n", result[0]);
548 (result[32] - '0') << 8 | (result[34] - '0') << 4 | (result[35] - '0');
2444 uint8_t result[12];
2474 STORE24 (get_data_status + 6, sizeof (result));
2498 size = sizeof (result);
2500 sizeof (get_data_status), result, &size);
2510 data_length = READ24 (result);
2511 data_av = READ24 (result + 9);
2515 /* if (result[3] & 1) Scanner Blocked: Retrieve data */
2516 if ((result[3] & 1) || data_av)