Lines Matching refs:nport

103 	node->nport->topology = topology;  in efc_fabric_set_topology()
116 xa_for_each(&node->nport->lookup, index, tmp_node) { in efc_fabric_notify_topology()
120 &node->nport->topology); in efc_fabric_notify_topology()
150 memcpy(node->nport->domain->flogi_service_params, in __efc_fabric_flogi_wait_rsp()
160 WARN_ON(node->nport->domain->attached); in __efc_fabric_flogi_wait_rsp()
161 efc_domain_attach(node->nport->domain, in __efc_fabric_flogi_wait_rsp()
171 if (efc_p2p_setup(node->nport)) { in __efc_fabric_flogi_wait_rsp()
179 if (node->nport->p2p_winner) { in __efc_fabric_flogi_wait_rsp()
183 if (node->nport->domain->attached && in __efc_fabric_flogi_wait_rsp()
184 !node->nport->domain->domain_notify_pend) { in __efc_fabric_flogi_wait_rsp()
212 struct efc_nport *nport = node->nport; in __efc_fabric_flogi_wait_rsp() local
224 efc_sm_event_name(evt), nport->display_name); in __efc_fabric_flogi_wait_rsp()
227 efc_sm_post_event(&nport->sm, EFC_EVT_SHUTDOWN, NULL); in __efc_fabric_flogi_wait_rsp()
280 efc_nport_attach(node->nport, cbdata->ext_status); in __efc_fabric_fdisc_wait_rsp()
296 efc_sm_post_event(&node->nport->sm, EFC_EVT_SHUTDOWN, NULL); in __efc_fabric_fdisc_wait_rsp()
306 efc_start_ns_node(struct efc_nport *nport) in efc_start_ns_node() argument
311 ns = efc_node_find(nport, FC_FID_DIR_SERV); in efc_start_ns_node()
313 ns = efc_node_alloc(nport, FC_FID_DIR_SERV, false, false); in efc_start_ns_node()
331 efc_start_fabctl_node(struct efc_nport *nport) in efc_start_fabctl_node() argument
335 fabctl = efc_node_find(nport, FC_FID_FCTRL); in efc_start_fabctl_node()
337 fabctl = efc_node_alloc(nport, FC_FID_FCTRL, in efc_start_fabctl_node()
374 rc = efc_start_ns_node(node->nport); in __efc_fabric_wait_domain_attach()
380 if (node->nport->enable_rscn) { in __efc_fabric_wait_domain_attach()
381 rc = efc_start_fabctl_node(node->nport); in __efc_fabric_wait_domain_attach()
622 if (node->nport->enable_rscn) { in __efc_ns_rffid_wait_rsp()
652 struct efc_nport *nport = node->nport; in efc_process_gidpt_payload() local
683 xa_for_each(&nport->lookup, index, n) { in efc_process_gidpt_payload()
696 xa_for_each(&nport->lookup, index, n) { in efc_process_gidpt_payload()
736 if ((node->nport->enable_ini && active_nodes[i]->targ) || in efc_process_gidpt_payload()
737 (node->nport->enable_tgt && enable_target_rscn(efc))) { in efc_process_gidpt_payload()
752 if (port_id == node->rnode.nport->fc_id) { in efc_process_gidpt_payload()
758 newnode = efc_node_find(nport, port_id); in efc_process_gidpt_payload()
760 if (!node->nport->enable_ini) in efc_process_gidpt_payload()
763 newnode = efc_node_alloc(nport, port_id, false, false); in efc_process_gidpt_payload()
775 if (node->nport->enable_ini && newnode->targ) { in efc_process_gidpt_payload()
870 !node->nport->enable_ini && node->nport->enable_tgt && in __efc_ns_idle()
1005 struct efc_nport *nport = node->nport; in efc_process_rscn() local
1009 ns = efc_node_find(nport, FC_FID_DIR_SERV); in efc_process_rscn()
1090 efc_rnode_is_winner(struct efc_nport *nport) in efc_rnode_is_winner() argument
1094 u64 local_wwpn = nport->wwpn; in efc_rnode_is_winner()
1097 remote_sp = (struct fc_els_flogi *)nport->domain->flogi_service_params; in efc_rnode_is_winner()
1102 efc_log_debug(nport->efc, "r: %llx\n", in efc_rnode_is_winner()
1104 efc_log_debug(nport->efc, "l: %llx\n", local_wwpn); in efc_rnode_is_winner()
1107 efc_log_warn(nport->efc, in efc_rnode_is_winner()
1138 struct efc_nport *nport = node->nport; in __efc_p2p_wait_domain_attach() local
1147 WARN_ON(!node->nport->p2p_winner); in __efc_p2p_wait_domain_attach()
1149 rnode = efc_node_find(nport, node->nport->p2p_remote_port_id); in __efc_p2p_wait_domain_attach()
1164 rnode = efc_node_alloc(nport, in __efc_p2p_wait_domain_attach()
1165 nport->p2p_remote_port_id, in __efc_p2p_wait_domain_attach()
1260 if (node->nport->p2p_winner) { in __efc_p2p_wait_flogi_acc_cmpl()
1264 if (!node->nport->domain->attached) { in __efc_p2p_wait_flogi_acc_cmpl()
1266 efc_domain_attach(node->nport->domain, in __efc_p2p_wait_flogi_acc_cmpl()
1267 node->nport->p2p_port_id); in __efc_p2p_wait_flogi_acc_cmpl()
1527 efc_p2p_setup(struct efc_nport *nport) in efc_p2p_setup() argument
1529 struct efc *efc = nport->efc; in efc_p2p_setup()
1532 rnode_winner = efc_rnode_is_winner(nport); in efc_p2p_setup()
1536 nport->p2p_remote_port_id = 0; in efc_p2p_setup()
1537 nport->p2p_port_id = 0; in efc_p2p_setup()
1538 nport->p2p_winner = false; in efc_p2p_setup()
1540 nport->p2p_remote_port_id = 2; in efc_p2p_setup()
1541 nport->p2p_port_id = 1; in efc_p2p_setup()
1542 nport->p2p_winner = true; in efc_p2p_setup()
1545 if (nport->efc->external_loopback) { in efc_p2p_setup()
1553 nport->p2p_remote_port_id = 1; in efc_p2p_setup()
1554 nport->p2p_port_id = 1; in efc_p2p_setup()
1555 nport->p2p_winner = true; in efc_p2p_setup()