Home
last modified time | relevance | path

Searched refs:n_port (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/drivers/scsi/libfc/
Dfc_npiv.c35 struct fc_lport *n_port = shost_priv(shost); in libfc_vport_create() local
45 mutex_lock(&n_port->lp_mutex); in libfc_vport_create()
46 list_add_tail(&vn_port->list, &n_port->vports); in libfc_vport_create()
47 mutex_unlock(&n_port->lp_mutex); in libfc_vport_create()
60 struct fc_lport *fc_vport_id_lookup(struct fc_lport *n_port, u32 port_id) in fc_vport_id_lookup() argument
65 if (n_port->port_id == port_id) in fc_vport_id_lookup()
66 return n_port; in fc_vport_id_lookup()
69 return n_port; /* for point-to-point */ in fc_vport_id_lookup()
71 mutex_lock(&n_port->lp_mutex); in fc_vport_id_lookup()
72 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vport_id_lookup()
[all …]
/linux-2.6.39/net/key/
Daf_key.c970 struct sadb_x_nat_t_port *n_port; in __pfkey_xfrm_state2msg() local
982 n_port = (struct sadb_x_nat_t_port*) skb_put(skb, sizeof (*n_port)); in __pfkey_xfrm_state2msg()
983 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); in __pfkey_xfrm_state2msg()
984 n_port->sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_SPORT; in __pfkey_xfrm_state2msg()
985 n_port->sadb_x_nat_t_port_port = natt->encap_sport; in __pfkey_xfrm_state2msg()
986 n_port->sadb_x_nat_t_port_reserved = 0; in __pfkey_xfrm_state2msg()
989 n_port = (struct sadb_x_nat_t_port*) skb_put(skb, sizeof (*n_port)); in __pfkey_xfrm_state2msg()
990 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); in __pfkey_xfrm_state2msg()
991 n_port->sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_DPORT; in __pfkey_xfrm_state2msg()
992 n_port->sadb_x_nat_t_port_port = natt->encap_dport; in __pfkey_xfrm_state2msg()
[all …]
/linux-2.6.39/drivers/scsi/fcoe/
Dfcoe.c929 struct fc_lport *lport, *n_port; in fcoe_if_create() local
1012 n_port = shost_priv(shost); in fcoe_if_create()
1013 rc = fc_exch_mgr_list_clone(n_port, lport); in fcoe_if_create()
2420 struct fc_lport *n_port = shost_priv(shost); in fcoe_vport_create() local
2421 struct fcoe_port *port = lport_priv(n_port); in fcoe_vport_create()
2455 struct fc_lport *n_port = shost_priv(shost); in fcoe_vport_destroy() local
2459 mutex_lock(&n_port->lp_mutex); in fcoe_vport_destroy()
2461 mutex_unlock(&n_port->lp_mutex); in fcoe_vport_destroy()
/linux-2.6.39/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c994 struct fc_lport *n_port = shost_priv(shost); in bnx2fc_vport_create() local
995 struct fcoe_port *port = lport_priv(n_port); in bnx2fc_vport_create()
1029 struct fc_lport *n_port = shost_priv(shost); in bnx2fc_vport_destroy() local
1033 mutex_lock(&n_port->lp_mutex); in bnx2fc_vport_destroy()
1035 mutex_unlock(&n_port->lp_mutex); in bnx2fc_vport_destroy()