FreeBSD/sys/dev/cxgb/common/cxgb_mc5.c
/*
 * Write data to the TCAM register at address (0, 0, addr_lo) using the TCAM
 * command cmd.  The data to be written must have been set up by the caller.
 * Returns -1 on failure, 0 on success.
 */
Write data to the TCAM register at address (0, 0, addr_lo) using the TCAM
command cmd.  The data to be written must have been set up by the caller.
Returns -1 on failure, 0 on success.
Write data to the TCAM register at address ( 0 0 addr_lo ) using the TCAM command cmd . The data to be written must have been set up by the caller . Returns - 1 on failure 0 on success .
static int mc5_write(adapter_t *adapter, u32 addr_lo, u32 cmd)
{
	t3_write_reg(adapter, A_MC5_DB_DBGI_REQ_ADDR0, addr_lo);
	if (mc5_cmd_write(adapter, cmd) == 0)
		return 0;
	CH_ERR(adapter, "MC5 timeout writing to TCAM address 0x%x\n", addr_lo);
	return -1;
}
static int mc5_write ( adapter_t * adapter , u32 addr_lo , u32 cmd ) { t3_write_reg ( adapter , A_MC5_DB_DBGI_REQ_ADDR0 , addr_lo ) ; if ( mc5_cmd_write ( adapter , cmd ) == 0 ) return 0 ; CH_ERR ( adapter , " \n " , addr_lo ) ; return -1 ; }
Write data to the TCAM register at address (0, 0, addr_lo) using the TCAM
 command cmd.
Write data to the TCAM register at address ( 0 0 addr_lo ) using the TCAM command cmd .