src/dpdk/drivers/net/qede/qede_debug.c
static u32 qed_dump_str_param(u32 *dump_buf,
			      bool dump,
			      const char *param_name, const char *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 string param value */
	if (dump)
		*(char_buf + offset) = 1;
	offset++;

	/* Dump param value */
	offset += qed_dump_str(char_buf + offset, dump, param_val);

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

	return BYTES_TO_DWORDS(offset);
}
/* Writes the specified string param to the specified buffer.
 * Returns the dumped size in dwords.
 */
Writes the specified string param to the specified buffer.
Returns the dumped size in dwords.
Writes the specified string param to the specified buffer . Returns the dumped size in dwords .
static u32 qed_dump_str_param(u32 *dump_buf,
			      bool dump,
			      const char *param_name, const char *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) = 1;
	offset++;
	offset += qed_dump_str(char_buf + offset, dump, param_val);
	offset += qed_dump_align(char_buf + offset, dump, offset);
	return BYTES_TO_DWORDS(offset);
}
static u32 qed_dump_str_param ( u32 * dump_buf , bool dump , const char * param_name , const char * 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 ) = 1 ; offset ++ ; offset += qed_dump_str ( char_buf + offset , dump , param_val ) ; offset += qed_dump_align ( char_buf + offset , dump , offset ) ; return BYTES_TO_DWORDS ( offset ) ; }
Writes the specified string param to the specified buffer.
Writes the specified string param to the specified buffer .
/* Dump param name */ /* Indicate a string param value */ /* Dump param value */ /* Align buffer to next dword */