Lines Matching +full:ports +full:- +full:word +full:- +full:length
4 * Copyright (C) 2017-2024 Broadcom. All Rights Reserved. The term *
6 * Copyright (C) 2009-2016 Emulex. All rights reserved. *
16 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
50 ((be32_to_cpu((ptr)->name##_WORD) >> name##_SHIFT) & name##_MASK)
52 ((le32_to_cpu((ptr)->name##_WORD) >> name##_SHIFT) & name##_MASK)
54 (((ptr)->name##_WORD >> name##_SHIFT) & name##_MASK)
56 ((ptr)->name##_WORD = cpu_to_le32(((((value) & \
57 name##_MASK) << name##_SHIFT) | (le32_to_cpu((ptr)->name##_WORD) & \
60 ((ptr)->name##_WORD = ((((value) & name##_MASK) << name##_SHIFT) | \
61 ((ptr)->name##_WORD & ~(name##_MASK << name##_SHIFT))))
63 #define get_wqe_reqtag(x) (((x)->wqe.words[9] >> 0) & 0xFFFF)
64 #define get_wqe_tmo(x) (((x)->wqe.words[7] >> 24) & 0x00FF)
66 #define get_job_ulpword(x, y) ((x)->iocb.un.ulpWord[y])
68 #define set_job_ulpstatus(x, y) bf_set(lpfc_wcqe_c_status, &(x)->wcqe_cmpl, y)
69 #define set_job_ulpword4(x, y) ((&(x)->wcqe_cmpl)->parameter = y)
134 #define LPFC_VFR_PAGE_SIZE 0x1000 /* 4KB BAR2 per-VF register page size */
195 /* SLI4 interface type-2 PDEV_CTL register */
251 /* BDE (Port-resident) */
253 /* Input BDE (Host-resident) */
255 /* Input BDE (Port-resident) */
257 /* BLP (Host-resident) */
259 /* BLP (Port-resident) */
284 #define BUFF_TYPE_BDE_64P 0x02 /* BDE (Port-resident) */
285 #define BUFF_TYPE_BDE_64I 0x08 /* Input BDE (Host-resident) */
286 #define BUFF_TYPE_BDE_64IP 0x0A /* Input BDE (Port-resident) */
287 #define BUFF_TYPE_BLP_64 0x40 /* BLP (Host-resident) */
288 #define BUFF_TYPE_BLP_64P 0x42 /* BLP (Port-resident) */
413 * Currently, extended status is limited to 9 bits (0x0 -> 0x103) .
803 * value. For UCNA ports running SLI4 and if_type 0, they reside in
804 * BAR4. For UCNA ports running SLI4 and if_type 2, they reside in
805 * BAR0. For FC ports running SLI4 and if_type 6, they reside in
1025 * calls deployed for BE-based ports.
1028 * ports that don't deploy the SLI4_CFG mechanism.
1170 /* word0 of page-1 struct shares the same SHIFT/MASK/WORD defines as above */
1180 uint32_t length; member
1184 uint32_t length; member
1527 uint32_t word0; /* Word 0 is the same as in v0 */
1551 struct dma_address page[LPFC_MAX_WQ_PAGE-1];
1622 #define lpfc_rq_context_rqe_count_1_SHIFT 16 /* Version 1-2 Only */
1625 #define lpfc_rq_context_rqe_size_SHIFT 8 /* Version 1-2 Only */
1875 /* Define allocate-ready Gen 2 SLI4 FCoE Resource Extent Types. */
2049 * 1 words of Extent-Opcode-specific header = 11 words or 44 bytes total.
2051 * An embedded version of SLI4_CONFIG therefore has 256 - 44 = 212 bytes
2055 * 106/2 (extents per word) = 53 words.
2085 * This is the non-embedded version of ALLOC or GET RSRC_EXTENTS. Word4 in this
2086 * structure shares the same SHIFT/MASK/WORD defines provided in the
2088 * the structures defined above. This non-embedded structure provides for the
2123 struct sli4_sge { /* SLI-4 */
2174 struct sli4_sge_diseed { /* SLI-4 */
3129 * * SFF-8472 TABLE 3.4
3139 #define SFF_PG0_CONNECTOR_MT 0x08 /* MT - RJ */
3148 /* SFF-8472 Table 3.1 Diagnostics: Data Fields Address/Page A0 */
3190 /* SFF-8472 Table 3.1a Diagnostics: Data Fields Address/Page A2 */
3235 * Tranceiver codes Fibre Channel SFF-8472
3300 /* User writable non-volatile memory, SFF-8472 Table 3.20 */
3312 #define SLI4_PAGE_ALIGN(addr) (((addr)+((SLI4_PAGE_SIZE)-1)) \
3313 &(~((SLI4_PAGE_SIZE)-1)))
3619 uint32_t length; member
3729 /* extended FC/FCoE Resource Descriptor when length = 88 bytes */
3982 uint32_t mb_words[LPFC_SLI4_MB_WORD_COUNT - 1];
4355 * of a payload area of 256 bytes and a completion queue of length
4365 /* align SGL addr on a size boundary - adjust address up */
4416 uint32_t abort_tag; /* word 8 in WQE */
4573 struct wqe_common wqe_com; /* words 6-11 */
4600 struct wqe_common wqe_com; /* words 6-11 */
4644 struct wqe_common wqe_com; /* words 6-11 */
4682 struct wqe_common wqe_com; /* words 6-11 */
4690 struct wqe_rctl_dfctl wge_ctl; /* word 5 */
4691 struct wqe_common wqe_com; /* words 6-11 */
4699 struct wqe_rctl_dfctl wge_ctl; /* word 5 */
4700 struct wqe_common wqe_com; /* words 6-11 */
4706 * fabric-only protocol.
4707 * Updated to red-lined v1.08 on Sept 16, 2016
4754 uint32_t rsrvd[5]; /* words 0-4 */
4755 struct wqe_did wqe_dest; /* word 5 */
4756 struct wqe_common wqe_com; /* words 6-11 */
4757 uint32_t rsvd_12_15[4]; /* word 12-15 */
4840 struct wqe_common wqe_com; /* words 6-11 */
4841 uint32_t rsvd_12_15[4]; /* word 12-15 */
4856 struct wqe_common wqe_com; /* words 6-11 */
4858 struct ulp_bde64 ph_bde; /* words 13-15 */
4871 uint32_t total_xfer_len; /* word 4 */
4872 uint32_t rsrvd5; /* word 5 */
4873 struct wqe_common wqe_com; /* words 6-11 */
4875 struct ulp_bde64 ph_bde; /* words 13-15 */
4879 struct ulp_bde64 bde; /* words 0-2 */
4888 uint32_t rsrvd4; /* word 4 */
4889 uint32_t rsrvd5; /* word 5 */
4890 struct wqe_common wqe_com; /* words 6-11 */
4891 uint32_t rsvd_12_15[4]; /* word 12-15 */
4898 struct wqe_common wqe_com; /* words 6-11 */
4899 uint32_t rsvd_12_15[4]; /* word 12-15 */
4907 struct wqe_common wqe_com; /* words 6-11 */
4908 uint32_t fcp_data_len; /* word 12 */
4909 uint32_t rsvd_13_15[3]; /* word 13-15 */
4917 struct wqe_common wqe_com; /* words 6-11 */
4918 uint32_t fcp_data_len; /* word 12 */
4919 uint32_t rsvd_13_15[3]; /* word 13-15 */
4926 struct ulp_bde64 bde; /* words 0-2 */
4927 uint32_t frame_len; /* word 3 */
4928 uint32_t fc_hdr_wd0; /* word 4 */
4929 uint32_t fc_hdr_wd1; /* word 5 */
4930 struct wqe_common wqe_com; /* words 6-11 */
4931 uint32_t fc_hdr_wd2; /* word 12 */
4932 uint32_t fc_hdr_wd3; /* word 13 */
4933 uint32_t fc_hdr_wd4; /* word 14 */
4934 uint32_t fc_hdr_wd5; /* word 15 */