Home
last modified time | relevance | path

Searched refs:mfs (Results 1 – 14 of 14) sorted by relevance

/drivers/scsi/libfc/
Dfc_lport.c370 sp->sp_bb_data = htons((u16) lport->mfs); in fc_lport_flogi_fill()
379 cp->cp_rdfs = htons((u16) lport->mfs); in fc_lport_flogi_fill()
661 int fc_set_mfs(struct fc_lport *lport, u32 mfs) in fc_set_mfs() argument
668 old_mfs = lport->mfs; in fc_set_mfs()
670 if (mfs >= FC_MIN_MAX_FRAME) { in fc_set_mfs()
671 mfs &= ~3; in fc_set_mfs()
672 if (mfs > FC_MAX_FRAME) in fc_set_mfs()
673 mfs = FC_MAX_FRAME; in fc_set_mfs()
674 mfs -= sizeof(struct fc_frame_header); in fc_set_mfs()
675 lport->mfs = mfs; in fc_set_mfs()
[all …]
Dfc_rport.c222 unsigned int mfs; in fc_plogi_get_maxframe() local
228 mfs = ntohs(flp->fl_csp.sp_bb_data) & FC_SP_BB_DATA_MASK; in fc_plogi_get_maxframe()
229 if (mfs >= FC_SP_MIN_MAX_PAYLOAD && mfs < maxval) in fc_plogi_get_maxframe()
230 maxval = mfs; in fc_plogi_get_maxframe()
231 mfs = ntohs(flp->fl_cssp[3 - 1].cp_rdfs); in fc_plogi_get_maxframe()
232 if (mfs >= FC_SP_MIN_MAX_PAYLOAD && mfs < maxval) in fc_plogi_get_maxframe()
233 maxval = mfs; in fc_plogi_get_maxframe()
728 rdata->maxframe_size = fc_plogi_get_maxframe(flogi, lport->mfs); in fc_rport_login_complete()
1028 rdata->maxframe_size = fc_plogi_get_maxframe(plp, lport->mfs); in fc_rport_plogi_resp()
1937 rdata->maxframe_size = fc_plogi_get_maxframe(pl, lport->mfs); in fc_rport_recv_plogi_req()
Dfc_encode.h762 csp->sp_bb_data = htons((u16) lport->mfs); in fc_plogi_fill()
770 cp->cp_rdfs = htons((u16) lport->mfs); in fc_plogi_fill()
793 sp->sp_bb_data = htons((u16) lport->mfs); in fc_flogi_fill()
818 sp->sp_bb_data = htons((u16) lport->mfs); in fc_fdisc_fill()
/drivers/scsi/fcoe/
Dfcoe.c701 u32 mfs; in fcoe_netdev_config() local
723 mfs = netdev->mtu; in fcoe_netdev_config()
725 mfs = FCOE_MTU; in fcoe_netdev_config()
726 FCOE_NETDEV_DBG(netdev, "Supports FCOE_MTU of %d bytes\n", mfs); in fcoe_netdev_config()
728 mfs -= (sizeof(struct fcoe_hdr) + sizeof(struct fcoe_crc_eof)); in fcoe_netdev_config()
729 if (fc_set_mfs(lport, mfs)) in fcoe_netdev_config()
1851 u32 mfs; in fcoe_device_notification() local
1877 mfs = netdev->mtu - (sizeof(struct fcoe_hdr) + in fcoe_device_notification()
1879 if (mfs >= FC_MIN_MAX_FRAME) in fcoe_device_notification()
1880 fc_set_mfs(lport, mfs); in fcoe_device_notification()
Dfcoe_ctlr.c367 return fip->lp->mfs + sizeof(struct fc_frame_header) + in fcoe_ctlr_fcoe_size()
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_io.c47 return DIV_ROUND_UP(size, csk->tlshws.mfs); in nos_ivs()
367 dlen = (dlen < hws->mfs) ? dlen : hws->mfs; in tls_tx_data_wr()
411 req_wr->mfs = htons(hws->mfs); in tls_tx_data_wr()
449 int fragsize = hws->mfs; in chtls_expansion_size()
490 pdus = DIV_ROUND_UP(tls_len, hws->mfs); in make_tlstx_data_wr()
498 ((hws->expansion / hws->pdus) + hws->mfs); in make_tlstx_data_wr()
Dchtls.h265 u32 mfs; member
395 __be16 mfs; member
Dchtls_hw.c404 kwr->wr.mfs = htons(TLS_MFS); in chtls_setkey()
Dchtls_cm.c80 csk->tlshws.mfs = TLS_MFS; in chtls_sock_create()
/drivers/scsi/csiostor/
Dcsio_lnode.c297 __be16 mfs; in csio_ln_fdmi_rhba_cbfn() local
370 mfs = ln->ln_sparm.csp.sp_bb_data; in csio_ln_fdmi_rhba_cbfn()
372 &mfs, sizeof(mfs)); in csio_ln_fdmi_rhba_cbfn()
/drivers/scsi/fnic/
Dfnic_main.c869 fc_host_maxframe_size(lp->host) = lp->mfs; in fnic_probe()
/drivers/scsi/qedf/
Dqedf_main.c1764 fc_host_maxframe_size(lport->host) = lport->mfs; in qedf_lport_setup()
1944 fc_host_maxframe_size(vn_port->host) = n_port->mfs; in qedf_vport_create()
/drivers/scsi/bnx2fc/
Dbnx2fc_hwi.c267 ofld_req3.rx_max_fc_pay_len = lport->mfs; in bnx2fc_send_session_ofld_req()
/drivers/net/ethernet/chelsio/cxgb4/
Dt4fw_api.h4074 __be16 mfs; member