Lines Matching defs:ioasc

324 		cmd->ioa_cb->ioasa.ioasc = 0;
761 pmcraid_info("response internal cmd CDB[0] = %x ioasc = %x\n",
763 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
799 pmcraid_info("response internal cmd CDB[0] = %x ioasc = %x\n",
801 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
825 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
827 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > 0) {
831 cmd->ioa_cb->ioarcb.cdb[0], ioasc);
939 pmcraid_info("response for Cancel CCN CDB[0] = %x ioasc = %x\n",
941 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
977 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
984 if (ioasc) {
985 pmcraid_err("IOA Inquiry failed with %x\n", ioasc);
1273 pmcraid_info("response for Cancel LDN CDB[0] = %x ioasc = %x\n",
1275 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
1655 * pmcraid_get_error_info - return error string for an ioasc
1656 * @ioasc: ioasc code
1660 static struct pmcraid_ioasc_error *pmcraid_get_error_info(u32 ioasc)
1664 if (pmcraid_ioasc_error_table[i].ioasc_code == ioasc)
1672 * @ioasc: ioasc code
1673 * @cmd: pointer to command that resulted in 'ioasc'
1675 static void pmcraid_ioasc_logger(u32 ioasc, struct pmcraid_cmd *cmd)
1677 struct pmcraid_ioasc_error *error_info = pmcraid_get_error_info(ioasc);
1687 ioasc, error_info->error_string);
1701 u32 ioasc;
1723 ioasc = le32_to_cpu(hcam_ldn->error_log.fd_ioasc);
1725 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET ||
1726 ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET_BY_OTHER) {
1750 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
1760 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET ||
1763 } else if (ioasc) {
1765 "Host RCB (CCN) failed with IOASC: 0x%08X\n", ioasc);
1789 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
1801 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET ||
1804 } else if (!ioasc) {
1820 "Host RCB(LDN) failed with IOASC: 0x%08X\n", ioasc);
2000 cmd->ioa_cb->ioasa.ioasc =
2516 u32 ioasc = le32_to_cpu(ioasa->ioasc);
2523 ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC &&
2527 sense_buf[1] = PMCRAID_IOASC_SENSE_KEY(ioasc);
2528 sense_buf[2] = PMCRAID_IOASC_SENSE_CODE(ioasc);
2529 sense_buf[3] = PMCRAID_IOASC_SENSE_QUAL(ioasc);
2551 sense_buf[2] = PMCRAID_IOASC_SENSE_KEY(ioasc);
2552 sense_buf[12] = PMCRAID_IOASC_SENSE_CODE(ioasc);
2553 sense_buf[13] = PMCRAID_IOASC_SENSE_QUAL(ioasc);
2555 if (ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC) {
2589 u32 ioasc = le32_to_cpu(ioasa->ioasc);
2590 u32 masked_ioasc = ioasc & PMCRAID_IOASC_SENSE_MASK;
2610 pmcraid_ioasc_logger(ioasc, cmd);
2641 scsi_cmd->result |= PMCRAID_IOASC_SENSE_STATUS(ioasc);
2647 if (PMCRAID_IOASC_SENSE_STATUS(ioasc) !=
2649 PMCRAID_IOASC_SENSE_STATUS(ioasc) != SAM_STAT_ACA_ACTIVE)
2679 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR)
2710 u32 ioasc;
2785 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
2787 /* set the return value based on the returned ioasc */
2788 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS;
2796 * @ioasc: ioasc either returned by IOA or set by driver itself.
2807 static int _pmcraid_io_done(struct pmcraid_cmd *cmd, int reslen, int ioasc)
2814 pmcraid_info("response(%d) CDB[0] = %x ioasc:result: %x:%x\n",
2817 ioasc, scsi_cmd->result);
2819 if (PMCRAID_IOASC_SENSE_KEY(ioasc) != 0)
2844 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
2847 if (_pmcraid_io_done(cmd, reslen, ioasc) == 0)
2906 u32 ioasc;
2911 ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc);
2918 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET ||
2919 ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED) {
2920 if (ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED)
2922 ioasc = 0;
2927 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS;
3583 u32 ioasc;
3758 ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc);
3767 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET ||
3768 PMCRAID_IOASC_SENSE_KEY(ioasc) == 0x00) {
3769 if (ioasc != PMCRAID_IOASC_GC_IOARCB_NOTFOUND)