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

	for (storm_id = 0; storm_id < MAX_DBG_STORMS; storm_id++) {
		if (!qed_grc_is_storm_included(p_hwfn,
					       (enum dbg_storms)storm_id) ||
		    !s_storm_defs[storm_id].has_vfc)
			continue;

		/* Read CAM */
		offset += qed_grc_dump_vfc_cam(p_hwfn,
					       p_ptt,
					       dump_buf + offset,
					       dump, storm_id);

		/* Read RAM */
		for (i = 0; i < NUM_VFC_RAM_TYPES; i++)
			offset += qed_grc_dump_vfc_ram(p_hwfn,
						       p_ptt,
						       dump_buf + offset,
						       dump,
						       storm_id,
						       &s_vfc_ram_defs[i]);
	}

	return offset;
}
/* Dumps GRC VFC data. Returns the dumped size in dwords. */
Dumps GRC VFC data. Returns the dumped size in dwords.
Dumps GRC VFC data . Returns the dumped size in dwords .
static u32 qed_grc_dump_vfc(struct ecore_hwfn *p_hwfn,
			    struct ecore_ptt *p_ptt, u32 *dump_buf, bool dump)
{
	u8 storm_id, i;
	u32 offset = 0;
	for (storm_id = 0; storm_id < MAX_DBG_STORMS; storm_id++) {
		if (!qed_grc_is_storm_included(p_hwfn,
					       (enum dbg_storms)storm_id) ||
		    !s_storm_defs[storm_id].has_vfc)
			continue;
		offset += qed_grc_dump_vfc_cam(p_hwfn,
					       p_ptt,
					       dump_buf + offset,
					       dump, storm_id);
		for (i = 0; i < NUM_VFC_RAM_TYPES; i++)
			offset += qed_grc_dump_vfc_ram(p_hwfn,
						       p_ptt,
						       dump_buf + offset,
						       dump,
						       storm_id,
						       &s_vfc_ram_defs[i]);
	}
	return offset;
}
static u32 qed_grc_dump_vfc ( struct ecore_hwfn * p_hwfn , struct ecore_ptt * p_ptt , u32 * dump_buf , bool dump ) { u8 storm_id , i ; u32 offset = 0 ; for ( storm_id = 0 ; storm_id < MAX_DBG_STORMS ; storm_id ++ ) { if ( ! qed_grc_is_storm_included ( p_hwfn , ( enum dbg_storms ) storm_id ) || ! s_storm_defs [ storm_id ] . has_vfc ) continue ; offset += qed_grc_dump_vfc_cam ( p_hwfn , p_ptt , dump_buf + offset , dump , storm_id ) ; for ( i = 0 ; i < NUM_VFC_RAM_TYPES ; i ++ ) offset += qed_grc_dump_vfc_ram ( p_hwfn , p_ptt , dump_buf + offset , dump , storm_id , & s_vfc_ram_defs [ i ] ) ; } return offset ; }
Dumps GRC VFC data.
Dumps GRC VFC data .
/* Read CAM */ /* Read RAM */