Lines Matching defs:mtu
339 static int rx_fifo_hwm(int mtu)
343 hwm = uimax(MAC_RXFIFO_SIZE - 3 * mtu, (MAC_RXFIFO_SIZE * 38) / 100);
347 int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu)
354 * MAX_FRAME_SIZE includes header + FCS, mtu doesn't. The HW max
357 mtu += 14;
359 mtu += 8; /* for preamble */
360 if (mtu > MAX_FRAME_SIZE - 4)
363 return t3_vsc7323_set_mtu(adap, mtu - 4, mac->ext_port);
380 t3_write_reg(adap, A_XGM_RX_MAX_PKT_SIZE + mac->offset, mtu);
384 t3_write_reg(adap, A_XGM_RX_MAX_PKT_SIZE + mac->offset, mtu);
390 hwm = rx_fifo_hwm(mtu);
391 lwm = uimin(3 * (int) mtu, MAC_RXFIFO_SIZE /4);
403 thres = (thres * mtu) / 1000;
406 thres = mtu > thres ? (mtu - thres + 7) / 8 : 0;