Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/scsi/libfc/
Dfc_npiv.c24 struct fc_lport *n_port = shost_priv(shost); in libfc_vport_create() local
34 mutex_lock(&n_port->lp_mutex); in libfc_vport_create()
35 list_add_tail(&vn_port->list, &n_port->vports); in libfc_vport_create()
36 mutex_unlock(&n_port->lp_mutex); in libfc_vport_create()
49 struct fc_lport *fc_vport_id_lookup(struct fc_lport *n_port, u32 port_id) in fc_vport_id_lookup() argument
54 if (n_port->port_id == port_id) in fc_vport_id_lookup()
55 return n_port; in fc_vport_id_lookup()
58 return n_port; /* for point-to-point */ in fc_vport_id_lookup()
60 mutex_lock(&n_port->lp_mutex); in fc_vport_id_lookup()
61 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vport_id_lookup()
[all …]
/kernel/linux/linux-5.10/net/key/
Daf_key.c1004 struct sadb_x_nat_t_port *n_port; in __pfkey_xfrm_state2msg() local
1016 n_port = skb_put(skb, sizeof(*n_port)); in __pfkey_xfrm_state2msg()
1017 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); in __pfkey_xfrm_state2msg()
1018 n_port->sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_SPORT; in __pfkey_xfrm_state2msg()
1019 n_port->sadb_x_nat_t_port_port = natt->encap_sport; in __pfkey_xfrm_state2msg()
1020 n_port->sadb_x_nat_t_port_reserved = 0; in __pfkey_xfrm_state2msg()
1023 n_port = skb_put(skb, sizeof(*n_port)); in __pfkey_xfrm_state2msg()
1024 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); in __pfkey_xfrm_state2msg()
1025 n_port->sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_DPORT; in __pfkey_xfrm_state2msg()
1026 n_port->sadb_x_nat_t_port_port = natt->encap_dport; in __pfkey_xfrm_state2msg()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/fcoe/
Dfcoe_transport.c251 struct fc_lport *n_port = shost_priv(shost); in fcoe_validate_vport_create() local
256 mutex_lock(&n_port->lp_mutex); in fcoe_validate_vport_create()
260 if (!memcmp(&n_port->wwpn, &vport->port_name, sizeof(u64))) { in fcoe_validate_vport_create()
268 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()
277 mutex_unlock(&n_port->lp_mutex); in fcoe_validate_vport_create()
Dfcoe.c1128 struct fc_lport *lport, *n_port; in fcoe_if_create() local
1221 n_port = shost_priv(shost); in fcoe_if_create()
1222 rc = fc_exch_mgr_list_clone(n_port, lport); in fcoe_if_create()
2658 struct fc_lport *n_port = shost_priv(shost); in fcoe_vport_create() local
2659 struct fcoe_port *port = lport_priv(n_port); in fcoe_vport_create()
2706 struct fc_lport *n_port = shost_priv(shost); in fcoe_vport_destroy() local
2709 mutex_lock(&n_port->lp_mutex); in fcoe_vport_destroy()
2711 mutex_unlock(&n_port->lp_mutex); in fcoe_vport_destroy()
/kernel/linux/linux-5.10/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c1126 struct fc_lport *n_port = shost_priv(shost); in bnx2fc_vport_create() local
1127 struct fcoe_port *port = lport_priv(n_port); in bnx2fc_vport_create()
1191 struct fc_lport *n_port = shost_priv(shost); in bnx2fc_vport_destroy() local
1198 mutex_lock(&n_port->lp_mutex); in bnx2fc_vport_destroy()
1199 list_for_each_entry(v_port, &n_port->vports, list) in bnx2fc_vport_destroy()
1206 mutex_unlock(&n_port->lp_mutex); in bnx2fc_vport_destroy()
1210 mutex_unlock(&n_port->lp_mutex); in bnx2fc_vport_destroy()
1493 struct fc_lport *lport, *n_port; in bnx2fc_if_create() local
1565 n_port = shost_priv(shost); in bnx2fc_if_create()
1566 rc = fc_exch_mgr_list_clone(n_port, lport); in bnx2fc_if_create()
/kernel/linux/linux-5.10/drivers/scsi/qedf/
Dqedf_main.c1817 struct fc_lport *n_port = shost_priv(shost); in qedf_vport_create() local
1819 struct qedf_ctx *base_qedf = lport_priv(n_port); in qedf_vport_create()
1903 n_port = shost_priv(shost); in qedf_vport_create()
1904 fc_exch_mgr_list_clone(n_port, vn_port); in qedf_vport_create()
1936 struct fc_lport *n_port = shost_priv(shost); in qedf_vport_destroy() local
1948 mutex_lock(&n_port->lp_mutex); in qedf_vport_destroy()
1950 mutex_unlock(&n_port->lp_mutex); in qedf_vport_destroy()