Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
bfa_svc.h File Reference
#include "bfa_cs.h"
#include "bfi_ms.h"

Go to the source code of this file.

Data Structures

struct  bfa_sgpg_wqe_s
 
struct  bfa_sgpg_s
 
struct  bfa_sgpg_mod_s
 
struct  bfa_fcxp_mod_s
 
struct  bfa_fcxp_req_info_s
 
struct  bfa_fcxp_rsp_info_s
 
struct  bfa_fcxp_s
 
struct  bfa_fcxp_wqe_s
 
struct  bfa_rport_mod_s
 
struct  bfa_rport_info_s
 
struct  bfa_rport_s
 
union  bfa_rport_s::a
 
struct  bfa_uf_s
 
struct  bfa_uf_buf_s
 
struct  bfa_uf_mod_s
 
struct  bfa_lps_s
 
struct  bfa_lps_mod_s
 
struct  bfa_fcport_ln_s
 
struct  bfa_fcport_trunk_s
 
struct  bfa_fcport_s
 
struct  bfa_fcdiag_qtest_s
 
struct  bfa_fcdiag_lb_s
 
struct  bfa_dport_s
 
struct  bfa_fcdiag_s
 

Macros

#define BFA_SGPG_MIN   (16)
 
#define BFA_SGPG_MAX   (8192)
 
#define BFA_SGPG_ROUNDUP(_l)
 
#define BFA_SGPG_NPAGE(_nsges)   (((_nsges) / BFI_SGPG_DATA_SGES) + 1)
 
#define BFA_SGPG_DMA_SEGS   BFI_MEM_DMA_NSEGS(BFA_SGPG_MAX, (uint32_t)sizeof(struct bfi_sgpg_s))
 
#define BFA_SGPG_MOD(__bfa)   (&(__bfa)->modules.sgpg_mod)
 
#define BFA_MEM_SGPG_KVA(__bfa)   (&(BFA_SGPG_MOD(__bfa)->kva_seg))
 
#define BFA_FCXP_MIN   (1)
 
#define BFA_FCXP_MAX   (256)
 
#define BFA_FCXP_MAX_IBUF_SZ   (2 * 1024 + 256)
 
#define BFA_FCXP_MAX_LBUF_SZ   (4 * 1024 + 256)
 
#define BFA_FCXP_DMA_SEGS
 
#define BFA_FCXP_MOD(__bfa)   (&(__bfa)->modules.fcxp_mod)
 
#define BFA_FCXP_FROM_TAG(__mod, __tag)   (&(__mod)->fcxp_list[__tag])
 
#define BFA_MEM_FCXP_KVA(__bfa)   (&(BFA_FCXP_MOD(__bfa)->kva_seg))
 
#define BFA_FCXP_REQ_PLD(_fcxp)   (bfa_fcxp_get_reqbuf(_fcxp))
 
#define BFA_FCXP_RSP_FCHS(_fcxp)   (&((_fcxp)->rsp_info.fchs))
 
#define BFA_FCXP_RSP_PLD(_fcxp)   (bfa_fcxp_get_rspbuf(_fcxp))
 
#define BFA_FCXP_REQ_PLD_PA(_fcxp)
 
#define BFA_FCXP_RSP_PLD_PA(_fcxp)
 
#define BFA_RPORT_MIN   4
 
#define BFA_RPORT_MOD(__bfa)   (&(__bfa)->modules.rport_mod)
 
#define BFA_MEM_RPORT_KVA(__bfa)   (&(BFA_RPORT_MOD(__bfa)->kva_seg))
 
#define BFA_RPORT_FROM_TAG(__bfa, _tag)
 
#define BFA_RPORT_FC_COS(_rport)   ((_rport)->rport_info.fc_class)
 
#define BFA_UF_MIN   (4)
 
#define BFA_UF_MAX   (256)
 
#define BFA_UF_BUFSZ   (2 * 1024 + 256)
 
#define BFA_PER_UF_DMA_SZ   (u32)BFA_ROUNDUP(sizeof(struct bfa_uf_buf_s), BFA_DMA_ALIGN_SZ)
 
#define BFA_UF_DMA_SEGS   BFI_MEM_DMA_NSEGS(BFA_UF_MAX, BFA_PER_UF_DMA_SZ)
 
#define BFA_UF_MOD(__bfa)   (&(__bfa)->modules.uf_mod)
 
#define BFA_MEM_UF_KVA(__bfa)   (&(BFA_UF_MOD(__bfa)->kva_seg))
 
#define ufm_pbs_pa(_ufmod, _uftag)   bfa_mem_get_dmabuf_pa(_ufmod, _uftag, BFA_PER_UF_DMA_SZ)
 
#define BFA_LPS_MOD(__bfa)   (&(__bfa)->modules.lps_mod)
 
#define BFA_LPS_FROM_TAG(__mod, __tag)   (&(__mod)->lps_arr[__tag])
 
#define BFA_MEM_LPS_KVA(__bfa)   (&(BFA_LPS_MOD(__bfa)->kva_seg))
 
#define BFA_FCPORT(_bfa)   (&((_bfa)->modules.port))
 
#define BFA_FCPORT_MOD(__bfa)   (&(__bfa)->modules.fcport)
 
#define BFA_MEM_FCPORT_DMA(__bfa)   (&(BFA_FCPORT_MOD(__bfa)->fcport_dma))
 
#define BFA_RPORT_TAG_INVALID   0xffff
 
#define BFA_LP_TAG_INVALID   0xff
 
#define BFA_FCDIAG_MOD(__bfa)   (&(__bfa)->modules.fcdiag)
 

