Lines Matching +full:ports +full:- +full:block +full:- +full:pack +full:- +full:mode

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.
17 #pragma pack(1)
24 ((u16)(((((_num_reqs) * (_req_sz)) + BFI_MEM_DMA_SEG_SZ - 1) & \
25 ~(BFI_MEM_DMA_SEG_SZ - 1)) / BFI_MEM_DMA_SEG_SZ))
27 /* Get num dma reqs - that fit in a segment */
35 ((_tag) - (BFI_MEM_SEG_FROM_TAG(_tag, _sz) * BFI_MEM_NREQS_SEG(_sz)))
60 #define bfi_mhdr_2_fn(_mh) ((_mh)->mtag.h2i.fn_lpu >> 1)
75 * Message opcodes: 0-127 to firmware, 128-255 to host
113 * Scatter Gather Element used for fast-path IO requests
129 * Generic DMA addr-len pair.
154 * Large Message structure - 128 Bytes size Msgs
158 ((BFI_LMSG_SZ - sizeof(struct bfi_mhdr_s)) / 4)
191 BFI_MC_IOCFC = 6, /* FC - IO Controller (IOC) */
192 BFI_MC_ABLK = 7, /* ASIC block configuration */
197 BFI_MC_ITN = 12, /* I-T nexus (Initiator mode) */
198 BFI_MC_IOIM_READ = 13, /* read IO (Initiator mode) */
199 BFI_MC_IOIM_WRITE = 14, /* write IO (Initiator mode) */
200 BFI_MC_IOIM_IO = 15, /* IO (Initiator mode) */
201 BFI_MC_IOIM = 16, /* IO (Initiator mode) */
216 *----------------------------------------------------------------------
218 *----------------------------------------------------------------------
227 BFI_ASIC_GEN_CT2 = 3, /* catapult-2 16G FC or 10G CNA */
233 BFI_ASIC_MODE_ETH = 3, /* Ethernet ports */
348 u8 port0_mode; /* device mode for port 0 */
349 u8 port1_mode; /* device mode for port 1 */
405 BFI_IOC_FAIL = 8, /* IOC heart-beat failure */
419 BFI_ADAPTER_NPORTS_MK = 0xff00, /* number of ports mask */
420 BFI_ADAPTER_NPORTS_SH = 8, /* number of ports shift */
491 *----------------------------------------------------------------------
493 *----------------------------------------------------------------------
517 * BFI pre-boot configuration information
534 *----------------------------------------------------------------------
536 *----------------------------------------------------------------------
538 #define BFI_MSGQ_FULL(_q) (((_q->pi + 1) % _q->q_depth) == _q->ci)
539 #define BFI_MSGQ_EMPTY(_q) (_q->pi == _q->ci)
540 #define BFI_MSGQ_UPDATE_CI(_q) (_q->ci = (_q->ci + 1) % _q->q_depth)
541 #define BFI_MSGQ_UPDATE_PI(_q) (_q->pi = (_q->pi + 1) % _q->q_depth)
544 #define BFI_MSGQ_FREE_CNT(_q) ((_q->ci - _q->pi - 1) & (_q->q_depth - 1))
618 #pragma pack()
621 #pragma pack(1)
681 *----------------------------------------------------------------------
683 *----------------------------------------------------------------------
716 u8 mode; member
835 u8 is_elb; /* e-loopback */
990 *----------------------------------------------------------------------
992 *----------------------------------------------------------------------
1056 u16 temp; /* 10-bit A/D value */
1057 u16 brd_temp; /* 9-bit board temp */
1099 * D-port test
1140 u8 mode; /* bfa_diag_dport_test_opmode */ member
1315 #pragma pack()