Searched refs:n_port (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/drivers/scsi/libfc/
H A Dfc_npiv.c36 struct fc_lport *n_port = shost_priv(shost); libfc_vport_create() local
46 mutex_lock(&n_port->lp_mutex); libfc_vport_create()
47 list_add_tail(&vn_port->list, &n_port->vports); libfc_vport_create()
48 mutex_unlock(&n_port->lp_mutex); libfc_vport_create()
56 * @n_port: Top level N_Port which may have multiple NPIV VN_Ports
61 struct fc_lport *fc_vport_id_lookup(struct fc_lport *n_port, u32 port_id) fc_vport_id_lookup() argument
66 if (n_port->port_id == port_id) fc_vport_id_lookup()
67 return n_port; fc_vport_id_lookup()
70 return n_port; /* for point-to-point */ fc_vport_id_lookup()
72 mutex_lock(&n_port->lp_mutex); fc_vport_id_lookup()
73 list_for_each_entry(vn_port, &n_port->vports, list) { fc_vport_id_lookup()
79 mutex_unlock(&n_port->lp_mutex); fc_vport_id_lookup()
98 * @n_port: parent N_Port
103 static void __fc_vport_setlink(struct fc_lport *n_port, __fc_vport_setlink() argument
111 if (n_port->state == LPORT_ST_READY) { __fc_vport_setlink()
112 if (n_port->npiv_enabled) { __fc_vport_setlink()
133 struct fc_lport *n_port = shost_priv(shost); fc_vport_setlink() local
135 mutex_lock(&n_port->lp_mutex); fc_vport_setlink()
137 __fc_vport_setlink(n_port, vn_port); fc_vport_setlink()
139 mutex_unlock(&n_port->lp_mutex); fc_vport_setlink()
145 * @n_port: Parent N_Port that has changed state
147 * Locking: called with the n_port lp_mutex held
149 void fc_vports_linkchange(struct fc_lport *n_port) fc_vports_linkchange() argument
153 list_for_each_entry(vn_port, &n_port->vports, list) { fc_vports_linkchange()
155 __fc_vport_setlink(n_port, vn_port); fc_vports_linkchange()
/linux-4.1.27/net/key/
H A Daf_key.c970 struct sadb_x_nat_t_port *n_port; __pfkey_xfrm_state2msg() local
982 n_port = (struct sadb_x_nat_t_port*) skb_put(skb, sizeof (*n_port)); __pfkey_xfrm_state2msg()
983 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); __pfkey_xfrm_state2msg()
984 n_port->sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_SPORT; __pfkey_xfrm_state2msg()
985 n_port->sadb_x_nat_t_port_port = natt->encap_sport; __pfkey_xfrm_state2msg()
986 n_port->sadb_x_nat_t_port_reserved = 0; __pfkey_xfrm_state2msg()
989 n_port = (struct sadb_x_nat_t_port*) skb_put(skb, sizeof (*n_port)); __pfkey_xfrm_state2msg()
990 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); __pfkey_xfrm_state2msg()
991 n_port->sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_DPORT; __pfkey_xfrm_state2msg()
992 n_port->sadb_x_nat_t_port_port = natt->encap_dport; __pfkey_xfrm_state2msg()
993 n_port->sadb_x_nat_t_port_reserved = 0; __pfkey_xfrm_state2msg()
1237 const struct sadb_x_nat_t_port *n_port = pfkey_msg2xfrm_state() local
1239 natt->encap_sport = n_port->sadb_x_nat_t_port_port; pfkey_msg2xfrm_state()
1242 const struct sadb_x_nat_t_port *n_port = pfkey_msg2xfrm_state() local
1244 natt->encap_dport = n_port->sadb_x_nat_t_port_port; pfkey_msg2xfrm_state()
3281 struct sadb_x_nat_t_port *n_port; pfkey_send_new_mapping() local
3353 n_port = (struct sadb_x_nat_t_port*) skb_put(skb, sizeof (*n_port)); pfkey_send_new_mapping()
3354 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); pfkey_send_new_mapping()
3355 n_port->sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_SPORT; pfkey_send_new_mapping()
3356 n_port->sadb_x_nat_t_port_port = natt->encap_sport; pfkey_send_new_mapping()
3357 n_port->sadb_x_nat_t_port_reserved = 0; pfkey_send_new_mapping()
3376 n_port = (struct sadb_x_nat_t_port*) skb_put(skb, sizeof (*n_port)); pfkey_send_new_mapping()
3377 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); pfkey_send_new_mapping()
3378 n_port->sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_DPORT; pfkey_send_new_mapping()
3379 n_port->sadb_x_nat_t_port_port = sport; pfkey_send_new_mapping()
3380 n_port->sadb_x_nat_t_port_reserved = 0; pfkey_send_new_mapping()
/linux-4.1.27/drivers/scsi/bnx2fc/
H A Dbnx2fc_fcoe.c1063 struct fc_lport *n_port = shost_priv(shost); bnx2fc_vport_create() local
1064 struct fcoe_port *port = lport_priv(n_port); bnx2fc_vport_create()
1125 struct fc_lport *n_port = shost_priv(shost); bnx2fc_vport_destroy() local
1132 mutex_lock(&n_port->lp_mutex); bnx2fc_vport_destroy()
1133 list_for_each_entry(v_port, &n_port->vports, list) bnx2fc_vport_destroy()
1140 mutex_unlock(&n_port->lp_mutex); bnx2fc_vport_destroy()
1144 mutex_unlock(&n_port->lp_mutex); bnx2fc_vport_destroy()
1425 struct fc_lport *lport, *n_port; bnx2fc_if_create() local
1495 n_port = shost_priv(shost); bnx2fc_if_create()
1496 rc = fc_exch_mgr_list_clone(n_port, lport); bnx2fc_if_create()
/linux-4.1.27/drivers/scsi/fcoe/
H A Dfcoe_transport.c240 struct fc_lport *n_port = shost_priv(shost); fcoe_validate_vport_create() local
245 mutex_lock(&n_port->lp_mutex); fcoe_validate_vport_create()
249 if (!memcmp(&n_port->wwpn, &vport->port_name, sizeof(u64))) { fcoe_validate_vport_create()
257 list_for_each_entry(vn_port, &n_port->vports, list) { fcoe_validate_vport_create()
266 mutex_unlock(&n_port->lp_mutex); fcoe_validate_vport_create()
H A Dfcoe.c1097 struct fc_lport *lport, *n_port; fcoe_if_create() local
1190 n_port = shost_priv(shost); fcoe_if_create()
1191 rc = fc_exch_mgr_list_clone(n_port, lport); fcoe_if_create()
2820 struct fc_lport *n_port = shost_priv(shost); fcoe_vport_create() local
2821 struct fcoe_port *port = lport_priv(n_port); fcoe_vport_create()
2868 struct fc_lport *n_port = shost_priv(shost); fcoe_vport_destroy() local
2871 mutex_lock(&n_port->lp_mutex); fcoe_vport_destroy()
2873 mutex_unlock(&n_port->lp_mutex); fcoe_vport_destroy()
/linux-4.1.27/drivers/s390/scsi/
H A Dzfcp_fc.c124 * @event_data: The event data (e.g. n_port page in case of els)

Completed in 174 milliseconds