src/dpdk/drivers/net/qede/qede_debug.c
static u32 qed_dump_num_param(u32 *dump_buf,
			      bool dump, const char *param_name, u32 param_val)
{
	char *char_buf = (char *)dump_buf;
	u32 offset = 0;

	/* Dump param name */
	offset += qed_dump_str(char_buf + offset, dump, param_name);

	/* Indicate a numeric param value */
	if (dump)
		*(char_buf + offset) = 0;
	offset++;

	/* Align buffer to next dword */
	offset += qed_dump_align(char_buf + offset, dump, offset);

	/* Dump param value (and change offset from bytes to dwords) */
	offset = BYTES_TO_DWORDS(offset);
	if (dump)
		*(dump_buf + offset) = param_val;
	offset++;

	return offset;
}
/* Writes the specified numeric param to the specified buffer.
 * Returns the dumped size in dwords.
 */
Writes the specified numeric param to the specified buffer.
Returns the dumped size in dwords.
Writes the specified numeric param to the specified buffer . Returns the dumped size in dwords .
static u32 qed_dump_num_param(u32 *dump_buf,
			      bool dump, const char *param_name, u32 param_val)
{
	char *char_buf = (char *)dump_buf;
	u32 offset = 0;
	offset += qed_dump_str(char_buf + offset, dump, param_name);
	if (dump)
		*(char_buf + offset) = 0;
	offset++;
	offset += qed_dump_align(char_buf + offset, dump, offset);
	offset = BYTES_TO_DWORDS(offset);
	if (dump)
		*(dump_buf + offset) = param_val;
	offset++;
	return offset;
}
static u32 qed_dump_num_param ( u32 * dump_buf , bool dump , const char * param_name , u32 param_val ) { char * char_buf = ( char * ) dump_buf ; u32 offset = 0 ; offset += qed_dump_str ( char_buf + offset , dump , param_name ) ; if ( dump ) * ( char_buf + offset ) = 0 ; offset ++ ; offset += qed_dump_align ( char_buf + offset , dump , offset ) ; offset = BYTES_TO_DWORDS ( offset ) ; if ( dump ) * ( dump_buf + offset ) = param_val ; offset ++ ; return offset ; }
Writes the specified numeric param to the specified buffer.
Writes the specified numeric param to the specified buffer .
/* Dump param name */ /* Indicate a numeric param value */ /* Align buffer to next dword */ /* Dump param value (and change offset from bytes to dwords) */