Lines Matching +full:flash +full:- +full:dma

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
49 /* BFA dma address assignment macro. (big endian format) */
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()
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); \
220 #define bfa_ioc_pcifn(__ioc) ((__ioc)->pcidev.pci_func)
221 #define bfa_ioc_devid(__ioc) ((__ioc)->pcidev.device_id)
222 #define bfa_ioc_bar0(__ioc) ((__ioc)->pcidev.pci_bar_kva)
223 #define bfa_ioc_portid(__ioc) ((__ioc)->port_id)
224 #define bfa_ioc_asic_gen(__ioc) ((__ioc)->asic_gen)
228 BFI_ADAPTER_GETP(SPEED, (__ioc)->attr->adapter_prop)
230 BFI_ADAPTER_GETP(NPORTS, (__ioc)->attr->adapter_prop)
232 #define bfa_ioc_stats(_ioc, _stats) ((_ioc)->stats._stats++)
234 ((_ioc)->stats.hb_count = (_hb_count))
254 ((__ioc)->ioc_hwif->ioc_pll_init((__ioc)->pcidev.pci_bar_kva, \
255 (__ioc)->asic_mode))
258 if ((__ioc)->ioc_hwif->ioc_lpu_read_stat) \
259 ((__ioc)->ioc_hwif->ioc_lpu_read_stat(__ioc)); \
311 * Flash module specific
324 u8 *dbuf_kva; /* dma buf virtual address */
325 u64 dbuf_pa; /* dma buf physical address */
334 enum bfa_status bfa_nw_flash_get_attr(struct bfa_flash *flash,
337 enum bfa_status bfa_nw_flash_update_part(struct bfa_flash *flash,
340 enum bfa_status bfa_nw_flash_read_part(struct bfa_flash *flash,
344 void bfa_nw_flash_attach(struct bfa_flash *flash,
346 void bfa_nw_flash_memclaim(struct bfa_flash *flash, u8 *dm_kva, u64 dm_pa);