Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cache.h File Reference
#include <linux/irqflags.h>

Go to the source code of this file.

Macros

#define L1D_CACHE_SHIFT   6
 
#define L1D_CACHE_BYTES   (1 << L1D_CACHE_SHIFT)
 
#define L1P_CACHE_SHIFT   5
 
#define L1P_CACHE_BYTES   (1 << L1P_CACHE_SHIFT)
 
#define L2_CACHE_SHIFT   7
 
#define L2_CACHE_BYTES   (1 << L2_CACHE_SHIFT)
 
#define L2MODE_SIZE   L2MODE_256K_CACHE
 
#define L1_CACHE_SHIFT   L2_CACHE_SHIFT
 
#define L1_CACHE_BYTES   (1 << L1_CACHE_SHIFT)
 
#define L2_CACHE_ALIGN_LOW(x)   (((x) & ~(L2_CACHE_BYTES - 1)))
 
#define L2_CACHE_ALIGN_UP(x)   (((x) + (L2_CACHE_BYTES - 1)) & ~(L2_CACHE_BYTES - 1))
 
#define L2_CACHE_ALIGN_CNT(x)   (((x) + (sizeof(int) - 1)) & ~(sizeof(int) - 1))
 
#define ARCH_DMA_MINALIGN   L1_CACHE_BYTES
 
#define ARCH_SLAB_MINALIGN   L1_CACHE_BYTES
 
#define CACHEABILITY_ALIGN   0x01000000
 
#define CACHE_REGION_START(v)   (((u32) (v)) & ~(CACHEABILITY_ALIGN - 1))
 
#define CACHE_REGION_END(v)   (((u32) (v) + (CACHEABILITY_ALIGN - 1)) & ~(CACHEABILITY_ALIGN - 1))
 

Functions

void __init c6x_cache_init (void)
 
void enable_caching (unsigned long start, unsigned long end)
 
void disable_caching (unsigned long start, unsigned long end)
 
void L1_cache_off (void)
 
void L1_cache_on (void)
 
void L1P_cache_global_invalidate (void)
 
void L1D_cache_global_invalidate (void)
 
void L1D_cache_global_writeback (void)
 
void L1D_cache_global_writeback_invalidate (void)
 
void L2_cache_set_mode (unsigned int mode)
 
void L2_cache_global_writeback_invalidate (void)
 
void L2_cache_global_writeback (void)
 
void L1P_cache_block_invalidate (unsigned int start, unsigned int end)
 
void L1D_cache_block_invalidate (unsigned int start, unsigned int end)
 
void L1D_cache_block_writeback_invalidate (unsigned int start, unsigned int end)
 
void L1D_cache_block_writeback (unsigned int start, unsigned int end)
 
void L2_cache_block_invalidate (unsigned int start, unsigned int end)
 
void L2_cache_block_writeback (unsigned int start, unsigned int end)
 
void L2_cache_block_writeback_invalidate (unsigned int start, unsigned int end)
 
void L2_cache_block_invalidate_nowait (unsigned int start, unsigned int end)
 
void L2_cache_block_writeback_nowait (unsigned int start, unsigned int end)
 
void L2_cache_block_writeback_invalidate_nowait (unsigned int start, unsigned int end)
 

Macro Definition Documentation

#define ARCH_DMA_MINALIGN   L1_CACHE_BYTES

Definition at line 47 of file cache.h.

#define ARCH_SLAB_MINALIGN   L1_CACHE_BYTES

Definition at line 48 of file cache.h.

#define CACHE_REGION_END (   v)    (((u32) (v) + (CACHEABILITY_ALIGN - 1)) & ~(CACHEABILITY_ALIGN - 1))

Definition at line 60 of file cache.h.

#define CACHE_REGION_START (   v)    (((u32) (v)) & ~(CACHEABILITY_ALIGN - 1))

Definition at line 58 of file cache.h.

#define CACHEABILITY_ALIGN   0x01000000

Definition at line 53 of file cache.h.

