Lines Matching refs:rport

176 	struct bfa_fcs_rport_s *rport;
201 rport = (struct bfa_fcs_rport_s *) qe;
202 bfa_sm_send_event(rport, RPSM_EVENT_DELETE);
217 rport = (struct bfa_fcs_rport_s *) qe;
218 bfa_sm_send_event(rport, RPSM_EVENT_DELETE);
236 struct bfa_fcs_rport_s *rport;
259 rport = (struct bfa_fcs_rport_s *) qe;
260 bfa_sm_send_event(rport, RPSM_EVENT_DELETE);
272 rport = (struct bfa_fcs_rport_s *) qe;
273 bfa_sm_send_event(rport, RPSM_EVENT_DELETE);
430 struct bfa_fcs_rport_s *rport;
474 rport = bfa_fcs_lport_get_rport_by_pwwn(port, plogi->port_name);
475 if (rport) {
484 rport->pid = rx_fchs->s_id;
486 bfa_fcs_rport_plogi(rport, rx_fchs, plogi);
491 * Next, lookup rport by PID.
493 rport = bfa_fcs_lport_get_rport_by_pid(port, rx_fchs->s_id);
494 if (!rport) {
505 if (rport->pwwn) {
510 WARN_ON(rport->pwwn == plogi->port_name);
511 bfa_sm_send_event(rport, RPSM_EVENT_LOGO_IMP);
523 WARN_ON(rport->pwwn != WWN_NULL);
524 bfa_fcs_rport_plogi(rport, rx_fchs, plogi);
664 struct bfa_fcs_rport_s *rport;
687 rport = (struct bfa_fcs_rport_s *) qe;
688 bfa_sm_send_event(rport, RPSM_EVENT_LOGO_IMP);
760 struct bfa_fcs_rport_s *rport = NULL;
833 rport = bfa_fcs_lport_get_rport_by_pid(lport, pid);
834 if (rport) {
835 bfa_trc(rport->fcs, fchs->s_id);
836 bfa_trc(rport->fcs, fchs->d_id);
837 bfa_trc(rport->fcs, fchs->type);
839 bfa_fcs_rport_uf_recv(rport, fchs, len);
889 struct bfa_fcs_rport_s *rport;
893 rport = (struct bfa_fcs_rport_s *) qe;
894 if (rport->pid == pid)
895 return rport;
908 struct bfa_fcs_rport_s *rport;
912 rport = (struct bfa_fcs_rport_s *) qe;
913 if (rport->old_pid == pid)
914 return rport;
927 struct bfa_fcs_rport_s *rport;
931 rport = (struct bfa_fcs_rport_s *) qe;
932 if (wwn_is_equal(rport->pwwn, pwwn))
933 return rport;
946 struct bfa_fcs_rport_s *rport;
950 rport = (struct bfa_fcs_rport_s *) qe;
951 if (wwn_is_equal(rport->nwwn, nwwn))
952 return rport;
966 struct bfa_fcs_rport_s *rport;
970 rport = (struct bfa_fcs_rport_s *) qe;
971 if (wwn_is_equal(rport->pwwn, pwwn) && rport->pid == pid)
972 return rport;
980 * Called by rport module when new rports are discovered.
985 struct bfa_fcs_rport_s *rport)
987 list_add_tail(&rport->qe, &port->rport_q);
992 * Called by rport module to when rports are deleted.
997 struct bfa_fcs_rport_s *rport)
999 WARN_ON(!bfa_q_is_on_q(&port->rport_q, rport));
1000 list_del(&rport->qe);
1213 struct bfa_fcs_rport_s *rport;
1222 * with the PIDs assigned. The rport state machine take care of this
1233 rport = bfa_fcs_lport_get_rport_by_pwwn(port,
1235 if (rport) {
1236 bfa_trc(port->fcs, rport->pid);
1237 bfa_trc(port->fcs, rport->pwwn);
1238 rport->pid = N2N_REMOTE_PID;
1239 bfa_sm_send_event(rport, RPSM_EVENT_PLOGI_SEND);
1244 * In n2n there can be only one rport. Delete the old one
1248 rport = bfa_fcs_lport_get_rport_by_pid(port, 0);
1249 WARN_ON(rport == NULL);
1250 if (rport) {
1251 bfa_trc(port->fcs, rport->pwwn);
1252 bfa_sm_send_event(rport, RPSM_EVENT_DELETE);
1316 struct bfa_fcs_rport_s *rport;
1335 rport = bfa_fcs_lport_get_rport_by_pid(port,
1337 if (!rport)
1338 rport = bfa_fcs_rport_create(port,
1347 rport = bfa_fcs_lport_get_rport_by_pid(port,
1349 if (!rport)
1350 rport = bfa_fcs_rport_create(port,
4136 * If min cfg mode is enabled, we donot initiate rport
4977 struct bfa_fcs_rport_s *rport;
5014 * Check if this rport already exists
5016 rport = bfa_fcs_lport_get_rport_by_pid(port, gidft_entry->pid);
5017 if (rport == NULL) {
5019 * this is a new device. create rport
5021 rport = bfa_fcs_rport_create(port, gidft_entry->pid);
5024 * this rport already exists
5026 bfa_fcs_rport_scn(rport);
5088 struct bfa_fcs_rport_s *rport;
5096 rport = bfa_fcs_rport_create_by_wwn(port, wwns[ii]);
5097 WARN_ON(!rport);
5477 struct bfa_fcs_rport_s *rport;
5499 * Otherwise let rport handle the RSCN event.
5501 rport = bfa_fcs_lport_get_rport_by_pid(port, rpid);
5502 if (!rport)
5503 rport = bfa_fcs_lport_get_rport_by_old_pid(port, rpid);
5505 if (rport == NULL) {
5511 rport = bfa_fcs_rport_create(port, rpid);
5513 bfa_fcs_rport_scn(rport);
5532 struct bfa_fcs_rport_s *rport;
5542 rport = (struct bfa_fcs_rport_s *) qe;
5543 c1 = (u8 *) &rport->pid;
5545 bfa_fcs_rport_scn(rport);
5653 struct bfa_fcs_rport_s *rport = NULL;
5668 rport = (struct bfa_fcs_rport_s *) qe;
5669 if (bfa_ntoh3b(rport->pid) > 0xFFF000) {
5671 bfa_trc(fcs, (u32) rport->pwwn);
5672 bfa_trc(fcs, rport->pid);
5678 if (!memcmp(&wwn, &rport->pwwn, 8))
5690 if (rport)
5691 return rport->pwwn;
5701 struct bfa_fcs_rport_s *rport = NULL;
5716 rport = (struct bfa_fcs_rport_s *) qe;
5717 if (bfa_ntoh3b(rport->pid) > 0xFFF000) {
5719 bfa_trc(fcs, (u32) rport->pwwn);
5720 bfa_trc(fcs, rport->pid);
5725 if (!rport->pwwn && !rport->pid) {
5730 rports[i].pwwn = rport->pwwn;
5731 rports[i].pid = rport->pid;
5742 * Iterate's through all the rport's in the given port to
5751 struct bfa_fcs_rport_s *rport = NULL;
5773 rport = (struct bfa_fcs_rport_s *) qe;
5774 if ((bfa_ntoh3b(rport->pid) > 0xFFF000) ||
5775 (bfa_fcs_rport_get_state(rport) == BFA_RPORT_OFFLINE) ||
5776 (rport->scsi_function != BFA_RPORT_TARGET)) {
5781 rport_speed = rport->rpf.rpsc_speed;