/* one-time pre-compute dePQ values - only for max pixel value 125 FP16 */
void precompute_de_pq(void)
{
- int i;
+ uint32_t i;
struct fixed31_32 y;
uint32_t begin_index, end_index;
struct pwl_float_data *rgb,
const struct pixel_gamma_point *coeff,
enum channel_name channel,
- uint32_t max_index)
+ int32_t max_index)
{
const struct gamma_point *point;
uint32_t num_hw_points,
struct dc_transfer_func_distributed_points *tf_pts)
{
- int i = 0;
+ uint32_t i = 0;
int color = 0;
struct fixed31_32 *regamma_y;
struct fixed31_32 norm_y;
{
const struct pixel_gamma_point *coeff = coeff128;
- uint32_t max_entries = 3 - 1;
+ int32_t max_entries = 3 - 1;
uint32_t i = 0;
}
i = 0;
- max_entries += ramp->num_entries;
+ max_entries += (int32_t)ramp->num_entries;
/* TODO: float point case */
{
/* setup to spare calculated ideal regamma values */
- int i = 0;
+ uint32_t i = 0;
struct hw_x_point *coords = coords_x;
const struct pwl_float_data_ex *regamma = rgb_regamma;
bool psr_smu_optimizations_support;
bool multi_disp_optimizations_support;
- int num_entities;
+ unsigned int num_entities;
};
union dmcu_abm_set_bl_params {
struct dc *dc = NULL;
struct dmcu *dmcu = NULL;
struct dmcu_iram_parameters params;
- int i;
+ unsigned int i;
if (mod_power == NULL)
return false;
{
struct core_power *core_power = NULL;
int i = 0;
- int abm_max_config = 0;
+ unsigned int abm_max_config = 0;
unsigned int inst = 0;
bool is_brightness_range_valid = false;
void mod_power_destroy(struct mod_power *mod_power)
{
if (mod_power != NULL) {
- int i;
+ unsigned int i;
struct core_power *core_power =
MOD_POWER_TO_CORE(mod_power);
DC_TRACE_LEVEL_MESSAGE(DAL_TRACE_LEVEL_ERROR,
WPP_BIT_FLAG_Firmware_PsrState,
- "mod_power: add_stream: ERROR: stream=%p num_entities=%d >= MOD_POWER_MAX_CONCURRENT_STREAMS",
+ "mod_power: add_stream: ERROR: stream=%p num_entities=%u >= MOD_POWER_MAX_CONCURRENT_STREAMS",
stream,
core_power->num_entities);
bool mod_power_remove_stream(struct mod_power *mod_power,
const struct dc_stream_state *stream)
{
- int i = 0;
+ unsigned int i = 0;
struct core_power *core_power = NULL;
unsigned int index = 0;
BREAK_TO_DEBUGGER();
DC_TRACE_LEVEL_MESSAGE(DAL_TRACE_LEVEL_ERROR,
WPP_BIT_FLAG_Firmware_PsrState,
- "mod_power: remove_stream: ERROR: index=%u >= num_entities=%d stream=%p",
+ "mod_power: remove_stream: ERROR: index=%u >= num_entities=%u stream=%p",
index,
core_power->num_entities,
stream);
BREAK_TO_DEBUGGER();
DC_TRACE_LEVEL_MESSAGE(DAL_TRACE_LEVEL_ERROR,
WPP_BIT_FLAG_Firmware_PsrState,
- "mod_power: replace_stream: ERROR: index=%u >= num_entities=%d stream=%p",
+ "mod_power: replace_stream: ERROR: index=%u >= num_entities=%u stream=%p",
index,
core_power->num_entities,
current_stream);
{
struct core_power *core_power = NULL;
struct dc_link *link = NULL;
- unsigned int stream_index;
+ int stream_index;
if (mod_power == NULL)
return false;
if (core_power->num_entities == 0) {
DC_TRACE_LEVEL_MESSAGE(DAL_TRACE_LEVEL_ERROR,
WPP_BIT_FLAG_Firmware_PsrState,
- "set psr enable: ERROR: stream=%p num_entities=%d",
+ "set psr enable: ERROR: stream=%p num_entities=%u",
stream,
core_power->num_entities);
return false;
if (core_power->num_entities == 0) {
DC_TRACE_LEVEL_MESSAGE(DAL_TRACE_LEVEL_ERROR,
WPP_BIT_FLAG_Firmware_PsrState,
- "mod_power set_psr_event: ERROR: stream=%p event=%d num_entities=%d",
+ "mod_power set_psr_event: ERROR: stream=%p event=%d num_entities=%u",
stream,
(int)event,
core_power->num_entities);
static void evict_vmids(struct core_vmid *core_vmid)
{
- int i;
+ unsigned int i;
int ord_int = dc_get_vmid_use_vector(core_vmid->dc);
ASSERT(ord_int >= 0 && ord_int <= 0xFFFF);
// Return value of -1 indicates vmid table uninitialized or ptb dne in the table
static int get_existing_vmid_for_ptb(struct core_vmid *core_vmid, uint64_t ptb)
{
- int i;
+ unsigned int i;
for (i = 0; i < core_vmid->num_vmid; i++) {
if (core_vmid->ptb_assigned_to_vmid[i] == ptb)
// Expected to be called only when there's an available vmid
static int get_next_available_vmid(struct core_vmid *core_vmid)
{
- int i;
+ unsigned int i;
for (i = 1; i < core_vmid->num_vmid; i++) {
if (core_vmid->ptb_assigned_to_vmid[i] == 0)