Lines Matching +full:max +full:- +full:functions

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))
51 /* Max SGPG dma segs required */
64 #define BFA_SGPG_MOD(__bfa) (&(__bfa)->modules.sgpg_mod)
65 #define BFA_MEM_SGPG_KVA(__bfa) (&(BFA_SGPG_MOD(__bfa)->kva_seg))
84 /* Max FCXP dma segs required */
92 u16 num_fcxps; /* max num FCXP requests */
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))
139 u16 max_frmsz; /* max send frame size */
150 /* timeout in seconds, 0-no response */
152 u32 rsp_maxlen; /* max response length expected */
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)
256 #define BFA_RPORT_MOD(__bfa) (&(__bfa)->modules.rport_mod)
257 #define BFA_MEM_RPORT_KVA(__bfa) (&(BFA_RPORT_MOD(__bfa)->kva_seg))
263 (BFA_RPORT_MOD(__bfa)->rps_list + \
264 ((_tag) & (BFA_RPORT_MOD(__bfa)->num_rports - 1)))
267 * protected functions
276 u16 max_frmsz; /* max rcv pdu size */
308 #define BFA_RPORT_FC_COS(_rport) ((_rport)->rport_info.fc_class)
312 * UF - unsolicited receive related defines
353 /* Max UF dma segs required */
364 /* pre-built UF post msgs */
371 #define BFA_UF_MOD(__bfa) (&(__bfa)->modules.uf_mod)
372 #define BFA_MEM_UF_KVA(__bfa) (&(BFA_UF_MOD(__bfa)->kva_seg))
381 * LPS - bfa lport login/logout service interface
399 u16 pdusz; /* max receive PDU size */
426 #define BFA_LPS_MOD(__bfa) (&(__bfa)->modules.lps_mod)
427 #define BFA_LPS_FROM_TAG(__mod, __tag) (&(__mod)->lps_arr[__tag])
428 #define BFA_MEM_LPS_KVA(__bfa) (&(BFA_LPS_MOD(__bfa)->kva_seg))
431 * external functions
440 #define BFA_FCPORT(_bfa) (&((_bfa)->modules.port))
512 #define BFA_FCPORT_MOD(__bfa) (&(__bfa)->modules.fcport)
513 #define BFA_MEM_FCPORT_DMA(__bfa) (&(BFA_FCPORT_MOD(__bfa)->fcport_dma))
516 * protected functions
522 * bfa fcport API functions
573 * bfa rport API functions
600 * bfa fcxp API functions
642 return uf->data_ptr; in bfa_uf_get_frmbuf()
648 return uf->data_len; in bfa_uf_get_frmlen()
652 * bfa uf API functions
734 #define BFA_FCDIAG_MOD(__bfa) (&(__bfa)->modules.fcdiag)