src/dpdk/drivers/net/qede/qede_debug.c
static const struct dbg_attn_reg *
qed_get_block_attn_regs(struct ecore_hwfn *p_hwfn,
			enum block_id block_id, enum dbg_attn_type attn_type,
			u8 *num_attn_regs)
{
	const struct dbg_attn_block_type_data *block_type_data =
	    qed_get_block_attn_data(p_hwfn, block_id, attn_type);

	*num_attn_regs = block_type_data->num_regs;

	return (const struct dbg_attn_reg *)
		p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_REGS].ptr +
		block_type_data->regs_offset;
}
/* Returns the attention registers of the specified block */
Returns the attention registers of the specified block
Returns the attention registers of the specified block
static const struct dbg_attn_reg *
qed_get_block_attn_regs(struct ecore_hwfn *p_hwfn,
			enum block_id block_id, enum dbg_attn_type attn_type,
			u8 *num_attn_regs)
{
	const struct dbg_attn_block_type_data *block_type_data =
	    qed_get_block_attn_data(p_hwfn, block_id, attn_type);
	*num_attn_regs = block_type_data->num_regs;
	return (const struct dbg_attn_reg *)
		p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_REGS].ptr +
		block_type_data->regs_offset;
}
static const struct dbg_attn_reg * qed_get_block_attn_regs ( struct ecore_hwfn * p_hwfn , enum block_id block_id , enum dbg_attn_type attn_type , u8 * num_attn_regs ) { const struct dbg_attn_block_type_data * block_type_data = qed_get_block_attn_data ( p_hwfn , block_id , attn_type ) ; * num_attn_regs = block_type_data -> num_regs ; return ( const struct dbg_attn_reg * ) p_hwfn -> dbg_arrays [ BIN_BUF_DBG_ATTN_REGS ] . ptr + block_type_data -> regs_offset ; }
Returns the attention registers of the specified block
Returns the attention registers of the specified block