Lines Matching refs:fh
812 struct fc_frame_header *fh; in fc_lport_recv_flogi_req() local
862 fh = fc_frame_header_get(fp); in fc_lport_recv_flogi_req()
863 hton24(fh->fh_s_id, local_fid); in fc_lport_recv_flogi_req()
864 hton24(fh->fh_d_id, remote_fid); in fc_lport_recv_flogi_req()
957 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_lport_recv_req() local
970 if (fh->fh_type >= FC_FC4_PROV_SIZE) in fc_lport_recv_req()
972 prov = rcu_dereference(fc_passive_prov[fh->fh_type]); in fc_lport_recv_req()
981 FC_LPORT_DBG(lport, "dropping unexpected frame type %x\n", fh->fh_type); in fc_lport_recv_req()
1129 struct fc_frame_header *fh; in fc_lport_ns_resp() local
1152 fh = fc_frame_header_get(fp); in fc_lport_ns_resp()
1155 if (fh && ct && fh->fh_type == FC_TYPE_CT && in fc_lport_ns_resp()
1205 struct fc_frame_header *fh; in fc_lport_ms_resp() local
1228 fh = fc_frame_header_get(fp); in fc_lport_ms_resp()
1231 if (fh && ct && fh->fh_type == FC_TYPE_CT && in fc_lport_ms_resp()
1708 struct fc_frame_header *fh; in fc_lport_flogi_resp() local
1736 fh = fc_frame_header_get(fp); in fc_lport_flogi_resp()
1738 if (fh->fh_r_ctl != FC_RCTL_ELS_REP || did == 0 || in fc_lport_flogi_resp()
1908 struct fc_frame_header *fh; in fc_lport_bsg_resp() local
1923 fh = fc_frame_header_get(fp); in fc_lport_bsg_resp()
1924 len = fr_len(fp) - sizeof(*fh); in fc_lport_bsg_resp()
1927 if (fr_sof(fp) == FC_SOF_I3 && !ntohs(fh->fh_seq_cnt)) { in fc_lport_bsg_resp()
1944 (ntoh24(fh->fh_f_ctl) & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) == in fc_lport_bsg_resp()
1974 struct fc_frame_header *fh; in fc_lport_els_request() local
1989 fh = fc_frame_header_get(fp); in fc_lport_els_request()
1990 fh->fh_r_ctl = FC_RCTL_ELS_REQ; in fc_lport_els_request()
1991 hton24(fh->fh_d_id, did); in fc_lport_els_request()
1992 hton24(fh->fh_s_id, lport->port_id); in fc_lport_els_request()
1993 fh->fh_type = FC_TYPE_ELS; in fc_lport_els_request()
1994 hton24(fh->fh_f_ctl, FC_FCTL_REQ); in fc_lport_els_request()
1995 fh->fh_cs_ctl = 0; in fc_lport_els_request()
1996 fh->fh_df_ctl = 0; in fc_lport_els_request()
1997 fh->fh_parm_offset = 0; in fc_lport_els_request()
2034 struct fc_frame_header *fh; in fc_lport_ct_request() local
2050 fh = fc_frame_header_get(fp); in fc_lport_ct_request()
2051 fh->fh_r_ctl = FC_RCTL_DD_UNSOL_CTL; in fc_lport_ct_request()
2052 hton24(fh->fh_d_id, did); in fc_lport_ct_request()
2053 hton24(fh->fh_s_id, lport->port_id); in fc_lport_ct_request()
2054 fh->fh_type = FC_TYPE_CT; in fc_lport_ct_request()
2055 hton24(fh->fh_f_ctl, FC_FCTL_REQ); in fc_lport_ct_request()
2056 fh->fh_cs_ctl = 0; in fc_lport_ct_request()
2057 fh->fh_df_ctl = 0; in fc_lport_ct_request()
2058 fh->fh_parm_offset = 0; in fc_lport_ct_request()