Lines Matching refs:mfs
361 sp->sp_bb_data = htons((u16) lport->mfs); in fc_lport_flogi_fill()
370 cp->cp_rdfs = htons((u16) lport->mfs); in fc_lport_flogi_fill()
652 int fc_set_mfs(struct fc_lport *lport, u32 mfs) in fc_set_mfs() argument
659 old_mfs = lport->mfs; in fc_set_mfs()
661 if (mfs >= FC_MIN_MAX_FRAME) { in fc_set_mfs()
662 mfs &= ~3; in fc_set_mfs()
663 if (mfs > FC_MAX_FRAME) in fc_set_mfs()
664 mfs = FC_MAX_FRAME; in fc_set_mfs()
665 mfs -= sizeof(struct fc_frame_header); in fc_set_mfs()
666 lport->mfs = mfs; in fc_set_mfs()
670 if (!rc && mfs < old_mfs) in fc_set_mfs()
1691 u16 mfs; in fc_lport_flogi_resp() local
1729 mfs = ntohs(flp->fl_csp.sp_bb_data) & in fc_lport_flogi_resp()
1732 if (mfs < FC_SP_MIN_MAX_PAYLOAD || mfs > FC_SP_MAX_MAX_PAYLOAD) { in fc_lport_flogi_resp()
1734 "lport->mfs:%u\n", mfs, lport->mfs); in fc_lport_flogi_resp()
1739 if (mfs <= lport->mfs) { in fc_lport_flogi_resp()
1740 lport->mfs = mfs; in fc_lport_flogi_resp()
1741 fc_host_maxframe_size(lport->host) = mfs; in fc_lport_flogi_resp()
1856 fc_host_maxframe_size(lport->host) = lport->mfs; in fc_lport_init()