__bfa              36 drivers/scsi/bfa/bfa.h #define bfa_reqq_pi(__bfa, __reqq)	((__bfa)->iocfc.req_cq_pi[__reqq])
__bfa              37 drivers/scsi/bfa/bfa.h #define bfa_reqq_ci(__bfa, __reqq)					\
__bfa              38 drivers/scsi/bfa/bfa.h 	(*(u32 *)((__bfa)->iocfc.req_cq_shadow_ci[__reqq].kva))
__bfa              40 drivers/scsi/bfa/bfa.h #define bfa_reqq_full(__bfa, __reqq)				\
__bfa              41 drivers/scsi/bfa/bfa.h 	(((bfa_reqq_pi(__bfa, __reqq) + 1) &			\
__bfa              42 drivers/scsi/bfa/bfa.h 	  ((__bfa)->iocfc.cfg.drvcfg.num_reqq_elems - 1)) ==	\
__bfa              43 drivers/scsi/bfa/bfa.h 	 bfa_reqq_ci(__bfa, __reqq))
__bfa              45 drivers/scsi/bfa/bfa.h #define bfa_reqq_next(__bfa, __reqq)					\
__bfa              46 drivers/scsi/bfa/bfa.h 	(bfa_reqq_full(__bfa, __reqq) ? NULL :				\
__bfa              47 drivers/scsi/bfa/bfa.h 	 ((void *)((struct bfi_msg_s *)((__bfa)->iocfc.req_cq_ba[__reqq].kva) \
__bfa              48 drivers/scsi/bfa/bfa.h 		   + bfa_reqq_pi((__bfa), (__reqq)))))
__bfa              50 drivers/scsi/bfa/bfa.h #define bfa_reqq_produce(__bfa, __reqq, __mh)  do {			\
__bfa              51 drivers/scsi/bfa/bfa.h 		(__mh).mtag.h2i.qid     = (__bfa)->iocfc.hw_qid[__reqq];\
__bfa              52 drivers/scsi/bfa/bfa.h 		(__bfa)->iocfc.req_cq_pi[__reqq]++;			\
__bfa              53 drivers/scsi/bfa/bfa.h 		(__bfa)->iocfc.req_cq_pi[__reqq] &=			\
__bfa              54 drivers/scsi/bfa/bfa.h 			((__bfa)->iocfc.cfg.drvcfg.num_reqq_elems - 1); \
__bfa              55 drivers/scsi/bfa/bfa.h 		writel((__bfa)->iocfc.req_cq_pi[__reqq],		\
__bfa              56 drivers/scsi/bfa/bfa.h 			(__bfa)->iocfc.bfa_regs.cpe_q_pi[__reqq]);	\
__bfa              59 drivers/scsi/bfa/bfa.h #define bfa_rspq_pi(__bfa, __rspq)					\
__bfa              60 drivers/scsi/bfa/bfa.h 	(*(u32 *)((__bfa)->iocfc.rsp_cq_shadow_pi[__rspq].kva))
__bfa              62 drivers/scsi/bfa/bfa.h #define bfa_rspq_ci(__bfa, __rspq)	((__bfa)->iocfc.rsp_cq_ci[__rspq])
__bfa              63 drivers/scsi/bfa/bfa.h #define bfa_rspq_elem(__bfa, __rspq, __ci)				\
__bfa              64 drivers/scsi/bfa/bfa.h 	(&((struct bfi_msg_s *)((__bfa)->iocfc.rsp_cq_ba[__rspq].kva))[__ci])
__bfa              96 drivers/scsi/bfa/bfa.h #define bfa_reqq(__bfa, __reqq)	(&(__bfa)->reqq_waitq[__reqq])
__bfa             102 drivers/scsi/bfa/bfa.h #define bfa_reqq_wait(__bfa, __reqq, __wqe) do {			\
__bfa             104 drivers/scsi/bfa/bfa.h 		struct list_head *waitq = bfa_reqq(__bfa, __reqq);      \
__bfa             114 drivers/scsi/bfa/bfa.h #define bfa_cb_queue(__bfa, __hcb_qe, __cbfn, __cbarg) do {	\
__bfa             118 drivers/scsi/bfa/bfa.h 		list_add_tail(&(__hcb_qe)->qe, &(__bfa)->comp_q);      \
__bfa             123 drivers/scsi/bfa/bfa.h #define bfa_cb_queue_once(__bfa, __hcb_qe, __cbfn, __cbarg) do {	\
__bfa             127 drivers/scsi/bfa/bfa.h 			list_add_tail(&(__hcb_qe)->qe, &(__bfa)->comp_q);      \
__bfa             132 drivers/scsi/bfa/bfa.h #define bfa_cb_queue_status(__bfa, __hcb_qe, __status) do {		\
__bfa             134 drivers/scsi/bfa/bfa.h 		list_add_tail(&(__hcb_qe)->qe, &(__bfa)->comp_q);	\
__bfa             262 drivers/scsi/bfa/bfa.h #define bfa_fn_lpu(__bfa)	\
__bfa             263 drivers/scsi/bfa/bfa.h 	bfi_fn_lpu(bfa_ioc_pcifn(&(__bfa)->ioc), bfa_ioc_portid(&(__bfa)->ioc))
__bfa             264 drivers/scsi/bfa/bfa.h #define bfa_msix_init(__bfa, __nvecs)					\
__bfa             265 drivers/scsi/bfa/bfa.h 	((__bfa)->iocfc.hwif.hw_msix_init(__bfa, __nvecs))
__bfa             266 drivers/scsi/bfa/bfa.h #define bfa_msix_ctrl_install(__bfa)					\
__bfa             267 drivers/scsi/bfa/bfa.h 	((__bfa)->iocfc.hwif.hw_msix_ctrl_install(__bfa))
__bfa             268 drivers/scsi/bfa/bfa.h #define bfa_msix_queue_install(__bfa)					\
__bfa             269 drivers/scsi/bfa/bfa.h 	((__bfa)->iocfc.hwif.hw_msix_queue_install(__bfa))
__bfa             270 drivers/scsi/bfa/bfa.h #define bfa_msix_uninstall(__bfa)					\
__bfa             271 drivers/scsi/bfa/bfa.h 	((__bfa)->iocfc.hwif.hw_msix_uninstall(__bfa))
__bfa             272 drivers/scsi/bfa/bfa.h #define bfa_isr_rspq_ack(__bfa, __queue, __ci)				\
__bfa             273 drivers/scsi/bfa/bfa.h 	((__bfa)->iocfc.hwif.hw_rspq_ack(__bfa, __queue, __ci))
__bfa             274 drivers/scsi/bfa/bfa.h #define bfa_isr_reqq_ack(__bfa, __queue) do {				\
__bfa             275 drivers/scsi/bfa/bfa.h 	if ((__bfa)->iocfc.hwif.hw_reqq_ack)				\
__bfa             276 drivers/scsi/bfa/bfa.h 		(__bfa)->iocfc.hwif.hw_reqq_ack(__bfa, __queue);	\
__bfa             278 drivers/scsi/bfa/bfa.h #define bfa_isr_mode_set(__bfa, __msix) do {				\
__bfa             279 drivers/scsi/bfa/bfa.h 	if ((__bfa)->iocfc.hwif.hw_isr_mode_set)			\
__bfa             280 drivers/scsi/bfa/bfa.h 		(__bfa)->iocfc.hwif.hw_isr_mode_set(__bfa, __msix);	\
__bfa             282 drivers/scsi/bfa/bfa.h #define bfa_msix_getvecs(__bfa, __vecmap, __nvecs, __maxvec)		\
__bfa             283 drivers/scsi/bfa/bfa.h 	((__bfa)->iocfc.hwif.hw_msix_getvecs(__bfa, __vecmap,		\
__bfa             285 drivers/scsi/bfa/bfa.h #define bfa_msix_get_rme_range(__bfa, __start, __end)			\
__bfa             286 drivers/scsi/bfa/bfa.h 	((__bfa)->iocfc.hwif.hw_msix_get_rme_range(__bfa, __start, __end))
__bfa             287 drivers/scsi/bfa/bfa.h #define bfa_msix(__bfa, __vec)						\
__bfa             288 drivers/scsi/bfa/bfa.h 	((__bfa)->msix.handler[__vec](__bfa, __vec))
__bfa             348 drivers/scsi/bfa/bfa.h #define bfa_ioc_get_stats(__bfa, __ioc_stats)		\
__bfa             349 drivers/scsi/bfa/bfa.h 	bfa_ioc_fetch_stats(&(__bfa)->ioc, __ioc_stats)
__bfa             350 drivers/scsi/bfa/bfa.h #define bfa_ioc_clear_stats(__bfa)		\
__bfa             351 drivers/scsi/bfa/bfa.h 	bfa_ioc_clr_stats(&(__bfa)->ioc)
__bfa             352 drivers/scsi/bfa/bfa.h #define bfa_get_nports(__bfa)			\
__bfa             353 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_nports(&(__bfa)->ioc)
__bfa             354 drivers/scsi/bfa/bfa.h #define bfa_get_adapter_manufacturer(__bfa, __manufacturer)		\
__bfa             355 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_adapter_manufacturer(&(__bfa)->ioc, __manufacturer)
__bfa             356 drivers/scsi/bfa/bfa.h #define bfa_get_adapter_model(__bfa, __model)			\
__bfa             357 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_adapter_model(&(__bfa)->ioc, __model)
__bfa             358 drivers/scsi/bfa/bfa.h #define bfa_get_adapter_serial_num(__bfa, __serial_num)			\
__bfa             359 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_adapter_serial_num(&(__bfa)->ioc, __serial_num)
__bfa             360 drivers/scsi/bfa/bfa.h #define bfa_get_adapter_fw_ver(__bfa, __fw_ver)			\
__bfa             361 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_adapter_fw_ver(&(__bfa)->ioc, __fw_ver)
__bfa             362 drivers/scsi/bfa/bfa.h #define bfa_get_adapter_optrom_ver(__bfa, __optrom_ver)			\
__bfa             363 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_adapter_optrom_ver(&(__bfa)->ioc, __optrom_ver)
__bfa             364 drivers/scsi/bfa/bfa.h #define bfa_get_pci_chip_rev(__bfa, __chip_rev)			\
__bfa             365 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_pci_chip_rev(&(__bfa)->ioc, __chip_rev)
__bfa             366 drivers/scsi/bfa/bfa.h #define bfa_get_ioc_state(__bfa)		\
__bfa             367 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_state(&(__bfa)->ioc)
__bfa             368 drivers/scsi/bfa/bfa.h #define bfa_get_type(__bfa)			\
__bfa             369 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_type(&(__bfa)->ioc)
__bfa             370 drivers/scsi/bfa/bfa.h #define bfa_get_mac(__bfa)			\
__bfa             371 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_mac(&(__bfa)->ioc)
__bfa             372 drivers/scsi/bfa/bfa.h #define bfa_get_mfg_mac(__bfa)			\
__bfa             373 drivers/scsi/bfa/bfa.h 	bfa_ioc_get_mfg_mac(&(__bfa)->ioc)
__bfa             374 drivers/scsi/bfa/bfa.h #define bfa_get_fw_clock_res(__bfa)		\
__bfa             375 drivers/scsi/bfa/bfa.h 	((__bfa)->iocfc.cfgrsp->fwcfg.fw_tick_res)
__bfa             381 drivers/scsi/bfa/bfa.h #define bfa_get_lun_mask(__bfa)					\
__bfa             382 drivers/scsi/bfa/bfa.h 	((&(__bfa)->modules.dconf_mod)->min_cfg) ? NULL :	\
__bfa             383 drivers/scsi/bfa/bfa.h 	 (&(BFA_DCONF_MOD(__bfa)->dconf->lun_mask))
__bfa              41 drivers/scsi/bfa/bfa_fcpim.h #define BFA_MEM_FCP_KVA(__bfa)	(&(BFA_FCP_MOD(__bfa)->kva_seg))
__bfa             308 drivers/scsi/bfa/bfa_fcpim.h #define bfa_fcpim_ioredirect_enabled(__bfa)				\
__bfa             309 drivers/scsi/bfa/bfa_fcpim.h 	(((struct bfa_fcpim_s *)(BFA_FCPIM(__bfa)))->ioredirect)
__bfa             311 drivers/scsi/bfa/bfa_fcpim.h #define bfa_fcpim_get_next_reqq(__bfa, __qid)				\
__bfa             313 drivers/scsi/bfa/bfa_fcpim.h 	struct bfa_fcpim_s *__fcpim = BFA_FCPIM(__bfa);      \
__bfa             517 drivers/scsi/bfa/bfa_fcs.h #define bfa_fcs_fcxp_alloc_wait(__bfa, __wqe, __alloc_cbfn,		\
__bfa             519 drivers/scsi/bfa/bfa_fcs.h 	bfa_fcxp_req_rsp_alloc_wait(__bfa, __wqe, __alloc_cbfn,		\
__bfa             412 drivers/scsi/bfa/bfa_ioc.h #define BFA_MEM_ABLK_DMA(__bfa)		(&((__bfa)->modules.ablk.ablk_dma))
__bfa             444 drivers/scsi/bfa/bfa_ioc.h #define BFA_SFP_MOD(__bfa)	(&(__bfa)->modules.sfp)
__bfa             445 drivers/scsi/bfa/bfa_ioc.h #define BFA_MEM_SFP_DMA(__bfa)	(&(BFA_SFP_MOD(__bfa)->sfp_dma))
__bfa             494 drivers/scsi/bfa/bfa_ioc.h #define BFA_FLASH(__bfa)		(&(__bfa)->modules.flash)
__bfa             495 drivers/scsi/bfa/bfa_ioc.h #define BFA_MEM_FLASH_DMA(__bfa)	(&(BFA_FLASH(__bfa)->flash_dma))
__bfa             628 drivers/scsi/bfa/bfa_ioc.h #define BFA_DIAG_MOD(__bfa)     (&(__bfa)->modules.diag_mod)
__bfa             629 drivers/scsi/bfa/bfa_ioc.h #define BFA_MEM_DIAG_DMA(__bfa) (&(BFA_DIAG_MOD(__bfa)->diag_dma))
__bfa             685 drivers/scsi/bfa/bfa_ioc.h #define BFA_PHY(__bfa)	(&(__bfa)->modules.phy)
__bfa             686 drivers/scsi/bfa/bfa_ioc.h #define BFA_MEM_PHY_DMA(__bfa)	(&(BFA_PHY(__bfa)->phy_dma))
__bfa             736 drivers/scsi/bfa/bfa_ioc.h #define BFA_FRU(__bfa)	(&(__bfa)->modules.fru)
__bfa             737 drivers/scsi/bfa/bfa_ioc.h #define BFA_MEM_FRU_DMA(__bfa)	(&(BFA_FRU(__bfa)->fru_dma))
__bfa             791 drivers/scsi/bfa/bfa_ioc.h #define BFA_DCONF_MOD(__bfa)	\
__bfa             792 drivers/scsi/bfa/bfa_ioc.h 	(&(__bfa)->modules.dconf_mod)
__bfa             793 drivers/scsi/bfa/bfa_ioc.h #define BFA_MEM_DCONF_KVA(__bfa)	(&(BFA_DCONF_MOD(__bfa)->kva_seg))
__bfa             794 drivers/scsi/bfa/bfa_ioc.h #define bfa_dconf_read_data_valid(__bfa)	\
__bfa             795 drivers/scsi/bfa/bfa_ioc.h 	(BFA_DCONF_MOD(__bfa)->read_data_valid)
__bfa             797 drivers/scsi/bfa/bfa_ioc.h #define bfa_dconf_get_min_cfg(__bfa)	\
__bfa             798 drivers/scsi/bfa/bfa_ioc.h 	(BFA_DCONF_MOD(__bfa)->min_cfg)
__bfa              45 drivers/scsi/bfa/bfa_port.h #define BFA_MEM_PORT_DMA(__bfa)		(&((__bfa)->modules.port.port_dma))
__bfa             104 drivers/scsi/bfa/bfa_port.h #define BFA_MEM_CEE_DMA(__bfa)	(&((__bfa)->modules.cee.cee_dma))
__bfa              64 drivers/scsi/bfa/bfa_svc.h #define BFA_SGPG_MOD(__bfa)	(&(__bfa)->modules.sgpg_mod)
__bfa              65 drivers/scsi/bfa/bfa_svc.h #define BFA_MEM_SGPG_KVA(__bfa) (&(BFA_SGPG_MOD(__bfa)->kva_seg))
__bfa             106 drivers/scsi/bfa/bfa_svc.h #define BFA_FCXP_MOD(__bfa)		(&(__bfa)->modules.fcxp_mod)
__bfa             108 drivers/scsi/bfa/bfa_svc.h #define BFA_MEM_FCXP_KVA(__bfa) (&(BFA_FCXP_MOD(__bfa)->kva_seg))
__bfa             256 drivers/scsi/bfa/bfa_svc.h #define BFA_RPORT_MOD(__bfa)	(&(__bfa)->modules.rport_mod)
__bfa             257 drivers/scsi/bfa/bfa_svc.h #define BFA_MEM_RPORT_KVA(__bfa) (&(BFA_RPORT_MOD(__bfa)->kva_seg))
__bfa             262 drivers/scsi/bfa/bfa_svc.h #define BFA_RPORT_FROM_TAG(__bfa, _tag)				\
__bfa             263 drivers/scsi/bfa/bfa_svc.h 	(BFA_RPORT_MOD(__bfa)->rps_list +			\
__bfa             264 drivers/scsi/bfa/bfa_svc.h 	 ((_tag) & (BFA_RPORT_MOD(__bfa)->num_rports - 1)))
__bfa             371 drivers/scsi/bfa/bfa_svc.h #define BFA_UF_MOD(__bfa)	(&(__bfa)->modules.uf_mod)
__bfa             372 drivers/scsi/bfa/bfa_svc.h #define BFA_MEM_UF_KVA(__bfa)	(&(BFA_UF_MOD(__bfa)->kva_seg))
__bfa             426 drivers/scsi/bfa/bfa_svc.h #define BFA_LPS_MOD(__bfa)		(&(__bfa)->modules.lps_mod)
__bfa             428 drivers/scsi/bfa/bfa_svc.h #define BFA_MEM_LPS_KVA(__bfa)	(&(BFA_LPS_MOD(__bfa)->kva_seg))
__bfa             512 drivers/scsi/bfa/bfa_svc.h #define BFA_FCPORT_MOD(__bfa)	(&(__bfa)->modules.fcport)
__bfa             513 drivers/scsi/bfa/bfa_svc.h #define BFA_MEM_FCPORT_DMA(__bfa) (&(BFA_FCPORT_MOD(__bfa)->fcport_dma))
__bfa             734 drivers/scsi/bfa/bfa_svc.h #define BFA_FCDIAG_MOD(__bfa)	(&(__bfa)->modules.fcdiag)