Lines Matching refs:rport

185 	struct bfa_fcs_rport_s *rport;  in bfa_fcs_lport_sm_online()  local
210 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online()
211 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online()
226 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online()
227 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online()
245 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_offline() local
268 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline()
269 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline()
281 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline()
282 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline()
439 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_plogi() local
483 rport = bfa_fcs_lport_get_rport_by_pwwn(port, plogi->port_name); in bfa_fcs_lport_plogi()
484 if (rport) { in bfa_fcs_lport_plogi()
493 rport->pid = rx_fchs->s_id; in bfa_fcs_lport_plogi()
495 bfa_fcs_rport_plogi(rport, rx_fchs, plogi); in bfa_fcs_lport_plogi()
502 rport = bfa_fcs_lport_get_rport_by_pid(port, rx_fchs->s_id); in bfa_fcs_lport_plogi()
503 if (!rport) { in bfa_fcs_lport_plogi()
514 if (rport->pwwn) { in bfa_fcs_lport_plogi()
519 WARN_ON(rport->pwwn == plogi->port_name); in bfa_fcs_lport_plogi()
520 bfa_sm_send_event(rport, RPSM_EVENT_LOGO_IMP); in bfa_fcs_lport_plogi()
532 WARN_ON(rport->pwwn != WWN_NULL); in bfa_fcs_lport_plogi()
533 bfa_fcs_rport_plogi(rport, rx_fchs, plogi); in bfa_fcs_lport_plogi()
673 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_offline_actions() local
696 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_offline_actions()
697 bfa_sm_send_event(rport, RPSM_EVENT_LOGO_IMP); in bfa_fcs_lport_offline_actions()
769 struct bfa_fcs_rport_s *rport = NULL; in bfa_fcs_lport_uf_recv() local
842 rport = bfa_fcs_lport_get_rport_by_pid(lport, pid); in bfa_fcs_lport_uf_recv()
843 if (rport) { in bfa_fcs_lport_uf_recv()
844 bfa_trc(rport->fcs, fchs->s_id); in bfa_fcs_lport_uf_recv()
845 bfa_trc(rport->fcs, fchs->d_id); in bfa_fcs_lport_uf_recv()
846 bfa_trc(rport->fcs, fchs->type); in bfa_fcs_lport_uf_recv()
848 bfa_fcs_rport_uf_recv(rport, fchs, len); in bfa_fcs_lport_uf_recv()
898 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_get_rport_by_pid() local
902 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_get_rport_by_pid()
903 if (rport->pid == pid) in bfa_fcs_lport_get_rport_by_pid()
904 return rport; in bfa_fcs_lport_get_rport_by_pid()
917 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_get_rport_by_old_pid() local
921 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_get_rport_by_old_pid()
922 if (rport->old_pid == pid) in bfa_fcs_lport_get_rport_by_old_pid()
923 return rport; in bfa_fcs_lport_get_rport_by_old_pid()
936 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_get_rport_by_pwwn() local
940 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_get_rport_by_pwwn()
941 if (wwn_is_equal(rport->pwwn, pwwn)) in bfa_fcs_lport_get_rport_by_pwwn()
942 return rport; in bfa_fcs_lport_get_rport_by_pwwn()
955 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_get_rport_by_nwwn() local
959 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_get_rport_by_nwwn()
960 if (wwn_is_equal(rport->nwwn, nwwn)) in bfa_fcs_lport_get_rport_by_nwwn()
961 return rport; in bfa_fcs_lport_get_rport_by_nwwn()
975 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_get_rport_by_qualifier() local
979 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_get_rport_by_qualifier()
980 if (wwn_is_equal(rport->pwwn, pwwn) && rport->pid == pid) in bfa_fcs_lport_get_rport_by_qualifier()
981 return rport; in bfa_fcs_lport_get_rport_by_qualifier()
994 struct bfa_fcs_rport_s *rport) in bfa_fcs_lport_add_rport() argument
996 list_add_tail(&rport->qe, &port->rport_q); in bfa_fcs_lport_add_rport()
1006 struct bfa_fcs_rport_s *rport) in bfa_fcs_lport_del_rport() argument
1008 WARN_ON(!bfa_q_is_on_q(&port->rport_q, rport)); in bfa_fcs_lport_del_rport()
1009 list_del(&rport->qe); in bfa_fcs_lport_del_rport()
1222 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_n2n_online() local
1242 rport = bfa_fcs_lport_get_rport_by_pwwn(port, in bfa_fcs_lport_n2n_online()
1244 if (rport) { in bfa_fcs_lport_n2n_online()
1245 bfa_trc(port->fcs, rport->pid); in bfa_fcs_lport_n2n_online()
1246 bfa_trc(port->fcs, rport->pwwn); in bfa_fcs_lport_n2n_online()
1247 rport->pid = N2N_REMOTE_PID; in bfa_fcs_lport_n2n_online()
1248 bfa_sm_send_event(rport, RPSM_EVENT_PLOGI_SEND); in bfa_fcs_lport_n2n_online()
1257 rport = bfa_fcs_lport_get_rport_by_pid(port, 0); in bfa_fcs_lport_n2n_online()
1258 WARN_ON(rport == NULL); in bfa_fcs_lport_n2n_online()
1259 if (rport) { in bfa_fcs_lport_n2n_online()
1260 bfa_trc(port->fcs, rport->pwwn); in bfa_fcs_lport_n2n_online()
1261 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_n2n_online()
1325 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_loop_online() local
1344 rport = bfa_fcs_lport_get_rport_by_pid(port, in bfa_fcs_lport_loop_online()
1346 if (!rport) in bfa_fcs_lport_loop_online()
1347 rport = bfa_fcs_rport_create(port, in bfa_fcs_lport_loop_online()
1356 rport = bfa_fcs_lport_get_rport_by_pid(port, in bfa_fcs_lport_loop_online()
1358 if (!rport) in bfa_fcs_lport_loop_online()
1359 rport = bfa_fcs_rport_create(port, in bfa_fcs_lport_loop_online()
5032 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_ns_process_gidft_pids() local
5071 rport = bfa_fcs_lport_get_rport_by_pid(port, gidft_entry->pid); in bfa_fcs_lport_ns_process_gidft_pids()
5072 if (rport == NULL) { in bfa_fcs_lport_ns_process_gidft_pids()
5076 rport = bfa_fcs_rport_create(port, gidft_entry->pid); in bfa_fcs_lport_ns_process_gidft_pids()
5081 bfa_fcs_rport_scn(rport); in bfa_fcs_lport_ns_process_gidft_pids()
5143 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_ns_boot_target_disc() local
5151 rport = bfa_fcs_rport_create_by_wwn(port, wwns[ii]); in bfa_fcs_lport_ns_boot_target_disc()
5152 WARN_ON(!rport); in bfa_fcs_lport_ns_boot_target_disc()
5550 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_scn_portid_rscn() local
5574 rport = bfa_fcs_lport_get_rport_by_pid(port, rpid); in bfa_fcs_lport_scn_portid_rscn()
5575 if (!rport) in bfa_fcs_lport_scn_portid_rscn()
5576 rport = bfa_fcs_lport_get_rport_by_old_pid(port, rpid); in bfa_fcs_lport_scn_portid_rscn()
5578 if (rport == NULL) { in bfa_fcs_lport_scn_portid_rscn()
5584 rport = bfa_fcs_rport_create(port, rpid); in bfa_fcs_lport_scn_portid_rscn()
5586 bfa_fcs_rport_scn(rport); in bfa_fcs_lport_scn_portid_rscn()
5605 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_scn_multiport_rscn() local
5615 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_scn_multiport_rscn()
5616 c1 = (u8 *) &rport->pid; in bfa_fcs_lport_scn_multiport_rscn()
5618 bfa_fcs_rport_scn(rport); in bfa_fcs_lport_scn_multiport_rscn()
5726 struct bfa_fcs_rport_s *rport = NULL; in bfa_fcs_lport_get_rport() local
5741 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_get_rport()
5742 if (bfa_ntoh3b(rport->pid) > 0xFFF000) { in bfa_fcs_lport_get_rport()
5744 bfa_trc(fcs, (u32) rport->pwwn); in bfa_fcs_lport_get_rport()
5745 bfa_trc(fcs, rport->pid); in bfa_fcs_lport_get_rport()
5751 if (!memcmp(&wwn, &rport->pwwn, 8)) in bfa_fcs_lport_get_rport()
5763 if (rport) in bfa_fcs_lport_get_rport()
5764 return rport->pwwn; in bfa_fcs_lport_get_rport()
5774 struct bfa_fcs_rport_s *rport = NULL; in bfa_fcs_lport_get_rport_quals() local
5789 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_get_rport_quals()
5790 if (bfa_ntoh3b(rport->pid) > 0xFFF000) { in bfa_fcs_lport_get_rport_quals()
5792 bfa_trc(fcs, (u32) rport->pwwn); in bfa_fcs_lport_get_rport_quals()
5793 bfa_trc(fcs, rport->pid); in bfa_fcs_lport_get_rport_quals()
5798 if (!rport->pwwn && !rport->pid) { in bfa_fcs_lport_get_rport_quals()
5803 rports[i].pwwn = rport->pwwn; in bfa_fcs_lport_get_rport_quals()
5804 rports[i].pid = rport->pid; in bfa_fcs_lport_get_rport_quals()
5824 struct bfa_fcs_rport_s *rport = NULL; in bfa_fcs_lport_get_rport_max_speed() local
5846 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_get_rport_max_speed()
5847 if ((bfa_ntoh3b(rport->pid) > 0xFFF000) || in bfa_fcs_lport_get_rport_max_speed()
5848 (bfa_fcs_rport_get_state(rport) == BFA_RPORT_OFFLINE) || in bfa_fcs_lport_get_rport_max_speed()
5849 (rport->scsi_function != BFA_RPORT_TARGET)) { in bfa_fcs_lport_get_rport_max_speed()
5854 rport_speed = rport->rpf.rpsc_speed; in bfa_fcs_lport_get_rport_max_speed()