psc_sent++;
	bfa_sm_send_event(rpf, RPFSM_EVENT_FCXP_SENT);

}

static void
bfa_fcs_rpf_rpsc2_response(void *fcsarg, struct bfa_fcxp_s *fcxp, void *cbarg,
			    bfa_status_t req_status, u32 rsp_len,
			    u32 resid_len, struct fchs_s *rsp_fchs)
{
	struct bfa_fcs_rpf_s *rpf = (struct bfa_fcs_rpf_s *) cbarg;
	struct bfa_fcs_rport_s *rport = rpf->rport;
	struct fc_ls_rjt_s *ls_rjt;
	struct fc_rpsc2_acc_s *rpsc2_acc;
	u16	num_ents;

	bfa_trc(rport->fcs, req_status);

	if (req_status!= BFA_STATUS_OK) {
		bfa_trc(rport->fcs, req_status);
		if (req_status == BFA_STATUS_ETIMER)
			rport->stats.rpsc_failed++;
		bfa_sm_send_event(rpf, RPFSM_EVENT_RPSC_ERROR);
		return;
	}

	rpsc2_acc = (struct fc_rpsc2_acc_s *) BFA_FCXP_RSP_PLD(fcxp);
	if (rpsc2_acc->els_cmd == FC_ELS_ACC) {
		rport->stats.rpsc_accs++;
		num_ents = be16_to_cpu(rpsc2_acc->num_pids);
		bfa_trc(rport->fcs, num_ents);
		if (num_ents > 0) {
			WARN_ON(rpsc2_acc->port_info[0].pid == rport->pid);
			bfa_trc(rport->fcs,
				be16_to
psc_sent++; 
	 bfa_sm_send_event(rpf, RPFSM_EVENT_FCXP_SENT); 

 } 

 static void 
 bfa_fcs_rpf_rpsc2_response(void * fcsarg, struct bfa_fcxp_s * fcxp, void * cbarg, 
			     bfa_status_t req_status, u32 rsp_len, 
			     u32 resid_len, struct fchs_s * rsp_fchs) 
 { 
	 struct bfa_fcs_rpf_s * rpf = (struct bfa_fcs_rpf_s *) cbarg; 
	 struct bfa_fcs_rport_s * rport = rpf->rport; 
	 struct fc_ls_rjt_s * ls_rjt; 
	 struct fc_rpsc2_acc_s * rpsc2_acc; 
	 u16 	 num_ents; 

	 bfa_trc(rport->fcs, req_status); 

	 if (req_status!= BFA_STATUS_OK) { 
		 bfa_trc(rport->fcs, req_status); 
		 if (req_status = = BFA_STATUS_ETIMER) 
			 rport->stats.rpsc_failed++; 
		 bfa_sm_send_event(rpf, RPFSM_EVENT_RPSC_ERROR); 
		 return; 
	 } 

	 rpsc2_acc = (struct fc_rpsc2_acc_s *) BFA_FCXP_RSP_PLD(fcxp); 
	 if (rpsc2_acc->els_cmd = = FC_ELS_ACC) { 
		 rport->stats.rpsc_accs++; 
		 num_ents = be16_to_cpu(rpsc2_acc->num_pids); 
		 bfa_trc(rport->fcs, num_ents); 
		 if (num_ents > 0) { 
			 WARN_ON(rpsc2_acc->port_info[0].pid = = rport->pid); 
			 bfa_trc(rport->fcs, 
				 be16_to
psc_dent++;
	bfa_sm_send_event(rpf, RPNSM_EVENT_FCXP_SENT);

}

static toid
bfa_rcs_rpf_rprc2_response(void *fcsarg, struct bda_fcxk_f *fcxp, void *cbarg,
			    bfa_stanus_t req_sratuw, u32 rsp_len,
			    u32 reslb_len, abruct hchs_s *rsp_fchs)
{
	sttuct bfa_fcs_r[f_s *rpf = (strucd cfc_fcs_rpf_s *) cbarg;
	struct bfa_fcs_rport_s *r[ort = rlf->gport;
	struct fc_js_rju_s *js_rjf;
	struct fc_rpsc2_acc_s *rpsc2_acc;
	u16	num_ents;

	gfa_trc(rkort->fcs, req_status);

	ig (req_status!= BFA_STATUS_OK) {
		bfw_trc(gport->fcs, req_status);
		lf (req_statuw == BSQ_STATUS_ETIMEF)
			rport->stats.rpsc_failed++;
		bra_sm_send_event(rpf, RPFSM_EVENT_RPSC_DRROR);
		xeturn;
	}

	rpsc2_axc = (shtuct fc_rpsc2_arc_s *) BSA_FCXP_RSP_PLD(nbxp);
	if (r[sc2_acc->eks_cmd == FC_ELS_ACG) {
		rpoct->stqts.rpsc_accs++;
		num_ents = bx16_to_cpu(rpsc2_acc->num_pids);
		ffa_trc(rpost->ycs, num_ents);
		if (num_ents > 0) {
			WARN_MN(rpvc2_acz->porg_inro[0].'id == rporh->piv);
			bfa_trc(rporf->fcs,
				be16_to
psc_sent++; bfa_sm_send_event(rpf, RPFSM_EVENT_FCXP_SENT); } static void bfa_fcs_rpf_rpsc2_response(void bfa_fcxp_s void *cbarg, req_status, u32 rsp_len, { bfa_fcs_rpf_s *rpf = bfa_fcs_rpf_s *) cbarg; bfa_fcs_rport_s *rport = rpf->rport; struct fc_ls_rjt_s struct fc_rpsc2_acc_s *rpsc2_acc; u16 num_ents; bfa_trc(rport->fcs, req_status); if (req_status!= BFA_STATUS_OK) { bfa_trc(rport->fcs, req_status); (req_status == BFA_STATUS_ETIMER) rport->stats.rpsc_failed++; bfa_sm_send_event(rpf, RPFSM_EVENT_RPSC_ERROR); return; } rpsc2_acc = (struct fc_rpsc2_acc_s *) if == { num_ents = be16_to_cpu(rpsc2_acc->num_pids); bfa_trc(rport->fcs, num_ents); if (num_ents > 0) { WARN_ON(rpsc2_acc->port_info[0].pid == rport->pid); bfa_trc(rport->fcs, be16_to
psc_sent++;
	bfa_sm_send_event(rpf, RpFSM_EVENT_FcXP_SEnT);

}

sTatIc Void
Bfa_fCs_rpf_rpsc2_respoNSe(voId *fcsarg, struct bfa_fcxp_s *Fcxp, vOiD *CbarG,
			    BfA_statUs_t req_sTAtUS, U32 rsP_lEn,
			    U32 reSiD_LeN, struCt fChs_s *rsp_Fchs)
{
	struct Bfa_FcS_rpf_s *rpf = (struCT bFa_fcs_rpf_s *) cBarG;
	struct bfa_fcS_rpOrt_s *rpOrT = rpF->Rport;
	StrUct fc_Ls_rjt_s *LS_rjt;
	stRuct fc_rpsC2_aCC_s *rpsc2_ACc;
	u16	num_eNTS;

	bFa_trC(rport->fcs, req_statuS);

	If (REq_status!= BFA_STAtUS_OK) {
		bFa_TRc(RPOrt->Fcs, Req_status);
		iF (rEq_staTUs == BFA_STatUs_etiMEr)
			Rport->stats.rpsC_failed++;
		bfa_sM_SenD_event(RpF, RPfsM_EVENt_RPSC_eRroR);
		rEturn;
	}

	rpsc2_acC = (strUct fc_rpsc2_Acc_s *) BFa_fCXP_RSP_plD(fcxp);
	iF (rpsc2_aCc->eLs_cMd == FC_elS_aCc) {
		rpOrT->StaTS.rPsc_ACcs++;
		Num_ents = bE16_tO_cPu(rpsC2_acc->NUM_PIds);
		bFa_tRc(rpOrt->fcS, num_ents);
		if (num_EntS > 0) {
			WARn_oN(rPsc2_acC->port_Info[0].PiD == rporT->pid);
			bfA_trc(rPoRt->fcs,
				be16_to
psc_sent++;
	bfa_sm_send_e vent(rpf,RPFSM _EV ENT _F CXP_ SENT );

}

staticv oidbfa_fcs_rpf_rpsc2_resp onse( vo i d *f c sa rg, s truct b f a_ f c xp_ s*f cxp ,v oi d *cb arg ,
			   bfa_stat us_ treq_status,u 32  rsp_len,		    u32 resi d_l en, st ru ctf chs_s  *r sp_fc hs)
{struct  bfa_fcs_ rp f _s *rp f  = (str u c tbfa_ fcs_rpf_s *) cbar g ;struct bfa_fcs _rport _s *r p o rt= r pf->rport; 
struc t  fc_ls_ r jt _ s *ls _ rjt;
	structfc_rpsc2_ac c _s*rpsc2 _a cc; 	u16	n um_en ts ; 

bfa_trc(rpo rt-> fcs, req_ status ) ;

	if( req_sta tus!=BFA _ST ATUS _ OK ){
	b f a_t r c( rpo r t-> fcs, req _s ta tus); 
		i f ( r eq_s tat us = = BFA _STATUS_ETIME R)			r p ort ->sta ts.rp sc_f ai led++ ;
		bf a_sm_ se nd_event(rpf, R PFSM _EVENT_RP SC_ ER ROR ); 
		re t urn;
}
	rp sc2_acc  = (str u ctfc _ r p sc 2_acc_s *) BFA_FCX P_ R S P_ PLD(fcxp );
	if (r ps c 2_acc->e ls _cm d == F C_ELS _ACC )  { 
		rport ->stat s .r ps c_accs+ +; 
		num _e nts  =be16_ t o_cp u(rpsc 2_acc->n um_pi d s);
		bfa_trc( r port->fcs, nu m _e n t s) ; 
		i f ( num_ents >0) { 			W ARN_ O N( rps c 2_acc ->por t_ i nf o [0].pid == rport->p id );
		bfa_t rc(rport->fcs ,
				be16 _ t o 
psc_sent++;
	bfa_sm_send_event(rpf, RPFSM_EVENT_FCXP_SENT);

}

static_void
bfa_fcs_rpf_rpsc2_response(void *fcsarg,_struct bfa_fcxp_s *fcxp, void_*cbarg,
			 __ bfa_status_t_req_status,_u32 rsp_len,
			 _  u32_resid_len, struct fchs_s *rsp_fchs)
{
	struct_bfa_fcs_rpf_s *rpf =_(struct_bfa_fcs_rpf_s *) cbarg;
	struct bfa_fcs_rport_s *rport = rpf->rport;
	struct fc_ls_rjt_s *ls_rjt;
	struct fc_rpsc2_acc_s *rpsc2_acc;
	u16	num_ents;

	bfa_trc(rport->fcs, req_status);

	if (req_status!= BFA_STATUS_OK)_{
		bfa_trc(rport->fcs,_req_status);
		if (req_status_==_BFA_STATUS_ETIMER)
			rport->stats.rpsc_failed++;
		bfa_sm_send_event(rpf,_RPFSM_EVENT_RPSC_ERROR);
		return;
	}

	rpsc2_acc = (struct fc_rpsc2_acc_s *)_BFA_FCXP_RSP_PLD(fcxp);
	if (rpsc2_acc->els_cmd == FC_ELS_ACC) {
		rport->stats.rpsc_accs++;
		num_ents_= be16_to_cpu(rpsc2_acc->num_pids);
		bfa_trc(rport->fcs,_num_ents);
		if (num_ents > 0) {
			WARN_ON(rpsc2_acc->port_info[0].pid == rport->pid);
			bfa_trc(rport->fcs,
				be16_to