ioasc 172 drivers/scsi/cxlflash/main.c if (unlikely(cmd->sa.ioasc)) ioasc 178 drivers/scsi/cxlflash/main.c __func__, scp, scp->result, cmd->sa.ioasc); ioasc 408 drivers/scsi/cxlflash/main.c if (unlikely(cmd->sa.ioasc != 0)) { ioasc 410 drivers/scsi/cxlflash/main.c __func__, cmd->rcb.cdb[0], cmd->sa.ioasc); ioasc 529 drivers/scsi/cxlflash/main.c } else if (cmd->sa.ioasc) { ioasc 531 drivers/scsi/cxlflash/main.c __func__, cmd->sa.ioasc); ioasc 626 drivers/scsi/cxlflash/main.c cmd->sa.ioasc = 0; ioasc 3377 drivers/scsi/cxlflash/main.c __func__, rc, asa.ioasc, asa.afu_extra); ioasc 3466 drivers/scsi/cxlflash/main.c __func__, rc, asa.ioasc, asa.afu_extra); ioasc 171 drivers/scsi/cxlflash/sislite.h u32 ioasc; ioasc 662 drivers/scsi/ipr.c ioasa->hdr.ioasc = 0; ioasc 916 drivers/scsi/ipr.c ipr_cmd->s.ioasa.hdr.ioasc = ioasc 1502 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 1507 drivers/scsi/ipr.c if (ioasc) { ioasc 1508 drivers/scsi/ipr.c if (ioasc != IPR_IOASC_IOA_WAS_RESET && ioasc 1509 drivers/scsi/ipr.c ioasc != IPR_IOASC_ABORTED_CMD_TERM_BY_HOST) ioasc 1511 drivers/scsi/ipr.c "Host RCB failed with IOASC: 0x%08X\n", ioasc); ioasc 2484 drivers/scsi/ipr.c static u32 ipr_get_error(u32 ioasc) ioasc 2489 drivers/scsi/ipr.c if (ipr_error_table[i].ioasc == (ioasc & IPR_IOASC_IOASC_MASK)) ioasc 2508 drivers/scsi/ipr.c u32 ioasc; ioasc 2519 drivers/scsi/ipr.c ioasc = be32_to_cpu(hostrcb->hcam.u.error64.fd_ioasc); ioasc 2521 drivers/scsi/ipr.c ioasc = be32_to_cpu(hostrcb->hcam.u.error.fd_ioasc); ioasc 2523 drivers/scsi/ipr.c if (!ioa_cfg->sis64 && (ioasc == IPR_IOASC_BUS_WAS_RESET || ioasc 2524 drivers/scsi/ipr.c ioasc == IPR_IOASC_BUS_WAS_RESET_BY_OTHER)) { ioasc 2530 drivers/scsi/ipr.c error_index = ipr_get_error(ioasc); ioasc 2535 drivers/scsi/ipr.c if (ioasc == IPR_IOASC_HW_CMD_FAILED && ioasc 2640 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 2651 drivers/scsi/ipr.c if (!ioasc) { ioasc 2655 drivers/scsi/ipr.c } else if (ioasc != IPR_IOASC_IOA_WAS_RESET && ioasc 2656 drivers/scsi/ipr.c ioasc != IPR_IOASC_ABORTED_CMD_TERM_BY_HOST) { ioasc 2658 drivers/scsi/ipr.c "Host RCB failed with IOASC: 0x%08X\n", ioasc); ioasc 5222 drivers/scsi/ipr.c u32 ioasc; ioasc 5245 drivers/scsi/ipr.c ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 5247 drivers/scsi/ipr.c if (ipr_is_gata(res) && res->sata_port && ioasc != IPR_IOASC_IOA_WAS_RESET) { ioasc 5257 drivers/scsi/ipr.c return IPR_IOASC_SENSE_KEY(ioasc) ? -EIO : 0; ioasc 5497 drivers/scsi/ipr.c u32 ioasc, int_reg; ioasc 5551 drivers/scsi/ipr.c ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 5557 drivers/scsi/ipr.c if (ioasc == IPR_IOASC_BUS_WAS_RESET || ioasc == IPR_IOASC_SYNC_REQUIRED) { ioasc 5558 drivers/scsi/ipr.c ioasc = 0; ioasc 5567 drivers/scsi/ipr.c return IPR_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS; ioasc 5717 drivers/scsi/ipr.c u32 ioasc; ioasc 5743 drivers/scsi/ipr.c ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 5745 drivers/scsi/ipr.c ipr_trc_hook(ipr_cmd, IPR_TRACE_FINISH, ioasc); ioasc 6036 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 6038 drivers/scsi/ipr.c if (IPR_IOASC_SENSE_KEY(ioasc) > 0) { ioasc 6041 drivers/scsi/ipr.c "Request Sense failed with IOASC: 0x%08X\n", ioasc); ioasc 6097 drivers/scsi/ipr.c ioasa->hdr.ioasc = 0; ioasc 6123 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 6125 drivers/scsi/ipr.c if (IPR_IOASC_SENSE_KEY(ioasc) > 0) { ioasc 6219 drivers/scsi/ipr.c u32 ioasc, fd_ioasc; ioasc 6224 drivers/scsi/ipr.c ioasc = be32_to_cpu(ioasa->hdr.ioasc) & IPR_IOASC_IOASC_MASK; ioasc 6227 drivers/scsi/ipr.c if (0 == ioasc) ioasc 6233 drivers/scsi/ipr.c if (ioasc == IPR_IOASC_BUS_WAS_RESET && fd_ioasc) ioasc 6236 drivers/scsi/ipr.c error_index = ipr_get_error(ioasc); ioasc 6283 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ioasa->hdr.ioasc); ioasc 6287 drivers/scsi/ipr.c if (ioasc >= IPR_FIRST_DRIVER_IOASC) ioasc 6293 drivers/scsi/ipr.c ioasc == IPR_IOASC_MED_DO_NOT_REALLOC && ioasc 6296 drivers/scsi/ipr.c sense_buf[1] = IPR_IOASC_SENSE_KEY(ioasc); ioasc 6297 drivers/scsi/ipr.c sense_buf[2] = IPR_IOASC_SENSE_CODE(ioasc); ioasc 6298 drivers/scsi/ipr.c sense_buf[3] = IPR_IOASC_SENSE_QUAL(ioasc); ioasc 6320 drivers/scsi/ipr.c sense_buf[2] = IPR_IOASC_SENSE_KEY(ioasc); ioasc 6321 drivers/scsi/ipr.c sense_buf[12] = IPR_IOASC_SENSE_CODE(ioasc); ioasc 6322 drivers/scsi/ipr.c sense_buf[13] = IPR_IOASC_SENSE_QUAL(ioasc); ioasc 6325 drivers/scsi/ipr.c if ((IPR_IOASC_SENSE_KEY(ioasc) == 0x05) && ioasc 6330 drivers/scsi/ipr.c if (IPR_IOASC_SENSE_CODE(ioasc) == 0x24) ioasc 6342 drivers/scsi/ipr.c if (ioasc == IPR_IOASC_MED_DO_NOT_REALLOC) { ioasc 6405 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 6406 drivers/scsi/ipr.c u32 masked_ioasc = ioasc & IPR_IOASC_IOASC_MASK; ioasc 6461 drivers/scsi/ipr.c scsi_cmd->result |= IPR_IOASC_SENSE_STATUS(ioasc); ioasc 6462 drivers/scsi/ipr.c if (IPR_IOASC_SENSE_STATUS(ioasc) == SAM_STAT_CHECK_CONDITION) { ioasc 6483 drivers/scsi/ipr.c if (IPR_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) ioasc 6511 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 6516 drivers/scsi/ipr.c if (likely(IPR_IOASC_SENSE_KEY(ioasc) == 0)) { ioasc 6869 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 6883 drivers/scsi/ipr.c if (IPR_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) ioasc 7626 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 7630 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[0], ioasc); ioasc 7650 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 7652 drivers/scsi/ipr.c if (ioasc == IPR_IOASC_IR_INVALID_REQ_TYPE_OR_PKT) { ioasc 7740 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 7742 drivers/scsi/ipr.c if (ioasc == IPR_IOASC_IR_INVALID_REQ_TYPE_OR_PKT) { ioasc 7916 drivers/scsi/ipr.c u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 7918 drivers/scsi/ipr.c if (ioasc == IPR_IOASC_IR_INVALID_REQ_TYPE_OR_PKT) ioasc 8535 drivers/scsi/ipr.c u32 ioasc; ioasc 8575 drivers/scsi/ipr.c ioasc = be32_to_cpu(hostrcb->hcam.u.error.fd_ioasc); ioasc 8576 drivers/scsi/ipr.c if (ioasc == IPR_IOASC_NR_IOA_RESET_REQUIRED && ioasc 8665 drivers/scsi/ipr.c ipr_cmd->s.ioasa.hdr.ioasc = cpu_to_be32(IPR_IOASC_PCI_ACCESS_ERROR); ioasc 8755 drivers/scsi/ipr.c ipr_cmd->s.ioasa.hdr.ioasc = cpu_to_be32(IPR_IOASC_PCI_ACCESS_ERROR); ioasc 9198 drivers/scsi/ipr.c u32 rc, ioasc; ioasc 9202 drivers/scsi/ipr.c ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); ioasc 9214 drivers/scsi/ipr.c if (IPR_IOASC_SENSE_KEY(ioasc)) { ioasc 689 drivers/scsi/ipr.h __be32 ioasc; ioasc 690 drivers/scsi/ipr.h #define IPR_IOASC_SENSE_KEY(ioasc) ((ioasc) >> 24) ioasc 691 drivers/scsi/ipr.h #define IPR_IOASC_SENSE_CODE(ioasc) (((ioasc) & 0x00ff0000) >> 16) ioasc 692 drivers/scsi/ipr.h #define IPR_IOASC_SENSE_QUAL(ioasc) (((ioasc) & 0x0000ff00) >> 8) ioasc 693 drivers/scsi/ipr.h #define IPR_IOASC_SENSE_STATUS(ioasc) ((ioasc) & 0x000000ff) ioasc 1441 drivers/scsi/ipr.h u32 ioasc; ioasc 1731 drivers/scsi/ipr.h u32 ioasc; ioasc 324 drivers/scsi/pmcraid.c cmd->ioa_cb->ioasa.ioasc = 0; ioasc 763 drivers/scsi/pmcraid.c le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); ioasc 801 drivers/scsi/pmcraid.c le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); ioasc 825 drivers/scsi/pmcraid.c u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); ioasc 827 drivers/scsi/pmcraid.c if (PMCRAID_IOASC_SENSE_KEY(ioasc) > 0) { ioasc 831 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], ioasc); ioasc 941 drivers/scsi/pmcraid.c le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); ioasc 977 drivers/scsi/pmcraid.c u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); ioasc 984 drivers/scsi/pmcraid.c if (ioasc) { ioasc 985 drivers/scsi/pmcraid.c pmcraid_err("IOA Inquiry failed with %x\n", ioasc); ioasc 1275 drivers/scsi/pmcraid.c le32_to_cpu(cmd->ioa_cb->ioasa.ioasc)); ioasc 1660 drivers/scsi/pmcraid.c static struct pmcraid_ioasc_error *pmcraid_get_error_info(u32 ioasc) ioasc 1664 drivers/scsi/pmcraid.c if (pmcraid_ioasc_error_table[i].ioasc_code == ioasc) ioasc 1675 drivers/scsi/pmcraid.c static void pmcraid_ioasc_logger(u32 ioasc, struct pmcraid_cmd *cmd) ioasc 1677 drivers/scsi/pmcraid.c struct pmcraid_ioasc_error *error_info = pmcraid_get_error_info(ioasc); ioasc 1687 drivers/scsi/pmcraid.c ioasc, error_info->error_string); ioasc 1701 drivers/scsi/pmcraid.c u32 ioasc; ioasc 1723 drivers/scsi/pmcraid.c ioasc = le32_to_cpu(hcam_ldn->error_log.fd_ioasc); ioasc 1725 drivers/scsi/pmcraid.c if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET || ioasc 1726 drivers/scsi/pmcraid.c ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET_BY_OTHER) { ioasc 1750 drivers/scsi/pmcraid.c u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); ioasc 1760 drivers/scsi/pmcraid.c if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET || ioasc 1763 drivers/scsi/pmcraid.c } else if (ioasc) { ioasc 1765 drivers/scsi/pmcraid.c "Host RCB (CCN) failed with IOASC: 0x%08X\n", ioasc); ioasc 1789 drivers/scsi/pmcraid.c u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); ioasc 1801 drivers/scsi/pmcraid.c if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET || ioasc 1804 drivers/scsi/pmcraid.c } else if (!ioasc) { ioasc 1820 drivers/scsi/pmcraid.c "Host RCB(LDN) failed with IOASC: 0x%08X\n", ioasc); ioasc 2000 drivers/scsi/pmcraid.c cmd->ioa_cb->ioasa.ioasc = ioasc 2516 drivers/scsi/pmcraid.c u32 ioasc = le32_to_cpu(ioasa->ioasc); ioasc 2523 drivers/scsi/pmcraid.c ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC && ioasc 2527 drivers/scsi/pmcraid.c sense_buf[1] = PMCRAID_IOASC_SENSE_KEY(ioasc); ioasc 2528 drivers/scsi/pmcraid.c sense_buf[2] = PMCRAID_IOASC_SENSE_CODE(ioasc); ioasc 2529 drivers/scsi/pmcraid.c sense_buf[3] = PMCRAID_IOASC_SENSE_QUAL(ioasc); ioasc 2551 drivers/scsi/pmcraid.c sense_buf[2] = PMCRAID_IOASC_SENSE_KEY(ioasc); ioasc 2552 drivers/scsi/pmcraid.c sense_buf[12] = PMCRAID_IOASC_SENSE_CODE(ioasc); ioasc 2553 drivers/scsi/pmcraid.c sense_buf[13] = PMCRAID_IOASC_SENSE_QUAL(ioasc); ioasc 2555 drivers/scsi/pmcraid.c if (ioasc == PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC) { ioasc 2589 drivers/scsi/pmcraid.c u32 ioasc = le32_to_cpu(ioasa->ioasc); ioasc 2590 drivers/scsi/pmcraid.c u32 masked_ioasc = ioasc & PMCRAID_IOASC_SENSE_MASK; ioasc 2610 drivers/scsi/pmcraid.c pmcraid_ioasc_logger(ioasc, cmd); ioasc 2641 drivers/scsi/pmcraid.c scsi_cmd->result |= PMCRAID_IOASC_SENSE_STATUS(ioasc); ioasc 2647 drivers/scsi/pmcraid.c if (PMCRAID_IOASC_SENSE_STATUS(ioasc) != ioasc 2649 drivers/scsi/pmcraid.c PMCRAID_IOASC_SENSE_STATUS(ioasc) != SAM_STAT_ACA_ACTIVE) ioasc 2679 drivers/scsi/pmcraid.c if (PMCRAID_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) ioasc 2710 drivers/scsi/pmcraid.c u32 ioasc; ioasc 2785 drivers/scsi/pmcraid.c ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); ioasc 2788 drivers/scsi/pmcraid.c return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS; ioasc 2807 drivers/scsi/pmcraid.c static int _pmcraid_io_done(struct pmcraid_cmd *cmd, int reslen, int ioasc) ioasc 2817 drivers/scsi/pmcraid.c ioasc, scsi_cmd->result); ioasc 2819 drivers/scsi/pmcraid.c if (PMCRAID_IOASC_SENSE_KEY(ioasc) != 0) ioasc 2844 drivers/scsi/pmcraid.c u32 ioasc = le32_to_cpu(cmd->ioa_cb->ioasa.ioasc); ioasc 2847 drivers/scsi/pmcraid.c if (_pmcraid_io_done(cmd, reslen, ioasc) == 0) ioasc 2908 drivers/scsi/pmcraid.c u32 ioasc; ioasc 2913 drivers/scsi/pmcraid.c ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc); ioasc 2920 drivers/scsi/pmcraid.c if (ioasc == PMCRAID_IOASC_UA_BUS_WAS_RESET || ioasc 2921 drivers/scsi/pmcraid.c ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED) { ioasc 2922 drivers/scsi/pmcraid.c if (ioasc == PMCRAID_IOASC_NR_SYNC_REQUIRED) ioasc 2924 drivers/scsi/pmcraid.c ioasc = 0; ioasc 2929 drivers/scsi/pmcraid.c return PMCRAID_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS; ioasc 3585 drivers/scsi/pmcraid.c u32 ioasc; ioasc 3760 drivers/scsi/pmcraid.c ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc); ioasc 3769 drivers/scsi/pmcraid.c if (ioasc == PMCRAID_IOASC_IOA_WAS_RESET || ioasc 3770 drivers/scsi/pmcraid.c PMCRAID_IOASC_SENSE_KEY(ioasc) == 0x00) { ioasc 3771 drivers/scsi/pmcraid.c if (ioasc != PMCRAID_IOASC_GC_IOARCB_NOTFOUND) ioasc 154 drivers/scsi/pmcraid.h #define PMCRAID_IOASC_SENSE_KEY(ioasc) ((ioasc) >> 24) ioasc 155 drivers/scsi/pmcraid.h #define PMCRAID_IOASC_SENSE_CODE(ioasc) (((ioasc) & 0x00ff0000) >> 16) ioasc 156 drivers/scsi/pmcraid.h #define PMCRAID_IOASC_SENSE_QUAL(ioasc) (((ioasc) & 0x0000ff00) >> 8) ioasc 157 drivers/scsi/pmcraid.h #define PMCRAID_IOASC_SENSE_STATUS(ioasc) ((ioasc) & 0x000000ff) ioasc 283 drivers/scsi/pmcraid.h __le32 ioasc;