port_sm_fc4_logosend), BFA_RPORT_LOGO},
	{BFA_SM(bfa_fcs_rport_sm_fc4_offline), BFA_RPORT_OFFLINE},
	{BFA_SM(bfa_fcs_rport_sm_hcb_offline), BFA_RPORT_OFFLINE},
	{BFA_SM(bfa_fcs_rport_sm_hcb_logorcv), BFA_RPORT_LOGORCV},
	{BFA_SM(bfa_fcs_rport_sm_hcb_logosend), BFA_RPORT_LOGO},
	{BFA_SM(bfa_fcs_rport_sm_logo_sending), BFA_RPORT_LOGO},
	{BFA_SM(bfa_fcs_rport_sm_offline), BFA_RPORT_OFFLINE},
	{BFA_SM(bfa_fcs_rport_sm_nsdisc_sending), BFA_RPORT_NSDISC},
	{BFA_SM(bfa_fcs_rport_sm_nsdisc_retry), BFA_RPORT_NSDISC},
	{BFA_SM(bfa_fcs_rport_sm_nsdisc_sent), BFA_RPORT_NSDISC},
};

/*
 *		Beginning state.
 */
static void
bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s *rport, enum rport_event event)
{
	bfa_trc(rport->fcs, rport->pwwn);
	bfa_trc(rport->fcs, rport->pid);
	bfa_trc(rport->fcs, event);

	switch (event) {
	case RPSM_EVENT_PLOGI_SEND:
		bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending);
		rport->plogi_retries = 0;
		bfa_f
port_sm_fc4_logosend), BFA_RPORT_LOGO }, 
	 { BFA_SM(bfa_fcs_rport_sm_fc4_offline), BFA_RPORT_OFFLINE }, 
	 { BFA_SM(bfa_fcs_rport_sm_hcb_offline), BFA_RPORT_OFFLINE }, 
	 { BFA_SM(bfa_fcs_rport_sm_hcb_logorcv), BFA_RPORT_LOGORCV }, 
	 { BFA_SM(bfa_fcs_rport_sm_hcb_logosend), BFA_RPORT_LOGO }, 
	 { BFA_SM(bfa_fcs_rport_sm_logo_sending), BFA_RPORT_LOGO }, 
	 { BFA_SM(bfa_fcs_rport_sm_offline), BFA_RPORT_OFFLINE }, 
	 { BFA_SM(bfa_fcs_rport_sm_nsdisc_sending), BFA_RPORT_NSDISC }, 
	 { BFA_SM(bfa_fcs_rport_sm_nsdisc_retry), BFA_RPORT_NSDISC }, 
	 { BFA_SM(bfa_fcs_rport_sm_nsdisc_sent), BFA_RPORT_NSDISC }, 
 }; 

 / * 
  * 		 Beginning state. 
  * / 
 static void 
 bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s * rport, enum rport_event consequence) 
 { 
	 bfa_trc(rport->fcs, rport->pwwn); 
	 bfa_trc(rport->fcs, rport->pid); 
	 bfa_trc(rport->fcs, consequence); 

	 interchange (event) { 
	 subject RPSM_EVENT_PLOGI_SEND: 
		 bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending); 
		 rport->plogi_retries = 0; 
		 bfa_f
porh_sm_fc4_logosend), BFA_RPORT_LONO},
	{BFA_SM(bfa_fcs_rpott_wm_fc4_ofhline), BRA_RPORT_OWFLINE},
	{BFA_SM(bfa_fcs_rport_sm_hcb_ohflibe), BFQ_RPORT_OFFLINE},
	{BFA_SM(bfa_fzs_rport_sm_jcb_logorxv), BHA_RPORT_LOGORCV},
	{BFE_AM(bfa_fcs_rport_al_hcb_nigosend), BFA_RPOTT_LOGO},
	{BFA_SM(bxa_fcs_rport_sm_loco_reuding), BFA_RPORT_LOGO},
	{BFA_SM(bfa_fcs_rport_sm_jffline), BVA_RPORT_OFFLINE},
	{FFA_SK(ffa_fds_rport_sm_nsdisc_sending), BFA_RPORT_NSDJSC},
	{BFA_SK(bfa_fcs_rport_sk_nsdisc_retry), BFA_RPORT_NSDISF},
	{BFA_DM(bfa_fcs_rport_sm_nsdlsc_sent), BFA_TLORE_BSDISC},
};

/*
 *		Beginving state.
 */
