Lines Matching refs:rport
98 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_offline()
109 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_offline()
130 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_send()
146 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli_send()
164 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli()
169 if (itnim->rport->scsi_function == BFA_RPORT_INITIATOR) { in bfa_fcs_itnim_sm_prli()
191 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli()
214 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_retry()
227 bfa_sm_send_event(itnim->rport, RPSM_EVENT_LOGO_IMP); in bfa_fcs_itnim_sm_prli_retry()
235 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli_retry()
262 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_hcb_online()
269 wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(itnim->rport->port)); in bfa_fcs_itnim_sm_hcb_online()
270 wwn2str(rpwwn_buf, itnim->rport->pwwn); in bfa_fcs_itnim_sm_hcb_online()
280 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_hcb_online()
301 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_online()
309 wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(itnim->rport->port)); in bfa_fcs_itnim_sm_online()
310 wwn2str(rpwwn_buf, itnim->rport->pwwn); in bfa_fcs_itnim_sm_online()
311 if (bfa_fcs_lport_is_online(itnim->rport->port) == BFA_TRUE) { in bfa_fcs_itnim_sm_online()
338 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_hcb_offline()
344 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_hcb_offline()
366 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_initiator()
372 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_initiator()
394 struct bfa_fcs_rport_s *rport = itnim->rport; in bfa_fcs_itnim_aen_post() local
399 if (BFA_FCS_PID_IS_WKA(rport->pid)) in bfa_fcs_itnim_aen_post()
406 aen_entry->aen_data.itnim.vf_id = rport->port->fabric->vf_id; in bfa_fcs_itnim_aen_post()
409 aen_entry->aen_data.itnim.lpwwn = bfa_fcs_lport_get_pwwn(rport->port); in bfa_fcs_itnim_aen_post()
410 aen_entry->aen_data.itnim.rpwwn = rport->pwwn; in bfa_fcs_itnim_aen_post()
413 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, in bfa_fcs_itnim_aen_post()
421 struct bfa_fcs_rport_s *rport = itnim->rport; in bfa_fcs_itnim_send_prli() local
422 struct bfa_fcs_lport_s *port = rport->port; in bfa_fcs_itnim_send_prli()
427 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_send_prli()
439 itnim->rport->pid, bfa_fcs_lport_get_fcid(port), 0); in bfa_fcs_itnim_send_prli()
441 bfa_fcxp_send(fcxp, rport->bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_itnim_send_prli()
485 itnim->rport->scsi_function = in bfa_fcs_itnim_prli_response()
497 itnim->rport->scsi_function = BFA_RPORT_TARGET; in bfa_fcs_itnim_prli_response()
550 bfa_fcs_itnim_create(struct bfa_fcs_rport_s *rport) in bfa_fcs_itnim_create() argument
552 struct bfa_fcs_lport_s *port = rport->port; in bfa_fcs_itnim_create()
562 bfa_trc(port->fcs, rport->pwwn); in bfa_fcs_itnim_create()
569 itnim->rport = rport; in bfa_fcs_itnim_create()
570 itnim->fcs = rport->fcs; in bfa_fcs_itnim_create()
577 bfa_itnim_create(port->fcs->bfa, rport->bfa_rport, itnim); in bfa_fcs_itnim_create()
580 bfa_trc(port->fcs, rport->pwwn); in bfa_fcs_itnim_create()
608 bfa_trc(itnim->fcs, itnim->rport->pid); in bfa_fcs_itnim_delete()
620 if (!BFA_FCS_PID_IS_WKA(itnim->rport->pid)) { in bfa_fcs_itnim_rport_online()
649 bfa_trc(itnim->fcs, itnim->rport->pid); in bfa_fcs_itnim_is_initiator()
660 bfa_trc(itnim->fcs, itnim->rport->pid); in bfa_fcs_itnim_get_online_state()
679 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_cb_itnim_online()
691 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_cb_itnim_offline()
704 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_cb_itnim_tov_begin()
716 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_cb_itnim_tov()
733 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_cb_itnim_sler()
734 bfa_sm_send_event(itnim->rport, RPSM_EVENT_LOGO_IMP); in bfa_cb_itnim_sler()
740 struct bfa_fcs_rport_s *rport; in bfa_fcs_itnim_lookup() local
741 rport = bfa_fcs_rport_lookup(port, rpwwn); in bfa_fcs_itnim_lookup()
743 if (!rport) in bfa_fcs_itnim_lookup()
746 WARN_ON(rport->itnim == NULL); in bfa_fcs_itnim_lookup()
747 return rport->itnim; in bfa_fcs_itnim_lookup()
820 bfa_fcs_rport_prlo(itnim->rport, fchs->ox_id); in bfa_fcs_fcpim_uf_recv()