Lines Matching refs:result
237 sense_handler (int scsi_fd, u_char * result, void *arg)
242 switch (result[2] & 0x0F)
275 uint8_t result[22];
276 size_t size = sizeof (result);
280 memset (result, 0, sizeof (result));
283 STORE8 (cmd + 4, sizeof (result));
284 sanei_scsi_cmd (s->fd, cmd, sizeof (cmd), result, &size);
286 if (result[7] != 14)
288 DBG (ERROR_MESSAGE, "Additional Length %u\n", (unsigned int) result[7]);
293 status = sense_handler (s->fd, result, NULL);
300 if (result[18] & 0x80)
303 if (result[18] & 0x40)
306 if (result[18] & 0x20)
309 if (result[18] & 0x10)
313 DBG (USER_MESSAGE, "Sense: Optical gain %u.\n", (unsigned int) result[20]);
408 char result[INQ_LEN];
409 const char *model_name = result + 44;
436 size = sizeof (result);
437 status = sanei_scsi_cmd (fd, inquiry, sizeof (inquiry), result, &size);
452 abaton_scanner = (strncmp (result + 8, "ABATON ", 8) == 0);
453 model_name = result + 16;
456 abaton_scanner = abaton_scanner && (result[0] == 0x06);
461 "(result[0]=%#02x)\n", result[0]);
1281 uint8_t result[12];
1306 STORE8 (get_data_status + 8, sizeof (result));
1313 size = sizeof (result);
1315 /* memset (result, 0, size); */
1317 sizeof (get_data_status), result, &size);
1328 data_length = GET24 (result);
1329 data_av = GET24 (result + 9);
1331 /* don't check result[3] here, because that screws things up