Lines Matching +full:cmd +full:- +full:timeout +full:- +full:ms

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 */
36 ELS_RTV = 0x0e, /* read timeout value */
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 */
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)
310 __u8 cmd; /* ELS cmd byte */ member
322 __be16 sp_bb_cred; /* buffer-to-buffer credits */
324 __be16 sp_bb_data; /* b-b state number and data field sz */
331 __be32 _sp_r_a_tov; /* resource alloc. timeout msec */
334 __be32 sp_e_d_tov; /* error detect timeout value */
366 #define FC_SP_FT_RTTOV 0x0008 /* R_T_TOV value 100 uS, else 100 mS */
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.
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 */
553 __be32 rtv_r_a_tov; /* resource allocation timeout value */
554 __be32 rtv_e_d_tov; /* error detection timeout value */
555 __be32 rtv_toq; /* timeout qualifier (see below) */
561 #define FC_ELS_RTV_EDRES (1 << 26) /* E_D_TOV resolution is nS else mS */
562 #define FC_ELS_RTV_RTTOV (1 << 19) /* R_T_TOV is 100 uS else 100 mS */
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 */
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 */
735 __u8 rpl_resv1; /* reserved - must be zero */
737 __u8 rpl_resv2; /* reserved - must be zero */
739 __u8 rpl_resv3; /* reserved - must be zero */
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 */
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) */
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 */
921 ELS_CLID_IC_PST = 5, /* primitive sequence timeout */
972 { FPIN_DELI_TIMEOUT, "Timeout" }, \
1022 __be32 event_threshold;/* duration in ms of the link
1068 __be32 event_period; /* duration (ms) of the detected
1090 __be32 event_period; /* duration (ms) of the detected
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 */
1129 * ELS_RDF - Register Diagnostic Functions
1133 __u8 fpin_zero[3]; /* specified as zero - part of cmd */
1225 * ELS_EDC - Exchange Diagnostic Capabilities
1229 __u8 edc_zero[3]; /* specified as zero - part of cmd */