Typedefs

typedef void(* fcxp_send_cb_t )(struct bfa_s *ioc, struct bfa_fcxp_s *fcxp, void *cb_arg, bfa_status_t req_status, u32 rsp_len, u32 resid_len, struct fchs_s *rsp_fchs)
 
typedef u64(* bfa_fcxp_get_sgaddr_t )(void *bfad_fcxp, int sgeid)
 
typedef u32(* bfa_fcxp_get_sglen_t )(void *bfad_fcxp, int sgeid)
 
typedef void(* bfa_cb_fcxp_send_t )(void *bfad_fcxp, struct bfa_fcxp_s *fcxp, void *cbarg, enum bfa_status req_status, u32 rsp_len, u32 resid_len, struct fchs_s *rsp_fchs)
 
typedef void(* bfa_fcxp_alloc_cbfn_t )(void *cbarg, struct bfa_fcxp_s *fcxp)
 
typedef void(* bfa_cb_uf_recv_t )(void *cbarg, struct bfa_uf_s *uf)
 

Enumerations

enum  bfa_rport_event {
  BFA_RPORT_SM_CREATE = 1, BFA_RPORT_SM_DELETE = 2, BFA_RPORT_SM_ONLINE = 3, BFA_RPORT_SM_OFFLINE = 4,
  BFA_RPORT_SM_FWRSP = 5, BFA_RPORT_SM_HWFAIL = 6, BFA_RPORT_SM_QOS_SCN = 7, BFA_RPORT_SM_SET_SPEED = 8,
  BFA_RPORT_SM_QRESUME = 9
}
 

Functions

bfa_status_t bfa_sgpg_malloc (struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpgs)
 
void bfa_sgpg_mfree (struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpgs)
 
void bfa_sgpg_winit (struct bfa_sgpg_wqe_s *wqe, void(*cbfn)(void *cbarg), void *cbarg)
 
void bfa_sgpg_wait (struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpgs)
 
void bfa_sgpg_wcancel (struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe)
 
void bfa_fcxp_isr (struct bfa_s *bfa, struct bfi_msg_s *msg)
 
void bfa_rport_isr (struct bfa_s *bfa, struct bfi_msg_s *msg)
 
void bfa_rport_res_recfg (struct bfa_s *bfa, u16 num_rport_fw)
 
void bfa_uf_isr (struct bfa_s *bfa, struct bfi_msg_s *msg)
 
void bfa_uf_res_recfg (struct bfa_s *bfa, u16 num_uf_fw)
 
void bfa_lps_isr (struct bfa_s *bfa, struct bfi_msg_s *msg)
 
void bfa_fcport_init (struct bfa_s *bfa)
 
void bfa_fcport_isr (struct bfa_s *bfa, struct bfi_msg_s *msg)
 
bfa_status_t bfa_fcport_enable (struct bfa_s *bfa)
 
bfa_status_t bfa_fcport_disable (struct bfa_s *bfa)
 
bfa_status_t bfa_fcport_cfg_speed (struct bfa_s *bfa, enum bfa_port_speed speed)
 
enum bfa_port_speed bfa_fcport_get_speed (struct bfa_s *bfa)
 
bfa_status_t bfa_fcport_cfg_topology (struct bfa_s *bfa, enum bfa_port_topology topo)
 
enum bfa_port_topology bfa_fcport_get_topology (struct bfa_s *bfa)
 
enum bfa_port_topology bfa_fcport_get_cfg_topology (struct bfa_s *bfa)
 
bfa_status_t bfa_fcport_cfg_hardalpa (struct bfa_s *bfa, u8 alpa)
 
bfa_boolean_t bfa_fcport_get_hardalpa (struct bfa_s *bfa, u8 *alpa)
 
u8 bfa_fcport_get_myalpa (struct bfa_s *bfa)
 
bfa_status_t bfa_fcport_clr_hardalpa (struct bfa_s *bfa)
 
bfa_status_t bfa_fcport_cfg_maxfrsize (struct bfa_s *bfa, u16 maxsize)
 
u16 bfa_fcport_get_maxfrsize (struct bfa_s *bfa)
 
u8 bfa_fcport_get_rx_bbcredit (struct bfa_s *bfa)
 
void bfa_fcport_get_attr (struct bfa_s *bfa, struct bfa_port_attr_s *attr)
 
wwn_t bfa_fcport_get_wwn (struct bfa_s *bfa, bfa_boolean_t node)
 
void bfa_fcport_event_register (struct bfa_s *bfa, void(*event_cbfn)(void *cbarg, enum bfa_port_linkstate event), void *event_cbarg)
 
bfa_boolean_t bfa_fcport_is_disabled (struct bfa_s *bfa)
 
bfa_boolean_t bfa_fcport_is_dport (struct bfa_s *bfa)
 
bfa_status_t bfa_fcport_set_qos_bw (struct bfa_s *bfa, struct bfa_qos_bw_s *qos_bw)
 
enum bfa_port_speed bfa_fcport_get_ratelim_speed (struct bfa_s *bfa)
 
void bfa_fcport_set_tx_bbcredit (struct bfa_s *bfa, u16 tx_bbcredit, u8 bb_scn)
 
bfa_boolean_t bfa_fcport_is_ratelim (struct bfa_s *bfa)
 
void bfa_fcport_beacon (void *dev, bfa_boolean_t beacon, bfa_boolean_t link_e2e_beacon)
 
bfa_boolean_t bfa_fcport_is_linkup (struct bfa_s *bfa)
 
