Lines Matching +full:pa +full:- +full:stats
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Linux network driver for QLogic BR-series Converged Network Adapter.
6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
7 * Copyright (c) 2014-2015 QLogic Corporation
35 /* Structure used to remember the DMA-able memory block's KVA and Physical
40 u64 pa; /* ! Physical address */ member
50 #define bfa_dma_be_addr_set(dma_addr, pa) \ argument
51 __bfa_dma_be_addr_set(&dma_addr, (u64)pa)
53 __bfa_dma_be_addr_set(union bfi_addr_u *dma_addr, u64 pa) in __bfa_dma_be_addr_set() argument
55 dma_addr->a32.addr_lo = (u32) htonl(pa); in __bfa_dma_be_addr_set()
56 dma_addr->a32.addr_hi = (u32) htonl(upper_32_bits(pa)); in __bfa_dma_be_addr_set()
63 __bfa_alen_set(struct bfi_alen *alen, u32 len, u64 pa) in __bfa_alen_set() argument
65 alen->al_len = cpu_to_be32(len); in __bfa_alen_set()
66 bfa_dma_be_addr_set(alen->al_addr, pa); in __bfa_alen_set()
146 (__notify)->cbfn = (__cbfn); \
147 (__notify)->cbarg = (__cbarg); \
177 struct bfa_ioc_drv_stats stats; member
180 bool stats_busy; /*!< outstanding stats */
224 #define bfa_ioc_pcifn(__ioc) ((__ioc)->pcidev.pci_func)
225 #define bfa_ioc_devid(__ioc) ((__ioc)->pcidev.device_id)
226 #define bfa_ioc_bar0(__ioc) ((__ioc)->pcidev.pci_bar_kva)
227 #define bfa_ioc_portid(__ioc) ((__ioc)->port_id)
228 #define bfa_ioc_asic_gen(__ioc) ((__ioc)->asic_gen)
232 BFI_ADAPTER_GETP(SPEED, (__ioc)->attr->adapter_prop)
234 BFI_ADAPTER_GETP(NPORTS, (__ioc)->attr->adapter_prop)
236 #define bfa_ioc_stats(_ioc, _stats) ((_ioc)->stats._stats++)
238 ((_ioc)->stats.hb_count = (_hb_count))
258 ((__ioc)->ioc_hwif->ioc_pll_init((__ioc)->pcidev.pci_bar_kva, \
259 (__ioc)->asic_mode))
262 if ((__ioc)->ioc_hwif->ioc_lpu_read_stat) \
263 ((__ioc)->ioc_hwif->ioc_lpu_read_stat(__ioc)); \