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