Lines Matching refs:alt_ioc
427 if (ioc->alt_ioc) in mpt_fault_reset_work()
428 ioc = ioc->alt_ioc; in mpt_fault_reset_work()
2004 if (ioc->alt_ioc) in mpt_attach()
2005 ioc->alt_ioc->alt_ioc = NULL; in mpt_attach()
2040 if (!ioc->alt_ioc) in mpt_attach()
2048 if (ioc->alt_ioc) in mpt_attach()
2049 ioc->alt_ioc->alt_ioc = NULL; in mpt_attach()
2305 if (ioc->alt_ioc) { in mpt_do_ioc_recovery()
2306 if (ioc->alt_ioc->active || in mpt_do_ioc_recovery()
2312 CHIPREG_WRITE32(&ioc->alt_ioc->chip->IntMask, in mpt_do_ioc_recovery()
2314 ioc->alt_ioc->active = 0; in mpt_do_ioc_recovery()
2327 if (reset_alt_ioc_active && ioc->alt_ioc) { in mpt_do_ioc_recovery()
2330 "alt_ioc reply irq re-enabled\n", ioc->alt_ioc->name)); in mpt_do_ioc_recovery()
2331 CHIPREG_WRITE32(&ioc->alt_ioc->chip->IntMask, MPI_HIM_DIM); in mpt_do_ioc_recovery()
2332 ioc->alt_ioc->active = 1; in mpt_do_ioc_recovery()
2346 if (hard_reset_done && reset_alt_ioc_active && ioc->alt_ioc) { in mpt_do_ioc_recovery()
2347 if ((rc = MakeIocReady(ioc->alt_ioc, 0, sleepFlag)) == 0) in mpt_do_ioc_recovery()
2352 ioc->alt_ioc->name); in mpt_do_ioc_recovery()
2371 if ((rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason)) != 0) { in mpt_do_ioc_recovery()
2377 rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason); in mpt_do_ioc_recovery()
2385 MptDisplayIocCapabilities(ioc->alt_ioc); in mpt_do_ioc_recovery()
2453 if (alt_ioc_ready && ((rc = PrimeIocFifos(ioc->alt_ioc)) != 0)) { in mpt_do_ioc_recovery()
2456 ioc->alt_ioc->name, rc); in mpt_do_ioc_recovery()
2462 if ((rc = SendIocInit(ioc->alt_ioc, sleepFlag)) != 0) { in mpt_do_ioc_recovery()
2467 ioc->alt_ioc->name, rc); in mpt_do_ioc_recovery()
2481 if (ioc->alt_ioc && ioc->alt_ioc->cached_fw) { in mpt_do_ioc_recovery()
2491 ioc->name, ioc->alt_ioc->name, ioc->alt_ioc->cached_fw)); in mpt_do_ioc_recovery()
2513 if (ioc->alt_ioc && alt_ioc_ready && !ioc->alt_ioc->facts.EventState) in mpt_do_ioc_recovery()
2514 rc = SendEventNotification(ioc->alt_ioc, 1, sleepFlag); in mpt_do_ioc_recovery()
2522 if (reset_alt_ioc_active && ioc->alt_ioc) { in mpt_do_ioc_recovery()
2526 ioc->alt_ioc->name)); in mpt_do_ioc_recovery()
2527 CHIPREG_WRITE32(&ioc->alt_ioc->chip->IntMask, in mpt_do_ioc_recovery()
2529 ioc->alt_ioc->active = 1; in mpt_do_ioc_recovery()
2658 if (ioc->alt_ioc != NULL) { in mpt_detect_bound_ports()
2661 ioc->name, ioc->name, ioc->alt_ioc->name); in mpt_detect_bound_ports()
2663 } else if (ioc_srch->alt_ioc != NULL) { in mpt_detect_bound_ports()
2667 ioc_srch->alt_ioc->name); in mpt_detect_bound_ports()
2673 ioc_srch->alt_ioc = ioc; in mpt_detect_bound_ports()
2674 ioc->alt_ioc = ioc_srch; in mpt_detect_bound_ports()
2843 if (ioc->alt_ioc) in mpt_adapter_dispose()
2844 ioc->alt_ioc->alt_ioc = NULL; in mpt_adapter_dispose()
3505 else if (ioc->alt_ioc && ioc->alt_ioc->cached_fw) { in mpt_alloc_fw_memory()
3506 ioc->cached_fw = ioc->alt_ioc->cached_fw; /* use alt_ioc's memory */ in mpt_alloc_fw_memory()
3507 ioc->cached_fw_dma = ioc->alt_ioc->cached_fw_dma; in mpt_alloc_fw_memory()
4020 if (ioc->alt_ioc) in mpt_diag_reset()
4021 diag1val = CHIPREG_READ32(&ioc->alt_ioc->chip->Diagnostic); in mpt_diag_reset()
4063 if (ioc->alt_ioc) in mpt_diag_reset()
4064 diag1val = CHIPREG_READ32(&ioc->alt_ioc->chip->Diagnostic); in mpt_diag_reset()
4094 if (ioc->alt_ioc) { in mpt_diag_reset()
4096 ioc->alt_ioc, MPT_IOC_PRE_RESET); in mpt_diag_reset()
4103 else if (ioc->alt_ioc && ioc->alt_ioc->cached_fw) in mpt_diag_reset()
4104 cached_fw = (MpiFwHeader_t *)ioc->alt_ioc->cached_fw; in mpt_diag_reset()
4168 if (ioc->alt_ioc) in mpt_diag_reset()
4169 diag1val = CHIPREG_READ32(&ioc->alt_ioc->chip->Diagnostic); in mpt_diag_reset()
4227 if (ioc->alt_ioc) in mpt_diag_reset()
4228 diag1val = CHIPREG_READ32(&ioc->alt_ioc->chip->Diagnostic); in mpt_diag_reset()
4238 if (ioc->alt_ioc) in mpt_diag_reset()
4239 ioc->alt_ioc->facts.EventState = 0; in mpt_diag_reset()
6889 (ioc->alt_ioc && ioc->alt_ioc->taskmgmt_in_progress)) { in mpt_set_taskmgmt_in_progress_flag()
6896 if (ioc->alt_ioc) { in mpt_set_taskmgmt_in_progress_flag()
6897 ioc->alt_ioc->taskmgmt_in_progress = 1; in mpt_set_taskmgmt_in_progress_flag()
6898 ioc->alt_ioc->taskmgmt_quiesce_io = 1; in mpt_set_taskmgmt_in_progress_flag()
6919 if (ioc->alt_ioc) { in mpt_clear_taskmgmt_in_progress_flag()
6920 ioc->alt_ioc->taskmgmt_in_progress = 0; in mpt_clear_taskmgmt_in_progress_flag()
6921 ioc->alt_ioc->taskmgmt_quiesce_io = 0; in mpt_clear_taskmgmt_in_progress_flag()
7174 if (ioc->alt_ioc) in mpt_HardResetHandler()
7175 ioc->alt_ioc->ioc_reset_in_progress = 1; in mpt_HardResetHandler()
7187 if (ioc->alt_ioc) in mpt_HardResetHandler()
7188 mpt_signal_reset(cb_idx, ioc->alt_ioc, in mpt_HardResetHandler()
7209 if (ioc->alt_ioc) { in mpt_HardResetHandler()
7210 ioc->alt_ioc->ioc_reset_in_progress = 0; in mpt_HardResetHandler()
7211 ioc->alt_ioc->taskmgmt_quiesce_io = 0; in mpt_HardResetHandler()
7212 ioc->alt_ioc->taskmgmt_in_progress = 0; in mpt_HardResetHandler()
7219 if (ioc->alt_ioc) in mpt_HardResetHandler()
7221 ioc->alt_ioc, MPT_IOC_POST_RESET); in mpt_HardResetHandler()