src/dpdk/drivers/net/qede/qede_debug.c
static u32 qed_grc_dump_ctx(struct ecore_hwfn *p_hwfn,
			    struct ecore_ptt *p_ptt, u32 *dump_buf, bool dump)
{
	u32 offset = 0;
	u8 storm_id;

	for (storm_id = 0; storm_id < MAX_DBG_STORMS; storm_id++) {
		if (!qed_grc_is_storm_included(p_hwfn,
					       (enum dbg_storms)storm_id))
			continue;

		/* Dump Conn AG context size */
		offset += qed_grc_dump_ctx_data(p_hwfn,
						p_ptt,
						dump_buf + offset,
						dump,
						"CONN_AG_CTX",
						NUM_OF_LCIDS,
						CM_CTX_CONN_AG, storm_id);

		/* Dump Conn ST context size */
		offset += qed_grc_dump_ctx_data(p_hwfn,
						p_ptt,
						dump_buf + offset,
						dump,
						"CONN_ST_CTX",
						NUM_OF_LCIDS,
						CM_CTX_CONN_ST, storm_id);

		/* Dump Task AG context size */
		offset += qed_grc_dump_ctx_data(p_hwfn,
						p_ptt,
						dump_buf + offset,
						dump,
						"TASK_AG_CTX",
						NUM_OF_LTIDS,
						CM_CTX_TASK_AG, storm_id);

		/* Dump Task ST context size */
		offset += qed_grc_dump_ctx_data(p_hwfn,
						p_ptt,
						dump_buf + offset,
						dump,
						"TASK_ST_CTX",
						NUM_OF_LTIDS,
						CM_CTX_TASK_ST, storm_id);
	}

	return offset;
}
/* Dumps GRC contexts. Returns the dumped size in dwords. */
Dumps GRC contexts. Returns the dumped size in dwords.
Dumps GRC contexts . Returns the dumped size in dwords .
static u32 qed_grc_dump_ctx(struct ecore_hwfn *p_hwfn,
			    struct ecore_ptt *p_ptt, u32 *dump_buf, bool dump)
{
	u32 offset = 0;
	u8 storm_id;
	for (storm_id = 0; storm_id < MAX_DBG_STORMS; storm_id++) {
		if (!qed_grc_is_storm_included(p_hwfn,
					       (enum dbg_storms)storm_id))
			continue;
		offset += qed_grc_dump_ctx_data(p_hwfn,
						p_ptt,
						dump_buf + offset,
						dump,
						"CONN_AG_CTX",
						NUM_OF_LCIDS,
						CM_CTX_CONN_AG, storm_id);
		offset += qed_grc_dump_ctx_data(p_hwfn,
						p_ptt,
						dump_buf + offset,
						dump,
						"CONN_ST_CTX",
						NUM_OF_LCIDS,
						CM_CTX_CONN_ST, storm_id);
		offset += qed_grc_dump_ctx_data(p_hwfn,
						p_ptt,
						dump_buf + offset,
						dump,
						"TASK_AG_CTX",
						NUM_OF_LTIDS,
						CM_CTX_TASK_AG, storm_id);
		offset += qed_grc_dump_ctx_data(p_hwfn,
						p_ptt,
						dump_buf + offset,
						dump,
						"TASK_ST_CTX",
						NUM_OF_LTIDS,
						CM_CTX_TASK_ST, storm_id);
	}
	return offset;
}
static u32 qed_grc_dump_ctx ( struct ecore_hwfn * p_hwfn , struct ecore_ptt * p_ptt , u32 * dump_buf , bool dump ) { u32 offset = 0 ; u8 storm_id ; for ( storm_id = 0 ; storm_id < MAX_DBG_STORMS ; storm_id ++ ) { if ( ! qed_grc_is_storm_included ( p_hwfn , ( enum dbg_storms ) storm_id ) ) continue ; offset += qed_grc_dump_ctx_data ( p_hwfn , p_ptt , dump_buf + offset , dump , " " , NUM_OF_LCIDS , CM_CTX_CONN_AG , storm_id ) ; offset += qed_grc_dump_ctx_data ( p_hwfn , p_ptt , dump_buf + offset , dump , " " , NUM_OF_LCIDS , CM_CTX_CONN_ST , storm_id ) ; offset += qed_grc_dump_ctx_data ( p_hwfn , p_ptt , dump_buf + offset , dump , " " , NUM_OF_LTIDS , CM_CTX_TASK_AG , storm_id ) ; offset += qed_grc_dump_ctx_data ( p_hwfn , p_ptt , dump_buf + offset , dump , " " , NUM_OF_LTIDS , CM_CTX_TASK_ST , storm_id ) ; } return offset ; }
Dumps GRC contexts.
Dumps GRC contexts .
/* Dump Conn AG context size */ /* Dump Conn ST context size */ /* Dump Task AG context size */ /* Dump Task ST context size */