Lines Matching +full:remote +full:- +full:pid
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
4 * Copyright (c) 2014- QLogic Corporation.
8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
34 BFA_LPS_SM_SET_N2N_PID = 8, /* Set assigned PID for n2n */
52 #define __fcs_min_cfg(__fcs) ((__fcs)->min_cfg)
59 #define BFA_FCS_PID_IS_WKA(pid) ((bfa_ntoh3b(pid) > 0xFFF000) ? 1 : 0) argument
141 u32 pid:24; /* FC address */ member
143 u16 num_rports; /* Num of r-ports */
144 struct list_head rport_q; /* queue of discovered r-ports */
154 #define BFA_FCS_GET_HAL_FROM_PORT(port) (port->fcs->bfa)
155 #define BFA_FCS_GET_NS_FROM_PORT(port) (&port->port_topo.pfab.ns)
156 #define BFA_FCS_GET_SCN_FROM_PORT(port) (&port->port_topo.pfab.scn)
157 #define BFA_FCS_GET_MS_FROM_PORT(port) (&port->port_topo.pfab.ms)
158 #define BFA_FCS_GET_FDMI_FROM_PORT(port) (&port->port_topo.pfab.ms.fdmi)
160 (port->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM)
207 #define bfa_fcs_fabric_npiv_capable(__f) ((__f)->is_npiv)
209 ((__f)->fab_type == BFA_FCS_FABRIC_SWITCHED)
254 #define bfa_fcs_lport_get_fcid(_lport) ((_lport)->pid)
255 #define bfa_fcs_lport_get_pwwn(_lport) ((_lport)->port_cfg.pwwn)
256 #define bfa_fcs_lport_get_nwwn(_lport) ((_lport)->port_cfg.nwwn)
257 #define bfa_fcs_lport_get_psym_name(_lport) ((_lport)->port_cfg.sym_name)
258 #define bfa_fcs_lport_get_nsym_name(_lport) ((_lport)->port_cfg.node_sym_name)
260 ((_lport)->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM)
262 ((_lport) ? (_lport)->num_rports : 0)
267 return port->bfad_port; in bfa_fcs_lport_get_drvport()
270 #define bfa_fcs_lport_get_opertype(_lport) ((_lport)->fabric->oper_type)
271 #define bfa_fcs_lport_get_fabric_name(_lport) ((_lport)->fabric->fabric_name)
273 ((_lport)->fabric->fabric_ip_addr)
321 struct bfa_fcs_lport_s *port, u32 pid);
323 struct bfa_fcs_lport_s *port, u32 pid);
329 struct bfa_fcs_lport_s *port, wwn_t pwwn, u32 pid);
359 ((struct bfa_fcs_lport_s *)(&vport->port))
422 u32 pid; /* port ID of rport */ member
423 u32 old_pid; /* PID before rport goes offline */
452 return rport->bfa_rport; in bfa_fcs_rport_get_halrport()
471 u32 pid);
497 struct bfa_fcs_rport_s *rport; /* parent remote rport */
512 bfa_fcxp_req_rsp_alloc(NULL, (__fcs)->bfa, 0, 0, \
522 return itnim->rport->port->bfad_port; in bfa_fcs_itnim_get_drvport()
529 return itnim->rport->port; in bfa_fcs_itnim_get_port()
536 return itnim->rport->nwwn; in bfa_fcs_itnim_get_nwwn()
543 return itnim->rport->pwwn; in bfa_fcs_itnim_get_pwwn()
550 return itnim->rport->pid; in bfa_fcs_itnim_get_fcid()
557 return itnim->rport->maxfrsize; in bfa_fcs_itnim_get_maxfrsize()
564 return itnim->rport->fc_cos; in bfa_fcs_itnim_get_cos()
571 return itnim->itnim_drv; in bfa_fcs_itnim_get_drvitn()
578 return itnim->bfa_itnim; in bfa_fcs_itnim_get_halitn()
736 RPSM_EVENT_PLOGI_RCVD = 2, /* Inbound PLOGI from remote port */
738 RPSM_EVENT_LOGO_RCVD = 4, /* LOGO from remote device */
743 RPSM_EVENT_ACCEPTED = 9, /* Good response from remote device */
748 RPSM_EVENT_FC4_OFFLINE = 14, /* FC-4 offline complete */
749 RPSM_EVENT_ADDRESS_CHANGE = 15, /* Rport's PID has changed */
750 RPSM_EVENT_ADDRESS_DISC = 16, /* Need to Discover rport's PID */
751 RPSM_EVENT_PRLO_RCVD = 17, /* PRLO from remote device */
755 RPSM_EVENT_FC4_FCS_ONLINE = 21, /* FC-4 FCS online complete */