bfa_status_t bfa_fcport_get_stats (struct bfa_s *bfa, struct bfa_cb_pending_q_s *cb)
 
bfa_status_t bfa_fcport_clear_stats (struct bfa_s *bfa, struct bfa_cb_pending_q_s *cb)
 
bfa_boolean_t bfa_fcport_is_qos_enabled (struct bfa_s *bfa)
 
bfa_boolean_t bfa_fcport_is_trunk_enabled (struct bfa_s *bfa)
 
void bfa_fcport_dportenable (struct bfa_s *bfa)
 
void bfa_fcport_dportdisable (struct bfa_s *bfa)
 
bfa_status_t bfa_fcport_is_pbcdisabled (struct bfa_s *bfa)
 
void bfa_fcport_cfg_faa (struct bfa_s *bfa, u8 state)
 
struct bfa_rport_sbfa_rport_create (struct bfa_s *bfa, void *rport_drv)
 
void bfa_rport_online (struct bfa_rport_s *rport, struct bfa_rport_info_s *rport_info)
 
void bfa_rport_speed (struct bfa_rport_s *rport, enum bfa_port_speed speed)
 
void bfa_cb_rport_online (void *rport)
 
void bfa_cb_rport_offline (void *rport)
 
void bfa_cb_rport_qos_scn_flowid (void *rport, struct bfa_rport_qos_attr_s old_qos_attr, struct bfa_rport_qos_attr_s new_qos_attr)
 
void bfa_cb_rport_scn_online (struct bfa_s *bfa)
 
void bfa_cb_rport_scn_offline (struct bfa_s *bfa)
 
void bfa_cb_rport_scn_no_dev (void *rp)
 
void bfa_cb_rport_qos_scn_prio (void *rport, struct bfa_rport_qos_attr_s old_qos_attr, struct bfa_rport_qos_attr_s new_qos_attr)
 
void bfa_rport_set_lunmask (struct bfa_s *bfa, struct bfa_rport_s *rp)
 
void bfa_rport_unset_lunmask (struct bfa_s *bfa, struct bfa_rport_s *rp)
 
struct bfa_fcxp_sbfa_fcxp_req_rsp_alloc (void *bfad_fcxp, struct bfa_s *bfa, int nreq_sgles, int nrsp_sgles, bfa_fcxp_get_sgaddr_t get_req_sga, bfa_fcxp_get_sglen_t get_req_sglen, bfa_fcxp_get_sgaddr_t get_rsp_sga, bfa_fcxp_get_sglen_t get_rsp_sglen, bfa_boolean_t req)
 
void bfa_fcxp_req_rsp_alloc_wait (struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe, bfa_fcxp_alloc_cbfn_t alloc_cbfn, void *cbarg, void *bfad_fcxp, int nreq_sgles, int nrsp_sgles, bfa_fcxp_get_sgaddr_t get_req_sga, bfa_fcxp_get_sglen_t get_req_sglen, bfa_fcxp_get_sgaddr_t get_rsp_sga, bfa_fcxp_get_sglen_t get_rsp_sglen, bfa_boolean_t req)
 
void bfa_fcxp_walloc_cancel (struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe)
 
void bfa_fcxp_discard (struct bfa_fcxp_s *fcxp)
 
voidbfa_fcxp_get_reqbuf (struct bfa_fcxp_s *fcxp)
 
voidbfa_fcxp_get_rspbuf (struct bfa_fcxp_s *fcxp)
 
void bfa_fcxp_free (struct bfa_fcxp_s *fcxp)
 
void bfa_fcxp_send (struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport, u16 vf_id, u8 lp_tag, bfa_boolean_t cts, enum fc_cos cos, u32 reqlen, struct fchs_s *fchs, bfa_cb_fcxp_send_t cbfn, void *cbarg, u32 rsp_maxlen, u8 rsp_timeout)
 
bfa_status_t bfa_fcxp_abort (struct bfa_fcxp_s *fcxp)
 
u32 bfa_fcxp_get_reqbufsz (struct bfa_fcxp_s *fcxp)
 
u32 bfa_fcxp_get_maxrsp (struct bfa_s *bfa)
 
void bfa_fcxp_res_recfg (struct bfa_s *bfa, u16 num_fcxp_fw)
 
void bfa_uf_recv_register (struct bfa_s *bfa, bfa_cb_uf_recv_t ufrecv, void *cbarg)
 
void bfa_uf_free (struct bfa_uf_s *uf)
 
u32 bfa_lps_get_max_vport (struct bfa_s *bfa)
 
struct bfa_lps_sbfa_lps_alloc (struct bfa_s *bfa)
 
void bfa_lps_delete (struct bfa_lps_s *lps)
 
void bfa_lps_flogi (struct bfa_lps_s *lps, void *uarg, u8 alpa, u16 pdusz, wwn_t pwwn, wwn_t nwwn, bfa_boolean_t auth_en, u8 bb_scn)
 
void bfa_lps_fdisc (struct bfa_lps_s *lps, void *uarg, u16 pdusz, wwn_t pwwn, wwn_t nwwn)
 
void bfa_lps_fdisclogo (struct bfa_lps_s *lps)
 
void bfa_lps_set_n2n_pid (struct bfa_lps_s *lps, u32 n2n_pid)
 
u8 bfa_lps_get_fwtag (struct bfa_s *bfa, u8 lp_tag)
 
u32 bfa_lps_get_base_pid (struct bfa_s *bfa)
 
u8 bfa_lps_get_tag_from_pid (struct bfa_s *bfa, u32 pid)
 
void bfa_cb_lps_flogi_comp (void *bfad, void *uarg, bfa_status_t status)
 
