| 
    Zephyr Project API
    3.3.0
    
   A Scalable Open Source RTOS 
   | 
 
Functions | |
| static void | sys_cache_data_enable (void) | 
| Enable the d-cache.  More... | |
| static void | sys_cache_data_disable (void) | 
| Disable the d-cache.  More... | |
| static void | sys_cache_instr_enable (void) | 
| Enable the i-cache.  More... | |
| static void | sys_cache_instr_disable (void) | 
| Disable the i-cache.  More... | |
| static int | sys_cache_data_flush_all (void) | 
| Flush the d-cache.  More... | |
| static int | sys_cache_instr_flush_all (void) | 
| Flush the i-cache.  More... | |
| static int | sys_cache_data_invd_all (void) | 
| Invalidate the d-cache.  More... | |
| static int | sys_cache_instr_invd_all (void) | 
| Invalidate the i-cache.  More... | |
| static int | sys_cache_data_flush_and_invd_all (void) | 
| Flush and Invalidate the d-cache.  More... | |
| static int | sys_cache_instr_flush_and_invd_all (void) | 
| Flush and Invalidate the i-cache.  More... | |
| int | sys_cache_data_flush_range (void *addr, size_t size) | 
| Flush an address range in the d-cache.  More... | |
| static int | sys_cache_instr_flush_range (void *addr, size_t size) | 
| Flush an address range in the i-cache.  More... | |
| int | sys_cache_data_invd_range (void *addr, size_t size) | 
| Invalidate an address range in the d-cache.  More... | |
| static int | sys_cache_instr_invd_range (void *addr, size_t size) | 
| Invalidate an address range in the i-cache.  More... | |
| int | sys_cache_data_flush_and_invd_range (void *addr, size_t size) | 
| Flush and Invalidate an address range in the d-cache.  More... | |
| static int | sys_cache_instr_flush_and_invd_range (void *addr, size_t size) | 
| Flush and Invalidate an address range in the i-cache.  More... | |
| static size_t | sys_cache_data_line_size_get (void) | 
| Get the the d-cache line size.  More... | |
| static size_t | sys_cache_instr_line_size_get (void) | 
| Get the the i-cache line size.  More... | |
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Flush the d-cache.
Flush the whole data cache.
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Flush and Invalidate the d-cache.
Flush and Invalidate the whole data cache.
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
| int sys_cache_data_flush_and_invd_range | ( | void * | addr, | 
| size_t | size | ||
| ) | 
#include <include/zephyr/cache.h>
Flush and Invalidate an address range in the d-cache.
Flush and Invalidate the specified address range of the data cache.
| addr | Starting address to flush and invalidate. | 
| size | Range size. | 
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
| int sys_cache_data_flush_range | ( | void * | addr, | 
| size_t | size | ||
| ) | 
#include <include/zephyr/cache.h>
Flush an address range in the d-cache.
Flush the specified address range of the data cache.
| addr | Starting address to flush. | 
| size | Range size. | 
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Invalidate the d-cache.
Invalidate the whole data cache.
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
| int sys_cache_data_invd_range | ( | void * | addr, | 
| size_t | size | ||
| ) | 
#include <include/zephyr/cache.h>
Invalidate an address range in the d-cache.
Invalidate the specified address range of the data cache.
| addr | Starting address to invalidate. | 
| size | Range size. | 
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Get the the d-cache line size.
The API is provided to get the data cache line.
The cache line size is calculated (in order of priority):
CONFIG_DCACHE_LINE_SIZE_DETECT   is set.CONFIG_DCACHE_LINE_SIZE  .d-cache-line-size CPU0 property of the DT.| size | Size of the d-cache line. | 
| 0 | If the d-cache is not enabled. | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Flush the i-cache.
Flush the whole instruction cache.
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Flush and Invalidate the i-cache.
Flush and Invalidate the whole instruction cache.
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Flush and Invalidate an address range in the i-cache.
Flush and Invalidate the specified address range of the instruction cache.
| addr | Starting address to flush and invalidate. | 
| size | Range size. | 
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Flush an address range in the i-cache.
Flush the specified address range of the instruction cache.
| addr | Starting address to flush. | 
| size | Range size. | 
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Invalidate the i-cache.
Invalidate the whole instruction cache.
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Invalidate an address range in the i-cache.
Invalidate the specified address range of the instruction cache.
| addr | Starting address to invalidate. | 
| size | Range size. | 
| 0 | If succeeded. | 
| -ENOTSUP | If not supported. | 
| -errno | Negative errno for other failures. | 
      
  | 
  inlinestatic | 
#include <include/zephyr/cache.h>
Get the the i-cache line size.
The API is provided to get the instruction cache line.
The cache line size is calculated (in order of priority):
CONFIG_ICACHE_LINE_SIZE_DETECT   is set.CONFIG_ICACHE_LINE_SIZE  .i-cache-line-size CPU0 property of the DT.| size | Size of the d-cache line. | 
| 0 | If the d-cache is not enabled. |