Lines Matching +full:8 +full:- +full:port

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.
51 u32 cs_ctl:8; /* class specific control */
54 u32 type:8; /* data structure type */
71 FC_RTG_FC4_DEV_DATA = 0x0, /* FC-4 Device Data */
73 FC_RTG_FC4_LINK_DATA = 0x3, /* FC-4 Link Data */
81 * information category for extended link data and FC-4 Link Data
94 FC_CAT_IFR_HDR = 0x1, /* Inter-Fabric routing header */
99 * information category for FC-4 device data
113 * Type Field Definitions. FC-PH Section 18.5 pg. 165
119 FC_TYPE_FCP = 0x8, /* SCSI-FCP */
123 FC_TYPE_FC_AL = 0x23, /* FC-AL */
124 FC_TYPE_FC_SNMP = 0x24, /* FC-SNMP */
127 FC_TYPE_MAX = 256, /* 256 FC-4 types */
131 * Frame Control Definitions. FC-PH Table-45. pg. 168
162 * domain/area/port defines
167 #define FC_AREA_SHIFT 8
185 u32 els_code:8; /* ELS Command Code */
190 * ELS Command Codes. FC-PH Table-75. pg. 223
225 FC_ELS_RPSC = 0x7D, /* Report Port Speed Capabilities */
226 FC_ELS_QSA = 0x7E, /* Query Security Attributes. Ref FC-SP */
228 /* End-to-End Link Beacon */
229 FC_ELS_AUTH = 0x90, /* Authentication. Ref FC-SP */
231 *FC-SP */
235 * Version numbers for FC-PH standards,
236 * used in login to indicate what port
237 * supports. See FC-PH-X table 158.
254 * FC-PH-x. Figure-76. pg. 308.
257 u8 verhi; /* FC-PH high version */
258 u8 verlo; /* FC-PH low version */
305 * FC-PH-x. Figure 78. pg. 318.
330 u32 reserved5:8;
331 u32 conseq:8;
334 u32 reserved7:8;
335 u32 ospx:8;
362 u32 res1:8;
364 wwn_t orig_port_name; /* Port name of the LOGO originator */
372 u32 res1:8;
374 wwn_t orig_port_name; /* originator port name */
376 u32 res2:8;
386 u32 res1:8;
388 u32 res2:8;
402 u32 res1:8;
422 u32 res1:8;
445 u32 res1:8;
447 u32 res2:8;
458 u32 res1:8;
466 * see FC-PH-X table 113 & 115 for explanation also FCP table 8
506 FC_PRLI_ACC_PREDEF_IMG = 0x5, /* predefined image - no prli needed */
510 u32 type:8;
511 u32 codext:8;
525 u32 reserved2:8;
533 * PRLI request and accept payload, FC-PH-X tables 112 & 114
536 u32 command:8;
537 u32 pglen:8;
546 u32 type:8;
547 u32 type_ext:8;
567 u32 command:8;
568 u32 page_len:8;
577 u32 type:8;
578 u32 type_ext:8;
599 u32 command:8;
600 u32 page_len:8;
621 u32 command:8;
623 u32 vu_reg_func:8; /* Vendor Unique Registrations */
625 u32 reg_func:8;
645 u32 res1:8;
646 u32 reason_code:8; /* Reason code for reject */
647 u32 reason_code_expl:8; /* Reason code explanation */
648 u32 vendor_unique:8; /* Vendor specific */
694 u32 res1:8;
700 u32 res2[8]; /* optional association header */
707 u32 seq_id_valid:8; /* set to 0x00 for Abort Exchange */
708 u32 seq_id:8; /* invalid for Abort Exchange */
720 u32 res1:8; /* Reserved */
721 u32 reason_code:8; /* reason code for reject */
722 u32 reason_expl:8; /* reason code explanation */
723 u32 vendor_unique:8; /* vendor unique reason code,set to 0 */
730 u32 type:8;
731 u32 type_ext:8;
750 u32 res2:8;
758 u32 command:8;
759 u32 page_len:8;
774 u32 command:8;
775 u32 page_len:8;
839 u32 node_id_data_format:8;
857 u32 node_mgmt:8;
858 u32 ip_version:8;
867 u32 node_id_data_format:8;
868 u32 common_id_data_length:8;
869 u32 reserved:8;
870 u32 specific_id_data_length:8;
928 u32 command:8;
929 u32 rsvd:8;
946 u32 rsvd1:8;
947 u32 pid:24; /* port identifier */
965 __be16 index; /* port number / index */
967 u8 type; /* port type N/NL/... */
968 __be16 speed; /* port Operating Speed */
978 struct fc_rpsc2_port_info_s port_info[1]; /* port information */
998 u8 alpa_bm[FC_ALPA_MAX / 8];
1023 u32 r_ctl:8;
1030 u32 hopct:8;
1038 #define FCP_CMND_LUN_LEN 8
1041 struct scsi_lun lun; /* 64-bit LU number */
1045 priority:4, /* FCP-3: SAM-3 priority */
1049 priority:4, /* FCP-3: SAM-3 priority */
1065 #define fcp_cmnd_cdb_len(_cmnd) ((_cmnd)->addl_cdb_len * 4 + FCP_CMND_CDB_LEN)
1066 #define fcp_cmnd_fcpdl(_cmnd) ((&(_cmnd)->fcp_dl)[(_cmnd)->addl_cdb_len])
1079 * Task management flags field - only one bit shall be set
1085 FCP_TM_TARGET_RESET = BIT(5), /* obsolete in FCP-3 */
1100 u32 rsp_code:8; /* response code (as above) */
1126 #define fcp_snslen(__fcprsp) ((__fcprsp)->sns_len_valid ? \
1127 (__fcprsp)->sns_len : 0)
1128 #define fcp_rsplen(__fcprsp) ((__fcprsp)->rsp_len_valid ? \
1129 (__fcprsp)->rsp_len : 0)
1137 u32 rev_id:8; /* Revision of the CT */
1139 u32 gs_type:8; /* Generic service Type */
1140 u32 gs_sub_type:8; /* Generic service sub type */
1141 u32 options:8; /* options */
1142 u32 rsvrd:8; /* reserved */
1145 u32 frag_id:8; /* fragment ID */
1146 u32 reason_code:8; /* reason code */
1147 u32 exp_code:8; /* explanation code */
1148 u32 vendor_unq:8; /* vendor unique */
1258 GS_GID_PN = 0x0121, /* Get Id on port name */
1259 GS_GPN_ID = 0x0112, /* Get port name on ID */
1266 GS_RPN_ID = 0x0212, /* Register port name */
1269 GS_RPT_ID = 0x021A, /* Register port type */
1275 u32 rsvd:8;
1276 u32 dap:24; /* port identifier */
1283 wwn_t port_name; /* port wwn */
1287 u32 rsvd:8;
1288 u32 dap:24; /* port identifier */
1295 u32 rsvd:8;
1296 u32 dap:24; /* port identifier */
1297 __be32 fc4_type[8]; /* fc4 types */
1307 u32 rsvd:8;
1308 u32 dap:24; /* port identifier */
1310 u32 fc4ftr_bits:8; /* fc4 feature bits */
1311 u32 fc4_type:8; /* corresponding FC4 Type */
1319 u8 domain_id; /* domain, 0 - all fabric */
1320 u8 area_id; /* area, 0 - whole domain */
1328 u8 last:1; /* last port identifier flag */
1330 u32 pid:24; /* port identifier */
1337 u32 rsvd:8;
1338 u32 dap:24; /* port identifier */
1339 u8 spn_len; /* symbolic port name length */
1340 u8 spn[256]; /* symbolic port name */
1356 u32 rsvd:8;
1365 u32 rsvd:8;
1374 u32 rsvd:8;
1383 u32 rsvd:8;
1385 u32 port_type:8;
1393 u32 rsvd:8;
1401 u32 port_type:8; /* Port Type */
1402 u32 port_id:24; /* Port Identifier */
1403 wwn_t port_name; /* Port Name */
1404 u8 spn_len; /* Length of Symbolic Port Name */
1405 char spn[255]; /* Symbolic Port Name */
1409 u8 ipa[8]; /* Initial Process Associator */
1412 u32 fc4types[8]; /* FC-4 TYPEs */
1413 wwn_t fabric_port_name; /* Fabric Port Name */
1414 u32 rsvd:8; /* Reserved */
1523 * FDMI Port attribute types
1563 * Registered Port List
1566 __be32 num_ports; /* number Of Port Entries */
1571 * Port Attribute Block
1583 struct fdmi_port_list_s port_list; /* Registered Port List */
1588 * FDMI Register Port
1592 wwn_t port_name; /* Port wwn */
1593 struct fdmi_port_attr_s port_attr_blk; /* Port Attr Block */
1597 * FDMI Register Port Attributes
1600 wwn_t port_name; /* port wwn */
1601 struct fdmi_port_attr_s port_attr_blk; /* Port Attr Block */