Searched refs:vn_port (Results 1 - 5 of 5) sorted by relevance
/linux-4.1.27/drivers/scsi/libfc/ |
H A D | fc_npiv.c | 37 struct fc_lport *vn_port; libfc_vport_create() local 39 vn_port = libfc_host_alloc(shost->hostt, privsize); libfc_vport_create() 40 if (!vn_port) libfc_vport_create() 41 return vn_port; libfc_vport_create() 43 vn_port->vport = vport; libfc_vport_create() 44 vport->dd_data = vn_port; libfc_vport_create() 47 list_add_tail(&vn_port->list, &n_port->vports); libfc_vport_create() 50 return vn_port; libfc_vport_create() 64 struct fc_lport *vn_port; fc_vport_id_lookup() local 73 list_for_each_entry(vn_port, &n_port->vports, list) { fc_vport_id_lookup() 74 if (vn_port->port_id == port_id) { fc_vport_id_lookup() 75 lport = vn_port; fc_vport_id_lookup() 99 * @vn_port: VN_Port to update 104 struct fc_lport *vn_port) __fc_vport_setlink() 106 struct fc_vport *vport = vn_port->vport; __fc_vport_setlink() 108 if (vn_port->state == LPORT_ST_DISABLED) __fc_vport_setlink() 114 __fc_linkup(vn_port); __fc_vport_setlink() 117 __fc_linkdown(vn_port); __fc_vport_setlink() 121 __fc_linkdown(vn_port); __fc_vport_setlink() 127 * @vn_port: virtual port to update 129 void fc_vport_setlink(struct fc_lport *vn_port) fc_vport_setlink() argument 131 struct fc_vport *vport = vn_port->vport; fc_vport_setlink() 136 mutex_lock_nested(&vn_port->lp_mutex, LPORT_MUTEX_VN_PORT); fc_vport_setlink() 137 __fc_vport_setlink(n_port, vn_port); fc_vport_setlink() 138 mutex_unlock(&vn_port->lp_mutex); fc_vport_setlink() 151 struct fc_lport *vn_port; fc_vports_linkchange() local 153 list_for_each_entry(vn_port, &n_port->vports, list) { fc_vports_linkchange() 154 mutex_lock_nested(&vn_port->lp_mutex, LPORT_MUTEX_VN_PORT); fc_vports_linkchange() 155 __fc_vport_setlink(n_port, vn_port); fc_vports_linkchange() 156 mutex_unlock(&vn_port->lp_mutex); fc_vports_linkchange() 103 __fc_vport_setlink(struct fc_lport *n_port, struct fc_lport *vn_port) __fc_vport_setlink() argument
|
/linux-4.1.27/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_fcoe.c | 502 struct fc_lport *vn_port; bnx2fc_recv_frame() local 544 vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id)); bnx2fc_recv_frame() 545 if (vn_port) { bnx2fc_recv_frame() 546 port = lport_priv(vn_port); bnx2fc_recv_frame() 1067 struct fc_lport *vn_port; bnx2fc_vport_create() local 1087 vn_port = bnx2fc_if_create(interface, &vport->dev, 1); bnx2fc_vport_create() 1091 if (!vn_port) { bnx2fc_vport_create() 1100 vn_port->boot_time = jiffies; bnx2fc_vport_create() 1101 fc_lport_init(vn_port); bnx2fc_vport_create() 1102 fc_fabric_login(vn_port); bnx2fc_vport_create() 1103 fc_vport_setlink(vn_port); bnx2fc_vport_create() 1126 struct fc_lport *vn_port = vport->dd_data; bnx2fc_vport_destroy() local 1127 struct fcoe_port *port = lport_priv(vn_port); bnx2fc_vport_destroy() 1143 list_del(&vn_port->list); bnx2fc_vport_destroy()
|
/linux-4.1.27/drivers/scsi/fcoe/ |
H A D | fcoe_ctlr.c | 1325 struct fc_lport *vn_port = NULL; fcoe_ctlr_recv_clr_vlink() local 1399 vn_port = fc_vport_id_lookup(lport, fcoe_ctlr_recv_clr_vlink() 1401 if (vn_port && (vn_port == lport)) { fcoe_ctlr_recv_clr_vlink() 1439 list_for_each_entry(vn_port, &lport->vports, list) fcoe_ctlr_recv_clr_vlink() 1440 fc_lport_reset(vn_port); fcoe_ctlr_recv_clr_vlink() 1451 vn_port = fc_vport_id_lookup(lport, fcoe_ctlr_recv_clr_vlink() 1453 if (!vn_port) fcoe_ctlr_recv_clr_vlink() 1460 if (!ether_addr_equal(fip->get_src_addr(vn_port), fcoe_ctlr_recv_clr_vlink() 1463 vn_port->wwpn) fcoe_ctlr_recv_clr_vlink() 1466 if (vn_port == lport) fcoe_ctlr_recv_clr_vlink() 1473 fc_lport_reset(vn_port); fcoe_ctlr_recv_clr_vlink()
|
H A D | fcoe.c | 2824 struct fc_lport *vn_port; fcoe_vport_create() local 2839 vn_port = fcoe_if_create(fcoe, &vport->dev, 1); fcoe_vport_create() 2843 if (IS_ERR(vn_port)) { fcoe_vport_create() 2852 vn_port->boot_time = jiffies; fcoe_vport_create() 2853 fc_fabric_login(vn_port); fcoe_vport_create() 2854 fc_vport_setlink(vn_port); fcoe_vport_create() 2869 struct fc_lport *vn_port = vport->dd_data; fcoe_vport_destroy() local 2872 list_del(&vn_port->list); fcoe_vport_destroy() 2876 fcoe_if_destroy(vn_port); fcoe_vport_destroy()
|
H A D | fcoe_transport.c | 241 struct fc_lport *vn_port; fcoe_validate_vport_create() local 257 list_for_each_entry(vn_port, &n_port->vports, list) { fcoe_validate_vport_create() 258 if (!memcmp(&vn_port->wwpn, &vport->port_name, sizeof(u64))) { fcoe_validate_vport_create()
|
Completed in 146 milliseconds