FreeBSD/sys/dev/cxgb/common/cxgb_t3_hw.c
/**
 *	t3_set_reg_field - set a register field to a value
 *	@adapter: the adapter to program
 *	@addr: the register address
 *	@mask: specifies the portion of the register to modify
 *	@val: the new value for the register field
 *
 *	Sets a register field specified by the supplied mask to the
 *	given value.
 */
set a register field to a value
@adapter: the adapter to program
@addr: the register address
@mask: specifies the portion of the register to modify
@val: the new value for the register field

Sets a register field specified by the supplied mask to the
given value.
set a register field to a value @adapter : the adapter to program @addr : the register address @mask : specifies the portion of the register to modify @val : the new value for the register field Sets a register field specified by the supplied mask to the given value .
void t3_set_reg_field(adapter_t *adapter, unsigned int addr, u32 mask, u32 val)
{
	u32 v = t3_read_reg(adapter, addr) & ~mask;
	t3_write_reg(adapter, addr, v | val);
	(void) t3_read_reg(adapter, addr);      
}
void t3_set_reg_field ( adapter_t * adapter , unsigned int addr , u32 mask , u32 val ) { u32 v = t3_read_reg ( adapter , addr ) & ~ mask ; t3_write_reg ( adapter , addr , v | val ) ; ( void ) t3_read_reg ( adapter , addr ) ; }
t3_set_reg_field - set a register field to a value
      @adapter: the adapter to program
      @addr: the register address
      @mask: specifies the portion of the register to modify
      @val: the new value for the register field
t3_set_reg_field - set a register field to a value @adapter : the adapter to program @addr : the register address @mask : specifies the portion of the register to modify @val : the new value for the register field
/* flush */