Lines Matching refs:mfs
374 sp->sp_bb_data = htons((u16) lport->mfs); in fc_lport_flogi_fill()
383 cp->cp_rdfs = htons((u16) lport->mfs); in fc_lport_flogi_fill()
669 int fc_set_mfs(struct fc_lport *lport, u32 mfs) in fc_set_mfs() argument
676 old_mfs = lport->mfs; in fc_set_mfs()
678 if (mfs >= FC_MIN_MAX_FRAME) { in fc_set_mfs()
679 mfs &= ~3; in fc_set_mfs()
680 if (mfs > FC_MAX_FRAME) in fc_set_mfs()
681 mfs = FC_MAX_FRAME; in fc_set_mfs()
682 mfs -= sizeof(struct fc_frame_header); in fc_set_mfs()
683 lport->mfs = mfs; in fc_set_mfs()
687 if (!rc && mfs < old_mfs) in fc_set_mfs()
1714 u16 mfs; in fc_lport_flogi_resp() local
1752 mfs = ntohs(flp->fl_csp.sp_bb_data) & in fc_lport_flogi_resp()
1755 if (mfs < FC_SP_MIN_MAX_PAYLOAD || mfs > FC_SP_MAX_MAX_PAYLOAD) { in fc_lport_flogi_resp()
1757 "lport->mfs:%hu\n", mfs, lport->mfs); in fc_lport_flogi_resp()
1762 if (mfs <= lport->mfs) { in fc_lport_flogi_resp()
1763 lport->mfs = mfs; in fc_lport_flogi_resp()
1764 fc_host_maxframe_size(lport->host) = mfs; in fc_lport_flogi_resp()
1884 fc_host_maxframe_size(lport->host) = lport->mfs; in fc_lport_init()