Lines Matching defs:mtu
337 static int rx_fifo_hwm(int mtu)
341 hwm = max(MAC_RXFIFO_SIZE - 3 * mtu, (MAC_RXFIFO_SIZE * 38) / 100);
345 int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu)
353 * MAX_FRAME_SIZE inludes header + FCS, mtu doesn't. The HW max
356 mtu += 14;
357 if (mtu > 1536)
358 mtu += 4;
360 if (mtu > MAX_FRAME_SIZE - 4)
362 t3_write_reg(adap, A_XGM_RX_MAX_PKT_SIZE + mac->offset, mtu);
383 V_RXMAXPKTSIZE(mtu));
389 V_RXMAXPKTSIZE(mtu));
395 hwm = rx_fifo_hwm(mtu);
396 lwm = min(3 * (int)mtu, MAC_RXFIFO_SIZE / 4);
408 thres = (thres * mtu) / 1000;
411 thres = mtu > thres ? (mtu - thres + 7) / 8 : 0;