blob: b3a87fdb91fc5ca4489897b2b28ee3ac3b816402 [file] [log] [blame]
/*
* Copyright (C) 2018 MediaTek Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include "met_drv.h"
#include "interface.h"
#include "trace.h"
#include "plf_trace.h"
noinline void ms_emi(const unsigned char cnt, unsigned int *value)
{
char *SOB, *EOB;
MET_TRACE_GETBUF(&SOB, &EOB);
// coverity[var_deref_op : FALSE]
EOB = ms_formatH_EOL(EOB, cnt, value);
MET_TRACE_PUTBUF(SOB, EOB);
}
noinline void ms_emi_ext(const unsigned char cnt, unsigned int *value)
{
char *SOB, *EOB;
MET_TRACE_GETBUF(&SOB, &EOB);
// coverity[var_deref_op : FALSE]
EOB = ms_formatH_EOL(EOB, cnt, value);
MET_TRACE_PUTBUF(SOB, EOB);
}
noinline void ms_emi_tsct(const unsigned char cnt, unsigned int *value)
{
char *SOB, *EOB;
MET_TRACE_GETBUF(&SOB, &EOB);
// coverity[var_deref_op : FALSE]
EOB = ms_formatH_EOL(EOB, cnt, value);
MET_TRACE_PUTBUF(SOB, EOB);
}
noinline void ms_emi_mdct(const unsigned char cnt, unsigned int *value)
{
char *SOB, *EOB;
MET_TRACE_GETBUF(&SOB, &EOB);
// coverity[var_deref_op : FALSE]
EOB = ms_formatH_EOL(EOB, cnt, value);
MET_TRACE_PUTBUF(SOB, EOB);
}
noinline void ms_ttype(const unsigned char cnt, unsigned int *value)
{
char *SOB, *EOB;
MET_TRACE_GETBUF(&SOB, &EOB);
// coverity[var_deref_op : FALSE]
EOB = ms_formatH_EOL(EOB, cnt, value);
MET_TRACE_PUTBUF(SOB, EOB);
}
noinline void ms_dramc(const unsigned char cnt, unsigned int *value)
{
char *SOB, *EOB;
MET_TRACE_GETBUF(&SOB, &EOB);
// coverity[var_deref_op : FALSE]
EOB = ms_formatH_EOL(EOB, cnt, value);
MET_TRACE_PUTBUF(SOB, EOB);
}
noinline void ms_bw_limiter(const unsigned char cnt, unsigned int *value)
{
char *SOB, *EOB;
MET_TRACE_GETBUF(&SOB, &EOB);
// coverity[var_deref_op : FALSE]
EOB = ms_formatH_EOL(EOB, cnt, value);
MET_TRACE_PUTBUF(SOB, EOB);
}