Home
last modified time | relevance | path

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

/openbmc/linux/drivers/scsi/libfc/
H A Dfc_npiv.c34 mutex_lock(&n_port->lp_mutex); in libfc_vport_create()
36 mutex_unlock(&n_port->lp_mutex); in libfc_vport_create()
54 if (n_port->port_id == port_id) in fc_vport_id_lookup()
55 return n_port; in fc_vport_id_lookup()
60 mutex_lock(&n_port->lp_mutex); in fc_vport_id_lookup()
67 mutex_unlock(&n_port->lp_mutex); in fc_vport_id_lookup()
100 if (n_port->npiv_enabled) { in __fc_vport_setlink()
123 mutex_lock(&n_port->lp_mutex); in fc_vport_setlink()
125 __fc_vport_setlink(n_port, vn_port); in fc_vport_setlink()
127 mutex_unlock(&n_port->lp_mutex); in fc_vport_setlink()
[all …]
/openbmc/linux/net/key/
H A Daf_key.c1000 struct sadb_x_nat_t_port *n_port; in __pfkey_xfrm_state2msg() local
1012 n_port = skb_put(skb, sizeof(*n_port)); in __pfkey_xfrm_state2msg()
1013 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); in __pfkey_xfrm_state2msg()
1016 n_port->sadb_x_nat_t_port_reserved = 0; in __pfkey_xfrm_state2msg()
1019 n_port = skb_put(skb, sizeof(*n_port)); in __pfkey_xfrm_state2msg()
1020 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); in __pfkey_xfrm_state2msg()
3359 struct sadb_x_nat_t_port *n_port; in pfkey_send_new_mapping() local
3430 n_port = skb_put(skb, sizeof(*n_port)); in pfkey_send_new_mapping()
3431 n_port->sadb_x_nat_t_port_len = sizeof(*n_port)/sizeof(uint64_t); in pfkey_send_new_mapping()
3452 n_port = skb_put(skb, sizeof(*n_port)); in pfkey_send_new_mapping()
[all …]
/openbmc/linux/drivers/scsi/fcoe/
H A Dfcoe_transport.c252 struct fc_lport *n_port = shost_priv(shost); in fcoe_validate_vport_create() local
257 mutex_lock(&n_port->lp_mutex); in fcoe_validate_vport_create()
261 if (!memcmp(&n_port->wwpn, &vport->port_name, sizeof(u64))) { in fcoe_validate_vport_create()
269 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()
278 mutex_unlock(&n_port->lp_mutex); in fcoe_validate_vport_create()
H A Dfcoe.c1127 struct fc_lport *lport, *n_port; in fcoe_if_create() local
1220 n_port = shost_priv(shost); in fcoe_if_create()
1221 rc = fc_exch_mgr_list_clone(n_port, lport); in fcoe_if_create()
2646 struct fc_lport *n_port = shost_priv(shost); in fcoe_vport_create() local
2647 struct fcoe_port *port = lport_priv(n_port); in fcoe_vport_create()
2694 struct fc_lport *n_port = shost_priv(shost); in fcoe_vport_destroy() local
2697 mutex_lock(&n_port->lp_mutex); in fcoe_vport_destroy()
2699 mutex_unlock(&n_port->lp_mutex); in fcoe_vport_destroy()
/openbmc/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_fcoe.c1120 struct fc_lport *n_port = shost_priv(shost); in bnx2fc_vport_create() local
1121 struct fcoe_port *port = lport_priv(n_port); in bnx2fc_vport_create()
1185 struct fc_lport *n_port = shost_priv(shost); in bnx2fc_vport_destroy() local
1192 mutex_lock(&n_port->lp_mutex); in bnx2fc_vport_destroy()
1193 list_for_each_entry(v_port, &n_port->vports, list) in bnx2fc_vport_destroy()
1200 mutex_unlock(&n_port->lp_mutex); in bnx2fc_vport_destroy()
1204 mutex_unlock(&n_port->lp_mutex); in bnx2fc_vport_destroy()
1487 struct fc_lport *lport, *n_port; in bnx2fc_if_create() local
1559 n_port = shost_priv(shost); in bnx2fc_if_create()
1560 rc = fc_exch_mgr_list_clone(n_port, lport); in bnx2fc_if_create()
/openbmc/linux/drivers/scsi/qedf/
H A Dqedf_main.c1821 struct fc_lport *n_port = shost_priv(shost); in qedf_vport_create() local
1823 struct qedf_ctx *base_qedf = lport_priv(n_port); in qedf_vport_create()
1909 n_port = shost_priv(shost); in qedf_vport_create()
1910 fc_exch_mgr_list_clone(n_port, vn_port); in qedf_vport_create()
1935 fc_host_supported_speeds(vn_port->host) = n_port->link_supported_speeds; in qedf_vport_create()
1938 vn_port->link_speed = n_port->link_speed; in qedf_vport_create()
1944 fc_host_maxframe_size(vn_port->host) = n_port->mfs; in qedf_vport_create()
1963 struct fc_lport *n_port = shost_priv(shost); in qedf_vport_destroy() local
1975 mutex_lock(&n_port->lp_mutex); in qedf_vport_destroy()
1977 mutex_unlock(&n_port->lp_mutex); in qedf_vport_destroy()