Lines Matching refs:fchs
20 static void fc_els_rsp_build(struct fchs_s *fchs, u32 d_id, u32 s_id,
22 static void fc_bls_rsp_build(struct fchs_s *fchs, u32 d_id, u32 s_id,
130 fc_gs_fchdr_build(struct fchs_s *fchs, u32 d_id, u32 s_id, u32 ox_id) in fc_gs_fchdr_build() argument
132 memset(fchs, 0, sizeof(struct fchs_s)); in fc_gs_fchdr_build()
134 fchs->routing = FC_RTG_FC4_DEV_DATA; in fc_gs_fchdr_build()
135 fchs->cat_info = FC_CAT_UNSOLICIT_CTRL; in fc_gs_fchdr_build()
136 fchs->type = FC_TYPE_SERVICES; in fc_gs_fchdr_build()
137 fchs->f_ctl = in fc_gs_fchdr_build()
140 fchs->rx_id = FC_RXID_ANY; in fc_gs_fchdr_build()
141 fchs->d_id = (d_id); in fc_gs_fchdr_build()
142 fchs->s_id = (s_id); in fc_gs_fchdr_build()
143 fchs->ox_id = cpu_to_be16(ox_id); in fc_gs_fchdr_build()
152 fc_gsresp_fchdr_build(struct fchs_s *fchs, u32 d_id, u32 s_id, u16 ox_id) in fc_gsresp_fchdr_build() argument
154 memset(fchs, 0, sizeof(struct fchs_s)); in fc_gsresp_fchdr_build()
156 fchs->routing = FC_RTG_FC4_DEV_DATA; in fc_gsresp_fchdr_build()
157 fchs->cat_info = FC_CAT_SOLICIT_CTRL; in fc_gsresp_fchdr_build()
158 fchs->type = FC_TYPE_SERVICES; in fc_gsresp_fchdr_build()
159 fchs->f_ctl = in fc_gsresp_fchdr_build()
162 fchs->d_id = d_id; in fc_gsresp_fchdr_build()
163 fchs->s_id = s_id; in fc_gsresp_fchdr_build()
164 fchs->ox_id = ox_id; in fc_gsresp_fchdr_build()
168 fc_els_req_build(struct fchs_s *fchs, u32 d_id, u32 s_id, __be16 ox_id) in fc_els_req_build() argument
170 memcpy(fchs, &fc_els_req_tmpl, sizeof(struct fchs_s)); in fc_els_req_build()
171 fchs->d_id = (d_id); in fc_els_req_build()
172 fchs->s_id = (s_id); in fc_els_req_build()
173 fchs->ox_id = cpu_to_be16(ox_id); in fc_els_req_build()
177 fc_els_rsp_build(struct fchs_s *fchs, u32 d_id, u32 s_id, __be16 ox_id) in fc_els_rsp_build() argument
179 memcpy(fchs, &fc_els_rsp_tmpl, sizeof(struct fchs_s)); in fc_els_rsp_build()
180 fchs->d_id = d_id; in fc_els_rsp_build()
181 fchs->s_id = s_id; in fc_els_rsp_build()
182 fchs->ox_id = ox_id; in fc_els_rsp_build()
186 fc_bls_rsp_build(struct fchs_s *fchs, u32 d_id, u32 s_id, __be16 ox_id) in fc_bls_rsp_build() argument
188 memcpy(fchs, &fc_bls_rsp_tmpl, sizeof(struct fchs_s)); in fc_bls_rsp_build()
189 fchs->d_id = d_id; in fc_bls_rsp_build()
190 fchs->s_id = s_id; in fc_bls_rsp_build()
191 fchs->ox_id = ox_id; in fc_bls_rsp_build()
195 fc_plogi_x_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_plogi_x_build() argument
209 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_plogi_x_build()
211 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_plogi_x_build()
223 fc_flogi_build(struct fchs_s *fchs, struct fc_logi_s *flogi, u32 s_id, in fc_flogi_build() argument
233 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_flogi_build()
261 fc_flogi_acc_build(struct fchs_s *fchs, struct fc_logi_s *flogi, u32 s_id, in fc_flogi_acc_build() argument
269 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_flogi_acc_build()
283 fc_fdisc_build(struct fchs_s *fchs, struct fc_logi_s *flogi, u32 s_id, in fc_fdisc_build() argument
291 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_fdisc_build()
301 fc_plogi_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_plogi_build() argument
305 return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, in fc_plogi_build()
310 fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_plogi_acc_build() argument
314 return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, in fc_plogi_acc_build()
319 fc_plogi_rsp_parse(struct fchs_s *fchs, int len, wwn_t port_name) in fc_plogi_rsp_parse() argument
321 struct fc_els_cmd_s *els_cmd = (struct fc_els_cmd_s *) (fchs + 1); in fc_plogi_rsp_parse()
327 ls_rjt = (struct fc_ls_rjt_s *) (fchs + 1); in fc_plogi_rsp_parse()
333 plogi = (struct fc_logi_s *) (fchs + 1); in fc_plogi_rsp_parse()
353 fc_plogi_parse(struct fchs_s *fchs) in fc_plogi_parse() argument
355 struct fc_logi_s *plogi = (struct fc_logi_s *) (fchs + 1); in fc_plogi_parse()
369 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_prli_build() argument
374 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_prli_build()
388 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_prli_acc_build() argument
393 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_prli_acc_build()
440 fc_logo_build(struct fchs_s *fchs, struct fc_logo_s *logo, u32 d_id, u32 s_id, in fc_logo_build() argument
443 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_logo_build()
454 fc_adisc_x_build(struct fchs_s *fchs, struct fc_adisc_s *adisc, u32 d_id, in fc_adisc_x_build() argument
463 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_adisc_x_build()
465 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_adisc_x_build()
476 fc_adisc_build(struct fchs_s *fchs, struct fc_adisc_s *adisc, u32 d_id, in fc_adisc_build() argument
479 return fc_adisc_x_build(fchs, adisc, d_id, s_id, ox_id, port_name, in fc_adisc_build()
484 fc_adisc_acc_build(struct fchs_s *fchs, struct fc_adisc_s *adisc, u32 d_id, in fc_adisc_acc_build() argument
488 return fc_adisc_x_build(fchs, adisc, d_id, s_id, ox_id, port_name, in fc_adisc_acc_build()
510 fc_adisc_parse(struct fchs_s *fchs, void *pld, u32 host_dap, wwn_t node_name, in fc_adisc_parse() argument
527 fc_pdisc_parse(struct fchs_s *fchs, wwn_t node_name, wwn_t port_name) in fc_pdisc_parse() argument
529 struct fc_logi_s *pdisc = (struct fc_logi_s *) (fchs + 1); in fc_pdisc_parse()
549 fc_abts_build(struct fchs_s *fchs, u32 d_id, u32 s_id, u16 ox_id) in fc_abts_build() argument
551 memcpy(fchs, &fc_bls_req_tmpl, sizeof(struct fchs_s)); in fc_abts_build()
552 fchs->cat_info = FC_CAT_ABTS; in fc_abts_build()
553 fchs->d_id = (d_id); in fc_abts_build()
554 fchs->s_id = (s_id); in fc_abts_build()
555 fchs->ox_id = cpu_to_be16(ox_id); in fc_abts_build()
561 fc_abts_rsp_parse(struct fchs_s *fchs, int len) in fc_abts_rsp_parse() argument
563 if ((fchs->cat_info == FC_CAT_BA_ACC) in fc_abts_rsp_parse()
564 || (fchs->cat_info == FC_CAT_BA_RJT)) in fc_abts_rsp_parse()
571 fc_rrq_build(struct fchs_s *fchs, struct fc_rrq_s *rrq, u32 d_id, u32 s_id, in fc_rrq_build() argument
574 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_rrq_build()
588 fc_logo_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_logo_acc_build() argument
593 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_logo_acc_build()
602 fc_ls_rjt_build(struct fchs_s *fchs, struct fc_ls_rjt_s *ls_rjt, u32 d_id, in fc_ls_rjt_build() argument
606 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_ls_rjt_build()
618 fc_ba_acc_build(struct fchs_s *fchs, struct fc_ba_acc_s *ba_acc, u32 d_id, in fc_ba_acc_build() argument
621 fc_bls_rsp_build(fchs, d_id, s_id, ox_id); in fc_ba_acc_build()
625 fchs->rx_id = rx_id; in fc_ba_acc_build()
627 ba_acc->ox_id = fchs->ox_id; in fc_ba_acc_build()
628 ba_acc->rx_id = fchs->rx_id; in fc_ba_acc_build()
634 fc_ls_acc_build(struct fchs_s *fchs, struct fc_els_cmd_s *els_cmd, u32 d_id, in fc_ls_acc_build() argument
637 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_ls_acc_build()
662 fc_tprlo_acc_build(struct fchs_s *fchs, struct fc_tprlo_acc_s *tprlo_acc, in fc_tprlo_acc_build() argument
667 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_tprlo_acc_build()
686 fc_prlo_acc_build(struct fchs_s *fchs, struct fc_prlo_acc_s *prlo_acc, u32 d_id, in fc_prlo_acc_build() argument
691 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_prlo_acc_build()
710 fc_rnid_build(struct fchs_s *fchs, struct fc_rnid_cmd_s *rnid, u32 d_id, in fc_rnid_build() argument
713 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_rnid_build()
724 fc_rnid_acc_build(struct fchs_s *fchs, struct fc_rnid_acc_s *rnid_acc, u32 d_id, in fc_rnid_acc_build() argument
731 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_rnid_acc_build()
752 fc_rpsc_build(struct fchs_s *fchs, struct fc_rpsc_cmd_s *rpsc, u32 d_id, in fc_rpsc_build() argument
755 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_rpsc_build()
764 fc_rpsc2_build(struct fchs_s *fchs, struct fc_rpsc2_cmd_s *rpsc2, u32 d_id, in fc_rpsc2_build() argument
770 fc_els_req_build(fchs, bfa_hton3b(dctlr_id), s_id, 0); in fc_rpsc2_build()
784 fc_rpsc_acc_build(struct fchs_s *fchs, struct fc_rpsc_acc_s *rpsc_acc, in fc_rpsc_acc_build() argument
790 fc_els_rsp_build(fchs, d_id, s_id, ox_id); in fc_rpsc_acc_build()
805 fc_pdisc_build(struct fchs_s *fchs, u32 d_id, u32 s_id, u16 ox_id, in fc_pdisc_build() argument
808 struct fc_logi_s *pdisc = (struct fc_logi_s *) (fchs + 1); in fc_pdisc_build()
813 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_pdisc_build()
823 fc_pdisc_rsp_parse(struct fchs_s *fchs, int len, wwn_t port_name) in fc_pdisc_rsp_parse() argument
825 struct fc_logi_s *pdisc = (struct fc_logi_s *) (fchs + 1); in fc_pdisc_rsp_parse()
846 fc_prlo_build(struct fchs_s *fchs, u32 d_id, u32 s_id, u16 ox_id, in fc_prlo_build() argument
849 struct fc_prlo_s *prlo = (struct fc_prlo_s *) (fchs + 1); in fc_prlo_build()
852 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_prlo_build()
870 fc_tprlo_build(struct fchs_s *fchs, u32 d_id, u32 s_id, u16 ox_id, in fc_tprlo_build() argument
873 struct fc_tprlo_s *tprlo = (struct fc_tprlo_s *) (fchs + 1); in fc_tprlo_build()
876 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_tprlo_build()
900 fc_ba_rjt_build(struct fchs_s *fchs, u32 d_id, u32 s_id, __be16 ox_id, in fc_ba_rjt_build() argument
903 struct fc_ba_rjt_s *ba_rjt = (struct fc_ba_rjt_s *) (fchs + 1); in fc_ba_rjt_build()
905 fc_bls_rsp_build(fchs, d_id, s_id, ox_id); in fc_ba_rjt_build()
907 fchs->cat_info = FC_CAT_BA_RJT; in fc_ba_rjt_build()
945 fc_gidpn_build(struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, in fc_gidpn_build() argument
952 fc_gs_fchdr_build(fchs, d_id, s_id, ox_id); in fc_gidpn_build()
961 fc_gpnid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, in fc_gpnid_build() argument
968 fc_gs_fchdr_build(fchs, d_id, s_id, ox_id); in fc_gpnid_build()
977 fc_gnnid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, in fc_gnnid_build() argument
984 fc_gs_fchdr_build(fchs, d_id, s_id, ox_id); in fc_gnnid_build()
1006 fc_gs_rjt_build(struct fchs_s *fchs, struct ct_hdr_s *cthdr, in fc_gs_rjt_build() argument
1010 fc_gsresp_fchdr_build(fchs, d_id, s_id, ox_id); in fc_gs_rjt_build()
1021 fc_scr_build(struct fchs_s *fchs, struct fc_scr_s *scr, in fc_scr_build() argument
1026 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_scr_build()
1038 fc_rscn_build(struct fchs_s *fchs, struct fc_rscn_pl_s *rscn, in fc_rscn_build() argument
1044 fc_els_req_build(fchs, d_id, s_id, ox_id); in fc_rscn_build()
1058 fc_rftid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, in fc_rftid_build() argument
1066 fc_gs_fchdr_build(fchs, d_id, s_id, ox_id); in fc_rftid_build()
1082 fc_rftid_build_sol(struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, in fc_rftid_build_sol() argument
1089 fc_gs_fchdr_build(fchs, d_id, s_id, ox_id); in fc_rftid_build_sol()
1102 fc_rffid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, in fc_rffid_build() argument
1109 fc_gs_fchdr_build(fchs, d_id, s_id, ox_id); in fc_rffid_build()
1122 fc_rspnid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, in fc_rspnid_build() argument
1131 fc_gs_fchdr_build(fchs, d_id, s_id, ox_id); in fc_rspnid_build()
1144 fc_rsnn_nn_build(struct fchs_s *fchs, void *pyld, u32 s_id, in fc_rsnn_nn_build() argument
1152 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_rsnn_nn_build()
1165 fc_gid_ft_build(struct fchs_s *fchs, void *pyld, u32 s_id, u8 fc4_type) in fc_gid_ft_build() argument
1172 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_gid_ft_build()
1185 fc_rpnid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, in fc_rpnid_build() argument
1192 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_rpnid_build()
1203 fc_rnnid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, in fc_rnnid_build() argument
1210 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_rnnid_build()
1221 fc_rcsid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, in fc_rcsid_build() argument
1229 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_rcsid_build()
1240 fc_rptid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, in fc_rptid_build() argument
1247 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_rptid_build()
1258 fc_ganxt_build(struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id) in fc_ganxt_build() argument
1264 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_ganxt_build()
1277 fc_fdmi_reqhdr_build(struct fchs_s *fchs, void *pyld, u32 s_id, in fc_fdmi_reqhdr_build() argument
1284 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_fdmi_reqhdr_build()
1314 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gmal_req_build() argument
1320 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_gmal_req_build()
1334 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gfn_req_build() argument
1340 fc_gs_fchdr_build(fchs, d_id, s_id, 0); in fc_gfn_req_build()