Lines Matching +full:comp +full:- +full:disable

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.
19 * Scatter-gather DMA related defines
27 #define BFA_SGPG_ROUNDUP(_l) (((_l) + (sizeof(struct bfi_sgpg_s) - 1)) \
28 & ~(sizeof(struct bfi_sgpg_s) - 1))
64 #define BFA_SGPG_MOD(__bfa) (&(__bfa)->modules.sgpg_mod)
65 #define BFA_MEM_SGPG_KVA(__bfa) (&(BFA_SGPG_MOD(__bfa)->kva_seg))
106 #define BFA_FCXP_MOD(__bfa) (&(__bfa)->modules.fcxp_mod)
107 #define BFA_FCXP_FROM_TAG(__mod, __tag) (&(__mod)->fcxp_list[__tag])
108 #define BFA_MEM_FCXP_KVA(__bfa) (&(BFA_FCXP_MOD(__bfa)->kva_seg))
150 /* timeout in seconds, 0-no response */
189 u8 rsp_status; /* comp: rsp status */
190 u32 rsp_len; /* comp: actual response len */
191 u32 residue_len; /* comp: residual rsp length */
192 struct fchs_s rsp_fchs; /* comp: response fchs */
193 struct bfa_cb_qe_s hcb_qe; /* comp: callback qelem */
214 #define BFA_FCXP_RSP_FCHS(_fcxp) (&((_fcxp)->rsp_info.fchs))
218 bfa_mem_get_dmabuf_pa((_fcxp)->fcxp_mod, (_fcxp)->fcxp_tag, \
219 (_fcxp)->fcxp_mod->req_pld_sz + (_fcxp)->fcxp_mod->rsp_pld_sz)
221 /* fcxp_buf = req_buf + rsp_buf :- add req_buf_sz to get to rsp_buf */
223 (bfa_mem_get_dmabuf_pa((_fcxp)->fcxp_mod, (_fcxp)->fcxp_tag, \
224 (_fcxp)->fcxp_mod->req_pld_sz + (_fcxp)->fcxp_mod->rsp_pld_sz) + \
225 (_fcxp)->fcxp_mod->req_pld_sz)
240 #define BFA_RPORT_MOD(__bfa) (&(__bfa)->modules.rport_mod)
241 #define BFA_MEM_RPORT_KVA(__bfa) (&(BFA_RPORT_MOD(__bfa)->kva_seg))
247 (BFA_RPORT_MOD(__bfa)->rps_list + \
248 ((_tag) & (BFA_RPORT_MOD(__bfa)->num_rports - 1)))
310 #define BFA_RPORT_FC_COS(_rport) ((_rport)->rport_info.fc_class)
314 * UF - unsolicited receive related defines
332 struct bfa_cb_qe_s hcb_qe; /* comp: BFA comp qelem */
366 /* pre-built UF post msgs */
373 #define BFA_UF_MOD(__bfa) (&(__bfa)->modules.uf_mod)
374 #define BFA_MEM_UF_KVA(__bfa) (&(BFA_UF_MOD(__bfa)->kva_seg))
401 * LPS - bfa lport login/logout service interface
432 struct bfa_cb_qe_s hcb_qe; /* comp: callback qelem */
446 #define BFA_LPS_MOD(__bfa) (&(__bfa)->modules.lps_mod)
447 #define BFA_LPS_FROM_TAG(__mod, __tag) (&(__mod)->lps_arr[__tag])
448 #define BFA_MEM_LPS_KVA(__bfa) (&(BFA_LPS_MOD(__bfa)->kva_seg))
460 #define BFA_FCPORT(_bfa) (&((_bfa)->modules.port))
496 BFA_FCPORT_SM_DISABLE = 4, /* disable port state machine */
497 BFA_FCPORT_SM_FWRSP = 5, /* firmware enable/disable rsp */
503 BFA_FCPORT_SM_DPORTDISABLE = 11,/* disable dport */
506 BFA_FCPORT_SM_DDPORTDISABLE = 14, /* disable ddport */
568 #define BFA_FCPORT_MOD(__bfa) (&(__bfa)->modules.fcport)
569 #define BFA_MEM_FCPORT_DMA(__bfa) (&(BFA_FCPORT_MOD(__bfa)->fcport_dma))
698 return uf->data_ptr; in bfa_uf_get_frmbuf()
704 return uf->data_len; in bfa_uf_get_frmlen()
770 BFA_DPORT_SM_DISABLE = 2, /* dport disable event */
771 BFA_DPORT_SM_FWRSP = 3, /* fw enable/disable rsp */
774 BFA_DPORT_SM_START = 6, /* re-start dport test */
807 #define BFA_FCDIAG_MOD(__bfa) (&(__bfa)->modules.fcdiag)