Home
last modified time | relevance | path

Searched refs:vn_port (Results 1 – 5 of 5) sorted by relevance

/linux-4.4.14/drivers/scsi/libfc/
Dfc_npiv.c37 struct fc_lport *vn_port; in libfc_vport_create() local
39 vn_port = libfc_host_alloc(shost->hostt, privsize); in libfc_vport_create()
40 if (!vn_port) in libfc_vport_create()
41 return vn_port; in libfc_vport_create()
43 vn_port->vport = vport; in libfc_vport_create()
44 vport->dd_data = vn_port; in libfc_vport_create()
47 list_add_tail(&vn_port->list, &n_port->vports); in libfc_vport_create()
50 return vn_port; in libfc_vport_create()
64 struct fc_lport *vn_port; in fc_vport_id_lookup() local
73 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vport_id_lookup()
[all …]
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c502 struct fc_lport *vn_port; in bnx2fc_recv_frame() local
544 vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id)); in bnx2fc_recv_frame()
545 if (vn_port) { in bnx2fc_recv_frame()
546 port = lport_priv(vn_port); in bnx2fc_recv_frame()
1066 struct fc_lport *vn_port; in bnx2fc_vport_create() local
1086 vn_port = bnx2fc_if_create(interface, &vport->dev, 1); in bnx2fc_vport_create()
1090 if (!vn_port) { in bnx2fc_vport_create()
1099 vn_port->boot_time = jiffies; in bnx2fc_vport_create()
1100 fc_lport_init(vn_port); in bnx2fc_vport_create()
1101 fc_fabric_login(vn_port); in bnx2fc_vport_create()
[all …]
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_ctlr.c1325 struct fc_lport *vn_port = NULL; in fcoe_ctlr_recv_clr_vlink() local
1399 vn_port = fc_vport_id_lookup(lport, in fcoe_ctlr_recv_clr_vlink()
1401 if (vn_port && (vn_port == lport)) { in fcoe_ctlr_recv_clr_vlink()
1439 list_for_each_entry(vn_port, &lport->vports, list) in fcoe_ctlr_recv_clr_vlink()
1440 fc_lport_reset(vn_port); in fcoe_ctlr_recv_clr_vlink()
1451 vn_port = fc_vport_id_lookup(lport, in fcoe_ctlr_recv_clr_vlink()
1453 if (!vn_port) in fcoe_ctlr_recv_clr_vlink()
1460 if (!ether_addr_equal(fip->get_src_addr(vn_port), in fcoe_ctlr_recv_clr_vlink()
1463 vn_port->wwpn) in fcoe_ctlr_recv_clr_vlink()
1466 if (vn_port == lport) in fcoe_ctlr_recv_clr_vlink()
[all …]
Dfcoe.c2822 struct fc_lport *vn_port; in fcoe_vport_create() local
2837 vn_port = fcoe_if_create(fcoe, &vport->dev, 1); in fcoe_vport_create()
2841 if (IS_ERR(vn_port)) { in fcoe_vport_create()
2850 vn_port->boot_time = jiffies; in fcoe_vport_create()
2851 fc_fabric_login(vn_port); in fcoe_vport_create()
2852 fc_vport_setlink(vn_port); in fcoe_vport_create()
2867 struct fc_lport *vn_port = vport->dd_data; in fcoe_vport_destroy() local
2870 list_del(&vn_port->list); in fcoe_vport_destroy()
2874 fcoe_if_destroy(vn_port); in fcoe_vport_destroy()
Dfcoe_transport.c241 struct fc_lport *vn_port; in fcoe_validate_vport_create() local
257 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()
258 if (!memcmp(&vn_port->wwpn, &vport->port_name, sizeof(u64))) { in fcoe_validate_vport_create()