Lines Matching refs:rpf

3008 	bfa_port_speed_t rport_speed = rport->rpf.rpsc_speed;  in bfa_fcs_rport_get_attr()
3025 rport_attr->curr_speed = rport->rpf.rpsc_speed; in bfa_fcs_rport_get_attr()
3026 rport_attr->assigned_speed = rport->rpf.assigned_speed; in bfa_fcs_rport_get_attr()
3090 static void bfa_fcs_rpf_sm_uninit(struct bfa_fcs_rpf_s *rpf,
3092 static void bfa_fcs_rpf_sm_rpsc_sending(struct bfa_fcs_rpf_s *rpf,
3094 static void bfa_fcs_rpf_sm_rpsc(struct bfa_fcs_rpf_s *rpf,
3096 static void bfa_fcs_rpf_sm_rpsc_retry(struct bfa_fcs_rpf_s *rpf,
3098 static void bfa_fcs_rpf_sm_offline(struct bfa_fcs_rpf_s *rpf,
3100 static void bfa_fcs_rpf_sm_online(struct bfa_fcs_rpf_s *rpf,
3104 bfa_fcs_rpf_sm_uninit(struct bfa_fcs_rpf_s *rpf, enum rpf_event event) in bfa_fcs_rpf_sm_uninit() argument
3106 struct bfa_fcs_rport_s *rport = rpf->rport; in bfa_fcs_rpf_sm_uninit()
3120 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_rpsc_sending); in bfa_fcs_rpf_sm_uninit()
3121 rpf->rpsc_retries = 0; in bfa_fcs_rpf_sm_uninit()
3122 bfa_fcs_rpf_send_rpsc2(rpf, NULL); in bfa_fcs_rpf_sm_uninit()
3135 bfa_fcs_rpf_sm_rpsc_sending(struct bfa_fcs_rpf_s *rpf, enum rpf_event event) in bfa_fcs_rpf_sm_rpsc_sending() argument
3137 struct bfa_fcs_rport_s *rport = rpf->rport; in bfa_fcs_rpf_sm_rpsc_sending()
3143 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_rpsc); in bfa_fcs_rpf_sm_rpsc_sending()
3147 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_offline); in bfa_fcs_rpf_sm_rpsc_sending()
3148 bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rpf->fcxp_wqe); in bfa_fcs_rpf_sm_rpsc_sending()
3149 rpf->rpsc_retries = 0; in bfa_fcs_rpf_sm_rpsc_sending()
3158 bfa_fcs_rpf_sm_rpsc(struct bfa_fcs_rpf_s *rpf, enum rpf_event event) in bfa_fcs_rpf_sm_rpsc() argument
3160 struct bfa_fcs_rport_s *rport = rpf->rport; in bfa_fcs_rpf_sm_rpsc()
3167 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_online); in bfa_fcs_rpf_sm_rpsc()
3169 if (rpf->rpsc_speed != BFA_PORT_SPEED_UNKNOWN) in bfa_fcs_rpf_sm_rpsc()
3170 bfa_rport_speed(rport->bfa_rport, rpf->rpsc_speed); in bfa_fcs_rpf_sm_rpsc()
3171 else if (rpf->assigned_speed != BFA_PORT_SPEED_UNKNOWN) in bfa_fcs_rpf_sm_rpsc()
3172 bfa_rport_speed(rport->bfa_rport, rpf->assigned_speed); in bfa_fcs_rpf_sm_rpsc()
3177 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_online); in bfa_fcs_rpf_sm_rpsc()
3182 if (rpf->rpsc_retries++ < BFA_FCS_RPF_RETRIES) { in bfa_fcs_rpf_sm_rpsc()
3183 bfa_timer_start(rport->fcs->bfa, &rpf->timer, in bfa_fcs_rpf_sm_rpsc()
3184 bfa_fcs_rpf_timeout, rpf, in bfa_fcs_rpf_sm_rpsc()
3186 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_rpsc_retry); in bfa_fcs_rpf_sm_rpsc()
3188 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_online); in bfa_fcs_rpf_sm_rpsc()
3193 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_offline); in bfa_fcs_rpf_sm_rpsc()
3194 bfa_fcxp_discard(rpf->fcxp); in bfa_fcs_rpf_sm_rpsc()
3195 rpf->rpsc_retries = 0; in bfa_fcs_rpf_sm_rpsc()
3204 bfa_fcs_rpf_sm_rpsc_retry(struct bfa_fcs_rpf_s *rpf, enum rpf_event event) in bfa_fcs_rpf_sm_rpsc_retry() argument
3206 struct bfa_fcs_rport_s *rport = rpf->rport; in bfa_fcs_rpf_sm_rpsc_retry()
3214 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_rpsc_sending); in bfa_fcs_rpf_sm_rpsc_retry()
3215 bfa_fcs_rpf_send_rpsc2(rpf, NULL); in bfa_fcs_rpf_sm_rpsc_retry()
3219 bfa_timer_stop(&rpf->timer); in bfa_fcs_rpf_sm_rpsc_retry()
3220 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_offline); in bfa_fcs_rpf_sm_rpsc_retry()
3221 rpf->rpsc_retries = 0; in bfa_fcs_rpf_sm_rpsc_retry()
3230 bfa_fcs_rpf_sm_online(struct bfa_fcs_rpf_s *rpf, enum rpf_event event) in bfa_fcs_rpf_sm_online() argument
3232 struct bfa_fcs_rport_s *rport = rpf->rport; in bfa_fcs_rpf_sm_online()
3240 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_offline); in bfa_fcs_rpf_sm_online()
3241 rpf->rpsc_retries = 0; in bfa_fcs_rpf_sm_online()
3250 bfa_fcs_rpf_sm_offline(struct bfa_fcs_rpf_s *rpf, enum rpf_event event) in bfa_fcs_rpf_sm_offline() argument
3252 struct bfa_fcs_rport_s *rport = rpf->rport; in bfa_fcs_rpf_sm_offline()
3260 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_rpsc_sending); in bfa_fcs_rpf_sm_offline()
3261 bfa_fcs_rpf_send_rpsc2(rpf, NULL); in bfa_fcs_rpf_sm_offline()
3277 struct bfa_fcs_rpf_s *rpf = &rport->rpf; in bfa_fcs_rpf_init() local
3280 rpf->rport = rport; in bfa_fcs_rpf_init()
3282 bfa_sm_set_state(rpf, bfa_fcs_rpf_sm_uninit); in bfa_fcs_rpf_init()
3297 bfa_sm_send_event(&rport->rpf, RPFSM_EVENT_RPORT_ONLINE); in bfa_fcs_rpf_rport_online()
3311 rport->rpf.rpsc_speed = 0; in bfa_fcs_rpf_rport_offline()
3312 bfa_sm_send_event(&rport->rpf, RPFSM_EVENT_RPORT_OFFLINE); in bfa_fcs_rpf_rport_offline()
3318 struct bfa_fcs_rpf_s *rpf = (struct bfa_fcs_rpf_s *) arg; in bfa_fcs_rpf_timeout() local
3319 struct bfa_fcs_rport_s *rport = rpf->rport; in bfa_fcs_rpf_timeout()
3322 bfa_sm_send_event(rpf, RPFSM_EVENT_TIMEOUT); in bfa_fcs_rpf_timeout()
3328 struct bfa_fcs_rpf_s *rpf = (struct bfa_fcs_rpf_s *)rpf_cbarg; in bfa_fcs_rpf_send_rpsc2() local
3329 struct bfa_fcs_rport_s *rport = rpf->rport; in bfa_fcs_rpf_send_rpsc2()
3340 bfa_fcs_fcxp_alloc_wait(port->fcs->bfa, &rpf->fcxp_wqe, in bfa_fcs_rpf_send_rpsc2()
3341 bfa_fcs_rpf_send_rpsc2, rpf, BFA_TRUE); in bfa_fcs_rpf_send_rpsc2()
3344 rpf->fcxp = fcxp; in bfa_fcs_rpf_send_rpsc2()
3351 rpf, FC_MAX_PDUSZ, FC_ELS_TOV); in bfa_fcs_rpf_send_rpsc2()
3353 bfa_sm_send_event(rpf, RPFSM_EVENT_FCXP_SENT); in bfa_fcs_rpf_send_rpsc2()
3362 struct bfa_fcs_rpf_s *rpf = (struct bfa_fcs_rpf_s *) cbarg; in bfa_fcs_rpf_rpsc2_response() local
3363 struct bfa_fcs_rport_s *rport = rpf->rport; in bfa_fcs_rpf_rpsc2_response()
3374 bfa_sm_send_event(rpf, RPFSM_EVENT_RPSC_ERROR); in bfa_fcs_rpf_rpsc2_response()
3396 bfa_sm_send_event(rpf, RPFSM_EVENT_RPSC_ERROR); in bfa_fcs_rpf_rpsc2_response()
3400 rpf->rpsc_speed = fc_rpsc_operspeed_to_bfa_speed( in bfa_fcs_rpf_rpsc2_response()
3403 bfa_sm_send_event(rpf, RPFSM_EVENT_RPSC_COMP); in bfa_fcs_rpf_rpsc2_response()
3411 bfa_sm_send_event(rpf, RPFSM_EVENT_RPSC_FAIL); in bfa_fcs_rpf_rpsc2_response()
3413 bfa_sm_send_event(rpf, RPFSM_EVENT_RPSC_ERROR); in bfa_fcs_rpf_rpsc2_response()