Lines Matching refs:vport

258 	struct efc_vport *vport;  in efc_vport_link_down()  local
261 list_for_each_entry(vport, &efc->vport_list, list_entry) { in efc_vport_link_down()
262 if (vport->nport == nport) { in efc_vport_link_down()
264 vport->nport = NULL; in efc_vport_link_down()
476 struct efc_vport *vport; in efc_vport_update_spec() local
480 list_for_each_entry(vport, &efc->vport_list, list_entry) { in efc_vport_update_spec()
481 if (vport->nport == nport) { in efc_vport_update_spec()
482 vport->wwnn = nport->wwnn; in efc_vport_update_spec()
483 vport->wwpn = nport->wwpn; in efc_vport_update_spec()
484 vport->tgt_data = nport->tgt_data; in efc_vport_update_spec()
485 vport->ini_data = nport->ini_data; in efc_vport_update_spec()
598 efc_vport_nport_alloc(struct efc_domain *domain, struct efc_vport *vport) in efc_vport_nport_alloc() argument
604 nport = efc_nport_alloc(domain, vport->wwpn, vport->wwnn, vport->fc_id, in efc_vport_nport_alloc()
605 vport->enable_ini, vport->enable_tgt); in efc_vport_nport_alloc()
606 vport->nport = nport; in efc_vport_nport_alloc()
612 nport->tgt_data = vport->tgt_data; in efc_vport_nport_alloc()
613 nport->ini_data = vport->ini_data; in efc_vport_nport_alloc()
624 struct efc_vport *vport; in efc_vport_start() local
631 list_for_each_entry_safe(vport, next, &efc->vport_list, list_entry) { in efc_vport_start()
632 if (!vport->nport) { in efc_vport_start()
633 if (efc_vport_nport_alloc(domain, vport)) in efc_vport_start()
648 struct efc_vport *vport; in efc_nport_vport_new() local
666 vport = efc_vport_create_spec(domain->efc, wwnn, wwpn, fc_id, ini, tgt, in efc_nport_vport_new()
668 if (!vport) { in efc_nport_vport_new()
674 rc = efc_vport_nport_alloc(domain, vport); in efc_nport_vport_new()
685 struct efc_vport *vport; in efc_nport_vport_del() local
691 list_for_each_entry_safe(vport, next, &efc->vport_list, list_entry) { in efc_nport_vport_del()
692 if (vport->wwpn == wwpn && vport->wwnn == wwnn) { in efc_nport_vport_del()
693 list_del(&vport->list_entry); in efc_nport_vport_del()
694 kfree(vport); in efc_nport_vport_del()
722 struct efc_vport *vport; in efc_vport_del_all() local
727 list_for_each_entry_safe(vport, next, &efc->vport_list, list_entry) { in efc_vport_del_all()
728 list_del(&vport->list_entry); in efc_vport_del_all()
729 kfree(vport); in efc_vport_del_all()
739 struct efc_vport *vport; in efc_vport_create_spec() local
748 list_for_each_entry(vport, &efc->vport_list, list_entry) { in efc_vport_create_spec()
749 if ((wwpn && vport->wwpn == wwpn) && in efc_vport_create_spec()
750 (wwnn && vport->wwnn == wwnn)) { in efc_vport_create_spec()
759 vport = kzalloc(sizeof(*vport), GFP_ATOMIC); in efc_vport_create_spec()
760 if (!vport) { in efc_vport_create_spec()
765 vport->wwnn = wwnn; in efc_vport_create_spec()
766 vport->wwpn = wwpn; in efc_vport_create_spec()
767 vport->fc_id = fc_id; in efc_vport_create_spec()
768 vport->enable_tgt = enable_tgt; in efc_vport_create_spec()
769 vport->enable_ini = enable_ini; in efc_vport_create_spec()
770 vport->tgt_data = tgt_data; in efc_vport_create_spec()
771 vport->ini_data = ini_data; in efc_vport_create_spec()
773 INIT_LIST_HEAD(&vport->list_entry); in efc_vport_create_spec()
774 list_add_tail(&vport->list_entry, &efc->vport_list); in efc_vport_create_spec()
776 return vport; in efc_vport_create_spec()