Lines Matching +full:max +full:- +full:rx +full:- +full:timeout +full:- +full:ms
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.
36 #define __fcs_min_cfg(__fcs) ((__fcs)->min_cfg)
122 struct bfa_fcs_lport_ms_s *ms; /* parent ms */ member
129 * MS State Machine events
150 struct bfa_fcs_lport_fdmi_s fdmi; /* FDMI component of MS */
159 struct bfa_fcs_lport_ms_s ms; /* MS component of port */ member
209 u16 num_rports; /* Num of r-ports */
210 struct list_head rport_q; /* queue of discovered r-ports */
220 #define BFA_FCS_GET_HAL_FROM_PORT(port) (port->fcs->bfa)
221 #define BFA_FCS_GET_NS_FROM_PORT(port) (&port->port_topo.pfab.ns)
222 #define BFA_FCS_GET_SCN_FROM_PORT(port) (&port->port_topo.pfab.scn)
223 #define BFA_FCS_GET_MS_FROM_PORT(port) (&port->port_topo.pfab.ms)
224 #define BFA_FCS_GET_FDMI_FROM_PORT(port) (&port->port_topo.pfab.ms.fdmi)
226 (port->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM)
254 BFA_FCS_FABRIC_SM_DELAYED = 11, /* timeout delay event */
300 #define bfa_fcs_fabric_npiv_capable(__f) ((__f)->is_npiv)
302 ((__f)->fab_type == BFA_FCS_FABRIC_SWITCHED)
347 #define bfa_fcs_lport_get_fcid(_lport) ((_lport)->pid)
348 #define bfa_fcs_lport_get_pwwn(_lport) ((_lport)->port_cfg.pwwn)
349 #define bfa_fcs_lport_get_nwwn(_lport) ((_lport)->port_cfg.nwwn)
350 #define bfa_fcs_lport_get_psym_name(_lport) ((_lport)->port_cfg.sym_name)
351 #define bfa_fcs_lport_get_nsym_name(_lport) ((_lport)->port_cfg.node_sym_name)
353 ((_lport)->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM)
355 ((_lport) ? (_lport)->num_rports : 0)
360 return port->bfad_port; in bfa_fcs_lport_get_drvport()
363 #define bfa_fcs_lport_get_opertype(_lport) ((_lport)->fabric->oper_type)
364 #define bfa_fcs_lport_get_fabric_name(_lport) ((_lport)->fabric->fabric_name)
366 ((_lport)->fabric->fabric_ip_addr)
393 /* MS FCS routines */
400 void bfa_fcs_lport_fdmi_init(struct bfa_fcs_lport_ms_s *ms);
401 void bfa_fcs_lport_fdmi_offline(struct bfa_fcs_lport_ms_s *ms);
402 void bfa_fcs_lport_fdmi_online(struct bfa_fcs_lport_ms_s *ms);
456 BFA_FCS_VPORT_SM_RSP_FAILED = 13, /* non-retryable failure */
458 BFA_FCS_VPORT_SM_FABRIC_MAX = 15, /* max vports on fabric */
476 ((struct bfa_fcs_lport_s *)(&vport->port))
525 RPFSM_EVENT_TIMEOUT = 4, /* Rport SM timeout event */
541 int rpsc_retries; /* max RPSC retry attempts */
565 RPSM_EVENT_TIMEOUT = 11, /* Rport SM timeout event */
568 RPSM_EVENT_FC4_OFFLINE = 14, /* FC-4 offline complete */
575 RPSM_EVENT_FC4_FCS_ONLINE = 21, /* FC-4 FCS online complete */
593 bfa_boolean_t plogi_pending; /* Rx Plogi Pending */
604 int plogi_retries; /* max plogi retry attempts */
605 int ns_retries; /* max NS query retry attempts */
616 return rport->bfa_rport; in bfa_fcs_rport_get_halrport()
663 BFA_FCS_ITNIM_SM_TIMEOUT = 6, /* delay timeout */
688 u32 prli_retries; /* max prli retry attempts */
698 bfa_fcxp_req_rsp_alloc(NULL, (__fcs)->bfa, 0, 0, \
708 return itnim->rport->port->bfad_port; in bfa_fcs_itnim_get_drvport()
715 return itnim->rport->port; in bfa_fcs_itnim_get_port()
722 return itnim->rport->nwwn; in bfa_fcs_itnim_get_nwwn()
729 return itnim->rport->pwwn; in bfa_fcs_itnim_get_pwwn()
736 return itnim->rport->pid; in bfa_fcs_itnim_get_fcid()
743 return itnim->rport->maxfrsize; in bfa_fcs_itnim_get_maxfrsize()
750 return itnim->rport->fc_cos; in bfa_fcs_itnim_get_cos()
757 return itnim->itnim_drv; in bfa_fcs_itnim_get_drvitn()
764 return itnim->bfa_itnim; in bfa_fcs_itnim_get_halitn()
841 __be32 max_frm_size; /* max frame size */