Lines Matching +full:ports +full:- +full:word +full:- +full:length
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
5 * Maintained at www.Open-FCoE.org
15 * Fibre Channel Switch - Enhanced Link Services definitions.
16 * From T11 FC-LS Rev 1.2 June 7, 2005.
20 * ELS Command codes - byte 0 of the frame payload
28 ELS_ABTX = 0x06, /* Abort exchange - obsolete */
56 ELS_NACT = 0x33, /* N-port activate alias_id */
57 ELS_NDACT = 0x34, /* N-port deactivate alias_id */
72 ELS_RNFT = 0x63, /* report node FC-4 types */
81 ELS_SBRP = 0x7c, /* set bit-error reporting params */
85 ELS_LKA = 0x80, /* link keep-alive */
183 ELS_RJT_NONE = 0, /* no reject - not to be sent */
201 ELS_EXPL_SPP_OPT_ERR = 0x01, /* service parameter error - options */
202 ELS_EXPL_SPP_ICTL_ERR = 0x03, /* service parm error - initiator ctl */
206 ELS_EXPL_OXID_RXID = 0x17, /* invalid OX_ID-RX_ID combination */
212 ELS_EXPL_INV_LEN = 0x2d, /* Invalid payload length */
214 /* TBD - above definitions incomplete */
259 * as the "tlv header" - which contains the tag and len fields.
263 __be32 desc_len; /* Length of Descriptor (in bytes).
276 * Macro, used when initializing payloads, to return the descriptor length.
277 * Length is size of descriptor minus the tag and len fields.
280 (sizeof(desc) - FC_TLV_DESC_HDR_SZ)
282 /* Macro, used on received payloads, to return the descriptor length */
284 (__be32_to_cpu((tlv)->desc_len) + FC_TLV_DESC_HDR_SZ)
305 __be32 desc_len; /* Length of Descriptor (in bytes) (4).
312 } rqst_w0; /* Request word 0 */
317 * Common service parameters (N ports).
322 __be16 sp_bb_cred; /* buffer-to-buffer credits */
324 __be16 sp_bb_data; /* b-b state number and data field sz */
369 #define FC_SP_FT_PAYL 0x0001 /* FLOGI payload length 256, else 116 */
372 * Class-specific service parameters.
380 __be16 cp_ee_cred; /* N-port end-to-end credit */
392 #define FC_CPC_CAMP 0x0200 /* camp-on */
416 struct fc_els_cssp fl_cssp[4]; /* class 1-4 service parameters */
442 * SPP response code in spp_flags - lower 4 bits.
456 * ELS_RRQ - Reinstate Recovery Qualifier
460 __u8 rrq_zero[3]; /* specified as zero - part of cmd */
468 * ELS_REC - Read exchange concise.
472 __u8 rec_zero[3]; /* specified as zero - part of cmd */
484 __u8 reca_zero[3]; /* specified as zero - part of cmd */
496 * ELS_PRLI - Process login request and response.
500 __u8 prli_spp_len; /* length of each serv. parm. page */
501 __be16 prli_len; /* length of entire payload */
506 * ELS_PRLO - Process logout request and response.
511 __be16 prlo_len; /* payload length */
529 * ELS_LOGO - process or fabric logout.
533 __u8 fl_zero[3]; /* specified as zero - part of cmd */
540 * ELS_RTV - read timeout value.
544 __u8 rtv_zero[3]; /* specified as zero - part of cmd */
548 * LS_ACC for ELS_RTV - read timeout value.
552 __u8 rtv_zero[3]; /* specified as zero - part of cmd */
565 * ELS_SCR - state change registration payload.
574 ELS_SCRF_FAB = 1, /* fabric-detected registration */
575 ELS_SCRF_NPORT = 2, /* Nx_Port-detected registration */
581 * ELS_RSCN - registered state change notification payload.
585 __u8 rscn_page_len; /* page length (4) */
586 __be16 rscn_plen; /* payload length including this word */
588 /* followed by 4-byte generic affected Port_ID pages */
618 * ELS_RNID - request Node ID.
642 __u8 rnid_cid_len; /* common ID data length */
644 __u8 rnid_sid_len; /* specific ID data length */
653 __u8 rnid_vend_id[16]; /* vendor-unique ID */
662 __be16 rnid_vend_spec; /* vendor-specific field */
710 * ELS RPL - Read Port List.
714 __u8 rpl_resv[5]; /* reserved - must be zero */
716 __u8 rpl_resv1; /* reserved - must be zero */
735 __u8 rpl_resv1; /* reserved - must be zero */
736 __be16 rpl_plen; /* payload length */
737 __u8 rpl_resv2; /* reserved - must be zero */
738 __u8 rpl_llen[3]; /* list length */
739 __u8 rpl_resv3; /* reserved - must be zero */
752 __be32 lesb_inv_word; /* invalid transmission word count */
757 * ELS RPS - Read Port Status Block request.
761 __u8 rps_resv[2]; /* reserved - must be zero */
762 __u8 rps_flag; /* flag - see below */
776 __u8 rps_cmd; /* command - LS_ACC */
777 __u8 rps_resv[2]; /* reserved - must be zero */
778 __u8 rps_flag; /* flag - see below */
780 __be16 rps_status; /* port status - see below */
789 FC_ELS_RPS_PTP = 1 << 5, /* point-to-point connection */
798 * ELS LIRR - Link Incident Record Registration request.
802 __u8 lirr_resv[3]; /* reserved - must be zero */
804 __u8 lirr_fmt; /* FC-4 type of RLIR requested */
805 __u8 lirr_resv2[2]; /* reserved - must be zero */
809 ELS_LIRR_SET_COND = 0x01, /* set - conditionally receive */
810 ELS_LIRR_SET_UNCOND = 0x02, /* set - unconditionally receive */
815 * ELS SRL - Scan Remote Loop request.
819 __u8 srl_resv[3]; /* reserved - must be zero */
820 __u8 srl_flag; /* flag - see below */
825 FC_ELS_SRL_ALL = 0x00, /* scan all FL ports */
832 * ELS RLS - Read Link Error Status Block request.
836 __u8 rls_resv[4]; /* reserved - must be zero */
845 __u8 rls_resv[3]; /* reserved - must be zero */
850 * ELS RLIR - Registered Link Incident Report.
855 __u8 rlir_resv[3]; /* reserved - must be zero */
856 __u8 rlir_fmt; /* format (FC4-type if type specific) */
857 __u8 rlir_clr_len; /* common link incident record length */
858 __u8 rlir_cld_len; /* common link incident desc. length */
859 __u8 rlir_slr_len; /* spec. link incident record length */
863 * CLIR - Common Link Incident Record Data. - Sent via RLIR.
882 * CLIR clir_ts_fmt - time stamp format values.
891 * Common Link Incident Descriptor - sent via RLIR.
905 ELS_CLID_SEV_MASK = 0x0c, /* severity 2-bit field mask */
918 ELS_CLID_IC_BER = 2, /* bit-error-rate threshold exceeded */
920 ELS_CLID_IC_NOS = 4, /* non-operational primitive sequence */
951 { FPIN_LI_INVALID_TX_WD, "Invalid Transmission Word" }, \
1010 __be32 desc_len; /* Length of Descriptor (in bytes).
1040 __be32 desc_len; /* Length of Descriptor (in bytes).
1056 __be32 desc_len; /* Length of Descriptor (in bytes).
1082 __be32 desc_len; /* Length of Descriptor (in bytes).
1094 __u8 resv[3]; /* reserved - must be zero */
1098 * ELS_FPIN - Fabric Performance Impact Notification
1102 __u8 fpin_zero[3]; /* specified as zero - part of cmd */
1103 __be32 desc_len; /* Length of Descriptor List (in bytes).
1110 /* Diagnostic Function Descriptor - FPIN Registration */
1113 __be32 desc_len; /* Length of Descriptor (in bytes).
1129 * ELS_RDF - Register Diagnostic Functions
1133 __u8 fpin_zero[3]; /* specified as zero - part of cmd */
1134 __be32 desc_len; /* Length of Descriptor List (in bytes).
1146 __be32 desc_list_len; /* Length of response (in
1164 __be32 desc_len; /* Length of Descriptor (in bytes).
1213 __be32 desc_len; /* Length of Descriptor (in bytes).
1225 * ELS_EDC - Exchange Diagnostic Capabilities
1229 __u8 edc_zero[3]; /* specified as zero - part of cmd */
1230 __be32 desc_len; /* Length of Descriptor List (in bytes).
1243 __be32 desc_list_len; /* Length of response (in