Lines Matching refs:ioc_status

344 	u16 ioc_status = MPI3_IOCSTATUS_SUCCESS;  in mpi3mr_process_admin_reply_desc()  local
361 ioc_status = le16_to_cpu(status_desc->ioc_status); in mpi3mr_process_admin_reply_desc()
362 if (ioc_status & in mpi3mr_process_admin_reply_desc()
365 ioc_status &= MPI3_REPLY_DESCRIPT_STATUS_IOCSTATUS_STATUS_MASK; in mpi3mr_process_admin_reply_desc()
374 ioc_status = le16_to_cpu(def_reply->ioc_status); in mpi3mr_process_admin_reply_desc()
375 if (ioc_status & in mpi3mr_process_admin_reply_desc()
378 ioc_status &= MPI3_REPLY_DESCRIPT_STATUS_IOCSTATUS_STATUS_MASK; in mpi3mr_process_admin_reply_desc()
398 cmdptr->ioc_status = ioc_status; in mpi3mr_process_admin_reply_desc()
999 u32 ioc_status, code, code1, code2, code3; in mpi3mr_print_fault_info() local
1001 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_print_fault_info()
1003 if (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT) { in mpi3mr_print_fault_info()
1026 u32 ioc_status, ioc_config; in mpi3mr_get_iocstate() local
1029 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_get_iocstate()
1034 if (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT) in mpi3mr_get_iocstate()
1037 ready = (ioc_status & MPI3_SYSIF_IOC_STATUS_READY); in mpi3mr_get_iocstate()
1061 u32 ioc_status; in mpi3mr_clear_reset_history() local
1063 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_clear_reset_history()
1064 if (ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY) in mpi3mr_clear_reset_history()
1065 writel(ioc_status, &mrioc->sysif_regs->ioc_status); in mpi3mr_clear_reset_history()
1081 u32 ioc_config, timeout, ioc_status; in mpi3mr_issue_and_process_mur() local
1097 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_issue_and_process_mur()
1098 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY)) { in mpi3mr_issue_and_process_mur()
1102 if (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT) { in mpi3mr_issue_and_process_mur()
1110 if (timeout && !((ioc_status & MPI3_SYSIF_IOC_STATUS_READY) || in mpi3mr_issue_and_process_mur()
1111 (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT) || in mpi3mr_issue_and_process_mur()
1116 (!retval) ? "successful" : "failed", ioc_status, ioc_config); in mpi3mr_issue_and_process_mur()
1198 u32 ioc_config, ioc_status, timeout; in mpi3mr_bring_ioc_ready() local
1203 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_bring_ioc_ready()
1207 ioc_status, ioc_config, base_info); in mpi3mr_bring_ioc_ready()
1322 mpi3mr_soft_reset_success(u32 ioc_status, u32 ioc_config) in mpi3mr_soft_reset_success() argument
1324 if (!((ioc_status & MPI3_SYSIF_IOC_STATUS_READY) || in mpi3mr_soft_reset_success()
1340 u32 ioc_status) in mpi3mr_diagfault_success() argument
1344 if (!(ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT)) in mpi3mr_diagfault_success()
1390 u32 host_diagnostic, ioc_status, ioc_config; in mpi3mr_issue_reset() local
1448 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_issue_reset()
1451 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY) in mpi3mr_issue_reset()
1452 && mpi3mr_soft_reset_success(ioc_status, ioc_config) in mpi3mr_issue_reset()
1464 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_issue_reset()
1465 if (mpi3mr_diagfault_success(mrioc, ioc_status)) { in mpi3mr_issue_reset()
1480 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_issue_reset()
1483 (!retval)?"successful":"failed", ioc_status, in mpi3mr_issue_reset()
1698 if ((mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_delete_op_reply_q()
1702 (mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_delete_op_reply_q()
1940 if ((mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_create_op_reply_q()
1944 (mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_create_op_reply_q()
2048 if ((mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_create_op_req_q()
2052 (mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_create_op_req_q()
2244 u32 ioc_status, host_diagnostic, timeout; in mpi3mr_check_rh_fault_ioc() local
2257 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_check_rh_fault_ioc()
2258 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY) || in mpi3mr_check_rh_fault_ioc()
2259 (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT)) { in mpi3mr_check_rh_fault_ioc()
2326 if ((mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_sync_timestamp()
2330 (mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_sync_timestamp()
2403 if ((mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_print_pkg_ver()
2445 u32 fault, host_diagnostic, ioc_status; in mpi3mr_watchdog_work() local
2476 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_watchdog_work()
2477 if (ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY) { in mpi3mr_watchdog_work()
2718 if ((mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_issue_iocfacts()
2722 (mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_issue_iocfacts()
3185 if ((mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_issue_iocinit()
3189 (mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_issue_iocinit()
3285 if ((mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_issue_event_notification()
3289 (mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_issue_event_notification()
3352 if ((mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK) in mpi3mr_process_event_ack()
3356 (mrioc->init_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK), in mpi3mr_process_event_ack()
3448 mrioc->scan_failed = drv_cmd->ioc_status; in mpi3mr_port_enable_complete()
3946 u32 pe_timeout, ioc_status; in mpi3mr_reinit_ioc() local
4060 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_reinit_ioc()
4061 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY) || in mpi3mr_reinit_ioc()
4062 (ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT)) { in mpi3mr_reinit_ioc()
4391 u32 ioc_config, ioc_status; in mpi3mr_issue_ioc_shutdown() local
4401 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_issue_ioc_shutdown()
4402 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_SHUTDOWN_MASK) in mpi3mr_issue_ioc_shutdown()
4418 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_issue_ioc_shutdown()
4419 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_SHUTDOWN_MASK) in mpi3mr_issue_ioc_shutdown()
4427 ioc_status = readl(&mrioc->sysif_regs->ioc_status); in mpi3mr_issue_ioc_shutdown()
4431 if ((ioc_status & MPI3_SYSIF_IOC_STATUS_SHUTDOWN_MASK) in mpi3mr_issue_ioc_shutdown()
4439 (!retval) ? "successful" : "failed", ioc_status, in mpi3mr_issue_ioc_shutdown()
4561 drv_cmd->ioc_status = 0; in mpi3mr_pel_wait_post()
4603 mrioc->pel_cmds.ioc_status = 0; in mpi3mr_pel_get_seqnum_post()
4643 u16 ioc_status, pe_log_status; in mpi3mr_pel_wait_complete() local
4649 ioc_status = drv_cmd->ioc_status & MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_pel_wait_complete()
4650 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_pel_wait_complete()
4652 __func__, ioc_status, drv_cmd->ioc_loginfo); in mpi3mr_pel_wait_complete()
4655 ioc_status, drv_cmd->ioc_loginfo); in mpi3mr_pel_wait_complete()
4723 u16 ioc_status; in mpi3mr_pel_get_seqnum_complete() local
4731 ioc_status = drv_cmd->ioc_status & MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_pel_get_seqnum_complete()
4732 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_pel_get_seqnum_complete()
4735 ioc_status, drv_cmd->ioc_loginfo); in mpi3mr_pel_get_seqnum_complete()
5016 struct mpi3_config_request *cfg_req, int timeout, u16 *ioc_status) in mpi3mr_post_cfg_req() argument
5030 mrioc->cfg_cmds.ioc_status = 0; in mpi3mr_post_cfg_req()
5054 *ioc_status = mrioc->cfg_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_post_cfg_req()
5055 if ((*ioc_status) != MPI3_IOCSTATUS_SUCCESS) in mpi3mr_post_cfg_req()
5058 *ioc_status, mrioc->cfg_cmds.ioc_loginfo); in mpi3mr_post_cfg_req()
5106 struct mpi3_config_page_header *cfg_hdr, int timeout, u16 *ioc_status, in mpi3mr_process_cfg_req() argument
5168 if (mpi3mr_post_cfg_req(mrioc, cfg_req, timeout, ioc_status)) in mpi3mr_process_cfg_req()
5172 if ((*ioc_status == MPI3_IOCSTATUS_SUCCESS) && in mpi3mr_process_cfg_req()
5204 int mpi3mr_cfg_get_dev_pg0(struct mpi3mr_ioc *mrioc, u16 *ioc_status, in mpi3mr_cfg_get_dev_pg0() argument
5222 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_get_dev_pg0()
5226 if (*ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_dev_pg0()
5228 *ioc_status); in mpi3mr_cfg_get_dev_pg0()
5236 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, dev_pg0, pg_sz)) { in mpi3mr_cfg_get_dev_pg0()
5263 int mpi3mr_cfg_get_sas_phy_pg0(struct mpi3mr_ioc *mrioc, u16 *ioc_status, in mpi3mr_cfg_get_sas_phy_pg0() argument
5282 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_get_sas_phy_pg0()
5286 if (*ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_sas_phy_pg0()
5288 *ioc_status); in mpi3mr_cfg_get_sas_phy_pg0()
5296 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, phy_pg0, pg_sz)) { in mpi3mr_cfg_get_sas_phy_pg0()
5322 int mpi3mr_cfg_get_sas_phy_pg1(struct mpi3mr_ioc *mrioc, u16 *ioc_status, in mpi3mr_cfg_get_sas_phy_pg1() argument
5341 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_get_sas_phy_pg1()
5345 if (*ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_sas_phy_pg1()
5347 *ioc_status); in mpi3mr_cfg_get_sas_phy_pg1()
5355 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, phy_pg1, pg_sz)) { in mpi3mr_cfg_get_sas_phy_pg1()
5382 int mpi3mr_cfg_get_sas_exp_pg0(struct mpi3mr_ioc *mrioc, u16 *ioc_status, in mpi3mr_cfg_get_sas_exp_pg0() argument
5401 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_get_sas_exp_pg0()
5405 if (*ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_sas_exp_pg0()
5407 *ioc_status); in mpi3mr_cfg_get_sas_exp_pg0()
5416 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, exp_pg0, pg_sz)) { in mpi3mr_cfg_get_sas_exp_pg0()
5442 int mpi3mr_cfg_get_sas_exp_pg1(struct mpi3mr_ioc *mrioc, u16 *ioc_status, in mpi3mr_cfg_get_sas_exp_pg1() argument
5461 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_get_sas_exp_pg1()
5465 if (*ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_sas_exp_pg1()
5467 *ioc_status); in mpi3mr_cfg_get_sas_exp_pg1()
5476 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, exp_pg1, pg_sz)) { in mpi3mr_cfg_get_sas_exp_pg1()
5502 int mpi3mr_cfg_get_enclosure_pg0(struct mpi3mr_ioc *mrioc, u16 *ioc_status, in mpi3mr_cfg_get_enclosure_pg0() argument
5521 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_get_enclosure_pg0()
5525 if (*ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_enclosure_pg0()
5527 *ioc_status); in mpi3mr_cfg_get_enclosure_pg0()
5535 MPI3MR_INTADMCMD_TIMEOUT, ioc_status, encl_pg0, pg_sz)) { in mpi3mr_cfg_get_enclosure_pg0()
5562 u16 ioc_status = 0; in mpi3mr_cfg_get_sas_io_unit_pg0() local
5575 MPI3MR_INTADMCMD_TIMEOUT, &ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_get_sas_io_unit_pg0()
5579 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_sas_io_unit_pg0()
5581 ioc_status); in mpi3mr_cfg_get_sas_io_unit_pg0()
5587 MPI3MR_INTADMCMD_TIMEOUT, &ioc_status, sas_io_unit_pg0, pg_sz)) { in mpi3mr_cfg_get_sas_io_unit_pg0()
5591 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_sas_io_unit_pg0()
5593 ioc_status); in mpi3mr_cfg_get_sas_io_unit_pg0()
5618 u16 ioc_status = 0; in mpi3mr_cfg_get_sas_io_unit_pg1() local
5631 MPI3MR_INTADMCMD_TIMEOUT, &ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_get_sas_io_unit_pg1()
5635 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_sas_io_unit_pg1()
5637 ioc_status); in mpi3mr_cfg_get_sas_io_unit_pg1()
5643 MPI3MR_INTADMCMD_TIMEOUT, &ioc_status, sas_io_unit_pg1, pg_sz)) { in mpi3mr_cfg_get_sas_io_unit_pg1()
5647 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_sas_io_unit_pg1()
5649 ioc_status); in mpi3mr_cfg_get_sas_io_unit_pg1()
5675 u16 ioc_status = 0; in mpi3mr_cfg_set_sas_io_unit_pg1() local
5687 MPI3MR_INTADMCMD_TIMEOUT, &ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_set_sas_io_unit_pg1()
5691 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_set_sas_io_unit_pg1()
5693 ioc_status); in mpi3mr_cfg_set_sas_io_unit_pg1()
5699 MPI3MR_INTADMCMD_TIMEOUT, &ioc_status, sas_io_unit_pg1, pg_sz)) { in mpi3mr_cfg_set_sas_io_unit_pg1()
5703 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_set_sas_io_unit_pg1()
5705 ioc_status); in mpi3mr_cfg_set_sas_io_unit_pg1()
5712 MPI3MR_INTADMCMD_TIMEOUT, &ioc_status, sas_io_unit_pg1, pg_sz)) { in mpi3mr_cfg_set_sas_io_unit_pg1()
5716 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_set_sas_io_unit_pg1()
5718 ioc_status); in mpi3mr_cfg_set_sas_io_unit_pg1()
5743 u16 ioc_status = 0; in mpi3mr_cfg_get_driver_pg1() local
5756 MPI3MR_INTADMCMD_TIMEOUT, &ioc_status, &cfg_hdr, sizeof(cfg_hdr))) { in mpi3mr_cfg_get_driver_pg1()
5760 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_driver_pg1()
5762 ioc_status); in mpi3mr_cfg_get_driver_pg1()
5768 MPI3MR_INTADMCMD_TIMEOUT, &ioc_status, driver_pg1, pg_sz)) { in mpi3mr_cfg_get_driver_pg1()
5772 if (ioc_status != MPI3_IOCSTATUS_SUCCESS) { in mpi3mr_cfg_get_driver_pg1()
5774 ioc_status); in mpi3mr_cfg_get_driver_pg1()