Lines Matching defs:vn_port
36 struct fc_lport *vn_port;
38 vn_port = libfc_host_alloc(shost->hostt, privsize);
39 if (!vn_port)
41 if (fc_exch_mgr_list_clone(n_port, vn_port))
44 vn_port->vport = vport;
45 vport->dd_data = vn_port;
48 list_add_tail(&vn_port->list, &n_port->vports);
51 return vn_port;
54 scsi_host_put(vn_port->host);
70 struct fc_lport *vn_port;
79 list_for_each_entry(vn_port, &n_port->vports, list) {
80 if (vn_port->port_id == port_id) {
81 lport = vn_port;
104 * @vn_port: VN_Port to update
109 struct fc_lport *vn_port)
111 struct fc_vport *vport = vn_port->vport;
113 if (vn_port->state == LPORT_ST_DISABLED)
119 __fc_linkup(vn_port);
122 __fc_linkdown(vn_port);
126 __fc_linkdown(vn_port);
132 * @vn_port: virtual port to update
134 void fc_vport_setlink(struct fc_lport *vn_port)
136 struct fc_vport *vport = vn_port->vport;
141 mutex_lock_nested(&vn_port->lp_mutex, LPORT_MUTEX_VN_PORT);
142 __fc_vport_setlink(n_port, vn_port);
143 mutex_unlock(&vn_port->lp_mutex);
156 struct fc_lport *vn_port;
158 list_for_each_entry(vn_port, &n_port->vports, list) {
159 mutex_lock_nested(&vn_port->lp_mutex, LPORT_MUTEX_VN_PORT);
160 __fc_vport_setlink(n_port, vn_port);
161 mutex_unlock(&vn_port->lp_mutex);