cthdr 914 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(struct ct_hdr_s *cthdr, u32 s_id, u16 cmd_code) cthdr 916 drivers/scsi/bfa/bfa_fcbuild.c memset(cthdr, 0, sizeof(struct ct_hdr_s)); cthdr 917 drivers/scsi/bfa/bfa_fcbuild.c cthdr->rev_id = CT_GS3_REVISION; cthdr 918 drivers/scsi/bfa/bfa_fcbuild.c cthdr->gs_type = CT_GSTYPE_DIRSERVICE; cthdr 919 drivers/scsi/bfa/bfa_fcbuild.c cthdr->gs_sub_type = CT_GSSUBTYPE_NAMESERVER; cthdr 920 drivers/scsi/bfa/bfa_fcbuild.c cthdr->cmd_rsp_code = cpu_to_be16(cmd_code); cthdr 924 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_fdmi_cthdr_build(struct ct_hdr_s *cthdr, u32 s_id, u16 cmd_code) cthdr 926 drivers/scsi/bfa/bfa_fcbuild.c memset(cthdr, 0, sizeof(struct ct_hdr_s)); cthdr 927 drivers/scsi/bfa/bfa_fcbuild.c cthdr->rev_id = CT_GS3_REVISION; cthdr 928 drivers/scsi/bfa/bfa_fcbuild.c cthdr->gs_type = CT_GSTYPE_MGMTSERVICE; cthdr 929 drivers/scsi/bfa/bfa_fcbuild.c cthdr->gs_sub_type = CT_GSSUBTYPE_HBA_MGMTSERVER; cthdr 930 drivers/scsi/bfa/bfa_fcbuild.c cthdr->cmd_rsp_code = cpu_to_be16(cmd_code); cthdr 934 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_ms_cthdr_build(struct ct_hdr_s *cthdr, u32 s_id, u16 cmd_code, cthdr 937 drivers/scsi/bfa/bfa_fcbuild.c memset(cthdr, 0, sizeof(struct ct_hdr_s)); cthdr 938 drivers/scsi/bfa/bfa_fcbuild.c cthdr->rev_id = CT_GS3_REVISION; cthdr 939 drivers/scsi/bfa/bfa_fcbuild.c cthdr->gs_type = CT_GSTYPE_MGMTSERVICE; cthdr 940 drivers/scsi/bfa/bfa_fcbuild.c cthdr->gs_sub_type = sub_type; cthdr 941 drivers/scsi/bfa/bfa_fcbuild.c cthdr->cmd_rsp_code = cpu_to_be16(cmd_code); cthdr 948 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 949 drivers/scsi/bfa/bfa_fcbuild.c struct fcgs_gidpn_req_s *gidpn = (struct fcgs_gidpn_req_s *)(cthdr + 1); cthdr 953 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_GID_PN); cthdr 964 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 965 drivers/scsi/bfa/bfa_fcbuild.c fcgs_gpnid_req_t *gpnid = (fcgs_gpnid_req_t *) (cthdr + 1); cthdr 969 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_GPN_ID); cthdr 980 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 981 drivers/scsi/bfa/bfa_fcbuild.c fcgs_gnnid_req_t *gnnid = (fcgs_gnnid_req_t *) (cthdr + 1); cthdr 985 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_GNN_ID); cthdr 993 drivers/scsi/bfa/bfa_fcbuild.c fc_ct_rsp_parse(struct ct_hdr_s *cthdr) cthdr 995 drivers/scsi/bfa/bfa_fcbuild.c if (be16_to_cpu(cthdr->cmd_rsp_code) != CT_RSP_ACCEPT) { cthdr 996 drivers/scsi/bfa/bfa_fcbuild.c if (cthdr->reason_code == CT_RSN_LOGICAL_BUSY) cthdr 1006 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_rjt_build(struct fchs_s *fchs, struct ct_hdr_s *cthdr, cthdr 1012 drivers/scsi/bfa/bfa_fcbuild.c cthdr->cmd_rsp_code = cpu_to_be16(CT_RSP_REJECT); cthdr 1013 drivers/scsi/bfa/bfa_fcbuild.c cthdr->rev_id = CT_GS3_REVISION; cthdr 1015 drivers/scsi/bfa/bfa_fcbuild.c cthdr->reason_code = reason_code; cthdr 1016 drivers/scsi/bfa/bfa_fcbuild.c cthdr->exp_code = reason_code_expl; cthdr 1061 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1062 drivers/scsi/bfa/bfa_fcbuild.c struct fcgs_rftid_req_s *rftid = (struct fcgs_rftid_req_s *)(cthdr + 1); cthdr 1067 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_RFT_ID); cthdr 1085 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1086 drivers/scsi/bfa/bfa_fcbuild.c struct fcgs_rftid_req_s *rftid = (struct fcgs_rftid_req_s *)(cthdr + 1); cthdr 1090 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_RFT_ID); cthdr 1105 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1106 drivers/scsi/bfa/bfa_fcbuild.c struct fcgs_rffid_req_s *rffid = (struct fcgs_rffid_req_s *)(cthdr + 1); cthdr 1110 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_RFF_ID); cthdr 1126 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1128 drivers/scsi/bfa/bfa_fcbuild.c (struct fcgs_rspnid_req_s *)(cthdr + 1); cthdr 1132 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_RSPN_ID); cthdr 1147 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1149 drivers/scsi/bfa/bfa_fcbuild.c (struct fcgs_rsnn_nn_req_s *) (cthdr + 1); cthdr 1153 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_RSNN_NN); cthdr 1168 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1169 drivers/scsi/bfa/bfa_fcbuild.c struct fcgs_gidft_req_s *gidft = (struct fcgs_gidft_req_s *)(cthdr + 1); cthdr 1174 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_GID_FT); cthdr 1188 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1189 drivers/scsi/bfa/bfa_fcbuild.c struct fcgs_rpnid_req_s *rpnid = (struct fcgs_rpnid_req_s *)(cthdr + 1); cthdr 1193 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_RPN_ID); cthdr 1206 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1207 drivers/scsi/bfa/bfa_fcbuild.c struct fcgs_rnnid_req_s *rnnid = (struct fcgs_rnnid_req_s *)(cthdr + 1); cthdr 1211 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_RNN_ID); cthdr 1224 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1226 drivers/scsi/bfa/bfa_fcbuild.c (struct fcgs_rcsid_req_s *) (cthdr + 1); cthdr 1230 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_RCS_ID); cthdr 1243 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1244 drivers/scsi/bfa/bfa_fcbuild.c struct fcgs_rptid_req_s *rptid = (struct fcgs_rptid_req_s *)(cthdr + 1); cthdr 1248 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_RPT_ID); cthdr 1260 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1261 drivers/scsi/bfa/bfa_fcbuild.c struct fcgs_ganxt_req_s *ganxt = (struct fcgs_ganxt_req_s *)(cthdr + 1); cthdr 1265 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_cthdr_build(cthdr, s_id, GS_GA_NXT); cthdr 1281 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1285 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_fdmi_cthdr_build(cthdr, s_id, cmd_code); cthdr 1316 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1317 drivers/scsi/bfa/bfa_fcbuild.c fcgs_gmal_req_t *gmal = (fcgs_gmal_req_t *) (cthdr + 1); cthdr 1321 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_ms_cthdr_build(cthdr, s_id, GS_FC_GMAL_CMD, cthdr 1336 drivers/scsi/bfa/bfa_fcbuild.c struct ct_hdr_s *cthdr = (struct ct_hdr_s *) pyld; cthdr 1337 drivers/scsi/bfa/bfa_fcbuild.c fcgs_gfn_req_t *gfn = (fcgs_gfn_req_t *) (cthdr + 1); cthdr 1341 drivers/scsi/bfa/bfa_fcbuild.c fc_gs_ms_cthdr_build(cthdr, s_id, GS_FC_GFN_CMD, cthdr 180 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_gs_rjt_build(struct fchs_s *fchs, struct ct_hdr_s *cthdr, cthdr 308 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_ct_rsp_parse(struct ct_hdr_s *cthdr); cthdr 2163 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 2176 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 2177 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 2179 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 2184 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 2185 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 2486 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 2499 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 2500 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 2502 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 2507 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 2508 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 2578 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 2591 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 2592 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 2594 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 2599 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 2600 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 3172 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 3190 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 3191 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 3193 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 3194 drivers/scsi/bfa/bfa_fcs_lport.c gmal_resp = (struct fcgs_gmal_resp_s *)(cthdr + 1); cthdr 3238 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 3239 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 3372 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 3387 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 3388 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 3390 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 3391 drivers/scsi/bfa/bfa_fcs_lport.c gfn_resp = (wwn_t *)(cthdr + 1); cthdr 3401 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 3402 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 4517 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 4531 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 4532 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 4534 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 4541 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 4542 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 4596 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 4610 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 4611 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 4613 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 4620 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 4621 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 4694 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 4708 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 4709 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 4711 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 4718 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 4719 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 4767 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 4781 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 4782 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 4784 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 4791 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 4792 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 4845 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 4859 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 4860 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 4862 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 4869 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 4870 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 4872 drivers/scsi/bfa/bfa_fcs_lport.c if (cthdr->reason_code == CT_RSN_NOT_SUPP) { cthdr 4929 drivers/scsi/bfa/bfa_fcs_lport.c struct ct_hdr_s *cthdr = NULL; cthdr 4954 drivers/scsi/bfa/bfa_fcs_lport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 4955 drivers/scsi/bfa/bfa_fcs_lport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 4957 drivers/scsi/bfa/bfa_fcs_lport.c switch (cthdr->cmd_rsp_code) { cthdr 4965 drivers/scsi/bfa/bfa_fcs_lport.c (u32 *) (cthdr + 1), cthdr 4977 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->reason_code); cthdr 4978 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->exp_code); cthdr 4980 drivers/scsi/bfa/bfa_fcs_lport.c if ((cthdr->reason_code == CT_RSN_UNABLE_TO_PERF) cthdr 4981 drivers/scsi/bfa/bfa_fcs_lport.c && (cthdr->exp_code == CT_NS_EXP_FT_NOT_REG)) { cthdr 4994 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, cthdr->cmd_rsp_code); cthdr 1953 drivers/scsi/bfa/bfa_fcs_rport.c struct ct_hdr_s *cthdr; cthdr 1960 drivers/scsi/bfa/bfa_fcs_rport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 1961 drivers/scsi/bfa/bfa_fcs_rport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 1963 drivers/scsi/bfa/bfa_fcs_rport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 1965 drivers/scsi/bfa/bfa_fcs_rport.c gidpn_rsp = (struct fcgs_gidpn_resp_s *) (cthdr + 1); cthdr 1999 drivers/scsi/bfa/bfa_fcs_rport.c switch (cthdr->reason_code) { cthdr 2026 drivers/scsi/bfa/bfa_fcs_rport.c struct ct_hdr_s *cthdr; cthdr 2030 drivers/scsi/bfa/bfa_fcs_rport.c cthdr = (struct ct_hdr_s *) BFA_FCXP_RSP_PLD(fcxp); cthdr 2031 drivers/scsi/bfa/bfa_fcs_rport.c cthdr->cmd_rsp_code = be16_to_cpu(cthdr->cmd_rsp_code); cthdr 2033 drivers/scsi/bfa/bfa_fcs_rport.c if (cthdr->cmd_rsp_code == CT_RSP_ACCEPT) { cthdr 2041 drivers/scsi/bfa/bfa_fcs_rport.c switch (cthdr->reason_code) {