Lines Matching refs:ioasc

676 	ioasa->hdr.ioasc = 0;  in ipr_reinit_ipr_cmnd()
930 ipr_cmd->s.ioasa.hdr.ioasc = in ipr_fail_all_ops()
1516 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_process_ccn() local
1521 if (ioasc) { in ipr_process_ccn()
1522 if (ioasc != IPR_IOASC_IOA_WAS_RESET && in ipr_process_ccn()
1523 ioasc != IPR_IOASC_ABORTED_CMD_TERM_BY_HOST) in ipr_process_ccn()
1525 "Host RCB failed with IOASC: 0x%08X\n", ioasc); in ipr_process_ccn()
2498 static u32 ipr_get_error(u32 ioasc) in ipr_get_error() argument
2503 if (ipr_error_table[i].ioasc == (ioasc & IPR_IOASC_IOASC_MASK)) in ipr_get_error()
2522 u32 ioasc; in ipr_handle_log_data() local
2533 ioasc = be32_to_cpu(hostrcb->hcam.u.error64.fd_ioasc); in ipr_handle_log_data()
2535 ioasc = be32_to_cpu(hostrcb->hcam.u.error.fd_ioasc); in ipr_handle_log_data()
2537 if (!ioa_cfg->sis64 && (ioasc == IPR_IOASC_BUS_WAS_RESET || in ipr_handle_log_data()
2538 ioasc == IPR_IOASC_BUS_WAS_RESET_BY_OTHER)) { in ipr_handle_log_data()
2544 error_index = ipr_get_error(ioasc); in ipr_handle_log_data()
2549 if (ioasc == IPR_IOASC_HW_CMD_FAILED && in ipr_handle_log_data()
2654 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_process_error() local
2665 if (!ioasc) { in ipr_process_error()
2669 } else if (ioasc != IPR_IOASC_IOA_WAS_RESET && in ipr_process_error()
2670 ioasc != IPR_IOASC_ABORTED_CMD_TERM_BY_HOST) { in ipr_process_error()
2672 "Host RCB failed with IOASC: 0x%08X\n", ioasc); in ipr_process_error()
5233 u32 ioasc; in ipr_device_reset() local
5256 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_device_reset()
5258 if (ipr_is_gata(res) && res->sata_port && ioasc != IPR_IOASC_IOA_WAS_RESET) { in ipr_device_reset()
5268 return IPR_IOASC_SENSE_KEY(ioasc) ? -EIO : 0; in ipr_device_reset()
5508 u32 ioasc, int_reg; in ipr_cancel_op() local
5562 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_cancel_op()
5568 if (ioasc == IPR_IOASC_BUS_WAS_RESET || ioasc == IPR_IOASC_SYNC_REQUIRED) { in ipr_cancel_op()
5569 ioasc = 0; in ipr_cancel_op()
5578 return IPR_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS; in ipr_cancel_op()
5728 u32 ioasc; in ipr_process_hrrq() local
5754 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_process_hrrq()
5756 ipr_trc_hook(ipr_cmd, IPR_TRACE_FINISH, ioasc); in ipr_process_hrrq()
6047 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in __ipr_erp_done() local
6049 if (IPR_IOASC_SENSE_KEY(ioasc) > 0) { in __ipr_erp_done()
6052 "Request Sense failed with IOASC: 0x%08X\n", ioasc); in __ipr_erp_done()
6108 ioasa->hdr.ioasc = 0; in ipr_reinit_ipr_cmnd_for_erp()
6134 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in __ipr_erp_request_sense() local
6136 if (IPR_IOASC_SENSE_KEY(ioasc) > 0) { in __ipr_erp_request_sense()
6230 u32 ioasc, fd_ioasc; in ipr_dump_ioasa() local
6235 ioasc = be32_to_cpu(ioasa->hdr.ioasc) & IPR_IOASC_IOASC_MASK; in ipr_dump_ioasa()
6238 if (0 == ioasc) in ipr_dump_ioasa()
6244 if (ioasc == IPR_IOASC_BUS_WAS_RESET && fd_ioasc) in ipr_dump_ioasa()
6247 error_index = ipr_get_error(ioasc); in ipr_dump_ioasa()
6294 u32 ioasc = be32_to_cpu(ioasa->hdr.ioasc); in ipr_gen_sense() local
6298 if (ioasc >= IPR_FIRST_DRIVER_IOASC) in ipr_gen_sense()
6304 ioasc == IPR_IOASC_MED_DO_NOT_REALLOC && in ipr_gen_sense()
6307 sense_buf[1] = IPR_IOASC_SENSE_KEY(ioasc); in ipr_gen_sense()
6308 sense_buf[2] = IPR_IOASC_SENSE_CODE(ioasc); in ipr_gen_sense()
6309 sense_buf[3] = IPR_IOASC_SENSE_QUAL(ioasc); in ipr_gen_sense()
6331 sense_buf[2] = IPR_IOASC_SENSE_KEY(ioasc); in ipr_gen_sense()
6332 sense_buf[12] = IPR_IOASC_SENSE_CODE(ioasc); in ipr_gen_sense()
6333 sense_buf[13] = IPR_IOASC_SENSE_QUAL(ioasc); in ipr_gen_sense()
6336 if ((IPR_IOASC_SENSE_KEY(ioasc) == 0x05) && in ipr_gen_sense()
6341 if (IPR_IOASC_SENSE_CODE(ioasc) == 0x24) in ipr_gen_sense()
6353 if (ioasc == IPR_IOASC_MED_DO_NOT_REALLOC) { in ipr_gen_sense()
6416 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_erp_start() local
6417 u32 masked_ioasc = ioasc & IPR_IOASC_IOASC_MASK; in ipr_erp_start()
6472 scsi_cmd->result |= IPR_IOASC_SENSE_STATUS(ioasc); in ipr_erp_start()
6473 if (IPR_IOASC_SENSE_STATUS(ioasc) == SAM_STAT_CHECK_CONDITION) { in ipr_erp_start()
6494 if (IPR_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) in ipr_erp_start()
6522 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_scsi_done() local
6527 if (likely(IPR_IOASC_SENSE_KEY(ioasc) == 0)) { in ipr_scsi_done()
6880 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_sata_done() local
6894 if (IPR_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) in ipr_sata_done()
7637 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_reset_cmd_failed() local
7641 ipr_cmd->ioarcb.cmd_pkt.cdb[0], ioasc); in ipr_reset_cmd_failed()
7661 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_reset_mode_sense_failed() local
7663 if (ioasc == IPR_IOASC_IR_INVALID_REQ_TYPE_OR_PKT) { in ipr_reset_mode_sense_failed()
7751 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_reset_mode_sense_page24_failed() local
7753 if (ioasc == IPR_IOASC_IR_INVALID_REQ_TYPE_OR_PKT) { in ipr_reset_mode_sense_page24_failed()
7927 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_ioa_service_action_failed() local
7929 if (ioasc == IPR_IOASC_IR_INVALID_REQ_TYPE_OR_PKT) in ipr_ioa_service_action_failed()
8546 u32 ioasc; in ipr_get_unit_check_buffer() local
8586 ioasc = be32_to_cpu(hostrcb->hcam.u.error.fd_ioasc); in ipr_get_unit_check_buffer()
8587 if (ioasc == IPR_IOASC_NR_IOA_RESET_REQUIRED && in ipr_get_unit_check_buffer()
8676 ipr_cmd->s.ioasa.hdr.ioasc = cpu_to_be32(IPR_IOASC_PCI_ACCESS_ERROR); in ipr_reset_restore_cfg_space()
8766 ipr_cmd->s.ioasa.hdr.ioasc = cpu_to_be32(IPR_IOASC_PCI_ACCESS_ERROR); in ipr_reset_start_bist()
9209 u32 rc, ioasc; in ipr_reset_ioa_job() local
9213 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_reset_ioa_job()
9225 if (IPR_IOASC_SENSE_KEY(ioasc)) { in ipr_reset_ioa_job()