iocpf 229 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(&ioc->iocpf, bfa_iocpf_sm_reset); iocpf 370 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (ioc->iocpf.auto_recover) iocpf 560 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_reset_entry(struct bfa_iocpf *iocpf) iocpf 562 drivers/net/ethernet/brocade/bna/bfa_ioc.c iocpf->fw_mismatch_notified = false; iocpf 563 drivers/net/ethernet/brocade/bna/bfa_ioc.c iocpf->auto_recover = bfa_nw_auto_recover; iocpf 568 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_reset(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 572 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fwcheck); iocpf 585 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_fwcheck_entry(struct bfa_iocpf *iocpf) iocpf 587 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_hw_sem_init(iocpf->ioc); iocpf 588 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 593 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_fwcheck(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 595 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 602 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_hwinit); iocpf 611 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_mismatch); iocpf 616 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 622 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 628 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 638 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_mismatch_entry(struct bfa_iocpf *iocpf) iocpf 641 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (!iocpf->fw_mismatch_notified) iocpf 642 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_pf_fwmismatch(iocpf->ioc); iocpf 644 drivers/net/ethernet/brocade/bna/bfa_ioc.c iocpf->fw_mismatch_notified = true; iocpf 645 drivers/net/ethernet/brocade/bna/bfa_ioc.c mod_timer(&(iocpf->ioc)->iocpf_timer, jiffies + iocpf 651 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_mismatch(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 653 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 657 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fwcheck); iocpf 662 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 668 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 678 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_semwait_entry(struct bfa_iocpf *iocpf) iocpf 680 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 685 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_semwait(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 687 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 693 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_hwinit); iocpf 702 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 708 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 717 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_hwinit_entry(struct bfa_iocpf *iocpf) iocpf 719 drivers/net/ethernet/brocade/bna/bfa_ioc.c iocpf->poll_time = 0; iocpf 720 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_reset(iocpf->ioc, false); iocpf 727 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_hwinit(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 729 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 733 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_enabling); iocpf 739 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_initfail_sync); iocpf 746 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabled); iocpf 755 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_enabling_entry(struct bfa_iocpf *iocpf) iocpf 757 drivers/net/ethernet/brocade/bna/bfa_ioc.c mod_timer(&(iocpf->ioc)->iocpf_timer, jiffies + iocpf 762 drivers/net/ethernet/brocade/bna/bfa_ioc.c iocpf->ioc->cbfn->reset_cbfn(iocpf->ioc->bfa); iocpf 763 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_send_enable(iocpf->ioc); iocpf 770 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_enabling(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 772 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 778 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_ready); iocpf 789 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_initfail_sync); iocpf 795 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling); iocpf 804 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_ready_entry(struct bfa_iocpf *iocpf) iocpf 806 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_pf_enabled(iocpf->ioc); iocpf 810 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_ready(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 814 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling); iocpf 818 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_initfail_sync); iocpf 822 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail_sync); iocpf 831 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_disabling_entry(struct bfa_iocpf *iocpf) iocpf 833 drivers/net/ethernet/brocade/bna/bfa_ioc.c mod_timer(&(iocpf->ioc)->iocpf_timer, jiffies + iocpf 835 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_send_disable(iocpf->ioc); iocpf 840 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_disabling(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 842 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 847 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 856 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 868 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_disabling_sync_entry(struct bfa_iocpf *iocpf) iocpf 870 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 875 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_disabling_sync(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 877 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 883 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabled); iocpf 887 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 901 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_disabled_entry(struct bfa_iocpf *iocpf) iocpf 903 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_mbox_flush(iocpf->ioc); iocpf 904 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_pf_disabled(iocpf->ioc); iocpf 908 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_disabled(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 910 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 914 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_semwait); iocpf 919 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 928 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_initfail_sync_entry(struct bfa_iocpf *iocpf) iocpf 930 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_nw_ioc_debug_save_ftrc(iocpf->ioc); iocpf 931 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 936 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_initfail_sync(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 938 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 946 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_initfail); iocpf 950 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 956 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 962 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 974 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_initfail_entry(struct bfa_iocpf *iocpf) iocpf 980 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_initfail(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 982 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 986 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabled); iocpf 991 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 1000 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_fail_sync_entry(struct bfa_iocpf *iocpf) iocpf 1005 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_lpu_stop(iocpf->ioc); iocpf 1010 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_mbox_flush(iocpf->ioc); iocpf 1011 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 1016 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_fail_sync(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 1018 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_ioc *ioc = iocpf->ioc; iocpf 1024 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (!iocpf->auto_recover) { iocpf 1028 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 1031 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_hwinit); iocpf 1034 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_semwait); iocpf 1040 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 1046 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 1058 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_fail_entry(struct bfa_iocpf *iocpf) iocpf 1064 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_iocpf_sm_fail(struct bfa_iocpf *iocpf, enum iocpf_event event) iocpf 1068 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabled); iocpf 1192 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_SEM_ERROR); iocpf 1196 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_SEMLOCKED); iocpf 1875 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_FWREADY); iocpf 2094 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_iocpf *iocpf = &ioc->iocpf; iocpf 2098 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(iocpf, IOCPF_E_FWRSP_ENABLE); iocpf 2394 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_TIMEOUT); iocpf 2440 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_iocpf *iocpf = &ioc->iocpf; iocpf 2457 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(iocpf, IOCPF_E_FWRSP_DISABLE); iocpf 2483 drivers/net/ethernet/brocade/bna/bfa_ioc.c ioc->iocpf.ioc = ioc; iocpf 2616 drivers/net/ethernet/brocade/bna/bfa_ioc.c ioc->dbg_fwsave_len = ioc->iocpf.auto_recover ? BNA_DBG_FWTRC_LEN : 0; iocpf 2863 drivers/net/ethernet/brocade/bna/bfa_ioc.c iocpf_st = bfa_sm_to_state(iocpf_sm_table, ioc->iocpf.fsm); iocpf 2943 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_ENABLE); iocpf 2949 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_DISABLE); iocpf 2955 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_FAIL); iocpf 2961 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_INITFAIL); iocpf 2967 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_GETATTRFAIL); iocpf 2973 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_STOP); iocpf 2981 drivers/net/ethernet/brocade/bna/bfa_ioc.c iocpf_st = bfa_sm_to_state(iocpf_sm_table, ioc->iocpf.fsm); iocpf 2986 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_TIMEOUT); iocpf 3001 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_FWREADY); iocpf 3005 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (ioc->iocpf.poll_time >= BFA_IOC_TOV) { iocpf 3006 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_TIMEOUT); iocpf 3008 drivers/net/ethernet/brocade/bna/bfa_ioc.c ioc->iocpf.poll_time += BFA_IOC_POLL_TOV; iocpf 184 drivers/net/ethernet/brocade/bna/bfa_ioc.h struct bfa_iocpf iocpf; iocpf 284 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(&ioc->iocpf, bfa_iocpf_sm_reset); iocpf 317 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_ENABLE); iocpf 340 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_INITFAIL); iocpf 354 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_STOP); iocpf 395 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_GETATTRFAIL); iocpf 442 drivers/scsi/bfa/bfa_ioc.c if (ioc->iocpf.auto_recover) iocpf 450 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_FAIL); iocpf 463 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_DISABLE); iocpf 487 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_FAIL); iocpf 525 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_STOP); iocpf 561 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_INITFAIL); iocpf 578 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_STOP); iocpf 613 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_STOP); iocpf 668 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_reset_entry(struct bfa_iocpf_s *iocpf) iocpf 670 drivers/scsi/bfa/bfa_ioc.c iocpf->fw_mismatch_notified = BFA_FALSE; iocpf 671 drivers/scsi/bfa/bfa_ioc.c iocpf->auto_recover = bfa_auto_recover; iocpf 678 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_reset(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 680 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 686 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fwcheck); iocpf 701 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_fwcheck_entry(struct bfa_iocpf_s *iocpf) iocpf 710 drivers/scsi/bfa/bfa_ioc.c r32 = readl(iocpf->ioc->ioc_regs.ioc_init_sem_reg); iocpf 713 drivers/scsi/bfa/bfa_ioc.c r32 = readl(iocpf->ioc->ioc_regs.ioc_init_sem_reg); iocpf 717 drivers/scsi/bfa/bfa_ioc.c fwstate = bfa_ioc_get_cur_ioc_fwstate(iocpf->ioc); iocpf 719 drivers/scsi/bfa/bfa_ioc.c writel(1, iocpf->ioc->ioc_regs.ioc_init_sem_reg); iocpf 723 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_fwver_get(iocpf->ioc, &fwhdr); iocpf 726 drivers/scsi/bfa/bfa_ioc.c writel(1, iocpf->ioc->ioc_regs.ioc_init_sem_reg); iocpf 733 drivers/scsi/bfa/bfa_ioc.c pgnum = PSS_SMEM_PGNUM(iocpf->ioc->ioc_regs.smem_pg0, loff); iocpf 735 drivers/scsi/bfa/bfa_ioc.c writel(pgnum, iocpf->ioc->ioc_regs.host_page_num_fn); iocpf 738 drivers/scsi/bfa/bfa_ioc.c bfa_mem_write(iocpf->ioc->ioc_regs.smem_page_start, loff, 0); iocpf 742 drivers/scsi/bfa/bfa_ioc.c bfa_trc(iocpf->ioc, fwstate); iocpf 743 drivers/scsi/bfa/bfa_ioc.c bfa_trc(iocpf->ioc, swab32(fwhdr.exec)); iocpf 744 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_set_cur_ioc_fwstate(iocpf->ioc, BFI_IOC_UNINIT); iocpf 745 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_set_alt_ioc_fwstate(iocpf->ioc, BFI_IOC_UNINIT); iocpf 750 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_ownership_reset(iocpf->ioc); iocpf 755 drivers/scsi/bfa/bfa_ioc.c writel(1, iocpf->ioc->ioc_regs.ioc_init_sem_reg); iocpf 758 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 765 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_fwcheck(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 767 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 776 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_hwinit); iocpf 784 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_mismatch); iocpf 789 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 795 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 801 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 813 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_mismatch_entry(struct bfa_iocpf_s *iocpf) iocpf 818 drivers/scsi/bfa/bfa_ioc.c if (iocpf->fw_mismatch_notified == BFA_FALSE) iocpf 819 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_pf_fwmismatch(iocpf->ioc); iocpf 821 drivers/scsi/bfa/bfa_ioc.c iocpf->fw_mismatch_notified = BFA_TRUE; iocpf 822 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_timer_start(iocpf->ioc); iocpf 829 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_mismatch(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 831 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 837 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fwcheck); iocpf 842 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 848 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 860 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_semwait_entry(struct bfa_iocpf_s *iocpf) iocpf 862 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 869 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_semwait(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 871 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 879 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_hwinit); iocpf 887 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 893 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 902 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_hwinit_entry(struct bfa_iocpf_s *iocpf) iocpf 904 drivers/scsi/bfa/bfa_ioc.c iocpf->poll_time = 0; iocpf 905 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_hwinit(iocpf->ioc, BFA_FALSE); iocpf 913 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_hwinit(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 915 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 921 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_enabling); iocpf 927 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_initfail_sync); iocpf 934 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabled); iocpf 943 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_enabling_entry(struct bfa_iocpf_s *iocpf) iocpf 945 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_timer_start(iocpf->ioc); iocpf 949 drivers/scsi/bfa/bfa_ioc.c iocpf->ioc->cbfn->reset_cbfn(iocpf->ioc->bfa); iocpf 950 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_send_enable(iocpf->ioc); iocpf 958 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_enabling(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 960 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 968 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_ready); iocpf 979 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_initfail_sync); iocpf 985 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling); iocpf 994 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_ready_entry(struct bfa_iocpf_s *iocpf) iocpf 996 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(iocpf->ioc, IOC_E_ENABLED); iocpf 1000 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_ready(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 1002 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 1008 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling); iocpf 1012 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_initfail_sync); iocpf 1016 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail_sync); iocpf 1025 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_disabling_entry(struct bfa_iocpf_s *iocpf) iocpf 1027 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_timer_start(iocpf->ioc); iocpf 1028 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_send_disable(iocpf->ioc); iocpf 1035 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_disabling(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 1037 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 1044 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 1053 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 1065 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_disabling_sync_entry(struct bfa_iocpf_s *iocpf) iocpf 1067 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 1074 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_disabling_sync(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 1076 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 1084 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabled); iocpf 1088 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 1104 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_disabled_entry(struct bfa_iocpf_s *iocpf) iocpf 1106 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_flush(iocpf->ioc); iocpf 1107 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(iocpf->ioc, IOC_E_DISABLED); iocpf 1111 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_disabled(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 1113 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 1119 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_semwait); iocpf 1124 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 1133 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_initfail_sync_entry(struct bfa_iocpf_s *iocpf) iocpf 1135 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_debug_save_ftrc(iocpf->ioc); iocpf 1136 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 1143 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_initfail_sync(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 1145 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 1155 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_initfail); iocpf 1159 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 1165 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 1171 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 1183 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_initfail_entry(struct bfa_iocpf_s *iocpf) iocpf 1185 drivers/scsi/bfa/bfa_ioc.c bfa_trc(iocpf->ioc, 0); iocpf 1192 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_initfail(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 1194 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 1200 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabled); iocpf 1205 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_reset); iocpf 1214 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_fail_sync_entry(struct bfa_iocpf_s *iocpf) iocpf 1219 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_lpu_stop(iocpf->ioc); iocpf 1224 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_flush(iocpf->ioc); iocpf 1226 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_hw_sem_get(iocpf->ioc); iocpf 1230 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_fail_sync(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 1232 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 1240 drivers/scsi/bfa/bfa_ioc.c if (!iocpf->auto_recover) { iocpf 1244 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 1247 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_hwinit); iocpf 1250 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_semwait); iocpf 1256 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_fail); iocpf 1262 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabling_sync); iocpf 1274 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_fail_entry(struct bfa_iocpf_s *iocpf) iocpf 1276 drivers/scsi/bfa/bfa_ioc.c bfa_trc(iocpf->ioc, 0); iocpf 1283 drivers/scsi/bfa/bfa_ioc.c bfa_iocpf_sm_fail(struct bfa_iocpf_s *iocpf, enum iocpf_event event) iocpf 1285 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = iocpf->ioc; iocpf 1291 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_set_state(iocpf, bfa_iocpf_sm_disabled); iocpf 1358 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_SEM_ERROR); iocpf 1362 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_SEMLOCKED); iocpf 1748 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_FWREADY); iocpf 2324 drivers/scsi/bfa/bfa_ioc.c struct bfa_iocpf_s *iocpf = &ioc->iocpf; iocpf 2338 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(iocpf, IOCPF_E_FWRSP_ENABLE); iocpf 2342 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(iocpf, IOCPF_E_FWRSP_DISABLE); iocpf 2371 drivers/scsi/bfa/bfa_ioc.c ioc->iocpf.ioc = ioc; iocpf 2652 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_cmp_state(&ioc->iocpf, bfa_iocpf_sm_fwcheck) || iocpf 2653 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_cmp_state(&ioc->iocpf, bfa_iocpf_sm_mismatch); iocpf 2828 drivers/scsi/bfa/bfa_ioc.c iocpf_st = bfa_sm_to_state(iocpf_sm_table, ioc->iocpf.fsm); iocpf 3149 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_TIMEOUT); iocpf 3168 drivers/scsi/bfa/bfa_ioc.c bfa_fsm_send_event(&ioc->iocpf, IOCPF_E_FWREADY); iocpf 3172 drivers/scsi/bfa/bfa_ioc.c if (ioc->iocpf.poll_time >= (3 * BFA_IOC_TOV)) iocpf 3175 drivers/scsi/bfa/bfa_ioc.c ioc->iocpf.poll_time += BFA_IOC_POLL_TOV; iocpf 319 drivers/scsi/bfa/bfa_ioc.h struct bfa_iocpf_s iocpf;