Searched refs:sense_hdr (Results 1 - 7 of 7) sorted by relevance

/linux-4.1.27/drivers/scsi/device_handler/
H A Dscsi_dh_alua.c231 struct scsi_sense_hdr sense_hdr; stpg_endio() local
242 &sense_hdr); stpg_endio()
247 err = alua_check_sense(h->sdev, &sense_hdr); stpg_endio()
254 ALUA_DH_NAME, sense_hdr.sense_key, stpg_endio()
255 sense_hdr.asc, sense_hdr.ascq); stpg_endio()
452 struct scsi_sense_hdr *sense_hdr) alua_check_sense()
454 switch (sense_hdr->sense_key) { alua_check_sense()
456 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0a) alua_check_sense()
461 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0b) alua_check_sense()
466 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0c) alua_check_sense()
471 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x12) alua_check_sense()
477 sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x02) alua_check_sense()
485 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) alua_check_sense()
490 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x04) alua_check_sense()
495 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x01) alua_check_sense()
500 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x06) alua_check_sense()
505 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x07) alua_check_sense()
510 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x03) alua_check_sense()
515 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x0e) alua_check_sense()
539 struct scsi_sense_hdr sense_hdr; alua_rtpg() local
558 &sense_hdr); alua_rtpg()
571 sense_hdr.sense_key == ILLEGAL_REQUEST && alua_rtpg()
572 sense_hdr.asc == 0x24 && sense_hdr.ascq == 0) { alua_rtpg()
577 err = alua_check_sense(sdev, &sense_hdr); alua_rtpg()
582 ALUA_DH_NAME, sense_hdr.sense_key, alua_rtpg()
583 sense_hdr.asc, sense_hdr.ascq); alua_rtpg()
451 alua_check_sense(struct scsi_device *sdev, struct scsi_sense_hdr *sense_hdr) alua_check_sense() argument
H A Dscsi_dh_rdac.c545 struct scsi_sense_hdr sense_hdr; mode_select_handle_sense() local
549 ret = scsi_normalize_sense(sensebuf, SCSI_SENSE_BUFFERSIZE, &sense_hdr); mode_select_handle_sense()
553 switch (sense_hdr.sense_key) { mode_select_handle_sense()
560 if (sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x01) mode_select_handle_sense()
567 if (sense_hdr.asc == 0x91 && sense_hdr.ascq == 0x36) mode_select_handle_sense()
580 sense_hdr.sense_key, sense_hdr.asc, sense_hdr.ascq); mode_select_handle_sense()
719 struct scsi_sense_hdr *sense_hdr) rdac_check_sense()
726 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq); rdac_check_sense()
728 switch (sense_hdr->sense_key) { rdac_check_sense()
730 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x01) rdac_check_sense()
736 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x81) rdac_check_sense()
743 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0xA1) rdac_check_sense()
749 if (sense_hdr->asc == 0xA1 && sense_hdr->ascq == 0x02) rdac_check_sense()
757 if (sense_hdr->asc == 0x94 && sense_hdr->ascq == 0x01) { rdac_check_sense()
767 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) rdac_check_sense()
772 if (sense_hdr->asc == 0x8b && sense_hdr->ascq == 0x02) rdac_check_sense()
718 rdac_check_sense(struct scsi_device *sdev, struct scsi_sense_hdr *sense_hdr) rdac_check_sense() argument
H A Dscsi_dh_emc.c404 struct scsi_sense_hdr *sense_hdr) clariion_check_sense()
406 switch (sense_hdr->sense_key) { clariion_check_sense()
408 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x03) clariion_check_sense()
425 if (sense_hdr->asc == 0x25 && sense_hdr->ascq == 0x01) clariion_check_sense()
439 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) clariion_check_sense()
403 clariion_check_sense(struct scsi_device *sdev, struct scsi_sense_hdr *sense_hdr) clariion_check_sense() argument
/linux-4.1.27/drivers/scsi/
H A Dst.c333 SCSI_SENSE_BUFFERSIZE, &s->sense_hdr); st_analyze_sense()
375 scode = STp->buffer->cmdstat.sense_hdr.sense_key; st_chk_result()
418 cmdstatp->sense_hdr.asc == 0 && cmdstatp->sense_hdr.ascq == 0x17) st_chk_result()
649 (cmdstatp->sense_hdr.sense_key == NO_SENSE || write_behind_check()
650 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR)) { write_behind_check()
746 (cmdstatp->sense_hdr.sense_key == NO_SENSE || st_flush_write_buffer()
747 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) && st_flush_write_buffer()
938 scode = cmdstatp->sense_hdr.sense_key; test_ready()
963 cmdstatp->sense_hdr.asc == 0x3a) /* Check ASC */ test_ready()
1348 (cmdstatp->sense_hdr.sense_key == NO_SENSE || st_flush()
1349 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) && st_flush()
1748 scode = cmdstatp->sense_hdr.sense_key; st_write()
1922 if (cmdstatp->sense_hdr.sense_key == BLANK_CHECK) read_tape()
1932 cmdstatp->sense_hdr.sense_key == MEDIUM_ERROR) read_tape()
2009 cmdstatp->sense_hdr.sense_key == BLANK_CHECK) { read_tape()
2974 if (cmdstatp->sense_hdr.sense_key == NO_SENSE || st_int_ioctl()
2975 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) { st_int_ioctl()
3031 if (cmdstatp->sense_hdr.sense_key == ILLEGAL_REQUEST && st_int_ioctl()
3043 if (cmdstatp->sense_hdr.sense_key == BLANK_CHECK)
H A Dst.h13 struct scsi_sense_hdr sense_hdr; member in struct:st_cmdstatus
H A Dstorvsc_drv.c1104 struct scsi_sense_hdr sense_hdr; storvsc_command_completion() local
1130 SCSI_SENSE_BUFFERSIZE, &sense_hdr)) storvsc_command_completion()
1132 &sense_hdr); storvsc_command_completion()
1136 storvsc_handle_error(vm_srb, scmnd, host, sense_hdr.asc, storvsc_command_completion()
1137 sense_hdr.ascq); storvsc_command_completion()
H A Dosst.c210 SCSI_SENSE_BUFFERSIZE, &s->sense_hdr); osst_analyze_sense()
253 scode = STp->buffer->cmdstat.sense_hdr.sense_key; osst_chk_result()

Completed in 413 milliseconds