src/dpdk/drivers/net/qede/qede_debug.c
static u32 qed_grc_dump_split_data(struct ecore_hwfn *p_hwfn,
				   struct ecore_ptt *p_ptt,
				   struct virt_mem_desc input_regs_arr,
				   u32 *dump_buf,
				   bool dump,
				   bool block_enable[MAX_BLOCK_ID],
				   enum init_split_types split_type,
				   u8 split_id, const char *reg_type_name)
{
	struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
	enum init_split_types hdr_split_type = split_type;
	u32 num_dumped_reg_entries, offset;
	u8 hdr_split_id = split_id;

	/* In PORT_PF split type, print a port split header */
	if (split_type == SPLIT_TYPE_PORT_PF) {
		hdr_split_type = SPLIT_TYPE_PORT;
		hdr_split_id = split_id / dev_data->num_pfs_per_port;
	}

	/* Calculate register dump header size (and skip it for now) */
	offset = qed_grc_dump_regs_hdr(dump_buf,
				       false,
				       0,
				       hdr_split_type,
				       hdr_split_id, reg_type_name);

	/* Dump registers */
	offset += qed_grc_dump_regs_entries(p_hwfn,
					    p_ptt,
					    input_regs_arr,
					    dump_buf + offset,
					    dump,
					    split_type,
					    split_id,
					    block_enable,
					    &num_dumped_reg_entries);

	/* Write register dump header */
	if (dump && num_dumped_reg_entries > 0)
		qed_grc_dump_regs_hdr(dump_buf,
				      dump,
				      num_dumped_reg_entries,
				      hdr_split_type,
				      hdr_split_id, reg_type_name);

	return num_dumped_reg_entries > 0 ? offset : 0;
}
/* Dumps GRC registers entries. Returns the dumped size in dwords. */
Dumps GRC registers entries. Returns the dumped size in dwords.
Dumps GRC registers entries . Returns the dumped size in dwords .
static u32 qed_grc_dump_split_data(struct ecore_hwfn *p_hwfn,
				   struct ecore_ptt *p_ptt,
				   struct virt_mem_desc input_regs_arr,
				   u32 *dump_buf,
				   bool dump,
				   bool block_enable[MAX_BLOCK_ID],
				   enum init_split_types split_type,
				   u8 split_id, const char *reg_type_name)
{
	struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
	enum init_split_types hdr_split_type = split_type;
	u32 num_dumped_reg_entries, offset;
	u8 hdr_split_id = split_id;
	if (split_type == SPLIT_TYPE_PORT_PF) {
		hdr_split_type = SPLIT_TYPE_PORT;
		hdr_split_id = split_id / dev_data->num_pfs_per_port;
	}
	offset = qed_grc_dump_regs_hdr(dump_buf,
				       false,
				       0,
				       hdr_split_type,
				       hdr_split_id, reg_type_name);
	offset += qed_grc_dump_regs_entries(p_hwfn,
					    p_ptt,
					    input_regs_arr,
					    dump_buf + offset,
					    dump,
					    split_type,
					    split_id,
					    block_enable,
					    &num_dumped_reg_entries);
	if (dump && num_dumped_reg_entries > 0)
		qed_grc_dump_regs_hdr(dump_buf,
				      dump,
				      num_dumped_reg_entries,
				      hdr_split_type,
				      hdr_split_id, reg_type_name);
	return num_dumped_reg_entries > 0 ? offset : 0;
}
static u32 qed_grc_dump_split_data ( struct ecore_hwfn * p_hwfn , struct ecore_ptt * p_ptt , struct virt_mem_desc input_regs_arr , u32 * dump_buf , bool dump , bool block_enable [ MAX_BLOCK_ID ] , enum init_split_types split_type , u8 split_id , const char * reg_type_name ) { struct dbg_tools_data * dev_data = & p_hwfn -> dbg_info ; enum init_split_types hdr_split_type = split_type ; u32 num_dumped_reg_entries , offset ; u8 hdr_split_id = split_id ; if ( split_type == SPLIT_TYPE_PORT_PF ) { hdr_split_type = SPLIT_TYPE_PORT ; hdr_split_id = split_id / dev_data -> num_pfs_per_port ; } offset = qed_grc_dump_regs_hdr ( dump_buf , false , 0 , hdr_split_type , hdr_split_id , reg_type_name ) ; offset += qed_grc_dump_regs_entries ( p_hwfn , p_ptt , input_regs_arr , dump_buf + offset , dump , split_type , split_id , block_enable , & num_dumped_reg_entries ) ; if ( dump && num_dumped_reg_entries > 0 ) qed_grc_dump_regs_hdr ( dump_buf , dump , num_dumped_reg_entries , hdr_split_type , hdr_split_id , reg_type_name ) ; return num_dumped_reg_entries > 0 ? offset : 0 ; }
Dumps GRC registers entries.
Dumps GRC registers entries .
/* In PORT_PF split type, print a port split header */ /* Calculate register dump header size (and skip it for now) */ /* Dump registers */ /* Write register dump header */