void bfa_cb_lps_flogo_comp (void *bfad, void *uarg)
 
void bfa_cb_lps_fdisc_comp (void *bfad, void *uarg, bfa_status_t status)
 
void bfa_cb_lps_fdisclogo_comp (void *bfad, void *uarg)
 
void bfa_cb_lps_cvl_event (void *bfad, void *uarg)
 
bfa_status_t bfa_faa_query (struct bfa_s *bfa, struct bfa_faa_attr_s *attr, bfa_cb_iocfc_t cbfn, void *cbarg)
 
void bfa_fcdiag_intr (struct bfa_s *bfa, struct bfi_msg_s *msg)
 
bfa_status_t bfa_fcdiag_loopback (struct bfa_s *bfa, enum bfa_port_opmode opmode, enum bfa_port_speed speed, u32 lpcnt, u32 pat, struct bfa_diag_loopback_result_s *result, bfa_cb_diag_t cbfn, void *cbarg)
 
bfa_status_t bfa_fcdiag_queuetest (struct bfa_s *bfa, u32 ignore, u32 queue, struct bfa_diag_qtest_result_s *result, bfa_cb_diag_t cbfn, void *cbarg)
 
bfa_status_t bfa_fcdiag_lb_is_running (struct bfa_s *bfa)
 
bfa_status_t bfa_dport_enable (struct bfa_s *bfa, bfa_cb_diag_t cbfn, void *cbarg)
 
bfa_status_t bfa_dport_disable (struct bfa_s *bfa, bfa_cb_diag_t cbfn, void *cbarg)
 
bfa_status_t bfa_dport_get_state (struct bfa_s *bfa, enum bfa_dport_state *state)
 

Macro Definition Documentation

#define BFA_FCDIAG_MOD (   __bfa)    (&(__bfa)->modules.fcdiag)

Definition at line 729 of file bfa_svc.h.

#define BFA_FCPORT (   _bfa)    (&((_bfa)->modules.port))

Definition at line 449 of file bfa_svc.h.

#define BFA_FCPORT_MOD (   __bfa)    (&(__bfa)->modules.fcport)

Definition at line 520 of file bfa_svc.h.

#define BFA_FCXP_DMA_SEGS
#define BFA_FCXP_FROM_TAG (   __mod,
  __tag 
)    (&(__mod)->fcxp_list[__tag])

Definition at line 114 of file bfa_svc.h.

#define BFA_FCXP_MAX   (256)

Definition at line 87 of file bfa_svc.h.

#define BFA_FCXP_MAX_IBUF_SZ   (2 * 1024 + 256)

Definition at line 88 of file bfa_svc.h.

#define BFA_FCXP_MAX_LBUF_SZ   (4 * 1024 + 256)

Definition at line 89 of file bfa_svc.h.

#define BFA_FCXP_MIN   (1)

Definition at line 86 of file bfa_svc.h.

#define BFA_FCXP_MOD (   __bfa)    (&(__bfa)->modules.fcxp_mod)

Definition at line 113 of file bfa_svc.h.

#define BFA_FCXP_REQ_PLD (   _fcxp)    (bfa_fcxp_get_reqbuf(_fcxp))

Definition at line 220 of file bfa_svc.h.

#define BFA_FCXP_REQ_PLD_PA (   _fcxp)
Value:
bfa_mem_get_dmabuf_pa((_fcxp)->fcxp_mod, (_fcxp)->fcxp_tag, \
(_fcxp)->fcxp_mod->req_pld_sz + (_fcxp)->fcxp_mod->rsp_pld_sz)

Definition at line 224 of file bfa_svc.h.

#define BFA_FCXP_RSP_FCHS (   _fcxp)    (&((_fcxp)->rsp_info.fchs))

Definition at line 221 of file bfa_svc.h.

#define BFA_FCXP_RSP_PLD (   _fcxp)    (bfa_fcxp_get_rspbuf(_fcxp))

Definition at line 222 of file bfa_svc.h.

#define BFA_FCXP_RSP_PLD_PA (   _fcxp)
Value:
(bfa_mem_get_dmabuf_pa((_fcxp)->fcxp_mod, (_fcxp)->fcxp_tag, \
(_fcxp)->fcxp_mod->req_pld_sz + (_fcxp)->fcxp_mod->rsp_pld_sz) + \
(_fcxp)->fcxp_mod->req_pld_sz)

Definition at line 229 of file bfa_svc.h.

#define BFA_LP_TAG_INVALID   0xff

Definition at line 598 of file bfa_svc.h.

#define BFA_LPS_FROM_TAG (   __mod,
  __tag 
)    (&(__mod)->lps_arr[__tag])

Definition at line 436 of file bfa_svc.h.

#define BFA_LPS_MOD (   __bfa)    (&(__bfa)->modules.lps_mod)

Definition at line 435 of file bfa_svc.h.

#define BFA_MEM_FCPORT_DMA (   __bfa)    (&(BFA_FCPORT_MOD(__bfa)->fcport_dma))

Definition at line 521 of file bfa_svc.h.

#define BFA_MEM_FCXP_KVA (   __bfa)    (&(BFA_FCXP_MOD(__bfa)->kva_seg))

Definition at line 115 of file bfa_svc.h.

#define BFA_MEM_LPS_KVA (   __bfa)    (&(BFA_LPS_MOD(__bfa)->kva_seg))

Definition at line 437 of file bfa_svc.h.

#define BFA_MEM_RPORT_KVA (   __bfa)    (&(BFA_RPORT_MOD(__bfa)->kva_seg))

