Lines Matching refs:ioc_status

226 	U32 ioc_status;  in mpi3mr_check_rh_fault_ioc()  local
233 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_check_rh_fault_ioc()
234 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY) || in mpi3mr_check_rh_fault_ioc()
235 (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT)) { in mpi3mr_check_rh_fault_ioc()
537 if ((sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_delete_op_reply_queue()
541 (sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_delete_op_reply_queue()
682 if ((sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_create_op_reply_queue()
686 (sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_create_op_reply_queue()
831 if ((sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_create_op_req_queue()
835 (sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_create_op_req_queue()
1109 U32 ioc_status, code, code1, code2, code3; in mpi3mr_print_fault_info() local
1111 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_print_fault_info()
1113 if (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT) { in mpi3mr_print_fault_info()
1126 U32 ioc_status, ioc_control; in mpi3mr_get_iocstate() local
1129 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_get_iocstate()
1134 if (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT) in mpi3mr_get_iocstate()
1137 ready = (ioc_status & MPI3_SYSIF_IOC_STATUS_READY); in mpi3mr_get_iocstate()
1152 U32 ioc_status; in mpi3mr_clear_resethistory() local
1154 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_clear_resethistory()
1155 if (ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY) in mpi3mr_clear_resethistory()
1156 mpi3mr_regwrite(sc, MPI3_SYSIF_IOC_STATUS_OFFSET, ioc_status); in mpi3mr_clear_resethistory()
1172 U32 ioc_config, timeout, ioc_status, scratch_pad0; in mpi3mr_mur_ioc() local
1193 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_mur_ioc()
1194 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY)) { in mpi3mr_mur_ioc()
1198 if (!((ioc_status & MPI3_SYSIF_IOC_STATUS_READY) || in mpi3mr_mur_ioc()
1199 (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT) || in mpi3mr_mur_ioc()
1208 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_mur_ioc()
1212 !retval ? "successful":"failed", ioc_status, ioc_config); in mpi3mr_mur_ioc()
1390 mpi3mr_soft_reset_success(U32 ioc_status, U32 ioc_config) in mpi3mr_soft_reset_success() argument
1392 if (!((ioc_status & MPI3_SYSIF_IOC_STATUS_READY) || in mpi3mr_soft_reset_success()
1393 (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT) || in mpi3mr_soft_reset_success()
1409 U32 ioc_status) in mpi3mr_diagfault_success() argument
1411 if (!(ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT)) in mpi3mr_diagfault_success()
1528 if ((sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_issue_iocfacts()
1532 (sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_issue_iocfacts()
2047 if ((GET_IOC_STATUS(sc->init_cmds.ioc_status)) != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_print_fw_pkg_ver()
2050 GET_IOC_STATUS(sc->init_cmds.ioc_status), sc->init_cmds.ioc_loginfo); in mpi3mr_print_fw_pkg_ver()
2203 if ((sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_issue_iocinit()
2207 (sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_issue_iocinit()
2388 if ((sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_issue_event_notification()
2392 (sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_issue_event_notification()
2475 if ((sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_process_event_ack()
2479 (sc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_process_event_ack()
2714 U32 ioc_status, ioc_control, i, timeout; in mpi3mr_initialize_ioc() local
2721 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_initialize_ioc()
2726 "ioc_info: 0x%lx\n", ioc_status, ioc_control, ioc_info); in mpi3mr_initialize_ioc()
3064 U32 fault, host_diagnostic, ioc_status; in mpi3mr_watchdog_thread() local
3091 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_watchdog_thread()
3093 if (ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY) { in mpi3mr_watchdog_thread()
3500 __func__, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_iou()
3502 if (drv_cmd->ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_dev_rmhs_complete_iou()
3576 sc->name, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_tm()
3717 if (drv_cmd->ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_complete_evt_ack()
3720 (drv_cmd->ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_complete_evt_ack()
4279 U16 ioc_status = MPI3_IOCSTATUS_SUCCESS; in mpi3mr_process_admin_reply_desc() local
4296 ioc_status = status_desc->IOCStatus; in mpi3mr_process_admin_reply_desc()
4297 if (ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_process_admin_reply_desc()
4299 ioc_status &= MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_process_admin_reply_desc()
4308 ioc_status = def_reply->IOCStatus; in mpi3mr_process_admin_reply_desc()
4309 if (ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_process_admin_reply_desc()
4311 ioc_status &= MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_process_admin_reply_desc()
4366 cmdptr->ioc_status = ioc_status; in mpi3mr_process_admin_reply_desc()
4483 U16 ioc_status = MPI3_IOCSTATUS_SUCCESS; in mpi3mr_process_op_reply_desc() local
4511 ioc_status = status_desc->IOCStatus; in mpi3mr_process_op_reply_desc()
4512 if (ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_process_op_reply_desc()
4514 ioc_status &= MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_process_op_reply_desc()
4529 ioc_status = scsi_reply->IOCStatus; in mpi3mr_process_op_reply_desc()
4538 if (ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_process_op_reply_desc()
4540 ioc_status &= MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_process_op_reply_desc()
4677 if (ioc_status == MPI3_IOCSTATUS_SCSI_DATA_UNDERRUN in mpi3mr_process_op_reply_desc()
4681 ioc_status = MPI3_IOCSTATUS_SUCCESS; in mpi3mr_process_op_reply_desc()
4702 switch (ioc_status) { in mpi3mr_process_op_reply_desc()
4832 ioc_status, ioc_loginfo, scsi_status, scsi_state, resp_data); in mpi3mr_process_op_reply_desc()
5741 U32 ioc_status; in mpi3mr_clear_reset_history() local
5743 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_clear_reset_history()
5744 if (ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY) in mpi3mr_clear_reset_history()
5745 mpi3mr_regwrite(sc, MPI3_SYSIF_IOC_STATUS_OFFSET, ioc_status); in mpi3mr_clear_reset_history()
5785 U32 host_diagnostic, ioc_status, ioc_config, scratch_pad0; in mpi3mr_issue_reset() local
5848 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_issue_reset()
5849 if (ioc_status & in mpi3mr_issue_reset()
5853 if (mpi3mr_soft_reset_success(ioc_status, in mpi3mr_issue_reset()
5864 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_issue_reset()
5865 if (mpi3mr_diagfault_success(sc, ioc_status)) { in mpi3mr_issue_reset()
5876 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_issue_reset()
5881 !retval ? "successful":"failed", ioc_status, in mpi3mr_issue_reset()
6059 U32 ioc_config, ioc_status; in mpi3mr_issue_ioc_shutdown() local
6069 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_issue_ioc_shutdown()
6070 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_SHUTDOWN_MASK) in mpi3mr_issue_ioc_shutdown()
6086 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_issue_ioc_shutdown()
6087 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_SHUTDOWN_MASK) in mpi3mr_issue_ioc_shutdown()
6096 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT)) { in mpi3mr_issue_ioc_shutdown()
6123 ioc_status = mpi3mr_regread(sc, MPI3_SYSIF_IOC_STATUS_OFFSET); in mpi3mr_issue_ioc_shutdown()
6127 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_SHUTDOWN_MASK) in mpi3mr_issue_ioc_shutdown()
6135 (!retval)?"successful":"failed", ioc_status, in mpi3mr_issue_ioc_shutdown()