while (*((volatile u16 *)dw_sync_addr) && --timeout)
udelay(10);
- /* If timed out: return FALSE */
+ /* If timed out: return false */
if (!timeout) {
pr_err("%s: Timed out waiting DSP to Start\n", __func__);
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
* Internal state definitions for the dynamic loader
*/
-#define TRUE 1
-#define FALSE 0
-
/* type used for relocation intermediate results */
typedef s32 rvalue;
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#define TRUE 1
-#define FALSE 0
#ifndef NULL
#define NULL 0
#endif
mask = 1L << (bitn % BITS_PER_LONG);
word = map->words[bitn / BITS_PER_LONG];
- state = word & mask ? TRUE : FALSE;
+ state = word & mask ? true : false;
return state;
}
#ifndef _GLOBALTYPES_H
#define _GLOBALTYPES_H
-/*
- * Definition: TRUE, FALSE
- *
- * DESCRIPTION: Boolean Definitions
- */
-#ifndef TRUE
-#define FALSE 0
-#define TRUE (!(FALSE))
-#endif
-
/*
* Definition: NULL
*
#define CONST const
#endif
-/*===========================================================================*/
-/* Boolean constants */
-/*===========================================================================*/
-
-#ifndef FALSE
-#define FALSE 0
-#endif
-#ifndef TRUE
-#define TRUE 1
-#endif
-
/*===========================================================================*/
/* NULL (Definition is language specific) */
/*===========================================================================*/
int status = 0;
u32 mem_sect_type;
struct rmm_addr rmm_addr_obj;
- s32 ret = TRUE;
+ s32 ret = true;
unsigned stype = DLOAD_SECTION_TYPE(info->type);
char *token = NULL;
char *sz_sec_last_token = NULL;
rmm_handle, mem_sect_type,
alloc_size, align,
(u32 *) &rmm_addr_obj,
- seg_id, req, FALSE);
+ seg_id, req, false);
}
if (DSP_FAILED(status)) {
ret = false;
for (i = 0; i < table_size; i +=
virtual_mapping_table[i].region_size) {
curr_node = virtual_mapping_table + i;
- if (curr_node->reserved == TRUE) {
+ if (curr_node->reserved) {
/*printk("RESERVED size = 0x%x, "
"Map size = 0x%x\n",
(curr_node->region_size * PG_SIZE4K),
/* Free all SM address translator resources */
if (xlator) {
- (void)cmm_xlator_delete(xlator, TRUE); /* force free */
+ (void)cmm_xlator_delete(xlator, true); /* force free */
xlator = NULL;
}