Lines Matching defs:n_port
24 struct fc_lport *n_port = shost_priv(shost);
34 mutex_lock(&n_port->lp_mutex);
35 list_add_tail(&vn_port->list, &n_port->vports);
36 mutex_unlock(&n_port->lp_mutex);
44 * @n_port: Top level N_Port which may have multiple NPIV VN_Ports
49 struct fc_lport *fc_vport_id_lookup(struct fc_lport *n_port, u32 port_id)
54 if (n_port->port_id == port_id)
55 return n_port;
58 return n_port; /* for point-to-point */
60 mutex_lock(&n_port->lp_mutex);
61 list_for_each_entry(vn_port, &n_port->vports, list) {
67 mutex_unlock(&n_port->lp_mutex);
86 * @n_port: parent N_Port
91 static void __fc_vport_setlink(struct fc_lport *n_port,
99 if (n_port->state == LPORT_ST_READY) {
100 if (n_port->npiv_enabled) {
121 struct fc_lport *n_port = shost_priv(shost);
123 mutex_lock(&n_port->lp_mutex);
125 __fc_vport_setlink(n_port, vn_port);
127 mutex_unlock(&n_port->lp_mutex);
133 * @n_port: Parent N_Port that has changed state
135 * Locking: called with the n_port lp_mutex held
137 void fc_vports_linkchange(struct fc_lport *n_port)
141 list_for_each_entry(vn_port, &n_port->vports, list) {
143 __fc_vport_setlink(n_port, vn_port);