Lines Matching defs:ioasc
324 cmd->ioa_cb->ioasa.ioasc = 0;
758 pmcraid_info("response internal cmd CDB[0] = %x ioasc = %x\n",
760 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
796 pmcraid_info("response internal cmd CDB[0] = %x ioasc = %x\n",
798 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
822 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
824 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > 0) {
828 cmd->ioa_cb->ioarcb.cdb[0], ioasc);
936 pmcraid_info("response for Cancel CCN CDB[0] = %x ioasc = %x\n",
938 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
973 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
980 if (ioasc) {
981 pmcraid_err("IOA Inquiry failed with %x\n", ioasc);
1269 pmcraid_info("response for Cancel LDN CDB[0] = %x ioasc = %x\n",
1271 le32_to_cpu(cmd->ioa_cb->ioasa.ioasc));
1649 * pmcraid_get_error_info - return error string for an ioasc
1650 * @ioasc: ioasc code
1654 static struct pmcraid_ioasc_error *pmcraid_get_error_info(u32 ioasc)
1658 if (pmcraid_ioasc_error_table[i].ioasc_code == ioasc)
1666 * @ioasc: ioasc code
1667 * @cmd: pointer to command that resulted in 'ioasc'
1669 static void pmcraid_ioasc_logger(u32 ioasc, struct pmcraid_cmd *cmd)
1671 struct pmcraid_ioasc_error *error_info = pmcraid_get_error_info(ioasc);
1681 ioasc, error_info->error_string);
1695 u32 ioasc;
1717 ioasc = le32_to_cpu(hcam_ldn->error_log.fd_ioasc);
1719 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET ||
1720 ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET_BY_OTHER) {
1744 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
1754 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET ||
1757 } else if (ioasc) {
1759 "Host RCB (CCN) failed with IOASC: 0x%08X\n", ioasc);
1782 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
1794 if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET ||
1797 } else if (!ioasc) {
1813 "Host RCB(LDN) failed with IOASC: 0x%08X\n", ioasc);
1993 cmd->ioa_cb->ioasa.ioasc =
2509 u32 ioasc = le32_to_cpu(ioasa->ioasc);
2516 ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC &&
2520 sense_buf[1] = PMCRAID_IOASC_SENSE_KEY(ioasc);
2521 sense_buf[2] = PMCRAID_IOASC_SENSE_CODE(ioasc);
2522 sense_buf[3] = PMCRAID_IOASC_SENSE_QUAL(ioasc);
2544 sense_buf[2] = PMCRAID_IOASC_SENSE_KEY(ioasc);
2545 sense_buf[12] = PMCRAID_IOASC_SENSE_CODE(ioasc);
2546 sense_buf[13] = PMCRAID_IOASC_SENSE_QUAL(ioasc);
2548 if (ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC) {
2582 u32 ioasc = le32_to_cpu(ioasa->ioasc);
2583 u32 masked_ioasc = ioasc & PMCRAID_IOASC_SENSE_MASK;
2603 pmcraid_ioasc_logger(ioasc, cmd);
2634 scsi_cmd->result |= PMCRAID_IOASC_SENSE_STATUS(ioasc);
2640 if (PMCRAID_IOASC_SENSE_STATUS(ioasc) !=
2642 PMCRAID_IOASC_SENSE_STATUS(ioasc) != SAM_STAT_ACA_ACTIVE)
2672 if (PMCRAID_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR)
2703 u32 ioasc;
2778 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
2780 /* set the return value based on the returned ioasc */
2781 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS;
2789 * @ioasc: ioasc either returned by IOA or set by driver itself.
2800 static int _pmcraid_io_done(struct pmcraid_cmd *cmd, int reslen, int ioasc)
2807 pmcraid_info("response(%d) CDB[0] = %x ioasc:result: %x:%x\n",
2810 ioasc, scsi_cmd->result);
2812 if (PMCRAID_IOASC_SENSE_KEY(ioasc) != 0)
2837 u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc);
2840 if (_pmcraid_io_done(cmd, reslen, ioasc) == 0)
2899 u32 ioasc;
2904 ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc);
2911 if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET ||
2912 ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED) {
2913 if (ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED)
2915 ioasc = 0;
2920 return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS;