Lines Matching refs:ioasc
599 ioasa->hdr.ioasc = 0; in ipr_reinit_ipr_cmnd()
780 ipr_cmd->s.ioasa.hdr.ioasc = cpu_to_be32(IPR_IOASC_IOA_WAS_RESET); in ipr_fail_all_ops()
1330 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_process_ccn() local
1335 if (ioasc) { in ipr_process_ccn()
1336 if (ioasc != IPR_IOASC_IOA_WAS_RESET) in ipr_process_ccn()
1338 "Host RCB failed with IOASC: 0x%08X\n", ioasc); in ipr_process_ccn()
2247 static u32 ipr_get_error(u32 ioasc) in ipr_get_error() argument
2252 if (ipr_error_table[i].ioasc == (ioasc & IPR_IOASC_IOASC_MASK)) in ipr_get_error()
2271 u32 ioasc; in ipr_handle_log_data() local
2281 ioasc = be32_to_cpu(hostrcb->hcam.u.error64.fd_ioasc); in ipr_handle_log_data()
2283 ioasc = be32_to_cpu(hostrcb->hcam.u.error.fd_ioasc); in ipr_handle_log_data()
2285 if (!ioa_cfg->sis64 && (ioasc == IPR_IOASC_BUS_WAS_RESET || in ipr_handle_log_data()
2286 ioasc == IPR_IOASC_BUS_WAS_RESET_BY_OTHER)) { in ipr_handle_log_data()
2292 error_index = ipr_get_error(ioasc); in ipr_handle_log_data()
2370 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_process_error() local
2381 if (!ioasc) { in ipr_process_error()
2385 } else if (ioasc != IPR_IOASC_IOA_WAS_RESET) { in ipr_process_error()
2387 "Host RCB failed with IOASC: 0x%08X\n", ioasc); in ipr_process_error()
4669 u32 ioasc; in ipr_device_reset() local
4692 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_device_reset()
4694 if (ipr_is_gata(res) && res->sata_port && ioasc != IPR_IOASC_IOA_WAS_RESET) { in ipr_device_reset()
4704 return (IPR_IOASC_SENSE_KEY(ioasc) ? -EIO : 0); in ipr_device_reset()
4919 u32 ioasc, int_reg; in ipr_cancel_op() local
4966 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_cancel_op()
4972 if (ioasc == IPR_IOASC_BUS_WAS_RESET || ioasc == IPR_IOASC_SYNC_REQUIRED) { in ipr_cancel_op()
4973 ioasc = 0; in ipr_cancel_op()
4982 return (IPR_IOASC_SENSE_KEY(ioasc) ? FAILED : SUCCESS); in ipr_cancel_op()
5115 u32 ioasc; in ipr_isr() local
5147 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_isr()
5149 ipr_trc_hook(ipr_cmd, IPR_TRACE_FINISH, ioasc); in ipr_isr()
5353 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_erp_done() local
5355 if (IPR_IOASC_SENSE_KEY(ioasc) > 0) { in ipr_erp_done()
5358 "Request Sense failed with IOASC: 0x%08X\n", ioasc); in ipr_erp_done()
5392 ioasa->hdr.ioasc = 0; in ipr_reinit_ipr_cmnd_for_erp()
5418 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_erp_request_sense() local
5420 if (IPR_IOASC_SENSE_KEY(ioasc) > 0) { in ipr_erp_request_sense()
5494 u32 ioasc, fd_ioasc; in ipr_dump_ioasa() local
5499 ioasc = be32_to_cpu(ioasa->hdr.ioasc) & IPR_IOASC_IOASC_MASK; in ipr_dump_ioasa()
5502 if (0 == ioasc) in ipr_dump_ioasa()
5508 if (ioasc == IPR_IOASC_BUS_WAS_RESET && fd_ioasc) in ipr_dump_ioasa()
5511 error_index = ipr_get_error(ioasc); in ipr_dump_ioasa()
5558 u32 ioasc = be32_to_cpu(ioasa->hdr.ioasc); in ipr_gen_sense() local
5562 if (ioasc >= IPR_FIRST_DRIVER_IOASC) in ipr_gen_sense()
5568 ioasc == IPR_IOASC_MED_DO_NOT_REALLOC && in ipr_gen_sense()
5571 sense_buf[1] = IPR_IOASC_SENSE_KEY(ioasc); in ipr_gen_sense()
5572 sense_buf[2] = IPR_IOASC_SENSE_CODE(ioasc); in ipr_gen_sense()
5573 sense_buf[3] = IPR_IOASC_SENSE_QUAL(ioasc); in ipr_gen_sense()
5595 sense_buf[2] = IPR_IOASC_SENSE_KEY(ioasc); in ipr_gen_sense()
5596 sense_buf[12] = IPR_IOASC_SENSE_CODE(ioasc); in ipr_gen_sense()
5597 sense_buf[13] = IPR_IOASC_SENSE_QUAL(ioasc); in ipr_gen_sense()
5600 if ((IPR_IOASC_SENSE_KEY(ioasc) == 0x05) && in ipr_gen_sense()
5605 if (IPR_IOASC_SENSE_CODE(ioasc) == 0x24) in ipr_gen_sense()
5617 if (ioasc == IPR_IOASC_MED_DO_NOT_REALLOC) { in ipr_gen_sense()
5680 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_erp_start() local
5681 u32 masked_ioasc = ioasc & IPR_IOASC_IOASC_MASK; in ipr_erp_start()
5731 scsi_cmd->result |= IPR_IOASC_SENSE_STATUS(ioasc); in ipr_erp_start()
5732 if (IPR_IOASC_SENSE_STATUS(ioasc) == SAM_STAT_CHECK_CONDITION) { in ipr_erp_start()
5746 if (IPR_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) in ipr_erp_start()
5772 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_scsi_done() local
5776 if (likely(IPR_IOASC_SENSE_KEY(ioasc) == 0)) { in ipr_scsi_done()
6065 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_sata_done() local
6078 if (IPR_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) in ipr_sata_done()
6747 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_reset_cmd_failed() local
6751 ipr_cmd->ioarcb.cmd_pkt.cdb[0], ioasc); in ipr_reset_cmd_failed()
6771 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_reset_mode_sense_failed() local
6773 if (ioasc == IPR_IOASC_IR_INVALID_REQ_TYPE_OR_PKT) { in ipr_reset_mode_sense_failed()
6861 u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_reset_mode_sense_page24_failed() local
6863 if (ioasc == IPR_IOASC_IR_INVALID_REQ_TYPE_OR_PKT) { in ipr_reset_mode_sense_page24_failed()
7508 u32 ioasc; in ipr_get_unit_check_buffer() local
7548 ioasc = be32_to_cpu(hostrcb->hcam.u.error.fd_ioasc); in ipr_get_unit_check_buffer()
7549 if (ioasc == IPR_IOASC_NR_IOA_RESET_REQUIRED && in ipr_get_unit_check_buffer()
7602 ipr_cmd->s.ioasa.hdr.ioasc = cpu_to_be32(IPR_IOASC_PCI_ACCESS_ERROR); in ipr_reset_restore_cfg_space()
7701 ipr_cmd->s.ioasa.hdr.ioasc = cpu_to_be32(IPR_IOASC_PCI_ACCESS_ERROR); in ipr_reset_start_bist()
8001 u32 rc, ioasc; in ipr_reset_ioa_job() local
8005 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc); in ipr_reset_ioa_job()
8016 if (IPR_IOASC_SENSE_KEY(ioasc)) { in ipr_reset_ioa_job()