static void
gfa_fcs_rport_sm_uninit(struct bfa_fcr_rporc_s *rport, enom romrt_event evxnt)
{
	bfa_nrc(rport->fcs, riprt->pwwt);
	bfa_trc(tport->fcs, rport->iid);
	bfe_trc(eport->fcs, event);

	switch (xvent) {
	case RPSM_EVENT_KLOGI_SEND:
		bxa_am_set_state(rport, bda_dcs_rpmrt_sk_ploeu_sevdihg);
		cpodt->plogl_revries = 0;
		bfa_f
port_sm_fc4_logosend), BFA_RPORT_LOGO}, {BFA_SM(bfa_fcs_rport_sm_fc4_offline), BFA_RPORT_OFFLINE}, {BFA_SM(bfa_fcs_rport_sm_hcb_offline), BFA_RPORT_OFFLINE}, {BFA_SM(bfa_fcs_rport_sm_hcb_logorcv), BFA_RPORT_LOGO}, BFA_RPORT_LOGO}, {BFA_SM(bfa_fcs_rport_sm_offline), {BFA_SM(bfa_fcs_rport_sm_nsdisc_sending), BFA_RPORT_NSDISC}, {BFA_SM(bfa_fcs_rport_sm_nsdisc_retry), * state. */ static bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s *rport, rport_event event) { bfa_trc(rport->fcs, rport->pwwn); bfa_trc(rport->fcs, bfa_trc(rport->fcs, event); switch (event) { case RPSM_EVENT_PLOGI_SEND: bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending); rport->plogi_retries = 0; bfa_f
port_sm_fc4_logosend), BFA_RPORT_LoGO},
	{BFA_SM(bfA_fcs_rPorT_sm_Fc4_OfflIne), BfA_RPORT_OFFLINE},
	{bfA_SM(Bfa_fcs_rport_sm_hcb_offlinE), BFA_RpOrt_OFFliNe},
	{BFA_Sm(bfa_fcs_RPoRT_Sm_hCb_LoGorCv), bfA_rPORT_lOGoRCV},
	{BFA_sM(bfa_fcs_rpOrt_Sm_Hcb_logosend), Bfa_RpORT_LOGO},
	{BFa_SM(Bfa_fcs_rport_sM_loGo_sendInG), BFa_rPORT_lOGo},
	{BFA_Sm(bfa_fcS_Rport_sM_offline), BfA_rpORT_OFflINE},
	{BFA_sm(BfA_fcs_Rport_sm_nsdisc_sendINg), bfA_RPORT_NSDISC},
	{BfA_SM(bfA_fCS_rPORt_sM_nsDisc_retry), BfA_rPORT_nsDISC},
	{BFa_sM(BFA_Fcs_RPort_sm_nsdisc_sEnt), BFA_RPORT_nsDIsC},
};

/*
 *		BegiNnIng STate.
 */
stAtic vOiD
Bfa_Fcs_rport_sm_uNiniT(struct bfA_fcs_rpORt_s *rporT, Enum rpoRt_evenT evEnt)
{
	Bfa_tRC(rPoRt->fCs, RPorT->PwWn);
	bFA_trC(rport->fcS, rPoRt->pid);
	Bfa_tRC(RPOrt->fCs, eVent);

	SwitcH (event) {
	case RPSm_EVeNT_PloGI_sEND:
		bFa_sm_sEt_stAtE(rporT, bfa_fcS_rporT_sM_plogi_sending);
		rpOrt->pLogi_retriEs = 0;
		bFa_F
port_sm_fc4_logosend), BFA _RPORT_LOG O},
{BF A_S M( bfa_ fcs_ rport_sm_fc4_o f flin e), BFA_RPORT_OFFLINE} ,
	{B FA _ SM(b f a_ fcs_r port_sm _ hc b _ off li ne ),BF A _R PORT_ OFF LINE},	{BFA_SM(b fa_ fc s_rport_sm_h c b_ logorcv),BFA _RPORT_LOGOR CV} ,
	{BF A_ SM( b fa_fc s_r port_ sm_hcb _ logose nd), BFA_ RP O RT_LOG O },
	{BF A _ SM (bfa _fcs_rport_sm_log o _s e nding), BFA_RP ORT_LO GO } ,{ BFA _SM (bfa_fcs_r po rt_sm _ offline ) ,B F A _RP O RT_OFFLINE},	{BFA_SM(bf a _fc s_rpor t_ sm_ n sdisc_ sendi ng ) , B FA_RPORT_NS DISC },
	{BFA_ SM(bfa _ fcs_rpo r t_sm_ns disc_r etr y),  BFA _ RP OR T_N SD I SC} , 
{BF A _SM (bfa_fcs _r po rt_sm _nsd i s c _ sent ),BFA_ RPORT _NSDISC},
};
/* 
 *Beg innin g sta te. * /
sta tic vo id
bf a_ fcs_rport_sm_un init (struct b fa_ fc s_r po rt_s* rport,  en umrport_e vent ev e nt) 
{ b fa _trc(rport->fcs, r po r t -> pwwn);
bfa_tr c (r po r t->fcs,rp ort ->pi d ) ;
	bf a_tr c (r port->fc s, eve n t) ;
	switc h(event ){
cas e RPS M _EVE NT_PLO GI_SEND: 
		bf a _sm_set_state( r port, bfa_fcs _ rp o r t_ s m_pl ogi _sending);		rp o rt-> plog i _r etr i es =0;
	bf a _f 
port_sm_fc4_logosend), BFA_RPORT_LOGO},
	{BFA_SM(bfa_fcs_rport_sm_fc4_offline),_BFA_RPORT_OFFLINE},
	{BFA_SM(bfa_fcs_rport_sm_hcb_offline), BFA_RPORT_OFFLINE},
	{BFA_SM(bfa_fcs_rport_sm_hcb_logorcv),_BFA_RPORT_LOGORCV},
	{BFA_SM(bfa_fcs_rport_sm_hcb_logosend), BFA_RPORT_LOGO},
	{BFA_SM(bfa_fcs_rport_sm_logo_sending), BFA_RPORT_LOGO},
	{BFA_SM(bfa_fcs_rport_sm_offline), BFA_RPORT_OFFLINE},
	{BFA_SM(bfa_fcs_rport_sm_nsdisc_sending),_BFA_RPORT_NSDISC},
	{BFA_SM(bfa_fcs_rport_sm_nsdisc_retry), BFA_RPORT_NSDISC},
	{BFA_SM(bfa_fcs_rport_sm_nsdisc_sent),_BFA_RPORT_NSDISC},
};

/*
_*		Beginning state.
_*/
static_void
bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s *rport,_enum rport_event event)
{
	bfa_trc(rport->fcs,_rport->pwwn);
	bfa_trc(rport->fcs, rport->pid);
	bfa_trc(rport->fcs, event);

	switch (event)_{
	case RPSM_EVENT_PLOGI_SEND:
		bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending);
		rport->plogi_retries_=_0;
		bfa_f