Lines Matching defs:vn_port
25 struct fc_lport *vn_port;
27 vn_port = libfc_host_alloc(shost->hostt, privsize);
28 if (!vn_port)
29 return vn_port;
31 vn_port->vport = vport;
32 vport->dd_data = vn_port;
35 list_add_tail(&vn_port->list, &n_port->vports);
38 return vn_port;
52 struct fc_lport *vn_port;
61 list_for_each_entry(vn_port, &n_port->vports, list) {
62 if (vn_port->port_id == port_id) {
63 lport = vn_port;
87 * @vn_port: VN_Port to update
92 struct fc_lport *vn_port)
94 struct fc_vport *vport = vn_port->vport;
96 if (vn_port->state == LPORT_ST_DISABLED)
102 __fc_linkup(vn_port);
105 __fc_linkdown(vn_port);
109 __fc_linkdown(vn_port);
115 * @vn_port: virtual port to update
117 void fc_vport_setlink(struct fc_lport *vn_port)
119 struct fc_vport *vport = vn_port->vport;
124 mutex_lock_nested(&vn_port->lp_mutex, LPORT_MUTEX_VN_PORT);
125 __fc_vport_setlink(n_port, vn_port);
126 mutex_unlock(&vn_port->lp_mutex);
139 struct fc_lport *vn_port;
141 list_for_each_entry(vn_port, &n_port->vports, list) {
142 mutex_lock_nested(&vn_port->lp_mutex, LPORT_MUTEX_VN_PORT);
143 __fc_vport_setlink(n_port, vn_port);
144 mutex_unlock(&vn_port->lp_mutex);