#define L1_CACHE_BYTES   (1 << L1_CACHE_SHIFT)

Definition at line 38 of file cache.h.

#define L1_CACHE_SHIFT   L2_CACHE_SHIFT

Definition at line 37 of file cache.h.

#define L1D_CACHE_BYTES   (1 << L1D_CACHE_SHIFT)

Definition at line 20 of file cache.h.

#define L1D_CACHE_SHIFT   6

Definition at line 19 of file cache.h.

#define L1P_CACHE_BYTES   (1 << L1P_CACHE_SHIFT)

Definition at line 23 of file cache.h.

#define L1P_CACHE_SHIFT   5

Definition at line 22 of file cache.h.

#define L2_CACHE_ALIGN_CNT (   x)    (((x) + (sizeof(int) - 1)) & ~(sizeof(int) - 1))

Definition at line 44 of file cache.h.

#define L2_CACHE_ALIGN_LOW (   x)    (((x) & ~(L2_CACHE_BYTES - 1)))

Definition at line 40 of file cache.h.

#define L2_CACHE_ALIGN_UP (   x)    (((x) + (L2_CACHE_BYTES - 1)) & ~(L2_CACHE_BYTES - 1))

Definition at line 42 of file cache.h.

#define L2_CACHE_BYTES   (1 << L2_CACHE_SHIFT)

Definition at line 26 of file cache.h.

#define L2_CACHE_SHIFT   7

Definition at line 25 of file cache.h.

#define L2MODE_SIZE   L2MODE_256K_CACHE

Definition at line 31 of file cache.h.

Function Documentation

void __init c6x_cache_init ( void  )

Definition at line 425 of file cache.c.

void disable_caching ( unsigned long  start,
unsigned long  end 
)

Definition at line 334 of file cache.c.

void enable_caching ( unsigned long  start,
unsigned long  end 
)

Definition at line 325 of file cache.c.

void L1_cache_off ( void  )

Definition at line 217 of file cache.c.

void L1_cache_on ( void  )

Definition at line 231 of file cache.c.

void L1D_cache_block_invalidate ( unsigned int  start,
unsigned int  end 
)

Definition at line 354 of file cache.c.

void L1D_cache_block_writeback ( unsigned int  start,
unsigned int  end 
)

Definition at line 368 of file cache.c.

void L1D_cache_block_writeback_invalidate ( unsigned int  start,
unsigned int  end 
)

Definition at line 361 of file cache.c.

void L1D_cache_global_invalidate ( void  )

Definition at line 260 of file cache.c.

void L1D_cache_global_writeback ( void  )

Definition at line 268 of file cache.c.

void L1D_cache_global_writeback_invalidate ( void  )

Definition at line 276 of file cache.c.

void L1P_cache_block_invalidate ( unsigned int  start,
unsigned int  end 
)

Definition at line 347 of file cache.c.

void L1P_cache_global_invalidate ( void  )

Definition at line 245 of file cache.c.

void L2_cache_block_invalidate ( unsigned int  start,
unsigned int  end 
)

Definition at line 378 of file cache.c.

void L2_cache_block_invalidate_nowait ( unsigned int  start,
unsigned int  end 
)

Definition at line 399 of file cache.c.

void L2_cache_block_writeback ( unsigned int  start,
unsigned int  end 
)

Definition at line 385 of file cache.c.

void L2_cache_block_writeback_invalidate ( unsigned int  start,
unsigned int  end 
)

Definition at line 392 of file cache.c.

void L2_cache_block_writeback_invalidate_nowait ( unsigned int  start,
unsigned int  end 
)

Definition at line 413 of file cache.c.

void L2_cache_block_writeback_nowait ( unsigned int  start,
unsigned int  end 
)

Definition at line 406 of file cache.c.

void L2_cache_global_writeback ( void  )

Definition at line 315 of file cache.c.

void L2_cache_global_writeback_invalidate ( void  )

Definition at line 305 of file cache.c.

void L2_cache_set_mode ( unsigned int  mode)

Definition at line 291 of file cache.c.