Lines Matching refs:rport

91 	bfa_trc(itnim->fcs, itnim->rport->pwwn);
102 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
123 bfa_trc(itnim->fcs, itnim->rport->pwwn);
134 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
140 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
158 bfa_trc(itnim->fcs, itnim->rport->pwwn);
163 if (itnim->rport->scsi_function == BFA_RPORT_INITIATOR)
169 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
186 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
192 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
210 bfa_trc(itnim->fcs, itnim->rport->pwwn);
217 itnim->rport->bfa_rport, itnim);
224 bfa_sm_send_event(itnim->rport, RPSM_EVENT_DELETE);
231 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
248 bfa_trc(itnim->fcs, itnim->rport->pwwn);
261 bfa_sm_send_event(itnim->rport, RPSM_EVENT_LOGO_IMP);
269 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
275 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
297 bfa_trc(itnim->fcs, itnim->rport->pwwn);
304 wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(itnim->rport->port));
305 wwn2str(rpwwn_buf, itnim->rport->pwwn);
335 bfa_trc(itnim->fcs, itnim->rport->pwwn);
343 wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(itnim->rport->port));
344 wwn2str(rpwwn_buf, itnim->rport->pwwn);
345 if (bfa_fcs_lport_is_online(itnim->rport->port) == BFA_TRUE) {
372 bfa_trc(itnim->fcs, itnim->rport->pwwn);
378 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
392 * This state is set when a discovered rport is also in intiator mode.
400 bfa_trc(itnim->fcs, itnim->rport->pwwn);
406 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
413 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
434 struct bfa_fcs_rport_s *rport = itnim->rport;
439 if (BFA_FCS_PID_IS_WKA(rport->pid))
446 aen_entry->aen_data.itnim.vf_id = rport->port->fabric->vf_id;
449 aen_entry->aen_data.itnim.lpwwn = bfa_fcs_lport_get_pwwn(rport->port);
450 aen_entry->aen_data.itnim.rpwwn = rport->pwwn;
453 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq,
461 struct bfa_fcs_rport_s *rport = itnim->rport;
462 struct bfa_fcs_lport_s *port = rport->port;
467 bfa_trc(itnim->fcs, itnim->rport->pwwn);
480 itnim->rport->pid, bfa_fcs_lport_get_fcid(port), 0);
482 bfa_fcxp_send(fcxp, rport->bfa_rport, port->fabric->vf_id, port->lp_tag,
526 itnim->rport->scsi_function =
538 itnim->rport->scsi_function = BFA_RPORT_TARGET;
590 * Called by rport when a new rport is created.
592 * @param[in] rport - remote port.
595 bfa_fcs_itnim_create(struct bfa_fcs_rport_s *rport)
597 struct bfa_fcs_lport_s *port = rport->port;
607 bfa_trc(port->fcs, rport->pwwn);
614 itnim->rport = rport;
615 itnim->fcs = rport->fcs;
633 * Called by rport to delete the instance of FCPIM.
635 * @param[in] rport - remote port.
640 bfa_trc(itnim->fcs, itnim->rport->pid);
645 * Notification from rport that PLOGI is complete to initiate FC-4 session.
652 if (!BFA_FCS_PID_IS_WKA(itnim->rport->pid))
657 * Called by rport to handle a remote device offline.
667 * Called by rport when remote port is known to be an initiator from
673 bfa_trc(itnim->fcs, itnim->rport->pid);
679 * Called by rport to check if the itnim is online.
684 bfa_trc(itnim->fcs, itnim->rport->pid);
703 bfa_trc(itnim->fcs, itnim->rport->pwwn);
715 bfa_trc(itnim->fcs, itnim->rport->pwwn);
728 bfa_trc(itnim->fcs, itnim->rport->pwwn);
740 bfa_trc(itnim->fcs, itnim->rport->pwwn);
757 bfa_trc(itnim->fcs, itnim->rport->pwwn);
758 bfa_sm_send_event(itnim->rport, RPSM_EVENT_LOGO_IMP);
764 struct bfa_fcs_rport_s *rport;
765 rport = bfa_fcs_rport_lookup(port, rpwwn);
767 if (!rport)
770 WARN_ON(rport->itnim == NULL);
771 return rport->itnim;
844 bfa_fcs_rport_prlo(itnim->rport, fchs->ox_id);