Lines Matching refs:nport
245 struct efc_nport *nport; in __efc_domain_init() local
261 nport = efc_nport_alloc(domain, my_wwpn, my_wwnn, U32_MAX, in __efc_domain_init()
264 if (!nport) { in __efc_domain_init()
268 efc_sm_transition(&nport->sm, __efc_nport_allocated, NULL); in __efc_domain_init()
270 bewwpn = cpu_to_be64(nport->wwpn); in __efc_domain_init()
275 if (efc_cmd_nport_alloc(efc, nport, NULL, (uint8_t *)&bewwpn)) { in __efc_domain_init()
277 efc_nport_free(nport); in __efc_domain_init()
310 nport->fc_id = drec->fc_id; in __efc_domain_init()
311 nport->topology = EFC_NPORT_TOPO_FC_AL; in __efc_domain_init()
312 snprintf(nport->display_name, sizeof(nport->display_name), in __efc_domain_init()
327 node = efc_node_alloc(nport, in __efc_domain_init()
367 struct efc_nport *nport; in __efc_domain_wait_alloc() local
369 nport = domain->nport; in __efc_domain_wait_alloc()
370 if (WARN_ON(!nport)) in __efc_domain_wait_alloc()
373 sp = (struct fc_els_flogi *)nport->service_params; in __efc_domain_wait_alloc()
378 memcpy(nport->service_params + 4, domain->dma.virt, in __efc_domain_wait_alloc()
385 sp->fl_wwpn = cpu_to_be64(nport->wwpn); in __efc_domain_wait_alloc()
386 sp->fl_wwnn = cpu_to_be64(nport->wwnn); in __efc_domain_wait_alloc()
405 __efc_domain_attach_internal(domain, nport->fc_id); in __efc_domain_wait_alloc()
412 node = efc_node_find(nport, FC_FID_FLOGI); in __efc_domain_wait_alloc()
418 node = efc_node_alloc(nport, FC_FID_FLOGI, in __efc_domain_wait_alloc()
478 rc = xa_err(xa_store(&domain->lookup, fc_id, domain->nport, in __efc_domain_allocated()
486 efc_node_fcid_display(fc_id, domain->nport->display_name, in __efc_domain_allocated()
487 sizeof(domain->nport->display_name)); in __efc_domain_allocated()
517 struct efc_nport *nport = NULL, *nport_next = NULL; in __efc_domain_allocated() local
521 list_for_each_entry_safe(nport, nport_next, in __efc_domain_allocated()
524 efc_sm_post_event(&nport->sm, in __efc_domain_allocated()
554 struct efc_nport *nport, *next_nport; in __efc_domain_wait_attach() local
579 list_for_each_entry_safe(nport, next_nport, in __efc_domain_wait_attach()
581 xa_for_each(&nport->lookup, index, node) { in __efc_domain_wait_attach()
646 struct efc_nport *nport = NULL, *nport_next = NULL; in __efc_domain_ready() local
650 list_for_each_entry_safe(nport, nport_next, in __efc_domain_ready()
653 efc_sm_post_event(&nport->sm, in __efc_domain_ready()
685 WARN_ON(domain->nport->fc_id != fc_id); in __efc_domain_ready()
793 struct efc_nport *nport = NULL, *nport_next = NULL; in __efc_domain_wait_domain_lost() local
797 list_for_each_entry_safe(nport, nport_next, in __efc_domain_wait_domain_lost()
800 efc_sm_post_event(&nport->sm, in __efc_domain_wait_domain_lost()
944 struct efc_nport *nport = NULL; in efc_domain_dispatch_frame() local
961 nport = efc_nport_find(domain, d_id); in efc_domain_dispatch_frame()
962 if (!nport) { in efc_domain_dispatch_frame()
971 nport = domain->nport; in efc_domain_dispatch_frame()
972 if (!nport || !kref_get_unless_zero(&nport->ref)) { in efc_domain_dispatch_frame()
979 node = efc_node_find(nport, s_id); in efc_domain_dispatch_frame()
993 node = efc_node_alloc(nport, s_id, false, false); in efc_domain_dispatch_frame()
1016 kref_put(&nport->ref, nport->release); in efc_domain_dispatch_frame()