Lines Matching +full:ports +full:- +full:block +full:- +full:group +full:- +full:count
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 */
30 ELS_RES = 0x08, /* read exchange status block */
31 ELS_RSS = 0x09, /* read sequence status block */
37 ELS_RLS = 0x0f, /* read link error status block */
56 ELS_NACT = 0x33, /* N-port activate alias_id */
57 ELS_NDACT = 0x34, /* N-port deactivate alias_id */
66 ELS_RPS = 0x56, /* read port status block */
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 */
214 /* TBD - above definitions incomplete */
259 * as the "tlv header" - which contains the tag and len fields.
280 (sizeof(desc) - FC_TLV_DESC_HDR_SZ)
284 (__be32_to_cpu((tlv)->desc_len) + FC_TLV_DESC_HDR_SZ)
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 */
362 #define FC_SP_FT_HUNT 0x0080 /* hunt group */
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 */
492 __be32 reca_e_stat; /* ESB (exchange status block) status */
496 * ELS_PRLI - Process login request and response.
506 * ELS_PRLO - Process logout request and response.
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.
588 /* followed by 4-byte generic affected Port_ID pages */
596 #define ELS_RSCN_EV_QUAL_BIT 2 /* shift count for event qualifier */
598 #define ELS_RSCN_ADDR_FMT_BIT 0 /* shift count for address format */
618 * ELS_RNID - request Node ID.
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 */
721 * Port number block in RPL response.
735 __u8 rpl_resv1; /* reserved - must be zero */
737 __u8 rpl_resv2; /* reserved - must be zero */
739 __u8 rpl_resv3; /* reserved - must be zero */
745 * Link Error Status Block.
748 __be32 lesb_link_fail; /* link failure count */
749 __be32 lesb_sync_loss; /* loss of synchronization count */
750 __be32 lesb_sig_loss; /* loss of signal count */
751 __be32 lesb_prim_err; /* primitive sequence error count */
752 __be32 lesb_inv_word; /* invalid transmission word count */
753 __be32 lesb_inv_crc; /* invalid CRC 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 */
781 struct fc_els_lesb rps_lesb; /* link error status block */
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 */
846 struct fc_els_lesb rls_lesb; /* link error status block */
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) */
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 */
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 */
1110 /* Diagnostic Function Descriptor - FPIN Registration */
1117 __be32 count; /* Number of desc_tags elements */ member
1129 * ELS_RDF - Register Diagnostic Functions
1133 __u8 fpin_zero[3]; /* specified as zero - part of cmd */
1192 EDC_CG_SIGFREQ_CNT_MIN = 1, /* Min Frequency Count */
1193 EDC_CG_SIGFREQ_CNT_MAX = 999, /* Max Frequency Count */
1200 __be16 count; /* Time between signals member
1203 __be16 units; /* Time unit for count
1225 * ELS_EDC - Exchange Diagnostic Capabilities
1229 __u8 edc_zero[3]; /* specified as zero - part of cmd */