src/dpdk/drivers/net/qede/qede_debug.c
void qed_mcp_trace_free_meta_data(struct ecore_hwfn *p_hwfn)
{
	struct dbg_tools_user_data *dev_user_data;
	struct mcp_trace_meta *meta;
	u32 i;

	dev_user_data = qed_dbg_get_user_data(p_hwfn);
	meta = &dev_user_data->mcp_trace_meta;
	if (!meta->is_allocated)
		return;

	/* Release modules */
	if (meta->modules) {
		for (i = 0; i < meta->modules_num; i++)
			OSAL_FREE(p_hwfn, meta->modules[i]);
		OSAL_FREE(p_hwfn, meta->modules);
	}

	/* Release formats */
	if (meta->formats) {
		for (i = 0; i < meta->formats_num; i++)
			OSAL_FREE(p_hwfn, meta->formats[i].format_str);
		OSAL_FREE(p_hwfn, meta->formats);
	}

	meta->is_allocated = false;
}
/* Frees the specified MCP Trace meta data */
Frees the specified MCP Trace meta data
Frees the specified MCP Trace meta data
void qed_mcp_trace_free_meta_data(struct ecore_hwfn *p_hwfn)
{
	struct dbg_tools_user_data *dev_user_data;
	struct mcp_trace_meta *meta;
	u32 i;
	dev_user_data = qed_dbg_get_user_data(p_hwfn);
	meta = &dev_user_data->mcp_trace_meta;
	if (!meta->is_allocated)
		return;
	if (meta->modules) {
		for (i = 0; i < meta->modules_num; i++)
			OSAL_FREE(p_hwfn, meta->modules[i]);
		OSAL_FREE(p_hwfn, meta->modules);
	}
	if (meta->formats) {
		for (i = 0; i < meta->formats_num; i++)
			OSAL_FREE(p_hwfn, meta->formats[i].format_str);
		OSAL_FREE(p_hwfn, meta->formats);
	}
	meta->is_allocated = false;
}
void qed_mcp_trace_free_meta_data ( struct ecore_hwfn * p_hwfn ) { struct dbg_tools_user_data * dev_user_data ; struct mcp_trace_meta * meta ; u32 i ; dev_user_data = qed_dbg_get_user_data ( p_hwfn ) ; meta = & dev_user_data -> mcp_trace_meta ; if ( ! meta -> is_allocated ) return ; if ( meta -> modules ) { for ( i = 0 ; i < meta -> modules_num ; i ++ ) OSAL_FREE ( p_hwfn , meta -> modules [ i ] ) ; OSAL_FREE ( p_hwfn , meta -> modules ) ; } if ( meta -> formats ) { for ( i = 0 ; i < meta -> formats_num ; i ++ ) OSAL_FREE ( p_hwfn , meta -> formats [ i ] . format_str ) ; OSAL_FREE ( p_hwfn , meta -> formats ) ; } meta -> is_allocated = false ; }
Frees the specified MCP Trace meta data
Frees the specified MCP Trace meta data
/* Release modules */ /* Release formats */