FreeBSD/sys/dev/cxgb/common/cxgb_t3_hw.c
/**
 *	t3_write_regs - write a bunch of registers
 *	@adapter: the adapter to program
 *	@p: an array of register address/register value pairs
 *	@n: the number of address/value pairs
 *	@offset: register address offset
 *
 *	Takes an array of register address/register value pairs and writes each
 *	value to the corresponding register.  Register addresses are adjusted
 *	by the supplied offset.
 */
write a bunch of registers
@adapter: the adapter to program
@p: an array of register address/register value pairs
@n: the number of address/value pairs
@offset: register address offset

Takes an array of register address/register value pairs and writes each
value to the corresponding register.  Register addresses are adjusted
by the supplied offset.
write a bunch of registers @adapter : the adapter to program @p : an array of register address / register value pairs @n : the number of address / value pairs @offset : register address offset Takes an array of register address / register value pairs and writes each value to the corresponding register . Register addresses are adjusted by the supplied offset .
void t3_write_regs(adapter_t *adapter, const struct addr_val_pair *p, int n,
		   unsigned int offset)
{
	while (n--) {
		t3_write_reg(adapter, p->reg_addr + offset, p->val);
		p++;
	}
}
void t3_write_regs ( adapter_t * adapter , const struct addr_val_pair * p , int n , unsigned int offset ) { while ( n -- ) { t3_write_reg ( adapter , p -> reg_addr + offset , p -> val ) ; p ++ ; } }
t3_write_regs - write a bunch of registers
      @adapter: the adapter to program
      @p: an array of register address/register value pairs
      @n: the number of address/value pairs
      @offset: register address offset
t3_write_regs - write a bunch of registers @adapter : the adapter to program @p : an array of register address / register value pairs @n : the number of address / value pairs @offset : register address offset