Lines Matching +full:key +full:- +full:code

43         return -1;  in scsi_cdb_xfer()
49 uint8_t *buf = cmd->buf; in scsi_cmd_lba()
65 lba = -1; in scsi_cmd_lba()
90 cdb_len = -1; in scsi_cdb_length()
106 sense.key = in_buf[2]; in scsi_parse_sense_buf()
113 sense.key = in_buf[1]; in scsi_parse_sense_buf()
129 buf[2] = sense.key; in scsi_build_sense_buf()
136 buf[1] = sense.key; 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
180 /* Illegal request, invalid command operation code */
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
355 static bool scsi_sense_is_guest_recoverable(int key, int asc, int ascq) in scsi_sense_is_guest_recoverable() argument
357 switch (key) { in scsi_sense_is_guest_recoverable()
374 case 0x2000: /* INVALID OPERATION CODE */ in scsi_sense_is_guest_recoverable()
392 int scsi_sense_to_errno(int key, int asc, int ascq) in scsi_sense_to_errno() argument
394 switch (key) { in scsi_sense_to_errno()
411 case 0x2000: /* INVALID OPERATION CODE */ in scsi_sense_to_errno()
443 return scsi_sense_to_errno(sense.key, sense.asc, sense.ascq); in scsi_sense_buf_to_errno()
454 return scsi_sense_is_guest_recoverable(sense.key, sense.asc, sense.ascq); in scsi_sense_buf_is_guest_recoverable()
466 /* LOAD_UNLOAD and INITIALIZE_ELEMENT_STATUS use the same operation code */ in scsi_command_name()
484 /* LOAD_UNLOAD and START_STOP use the same operation code */ in scsi_command_name()
492 /* SEEK_10 and POSITION_TO_ELEMENT use the same operation code */ in scsi_command_name()
500 /* READ_POSITION and PRE_FETCH use the same operation code */ in scsi_command_name()
504 /* READ_DEFECT_DATA and INITIALIZE_ELEMENT_STATUS_WITH_RANGE use the same operation code */ in scsi_command_name()
540 /* SPACE_16 and SYNCHRONIZE_CACHE_16 use the same operation code */ in scsi_command_name()
543 /* ERASE_16 and WRITE_SAME_16 use the same operation code */ in scsi_command_name()
553 /* ERASE_12 and GET_PERFORMANCE use the same operation code */ in scsi_command_name()
562 /* SEND_VOLUME_TAG and SET_STREAMING use the same operation code */ in scsi_command_name()
592 * - scsi_check_sense and scsi_decide_disposition in drivers/scsi/scsi_error.c in scsi_sense_from_errno()
593 * - scsi_result_to_blk_status in drivers/scsi/scsi_lib.c in scsi_sense_from_errno()
594 * - blk_errors[] in block/blk-core.c in scsi_sense_from_errno()