Definition at line 264 of file bfa_svc.h.

#define BFA_MEM_SGPG_KVA (   __bfa)    (&(BFA_SGPG_MOD(__bfa)->kva_seg))

Definition at line 72 of file bfa_svc.h.

#define BFA_MEM_UF_KVA (   __bfa)    (&(BFA_UF_MOD(__bfa)->kva_seg))

Definition at line 379 of file bfa_svc.h.

#define BFA_PER_UF_DMA_SZ   (u32)BFA_ROUNDUP(sizeof(struct bfa_uf_buf_s), BFA_DMA_ALIGN_SZ)

Definition at line 357 of file bfa_svc.h.

#define BFA_RPORT_FC_COS (   _rport)    ((_rport)->rport_info.fc_class)

Definition at line 315 of file bfa_svc.h.

#define BFA_RPORT_FROM_TAG (   __bfa,
  _tag 
)
Value:
(BFA_RPORT_MOD(__bfa)->rps_list + \
((_tag) & (BFA_RPORT_MOD(__bfa)->num_rports - 1)))

Definition at line 269 of file bfa_svc.h.

#define BFA_RPORT_MIN   4

Definition at line 252 of file bfa_svc.h.

#define BFA_RPORT_MOD (   __bfa)    (&(__bfa)->modules.rport_mod)

Definition at line 263 of file bfa_svc.h.

#define BFA_RPORT_TAG_INVALID   0xffff

Definition at line 597 of file bfa_svc.h.

#define BFA_SGPG_DMA_SEGS   BFI_MEM_DMA_NSEGS(BFA_SGPG_MAX, (uint32_t)sizeof(struct bfi_sgpg_s))

Definition at line 59 of file bfa_svc.h.

#define BFA_SGPG_MAX   (8192)

Definition at line 29 of file bfa_svc.h.

#define BFA_SGPG_MIN   (16)

Definition at line 28 of file bfa_svc.h.

#define BFA_SGPG_MOD (   __bfa)    (&(__bfa)->modules.sgpg_mod)

Definition at line 71 of file bfa_svc.h.

#define BFA_SGPG_NPAGE (   _nsges)    (((_nsges) / BFI_SGPG_DATA_SGES) + 1)

Definition at line 56 of file bfa_svc.h.

#define BFA_SGPG_ROUNDUP (   _l)
Value:
(((_l) + (sizeof(struct bfi_sgpg_s) - 1)) \
& ~(sizeof(struct bfi_sgpg_s) - 1))

Definition at line 34 of file bfa_svc.h.

#define BFA_UF_BUFSZ   (2 * 1024 + 256)

Definition at line 351 of file bfa_svc.h.

#define BFA_UF_DMA_SEGS   BFI_MEM_DMA_NSEGS(BFA_UF_MAX, BFA_PER_UF_DMA_SZ)

Definition at line 361 of file bfa_svc.h.

#define BFA_UF_MAX   (256)

Definition at line 323 of file bfa_svc.h.

#define BFA_UF_MIN   (4)

Definition at line 322 of file bfa_svc.h.

#define BFA_UF_MOD (   __bfa)    (&(__bfa)->modules.uf_mod)

Definition at line 378 of file bfa_svc.h.

#define ufm_pbs_pa (   _ufmod,
  _uftag 
)    bfa_mem_get_dmabuf_pa(_ufmod, _uftag, BFA_PER_UF_DMA_SZ)

Definition at line 381 of file bfa_svc.h.

Typedef Documentation

typedef void(* bfa_cb_fcxp_send_t)(void *bfad_fcxp, struct bfa_fcxp_s *fcxp, void *cbarg, enum bfa_status req_status, u32 rsp_len, u32 resid_len, struct fchs_s *rsp_fchs)

Definition at line 124 of file bfa_svc.h.

typedef void(* bfa_cb_uf_recv_t)(void *cbarg, struct bfa_uf_s *uf)

Definition at line 349 of file bfa_svc.h.

typedef void(* bfa_fcxp_alloc_cbfn_t)(void *cbarg, struct bfa_fcxp_s *fcxp)

Definition at line 128 of file bfa_svc.h.

typedef u64(* bfa_fcxp_get_sgaddr_t)(void *bfad_fcxp, int sgeid)

Definition at line 122 of file bfa_svc.h.

typedef u32(* bfa_fcxp_get_sglen_t)(void *bfad_fcxp, int sgeid)

Definition at line 123 of file bfa_svc.h.

typedef void(* fcxp_send_cb_t)(struct bfa_s *ioc, struct bfa_fcxp_s *fcxp, void *cb_arg, bfa_status_t req_status, u32 rsp_len, u32 resid_len, struct fchs_s *rsp_fchs)

Definition at line 117 of file bfa_svc.h.

Enumeration Type Documentation

Enumerator:
BFA_RPORT_SM_CREATE 
BFA_RPORT_SM_DELETE 
BFA_RPORT_SM_ONLINE 
BFA_RPORT_SM_OFFLINE 
BFA_RPORT_SM_FWRSP 
BFA_RPORT_SM_HWFAIL 
BFA_RPORT_SM_QOS_SCN 
BFA_RPORT_SM_SET_SPEED 
BFA_RPORT_SM_QRESUME 

Definition at line 240 of file bfa_svc.h.

Function Documentation

void bfa_cb_lps_cvl_event ( void bfad,
void uarg 
)

Definition at line 6755 of file bfa_fcs_lport.c.

void bfa_cb_lps_fdisc_comp ( void bfad,
void uarg,
bfa_status_t  status 
)

