Lines Matching refs:mfs
373 sp->sp_bb_data = htons((u16) lport->mfs); in fc_lport_flogi_fill()
382 cp->cp_rdfs = htons((u16) lport->mfs); in fc_lport_flogi_fill()
664 int fc_set_mfs(struct fc_lport *lport, u32 mfs) in fc_set_mfs() argument
671 old_mfs = lport->mfs; in fc_set_mfs()
673 if (mfs >= FC_MIN_MAX_FRAME) { in fc_set_mfs()
674 mfs &= ~3; in fc_set_mfs()
675 if (mfs > FC_MAX_FRAME) in fc_set_mfs()
676 mfs = FC_MAX_FRAME; in fc_set_mfs()
677 mfs -= sizeof(struct fc_frame_header); in fc_set_mfs()
678 lport->mfs = mfs; in fc_set_mfs()
682 if (!rc && mfs < old_mfs) in fc_set_mfs()
1701 u16 mfs; in fc_lport_flogi_resp() local
1739 mfs = ntohs(flp->fl_csp.sp_bb_data) & in fc_lport_flogi_resp()
1742 if (mfs < FC_SP_MIN_MAX_PAYLOAD || mfs > FC_SP_MAX_MAX_PAYLOAD) { in fc_lport_flogi_resp()
1744 "lport->mfs:%hu\n", mfs, lport->mfs); in fc_lport_flogi_resp()
1749 if (mfs <= lport->mfs) { in fc_lport_flogi_resp()
1750 lport->mfs = mfs; in fc_lport_flogi_resp()
1751 fc_host_maxframe_size(lport->host) = mfs; in fc_lport_flogi_resp()
1866 fc_host_maxframe_size(lport->host) = lport->mfs; in fc_lport_init()