Lines Matching refs:ioasc

339 		cmd->ioa_cb->ioasa.ioasc = 0;  in pmcraid_init_cmdblk()
778 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); in pmcraid_internal_done()
816 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); in pmcraid_reinit_cfgtable_done()
840 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_erp_done() local
842 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > 0) { in pmcraid_erp_done()
846 cmd->ioa_cb->ioarcb.cdb[0], ioasc); in pmcraid_erp_done()
963 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); in pmcraid_ioa_shutdown()
999 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_get_fwversion_done() local
1006 if (ioasc) { in pmcraid_get_fwversion_done()
1007 pmcraid_err("IOA Inquiry failed with %x\n", ioasc); in pmcraid_get_fwversion_done()
1297 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); in pmcraid_cancel_ccn()
1682 static struct pmcraid_ioasc_error *pmcraid_get_error_info(u32 ioasc) in pmcraid_get_error_info() argument
1686 if (pmcraid_ioasc_error_table[i].ioasc_code == ioasc) in pmcraid_get_error_info()
1697 static void pmcraid_ioasc_logger(u32 ioasc, struct pmcraid_cmd *cmd) in pmcraid_ioasc_logger() argument
1699 struct pmcraid_ioasc_error *error_info = pmcraid_get_error_info(ioasc); in pmcraid_ioasc_logger()
1709 ioasc, error_info->error_string); in pmcraid_ioasc_logger()
1723 u32 ioasc; in pmcraid_handle_error_log() local
1745 ioasc = le32_to_cpu(hcam_ldn->error_log.fd_ioasc); in pmcraid_handle_error_log()
1747 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET || in pmcraid_handle_error_log()
1748 ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET_BY_OTHER) { in pmcraid_handle_error_log()
1772 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_process_ccn() local
1782 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET || in pmcraid_process_ccn()
1785 } else if (ioasc) { in pmcraid_process_ccn()
1787 "Host RCB (CCN) failed with IOASC: 0x%08X\n", ioasc); in pmcraid_process_ccn()
1811 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_process_ldn() local
1823 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET || in pmcraid_process_ldn()
1826 } else if (!ioasc) { in pmcraid_process_ldn()
1842 "Host RCB(LDN) failed with IOASC: 0x%08X\n", ioasc); in pmcraid_process_ldn()
2022 cmd->ioa_cb->ioasa.ioasc = in pmcraid_fail_outstanding_cmds()
2540 u32 ioasc = le32_to_cpu(ioasa->ioasc); in pmcraid_frame_auto_sense() local
2547 ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC && in pmcraid_frame_auto_sense()
2551 sense_buf[1] = PMCRAID_IOASC_SENSE_KEY(ioasc); in pmcraid_frame_auto_sense()
2552 sense_buf[2] = PMCRAID_IOASC_SENSE_CODE(ioasc); in pmcraid_frame_auto_sense()
2553 sense_buf[3] = PMCRAID_IOASC_SENSE_QUAL(ioasc); in pmcraid_frame_auto_sense()
2575 sense_buf[2] = PMCRAID_IOASC_SENSE_KEY(ioasc); in pmcraid_frame_auto_sense()
2576 sense_buf[12] = PMCRAID_IOASC_SENSE_CODE(ioasc); in pmcraid_frame_auto_sense()
2577 sense_buf[13] = PMCRAID_IOASC_SENSE_QUAL(ioasc); in pmcraid_frame_auto_sense()
2579 if (ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC) { in pmcraid_frame_auto_sense()
2613 u32 ioasc = le32_to_cpu(ioasa->ioasc); in pmcraid_error_handler() local
2614 u32 masked_ioasc = ioasc & PMCRAID_IOASC_SENSE_MASK; in pmcraid_error_handler()
2634 pmcraid_ioasc_logger(ioasc, cmd); in pmcraid_error_handler()
2665 scsi_cmd->result |= PMCRAID_IOASC_SENSE_STATUS(ioasc); in pmcraid_error_handler()
2671 if (PMCRAID_IOASC_SENSE_STATUS(ioasc) != in pmcraid_error_handler()
2673 PMCRAID_IOASC_SENSE_STATUS(ioasc) != SAM_STAT_ACA_ACTIVE) in pmcraid_error_handler()
2703 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) in pmcraid_error_handler()
2734 u32 ioasc; in pmcraid_reset_device() local
2809 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_reset_device()
2812 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS; in pmcraid_reset_device()
2831 static int _pmcraid_io_done(struct pmcraid_cmd *cmd, int reslen, int ioasc) in _pmcraid_io_done() argument
2841 ioasc, scsi_cmd->result); in _pmcraid_io_done()
2843 if (PMCRAID_IOASC_SENSE_KEY(ioasc) != 0) in _pmcraid_io_done()
2868 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_io_done() local
2871 if (_pmcraid_io_done(cmd, reslen, ioasc) == 0) in pmcraid_io_done()
2932 u32 ioasc; in pmcraid_abort_complete() local
2937 ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc); in pmcraid_abort_complete()
2944 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET || in pmcraid_abort_complete()
2945 ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED) { in pmcraid_abort_complete()
2946 if (ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED) in pmcraid_abort_complete()
2948 ioasc = 0; in pmcraid_abort_complete()
2953 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS; in pmcraid_abort_complete()
3609 u32 ioasc; in pmcraid_ioctl_passthrough() local
3786 ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc); in pmcraid_ioctl_passthrough()
3795 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET || in pmcraid_ioctl_passthrough()
3796 PMCRAID_IOASC_SENSE_KEY(ioasc) == 0x00) { in pmcraid_ioctl_passthrough()
3797 if (ioasc != PMCRAID_IOASC_GC_IOARCB_NOTFOUND) in pmcraid_ioctl_passthrough()