Lines Matching +full:0 +full:x3a00
23 if ((buf[0] >> 5) == 0 && buf[4] == 0) { in scsi_data_cdb_xfer()
32 switch (buf[0] >> 5) { in scsi_cdb_xfer()
33 case 0: in scsi_cdb_xfer()
39 return ldl_be_p(&buf[10]) & 0xffffffffULL; in scsi_cdb_xfer()
41 return ldl_be_p(&buf[6]) & 0xffffffffULL; in scsi_cdb_xfer()
52 switch (buf[0] >> 5) { in scsi_cmd_lba()
53 case 0: in scsi_cmd_lba()
54 lba = ldl_be_p(&buf[0]) & 0x1fffff; in scsi_cmd_lba()
59 lba = ldl_be_p(&buf[2]) & 0xffffffffULL; in scsi_cmd_lba()
75 switch (buf[0] >> 5) { in scsi_cdb_length()
76 case 0: in scsi_cdb_length()
100 assert(in_len > 0); in scsi_parse_sense_buf()
101 fixed_in = (in_buf[0] & 2) == 0; in scsi_parse_sense_buf()
125 uint8_t buf[SCSI_SENSE_LEN] = { 0 }; in scsi_build_sense_buf()
128 buf[0] = 0x70; in scsi_build_sense_buf()
135 buf[0] = 0x72; in scsi_build_sense_buf()
157 .key = NO_SENSE , .asc = 0x00 , .ascq = 0x00
162 .key = NOT_READY, .asc = 0x04, .ascq = 0x03
167 .key = NOT_READY, .asc = 0x3a, .ascq = 0x00
172 .key = NOT_READY, .asc = 0x53, .ascq = 0x02
177 .key = HARDWARE_ERROR, .asc = 0x44, .ascq = 0x00
182 .key = ILLEGAL_REQUEST, .asc = 0x20, .ascq = 0x00
187 .key = ILLEGAL_REQUEST, .asc = 0x21, .ascq = 0x00
192 .key = ILLEGAL_REQUEST, .asc = 0x24, .ascq = 0x00
197 .key = ILLEGAL_REQUEST, .asc = 0x26, .ascq = 0x00
202 .key = ILLEGAL_REQUEST, .asc = 0x26, .ascq = 0x01
207 .key = ILLEGAL_REQUEST, .asc = 0x1a, .ascq = 0x00
212 .key = ILLEGAL_REQUEST, .asc = 0x25, .ascq = 0x00
217 .key = ILLEGAL_REQUEST, .asc = 0x39, .ascq = 0x00
222 .key = ILLEGAL_REQUEST, .asc = 0x30, .ascq = 0x00
227 .key = ILLEGAL_REQUEST, .asc = 0x53, .ascq = 0x02
232 .key = ILLEGAL_REQUEST, .asc = 0x4b, .ascq = 0x01
237 .key = ABORTED_COMMAND, .asc = 0x00, .ascq = 0x06
242 .key = ABORTED_COMMAND, .asc = 0x29, .ascq = 0x07
247 .key = ABORTED_COMMAND, .asc = 0x3e, .ascq = 0x01
252 .key = ABORTED_COMMAND, .asc = 0x4e, .ascq = 0x00
257 .key = ABORTED_COMMAND, .asc = 0x08, .ascq = 0x00
262 .key = ABORTED_COMMAND, .asc = 0x05, .ascq = 0x00
267 .key = ABORTED_COMMAND, .asc = 0x2e, .ascq = 0x02
272 .key = ABORTED_COMMAND, .asc = 0x2f, .ascq = 0x02
277 .key = MEDIUM_ERROR, .asc = 0x11, .ascq = 0x00
282 .key = NOT_READY, .asc = 0x04, .ascq = 0x00
287 .key = UNIT_ATTENTION, .asc = 0x2a, .ascq = 0x09
292 .key = UNIT_ATTENTION, .asc = 0x29, .ascq = 0x00
297 .key = UNIT_ATTENTION, .asc = 0x29, .ascq = 0x02
302 .key = UNIT_ATTENTION, .asc = 0x3a, .ascq = 0x00
307 .key = UNIT_ATTENTION, .asc = 0x28, .ascq = 0x00
312 .key = UNIT_ATTENTION, .asc = 0x3f, .ascq = 0x0e
317 .key = UNIT_ATTENTION, .asc = 0x29, .ascq = 0x04
322 .key = DATA_PROTECT, .asc = 0x27, .ascq = 0x00
327 .key = DATA_PROTECT, .asc = 0x27, .ascq = 0x07
341 if (in_len == 0) { in scsi_convert_sense()
345 fixed_in = (in_buf[0] & 2) == 0; in scsi_convert_sense()
373 case 0x1a00: /* PARAMETER LIST LENGTH ERROR */ in scsi_sense_is_guest_recoverable()
374 case 0x2000: /* INVALID OPERATION CODE */ in scsi_sense_is_guest_recoverable()
375 case 0x2400: /* INVALID FIELD IN CDB */ in scsi_sense_is_guest_recoverable()
376 case 0x2500: /* LOGICAL UNIT NOT SUPPORTED */ in scsi_sense_is_guest_recoverable()
377 case 0x2600: /* INVALID FIELD IN PARAMETER LIST */ in scsi_sense_is_guest_recoverable()
379 case 0x2104: /* UNALIGNED WRITE COMMAND */ in scsi_sense_is_guest_recoverable()
380 case 0x2105: /* WRITE BOUNDARY VIOLATION */ in scsi_sense_is_guest_recoverable()
381 case 0x2106: /* ATTEMPT TO READ INVALID DATA */ in scsi_sense_is_guest_recoverable()
382 case 0x550e: /* INSUFFICIENT ZONE RESOURCES */ in scsi_sense_is_guest_recoverable()
384 case 0x0401: /* NOT READY, IN PROGRESS OF BECOMING READY */ in scsi_sense_is_guest_recoverable()
385 case 0x0402: /* NOT READY, INITIALIZING COMMAND REQUIRED */ in scsi_sense_is_guest_recoverable()
410 case 0x1a00: /* PARAMETER LIST LENGTH ERROR */ in scsi_sense_to_errno()
411 case 0x2000: /* INVALID OPERATION CODE */ in scsi_sense_to_errno()
412 case 0x2400: /* INVALID FIELD IN CDB */ in scsi_sense_to_errno()
413 case 0x2600: /* INVALID FIELD IN PARAMETER LIST */ in scsi_sense_to_errno()
415 case 0x2100: /* LBA OUT OF RANGE */ in scsi_sense_to_errno()
416 case 0x2707: /* SPACE ALLOC FAILED */ in scsi_sense_to_errno()
418 case 0x2500: /* LOGICAL UNIT NOT SUPPORTED */ in scsi_sense_to_errno()
420 case 0x3a00: /* MEDIUM NOT PRESENT */ in scsi_sense_to_errno()
421 case 0x3a01: /* MEDIUM NOT PRESENT TRAY CLOSED */ in scsi_sense_to_errno()
422 case 0x3a02: /* MEDIUM NOT PRESENT TRAY OPEN */ in scsi_sense_to_errno()
424 case 0x2700: /* WRITE PROTECTED */ in scsi_sense_to_errno()
426 case 0x0401: /* NOT READY, IN PROGRESS OF BECOMING READY */ in scsi_sense_to_errno()
428 case 0x0402: /* NOT READY, INITIALIZING COMMAND REQUIRED */ in scsi_sense_to_errno()
586 case 0: in scsi_sense_from_errno()