Lines Matching defs:rport
74 bfa_trc(itnim->fcs, itnim->rport->pwwn);
85 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
106 bfa_trc(itnim->fcs, itnim->rport->pwwn);
117 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
123 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
141 bfa_trc(itnim->fcs, itnim->rport->pwwn);
146 if (itnim->rport->scsi_function == BFA_RPORT_INITIATOR)
152 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
169 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
175 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
193 bfa_trc(itnim->fcs, itnim->rport->pwwn);
200 itnim->rport->bfa_rport, itnim);
207 bfa_sm_send_event(itnim->rport, RPSM_EVENT_DELETE);
214 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
231 bfa_trc(itnim->fcs, itnim->rport->pwwn);
244 bfa_sm_send_event(itnim->rport, RPSM_EVENT_LOGO_IMP);
252 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
258 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
280 bfa_trc(itnim->fcs, itnim->rport->pwwn);
287 wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(itnim->rport->port));
288 wwn2str(rpwwn_buf, itnim->rport->pwwn);
318 bfa_trc(itnim->fcs, itnim->rport->pwwn);
326 wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(itnim->rport->port));
327 wwn2str(rpwwn_buf, itnim->rport->pwwn);
328 if (bfa_fcs_lport_is_online(itnim->rport->port) == BFA_TRUE) {
355 bfa_trc(itnim->fcs, itnim->rport->pwwn);
361 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
375 * This state is set when a discovered rport is also in intiator mode.
383 bfa_trc(itnim->fcs, itnim->rport->pwwn);
389 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE);
396 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE);
417 struct bfa_fcs_rport_s *rport = itnim->rport;
422 if (BFA_FCS_PID_IS_WKA(rport->pid))
429 aen_entry->aen_data.itnim.vf_id = rport->port->fabric->vf_id;
432 aen_entry->aen_data.itnim.lpwwn = bfa_fcs_lport_get_pwwn(rport->port);
433 aen_entry->aen_data.itnim.rpwwn = rport->pwwn;
436 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq,
444 struct bfa_fcs_rport_s *rport = itnim->rport;
445 struct bfa_fcs_lport_s *port = rport->port;
450 bfa_trc(itnim->fcs, itnim->rport->pwwn);
463 itnim->rport->pid, bfa_fcs_lport_get_fcid(port), 0);
465 bfa_fcxp_send(fcxp, rport->bfa_rport, port->fabric->vf_id, port->lp_tag,
509 itnim->rport->scsi_function =
521 itnim->rport->scsi_function = BFA_RPORT_TARGET;
573 * Called by rport when a new rport is created.
575 * @param[in] rport - remote port.
578 bfa_fcs_itnim_create(struct bfa_fcs_rport_s *rport)
580 struct bfa_fcs_lport_s *port = rport->port;
590 bfa_trc(port->fcs, rport->pwwn);
597 itnim->rport = rport;
598 itnim->fcs = rport->fcs;
616 * Called by rport to delete the instance of FCPIM.
618 * @param[in] rport - remote port.
623 bfa_trc(itnim->fcs, itnim->rport->pid);
628 * Notification from rport that PLOGI is complete to initiate FC-4 session.
635 if (!BFA_FCS_PID_IS_WKA(itnim->rport->pid))
640 * Called by rport to handle a remote device offline.
650 * Called by rport when remote port is known to be an initiator from
656 bfa_trc(itnim->fcs, itnim->rport->pid);
662 * Called by rport to check if the itnim is online.
667 bfa_trc(itnim->fcs, itnim->rport->pid);
686 bfa_trc(itnim->fcs, itnim->rport->pwwn);
698 bfa_trc(itnim->fcs, itnim->rport->pwwn);
711 bfa_trc(itnim->fcs, itnim->rport->pwwn);
723 bfa_trc(itnim->fcs, itnim->rport->pwwn);
740 bfa_trc(itnim->fcs, itnim->rport->pwwn);
741 bfa_sm_send_event(itnim->rport, RPSM_EVENT_LOGO_IMP);
747 struct bfa_fcs_rport_s *rport;
748 rport = bfa_fcs_rport_lookup(port, rpwwn);
750 if (!rport)
753 WARN_ON(rport->itnim == NULL);
754 return rport->itnim;
827 bfa_fcs_rport_prlo(itnim->rport, fchs->ox_id);