FreeBSD/sys/dev/cxgb/common/cxgb_t3_hw.c
/**
 *	t3_read_hw_mtus - returns the values in the HW MTU table
 *	@adap: the adapter
 *	@mtus: where to store the HW MTU values
 *
 *	Reads the HW MTU table.
 */
returns the values in the HW MTU table
@adap: the adapter
@mtus: where to store the HW MTU values

Reads the HW MTU table.
returns the values in the HW MTU table @adap : the adapter @mtus : where to store the HW MTU values Reads the HW MTU table .
void t3_read_hw_mtus(adapter_t *adap, unsigned short mtus[NMTUS])
{
	int i;
	for (i = 0; i < NMTUS; ++i) {
		unsigned int val;
		t3_write_reg(adap, A_TP_MTU_TABLE, 0xff000000 | i);
		val = t3_read_reg(adap, A_TP_MTU_TABLE);
		mtus[i] = val & 0x3fff;
	}
}
void t3_read_hw_mtus ( adapter_t * adap , unsigned short mtus [ NMTUS ] ) { int i ; for ( i = 0 ; i < NMTUS ; ++ i ) { unsigned int val ; t3_write_reg ( adap , A_TP_MTU_TABLE , 0xff000000 | i ) ; val = t3_read_reg ( adap , A_TP_MTU_TABLE ) ; mtus [ i ] = val & 0x3fff ; } }
t3_read_hw_mtus - returns the values in the HW MTU table
      @adap: the adapter
      @mtus: where to store the HW MTU values
t3_read_hw_mtus - returns the values in the HW MTU table @adap : the adapter @mtus : where to store the HW MTU values