Definition at line 6689 of file bfa_fcs_lport.c.

void bfa_cb_lps_fdisclogo_comp ( void bfad,
void uarg 
)

Definition at line 6745 of file bfa_fcs_lport.c.

void bfa_cb_lps_flogi_comp ( void bfad,
void uarg,
bfa_status_t  status 
)

Definition at line 930 of file bfa_fcs.c.

void bfa_cb_lps_flogo_comp ( void bfad,
void uarg 
)

Definition at line 1598 of file bfa_fcs.c.

void bfa_cb_rport_offline ( void rport)

Definition at line 2765 of file bfa_fcs_rport.c.

void bfa_cb_rport_online ( void rport)

Definition at line 2742 of file bfa_fcs_rport.c.

void bfa_cb_rport_qos_scn_flowid ( void rport,
struct bfa_rport_qos_attr_s  old_qos_attr,
struct bfa_rport_qos_attr_s  new_qos_attr 
)

Definition at line 2788 of file bfa_fcs_rport.c.

void bfa_cb_rport_qos_scn_prio ( void rport,
struct bfa_rport_qos_attr_s  old_qos_attr,
struct bfa_rport_qos_attr_s  new_qos_attr 
)

Definition at line 2857 of file bfa_fcs_rport.c.

void bfa_cb_rport_scn_no_dev ( void rp)

Definition at line 2819 of file bfa_fcs_rport.c.

void bfa_cb_rport_scn_offline ( struct bfa_s bfa)

Definition at line 2828 of file bfa_fcs_rport.c.

void bfa_cb_rport_scn_online ( struct bfa_s bfa)

Definition at line 2801 of file bfa_fcs_rport.c.

bfa_status_t bfa_dport_disable ( struct bfa_s bfa,
bfa_cb_diag_t  cbfn,
void cbarg 
)

Definition at line 6390 of file bfa_svc.c.

bfa_status_t bfa_dport_enable ( struct bfa_s bfa,
bfa_cb_diag_t  cbfn,
void cbarg 
)

Definition at line 6300 of file bfa_svc.c.

bfa_status_t bfa_dport_get_state ( struct bfa_s bfa,
enum bfa_dport_state state 
)

Definition at line 6444 of file bfa_svc.c.

bfa_status_t bfa_faa_query ( struct bfa_s bfa,
struct bfa_faa_attr_s attr,
bfa_cb_iocfc_t  cbfn,
void cbarg 
)

Definition at line 1363 of file bfa_core.c.

void bfa_fcdiag_intr ( struct bfa_s bfa,
struct bfi_msg_s msg 
)

Definition at line 5881 of file bfa_svc.c.

bfa_status_t bfa_fcdiag_lb_is_running ( struct bfa_s bfa)

Definition at line 6084 of file bfa_svc.c.

bfa_status_t bfa_fcdiag_loopback ( struct bfa_s bfa,
enum bfa_port_opmode  opmode,
enum bfa_port_speed  speed,
u32  lpcnt,
u32  pat,
struct bfa_diag_loopback_result_s result,
bfa_cb_diag_t  cbfn,
void cbarg 
)

Definition at line 5917 of file bfa_svc.c.

bfa_status_t bfa_fcdiag_queuetest ( struct bfa_s bfa,
u32  ignore,
u32  queue,
struct bfa_diag_qtest_result_s result,
bfa_cb_diag_t  cbfn,
void cbarg 
)

Definition at line 6025 of file bfa_svc.c.

void bfa_fcport_beacon ( void dev,
bfa_boolean_t  beacon,
bfa_boolean_t  link_e2e_beacon 
)

Definition at line 4178 of file bfa_svc.c.

void bfa_fcport_cfg_faa ( struct bfa_s bfa,
u8  state 
)

Definition at line 4156 of file bfa_svc.c.

bfa_status_t bfa_fcport_cfg_hardalpa ( struct bfa_s bfa,
u8  alpa 
)

Definition at line 3885 of file bfa_svc.c.

bfa_status_t bfa_fcport_cfg_maxfrsize ( struct bfa_s bfa,
u16  maxsize 
)

Definition at line 3929 of file bfa_svc.c.

bfa_status_t bfa_fcport_cfg_speed ( struct bfa_s bfa,
enum bfa_port_speed  speed 
)

Definition at line 3766 of file bfa_svc.c.

bfa_status_t bfa_fcport_cfg_topology ( struct bfa_s bfa,
enum bfa_port_topology  topo 
)

Definition at line 3822 of file bfa_svc.c.

bfa_status_t bfa_fcport_clear_stats ( struct bfa_s bfa,
struct bfa_cb_pending_q_s cb 
)

Definition at line 4073 of file bfa_svc.c.

bfa_status_t bfa_fcport_clr_hardalpa ( struct bfa_s bfa)

Definition at line 3900 of file bfa_svc.c.

bfa_status_t bfa_fcport_disable ( struct bfa_s bfa)

Definition at line 3735 of file bfa_svc.c.

void bfa_fcport_dportdisable ( struct bfa_s bfa)

Definition at line 4231 of file bfa_svc.c.

void bfa_fcport_dportenable ( struct bfa_s bfa)

Definition at line 4221 of file bfa_svc.c.

bfa_status_t bfa_fcport_enable ( struct bfa_s bfa)

Definition at line 3717 of file bfa_svc.c.

