Lines Matching refs:ioasc

327 		cmd->ioa_cb->ioasa.ioasc = 0;  in pmcraid_init_cmdblk()
763 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); in pmcraid_internal_done()
801 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); in pmcraid_reinit_cfgtable_done()
825 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_erp_done() local
827 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > 0) { in pmcraid_erp_done()
831 cmd->ioa_cb->ioarcb.cdb[0], ioasc); in pmcraid_erp_done()
941 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); in pmcraid_ioa_shutdown()
976 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_get_fwversion_done() local
983 if (ioasc) { in pmcraid_get_fwversion_done()
984 pmcraid_err("IOA Inquiry failed with %x\n", ioasc); in pmcraid_get_fwversion_done()
1274 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); in pmcraid_cancel_ccn()
1657 static struct pmcraid_ioasc_error *pmcraid_get_error_info(u32 ioasc) in pmcraid_get_error_info() argument
1661 if (pmcraid_ioasc_error_table[i].ioasc_code == ioasc) in pmcraid_get_error_info()
1672 static void pmcraid_ioasc_logger(u32 ioasc, struct pmcraid_cmd *cmd) in pmcraid_ioasc_logger() argument
1674 struct pmcraid_ioasc_error *error_info = pmcraid_get_error_info(ioasc); in pmcraid_ioasc_logger()
1684 ioasc, error_info->error_string); in pmcraid_ioasc_logger()
1698 u32 ioasc; in pmcraid_handle_error_log() local
1720 ioasc = le32_to_cpu(hcam_ldn->error_log.fd_ioasc); in pmcraid_handle_error_log()
1722 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET || in pmcraid_handle_error_log()
1723 ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET_BY_OTHER) { in pmcraid_handle_error_log()
1747 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_process_ccn() local
1757 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET || in pmcraid_process_ccn()
1760 } else if (ioasc) { in pmcraid_process_ccn()
1762 "Host RCB (CCN) failed with IOASC: 0x%08X\n", ioasc); in pmcraid_process_ccn()
1785 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_process_ldn() local
1797 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET || in pmcraid_process_ldn()
1800 } else if (!ioasc) { in pmcraid_process_ldn()
1816 "Host RCB(LDN) failed with IOASC: 0x%08X\n", ioasc); in pmcraid_process_ldn()
1996 cmd->ioa_cb->ioasa.ioasc = in pmcraid_fail_outstanding_cmds()
2512 u32 ioasc = le32_to_cpu(ioasa->ioasc); in pmcraid_frame_auto_sense() local
2519 ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC && in pmcraid_frame_auto_sense()
2523 sense_buf[1] = PMCRAID_IOASC_SENSE_KEY(ioasc); in pmcraid_frame_auto_sense()
2524 sense_buf[2] = PMCRAID_IOASC_SENSE_CODE(ioasc); in pmcraid_frame_auto_sense()
2525 sense_buf[3] = PMCRAID_IOASC_SENSE_QUAL(ioasc); in pmcraid_frame_auto_sense()
2547 sense_buf[2] = PMCRAID_IOASC_SENSE_KEY(ioasc); in pmcraid_frame_auto_sense()
2548 sense_buf[12] = PMCRAID_IOASC_SENSE_CODE(ioasc); in pmcraid_frame_auto_sense()
2549 sense_buf[13] = PMCRAID_IOASC_SENSE_QUAL(ioasc); in pmcraid_frame_auto_sense()
2551 if (ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC) { in pmcraid_frame_auto_sense()
2585 u32 ioasc = le32_to_cpu(ioasa->ioasc); in pmcraid_error_handler() local
2586 u32 masked_ioasc = ioasc & PMCRAID_IOASC_SENSE_MASK; in pmcraid_error_handler()
2606 pmcraid_ioasc_logger(ioasc, cmd); in pmcraid_error_handler()
2637 scsi_cmd->result |= PMCRAID_IOASC_SENSE_STATUS(ioasc); in pmcraid_error_handler()
2643 if (PMCRAID_IOASC_SENSE_STATUS(ioasc) != in pmcraid_error_handler()
2645 PMCRAID_IOASC_SENSE_STATUS(ioasc) != SAM_STAT_ACA_ACTIVE) in pmcraid_error_handler()
2675 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) in pmcraid_error_handler()
2706 u32 ioasc; in pmcraid_reset_device() local
2781 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_reset_device()
2784 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS; in pmcraid_reset_device()
2803 static int _pmcraid_io_done(struct pmcraid_cmd *cmd, int reslen, int ioasc) in _pmcraid_io_done() argument
2813 ioasc, scsi_cmd->result); in _pmcraid_io_done()
2815 if (PMCRAID_IOASC_SENSE_KEY(ioasc) != 0) in _pmcraid_io_done()
2840 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); in pmcraid_io_done() local
2843 if (_pmcraid_io_done(cmd, reslen, ioasc) == 0) in pmcraid_io_done()
2902 u32 ioasc; in pmcraid_abort_complete() local
2907 ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc); in pmcraid_abort_complete()
2914 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET || in pmcraid_abort_complete()
2915 ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED) { in pmcraid_abort_complete()
2916 if (ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED) in pmcraid_abort_complete()
2918 ioasc = 0; in pmcraid_abort_complete()
2923 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS; in pmcraid_abort_complete()