Lines Matching refs:result
767 sense_handler (SANE_Int scsi_fd, SANE_Byte * result, void *arg)
769 if (!result)
776 result[0], scsi_fd);
779 result[0], scsi_fd, *(SANE_Byte *) arg);
780 switch (result[0])
786 if (result[1] & 0x80)
794 if (result[2] & 0x02)
802 if (result[1] & 0x10)
811 result[0], scsi_fd);
820 SANE_Byte result[INQ_LEN];
825 size = sizeof (result);
827 memset (result, 0, size);
829 status = dev_cmd (s, scsi_inquiry, sizeof (scsi_inquiry), result, &size);
836 if (result[63] & (1 << 3))
847 if (!result[0])
906 SANE_Byte result[INQ_LEN];
909 SANE_Byte *model_name = result + 44;
953 size = sizeof (result);
954 memset (result, 0, sizeof (result));
955 status = dev_cmd (&s, scsi_inquiry, sizeof (scsi_inquiry), result, &size);
970 if ((result[0] & 0x1f) != 0x06)
973 devname, result[0] & 0x1f);
980 strncpy ((SANE_String) scsi_vendor, (SANE_String) result + 8, 8);
985 strncpy ((SANE_String) scsi_product, (SANE_String) result + 16, 16);
990 strncpy ((SANE_String) scsi_revision, (SANE_String) result + 32, 4);
998 ((result[0] & 0x1f) < 0x10) ?
999 scsi_device_type[result[0] & 0x1f] : "Unknown", result[2] & 0x03);
1001 (result[7] & 0x80) ? "RelAdr " : "",
1002 (result[7] & 0x40) ? "WBus32 " : "",
1003 (result[7] & 0x20) ? "WBus16 " : "",
1004 (result[7] & 0x10) ? "Sync " : "",
1005 (result[7] & 0x08) ? "Linked " : "",
1006 (result[7] & 0x02) ? "CmdQue " : "",
1007 (result[7] & 0x01) ? "SftRe " : "");
1016 for (pp = result; pp < (result + INQ_LEN); pp++)
1025 if ((pp - result) % 0x10 == 0x0f)
1035 mustek_scanner = (strncmp ((SANE_String) result + 36, "MUSTEK", 6) == 0);
1038 if (result[43] == 'M')
1043 model_name = result + 43;
1054 mustek_scanner = (strncmp ((SANE_String) result + 8, "MUSTEK", 6) == 0);
1057 model_name = result + 16;
1064 if (strncmp ((SANE_String) result + 8, "Trust", 5) == 0)
1067 if (strncmp ((SANE_String) result + 8, "Aashima", 7) == 0)
1070 if (strncmp ((SANE_String) result + 16, "Flatbed Scanner", 15) == 0
1071 && strncmp ((SANE_String) result + 42, "TECO", 4) == 0)
1083 if (result[33] == '.')
1086 (result[32] - '0') << 8 | (result[34] - '0') << 4 | (result[35] -
1094 (result[33] - '0') << 8 | (result[34] - '0') << 4 | (result[35] -
1436 if (result[32] == 'F')
1573 if (result[63] & (1 << 6))
1581 if (result[57] & (1 << 6))
1604 if (result[57] & (1 << 5))
1625 if (result[63] & (1 << 2))
1629 if (result[63] & (1 << 3))
1641 if (result[63] & (1 << 6))
1650 if (result[62] & (1 << 0))
2117 SANE_Byte result[6];
2121 memset (result, 0, sizeof (result));
2123 cmd[4] = 0x06; /* size of result */
2125 len = sizeof (result);
2126 status = dev_cmd (s, cmd, sizeof (cmd), result, &len);
2130 s->hw->cal.bytes = result[1] | (result[2] << 8);
2131 s->hw->cal.lines = result[3] | (result[4] << 8);
3040 SANE_Byte result[5];
3043 memset (result, 0, 5);
3050 len = sizeof (result);
3052 result, &len);
3057 result[0] | (result[1] << 8), result[2], result[3], result[4]);
3061 result[0] = 0xff;
3062 result[1] = 0xff;
3077 result[0] = 8;
3078 result[1] = 0;
3079 result[2] = 0;
3080 result[3] = 2;
3081 result[4] = 3;
3086 result[0] = 4;
3087 result[1] = 0;
3088 result[2] = 0;
3089 result[3] = 3;
3090 result[4] = 5;
3095 result[0] = 2;
3096 result[1] = 0;
3097 result[2] = 0;
3098 result[3] = 5;
3099 result[4] = 9;
3104 result[0] = 1;
3105 result[1] = 0;
3106 result[2] = 0;
3107 result[3] = 9;
3108 result[4] = 23;
3122 result[0] = 4;
3123 result[1] = 0;
3124 result[2] = 0;
3125 result[3] = 3;
3126 result[4] = 5;
3131 result[0] = 2;
3132 result[1] = 0;
3133 result[2] = 0;
3134 result[3] = 5;
3135 result[4] = 9;
3140 result[0] = 1;
3141 result[1] = 0;
3142 result[2] = 0;
3143 result[3] = 9;
3144 result[4] = 17;
3152 result[0] = 4;
3153 result[1] = 0;
3154 result[2] = 0;
3155 result[3] = 3;
3156 result[4] = 5;
3161 result[0] = 2;
3162 result[1] = 0;
3163 result[2] = 0;
3164 result[3] = 9;
3165 result[4] = 17;
3170 result[0] = 1;
3171 result[1] = 0;
3172 result[2] = 0;
3173 result[3] = 16;
3174 result[4] = 32;
3180 result[0] | (result[1] << 8), result[2], result[3], result[4]);
3183 factor = result[0] | (result[1] << 8);
3200 s->ld.dist[color] = result[2 + color];
3220 SANE_Byte result[6];
3226 memset (result, 0, 6);
3241 len = sizeof (result);
3243 sizeof (scsi_get_image_status), result, &len);
3247 busy = result[0];
3257 s->hw->bpl = result[1] | (result[2] << 8);
3258 s->hw->lines = result[3] | (result[4] << 8) | (result[5] << 16);
3285 SANE_Byte result[48];
3297 len = sizeof (result);
3298 status = dev_cmd (s, scsi_get_window, sizeof (scsi_get_window), result,
3306 s->hw->cal.bytes = (result[6] << 24) | (result[7] << 16) |
3307 (result[8] << 8) | (result[9] << 0);
3308 s->hw->cal.lines = (result[10] << 24) | (result[11] << 16) |
3309 (result[12] << 8) | (result[13] << 0);
3314 s->hw->bpl = (result[14] << 24) | (result[15] << 16) |
3315 (result[16] << 8) | result[17];
3317 s->hw->lines = (result[18] << 24) | (result[19] << 16) |
3318 (result[20] << 8) | result[21];
3330 s->hw->gamma_length = 1 << result[26];
3338 s->ld.dist[color] = result[42 + color];
3342 (result[40] << 8) | result[41], s->ld.dist[0],
3344 s->ld.max_value = (result[40] << 8) | result[41];