void bfa_fcport_event_register ( struct bfa_s bfa,
void(*)(void *cbarg, enum bfa_port_linkstate event event_cbfn,
void event_cbarg 
)

Definition at line 3705 of file bfa_svc.c.

void bfa_fcport_get_attr ( struct bfa_s bfa,
struct bfa_port_attr_s attr 
)

Definition at line 3992 of file bfa_svc.c.

enum bfa_port_topology bfa_fcport_get_cfg_topology ( struct bfa_s bfa)

Get config topology.

Definition at line 3877 of file bfa_svc.c.

bfa_boolean_t bfa_fcport_get_hardalpa ( struct bfa_s bfa,
u8 alpa 
)

Definition at line 3912 of file bfa_svc.c.

u16 bfa_fcport_get_maxfrsize ( struct bfa_s bfa)

Definition at line 3949 of file bfa_svc.c.

u8 bfa_fcport_get_myalpa ( struct bfa_s bfa)

Definition at line 3921 of file bfa_svc.c.

enum bfa_port_speed bfa_fcport_get_ratelim_speed ( struct bfa_s bfa)

Definition at line 4168 of file bfa_svc.c.

u8 bfa_fcport_get_rx_bbcredit ( struct bfa_s bfa)

Definition at line 3957 of file bfa_svc.c.

enum bfa_port_speed bfa_fcport_get_speed ( struct bfa_s bfa)

Definition at line 3811 of file bfa_svc.c.

bfa_status_t bfa_fcport_get_stats ( struct bfa_s bfa,
struct bfa_cb_pending_q_s cb 
)

Definition at line 4046 of file bfa_svc.c.

enum bfa_port_topology bfa_fcport_get_topology ( struct bfa_s bfa)

Definition at line 3866 of file bfa_svc.c.

wwn_t bfa_fcport_get_wwn ( struct bfa_s bfa,
bfa_boolean_t  node 
)

Definition at line 3982 of file bfa_svc.c.

void bfa_fcport_init ( struct bfa_s bfa)

Definition at line 3563 of file bfa_svc.c.

bfa_boolean_t bfa_fcport_is_disabled ( struct bfa_s bfa)

Definition at line 4100 of file bfa_svc.c.

bfa_boolean_t bfa_fcport_is_dport ( struct bfa_s bfa)

Definition at line 4110 of file bfa_svc.c.

bfa_boolean_t bfa_fcport_is_linkup ( struct bfa_s bfa)

Definition at line 4194 of file bfa_svc.c.

bfa_status_t bfa_fcport_is_pbcdisabled ( struct bfa_s bfa)

Definition at line 3749 of file bfa_svc.c.

bfa_boolean_t bfa_fcport_is_qos_enabled ( struct bfa_s bfa)

Definition at line 4205 of file bfa_svc.c.

bfa_boolean_t bfa_fcport_is_ratelim ( struct bfa_s bfa)

Definition at line 4144 of file bfa_svc.c.

bfa_boolean_t bfa_fcport_is_trunk_enabled ( struct bfa_s bfa)

Definition at line 4213 of file bfa_svc.c.

void bfa_fcport_isr ( struct bfa_s bfa,
struct bfi_msg_s msg 
)

Definition at line 3588 of file bfa_svc.c.

bfa_status_t bfa_fcport_set_qos_bw ( struct bfa_s bfa,
struct bfa_qos_bw_s qos_bw 
)

Definition at line 4119 of file bfa_svc.c.

void bfa_fcport_set_tx_bbcredit ( struct bfa_s bfa,
u16  tx_bbcredit,
u8  bb_scn 
)

Definition at line 3967 of file bfa_svc.c.

bfa_status_t bfa_fcxp_abort ( struct bfa_fcxp_s fcxp)

Definition at line 1099 of file bfa_svc.c.

void bfa_fcxp_discard ( struct bfa_fcxp_s fcxp)

Definition at line 1150 of file bfa_svc.c.

void bfa_fcxp_free ( struct bfa_fcxp_s fcxp)

Definition at line 1019 of file bfa_svc.c.

u32 bfa_fcxp_get_maxrsp ( struct bfa_s bfa)

Definition at line 1181 of file bfa_svc.c.

void* bfa_fcxp_get_reqbuf ( struct bfa_fcxp_s fcxp)

Definition at line 970 of file bfa_svc.c.

u32 bfa_fcxp_get_reqbufsz ( struct bfa_fcxp_s fcxp)

Definition at line 982 of file bfa_svc.c.

void* bfa_fcxp_get_rspbuf ( struct bfa_fcxp_s fcxp)

Definition at line 997 of file bfa_svc.c.

void bfa_fcxp_isr ( struct bfa_s bfa,
struct bfi_msg_s msg 
)

Definition at line 1167 of file bfa_svc.c.

struct bfa_fcxp_s* bfa_fcxp_req_rsp_alloc ( void bfad_fcxp,
struct bfa_s bfa,
int  nreq_sgles,
int  nrsp_sgles,
bfa_fcxp_get_sgaddr_t  get_req_sga,
bfa_fcxp_get_sglen_t  get_req_sglen,
bfa_fcxp_get_sgaddr_t  get_rsp_sga,
bfa_fcxp_get_sglen_t  get_rsp_sglen,
bfa_boolean_t  req 
)
read

Definition at line 940 of file bfa_svc.c.

void bfa_fcxp_req_rsp_alloc_wait ( struct bfa_s bfa,
struct bfa_fcxp_wqe_s wqe,
bfa_fcxp_alloc_cbfn_t  alloc_cbfn,
void cbarg,
void bfad_fcxp,
int  nreq_sgles,
int  nrsp_sgles,
bfa_fcxp_get_sgaddr_t  get_req_sga,
bfa_fcxp_get_sglen_t  get_req_sglen,
bfa_fcxp_get_sgaddr_t  get_rsp_sga,
bfa_fcxp_get_sglen_t  get_rsp_sglen,
bfa_boolean_t  req 
)

Definition at line 1107 of file bfa_svc.c.

void bfa_fcxp_res_recfg ( struct bfa_s bfa,
u16  num_fcxp_fw 
)

Definition at line 1189 of file bfa_svc.c.

void bfa_fcxp_send ( struct bfa_fcxp_s fcxp,
struct bfa_rport_s rport,
u16  vf_id,
u8  lp_tag,
bfa_boolean_t  cts,
enum fc_cos  cos,
u32  reqlen,
struct fchs_s fchs,
bfa_cb_fcxp_send_t  cbfn,
void cbarg,
u32  rsp_maxlen,
u8  rsp_timeout 
)

Definition at line 1050 of file bfa_svc.c.

void bfa_fcxp_walloc_cancel ( struct bfa_s bfa,
struct bfa_fcxp_wqe_s wqe 
)

Definition at line 1140 of file bfa_svc.c.

struct bfa_lps_s* bfa_lps_alloc ( struct bfa_s bfa)
read

Definition at line 1912 of file bfa_svc.c.

void bfa_lps_delete ( struct bfa_lps_s lps)

Definition at line 1933 of file bfa_svc.c.

void bfa_lps_fdisc ( struct bfa_lps_s lps,
void uarg,
u16  pdusz,
wwn_t  pwwn,
wwn_t  nwwn 
)

Definition at line 1960 of file bfa_svc.c.

void bfa_lps_fdisclogo ( struct bfa_lps_s lps)

Definition at line 1978 of file bfa_svc.c.

void bfa_lps_flogi ( struct bfa_lps_s lps,
void uarg,
u8  alpa,
u16  pdusz,
wwn_t  pwwn,
wwn_t  nwwn,
bfa_boolean_t  auth_en,
u8  bb_scn 
)

Definition at line 1942 of file bfa_svc.c.

u32 bfa_lps_get_base_pid ( struct bfa_s bfa)

Definition at line 2015 of file bfa_svc.c.

u8 bfa_lps_get_fwtag ( struct bfa_s bfa,
u8  lp_tag 
)

Definition at line 1984 of file bfa_svc.c.

u32 bfa_lps_get_max_vport ( struct bfa_s bfa)

Definition at line 1900 of file bfa_svc.c.

u8 bfa_lps_get_tag_from_pid ( struct bfa_s bfa,
u32  pid 
)

Definition at line 1995 of file bfa_svc.c.

void bfa_lps_isr ( struct bfa_s bfa,
struct bfi_msg_s msg 
)

Definition at line 2039 of file bfa_svc.c.

void bfa_lps_set_n2n_pid ( struct bfa_lps_s lps,
u32  n2n_pid 
)

Definition at line 2026 of file bfa_svc.c.

struct bfa_rport_s* bfa_rport_create ( struct bfa_s bfa,
void rport_drv 
)
read

Definition at line 5005 of file bfa_svc.c.

void bfa_rport_isr ( struct bfa_s bfa,
struct bfi_msg_s msg 
)

Definition at line 4934 of file bfa_svc.c.

void bfa_rport_online ( struct bfa_rport_s rport,
struct bfa_rport_info_s rport_info 
)

Definition at line 5025 of file bfa_svc.c.

void bfa_rport_res_recfg ( struct bfa_s bfa,
u16  num_rport_fw 
)

Definition at line 4988 of file bfa_svc.c.

void bfa_rport_set_lunmask ( struct bfa_s bfa,
struct bfa_rport_s rp 
)

Definition at line 5056 of file bfa_svc.c.

void bfa_rport_speed ( struct bfa_rport_s rport,
enum bfa_port_speed  speed 
)

Definition at line 5043 of file bfa_svc.c.

void bfa_rport_unset_lunmask ( struct bfa_s bfa,
struct bfa_rport_s rp 
)

Definition at line 5072 of file bfa_svc.c.

bfa_status_t bfa_sgpg_malloc ( struct bfa_s bfa,
struct list_head sgpg_q,
int  nsgpgs 
)

Definition at line 5212 of file bfa_svc.c.

void bfa_sgpg_mfree ( struct bfa_s bfa,
struct list_head sgpg_q,
int  nsgpgs 
)

Definition at line 5232 of file bfa_svc.c.

void bfa_sgpg_wait ( struct bfa_s bfa,
struct bfa_sgpg_wqe_s wqe,
int  nsgpgs 
)

Definition at line 5264 of file bfa_svc.c.

void bfa_sgpg_wcancel ( struct bfa_s bfa,
struct bfa_sgpg_wqe_s wqe 
)

Definition at line 5290 of file bfa_svc.c.

void bfa_sgpg_winit ( struct bfa_sgpg_wqe_s wqe,
void(*)(void *cbarg)  cbfn,
void cbarg 
)

Definition at line 5303 of file bfa_svc.c.

void bfa_uf_free ( struct bfa_uf_s uf)

Definition at line 5581 of file bfa_svc.c.

void bfa_uf_isr ( struct bfa_s bfa,
struct bfi_msg_s msg 
)

Definition at line 5593 of file bfa_svc.c.

void bfa_uf_recv_register ( struct bfa_s bfa,
bfa_cb_uf_recv_t  ufrecv,
void cbarg 
)

Definition at line 5565 of file bfa_svc.c.

void bfa_uf_res_recfg ( struct bfa_s bfa,
u16  num_uf_fw 
)

Definition at line 5609 of file bfa_svc.c.