Lines Matching refs:ioasc

379 		cmd->ioa_cb->ioasa.ioasc = 0;
821 pmcraid_info("response internal cmd CDB[0] = %x ioasc = %x\n",
823 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
859 pmcraid_info("response internal cmd CDB[0] = %x ioasc = %x\n",
861 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
885 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
887 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > 0) {
891 cmd->ioa_cb->ioarcb.cdb[0], ioasc);
1008 pmcraid_info("response for Cancel CCN CDB[0] = %x ioasc = %x\n",
1010 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
1046 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
1053 if (ioasc) {
1054 pmcraid_err("IOA Inquiry failed with %x\n", ioasc);
1341 pmcraid_info("response for Cancel LDN CDB[0] = %x ioasc = %x\n",
1343 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
1728 * pmcraid_get_error_info - return error string for an ioasc
1729 * @ioasc: ioasc code
1733 static struct pmcraid_ioasc_error *pmcraid_get_error_info(u32 ioasc)
1737 if (pmcraid_ioasc_error_table[i].ioasc_code == ioasc)
1745 * @ioasc: ioasc code
1746 * @cmd: pointer to command that resulted in 'ioasc'
1748 void pmcraid_ioasc_logger(u32 ioasc, struct pmcraid_cmd *cmd)
1750 struct pmcraid_ioasc_error *error_info = pmcraid_get_error_info(ioasc);
1760 le32_to_cpu(ioasc), error_info->error_string);
1774 u32 ioasc;
1796 ioasc = le32_to_cpu(hcam_ldn->error_log.fd_ioasc);
1798 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET ||
1799 ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET_BY_OTHER) {
1823 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
1833 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET ||
1836 } else if (ioasc) {
1838 "Host RCB (CCN) failed with IOASC: 0x%08X\n", ioasc);
1862 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
1874 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET ||
1877 } else if (!ioasc) {
1893 "Host RCB(LDN) failed with IOASC: 0x%08X\n", ioasc);
2074 cmd->ioa_cb->ioasa.ioasc =
2595 u32 ioasc = le32_to_cpu(ioasa->ioasc);
2602 ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC &&
2606 sense_buf[1] = PMCRAID_IOASC_SENSE_KEY(ioasc);
2607 sense_buf[2] = PMCRAID_IOASC_SENSE_CODE(ioasc);
2608 sense_buf[3] = PMCRAID_IOASC_SENSE_QUAL(ioasc);
2630 sense_buf[2] = PMCRAID_IOASC_SENSE_KEY(ioasc);
2631 sense_buf[12] = PMCRAID_IOASC_SENSE_CODE(ioasc);
2632 sense_buf[13] = PMCRAID_IOASC_SENSE_QUAL(ioasc);
2634 if (ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC) {
2668 u32 ioasc = le32_to_cpu(ioasa->ioasc);
2669 u32 masked_ioasc = ioasc & PMCRAID_IOASC_SENSE_MASK;
2689 pmcraid_ioasc_logger(ioasc, cmd);
2720 scsi_cmd->result |= PMCRAID_IOASC_SENSE_STATUS(ioasc);
2726 if (PMCRAID_IOASC_SENSE_STATUS(ioasc) !=
2728 PMCRAID_IOASC_SENSE_STATUS(ioasc) != SAM_STAT_ACA_ACTIVE)
2758 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR)
2789 u32 ioasc;
2864 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
2866 /* set the return value based on the returned ioasc */
2867 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS;
2875 * @ioasc: ioasc either returned by IOA or set by driver itself.
2886 static int _pmcraid_io_done(struct pmcraid_cmd *cmd, int reslen, int ioasc)
2893 pmcraid_info("response(%d) CDB[0] = %x ioasc:result: %x:%x\n",
2896 ioasc, scsi_cmd->result);
2898 if (PMCRAID_IOASC_SENSE_KEY(ioasc) != 0)
2923 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
2926 if (_pmcraid_io_done(cmd, reslen, ioasc) == 0)
2987 u32 ioasc;
2992 ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc);
2999 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET ||
3000 ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED) {
3001 if (ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED)
3003 ioasc = 0;
3008 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS;
3747 u32 ioasc;
3936 ioasc = cancel_cmd->ioa_cb->ioasa.ioasc;
3945 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET ||
3946 PMCRAID_IOASC_SENSE_KEY(ioasc) == 0x00) {
3947 if (ioasc != PMCRAID_IOASC_GC_IOARCB_NOTFOUND)