|
Zephyr Project API 3.5.0
A Scalable Open Source RTOS
|
Functions | |
| static ALWAYS_INLINE void | sys_cache_data_enable (void) |
| Enable the d-cache. | |
| static ALWAYS_INLINE void | sys_cache_data_disable (void) |
| Disable the d-cache. | |
| static ALWAYS_INLINE void | sys_cache_instr_enable (void) |
| Enable the i-cache. | |
| static ALWAYS_INLINE void | sys_cache_instr_disable (void) |
| Disable the i-cache. | |
| static ALWAYS_INLINE int | sys_cache_data_flush_all (void) |
| Flush the d-cache. | |
| static ALWAYS_INLINE int | sys_cache_instr_flush_all (void) |
| Flush the i-cache. | |
| static ALWAYS_INLINE int | sys_cache_data_invd_all (void) |
| Invalidate the d-cache. | |
| static ALWAYS_INLINE int | sys_cache_instr_invd_all (void) |
| Invalidate the i-cache. | |
| static ALWAYS_INLINE int | sys_cache_data_flush_and_invd_all (void) |
| Flush and Invalidate the d-cache. | |
| static ALWAYS_INLINE int | sys_cache_instr_flush_and_invd_all (void) |
| Flush and Invalidate the i-cache. | |
| int | sys_cache_data_flush_range (void *addr, size_t size) |
| Flush an address range in the d-cache. | |
| static ALWAYS_INLINE int | sys_cache_instr_flush_range (void *addr, size_t size) |
| Flush an address range in the i-cache. | |
| int | sys_cache_data_invd_range (void *addr, size_t size) |
| Invalidate an address range in the d-cache. | |
| static ALWAYS_INLINE int | sys_cache_instr_invd_range (void *addr, size_t size) |
| Invalidate an address range in the i-cache. | |
| int | sys_cache_data_flush_and_invd_range (void *addr, size_t size) |
| Flush and Invalidate an address range in the d-cache. | |
| static ALWAYS_INLINE int | sys_cache_instr_flush_and_invd_range (void *addr, size_t size) |
| Flush and Invalidate an address range in the i-cache. | |
| static ALWAYS_INLINE size_t | sys_cache_data_line_size_get (void) |
| Get the the d-cache line size. | |
| static ALWAYS_INLINE size_t | sys_cache_instr_line_size_get (void) |
| Get the the i-cache line size. | |
|
static |
|
static |
|
static |
#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. |
|
static |
#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 or a padded size is not strictly necessary.| 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 or a padded size is not strictly necessary.| addr | Starting address to flush. |
| size | Range size. |
| 0 | If succeeded. |
| -ENOTSUP | If not supported. |
| -errno | Negative errno for other failures. |
|
static |
#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 is not aligned to the cache line and/or size is not a multiple of the cache line size the behaviour is undefined.| addr | Starting address to invalidate. |
| size | Range size. |
| 0 | If succeeded. |
| -ENOTSUP | If not supported. |
| -errno | Negative errno for other failures. |
|
static |
#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. |
|
static |
|
static |
|
static |
#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. |
|
static |
#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. |
|
static |
#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 or a padded size is not strictly necessary.| addr | Starting address to flush and invalidate. |
| size | Range size. |
| 0 | If succeeded. |
| -ENOTSUP | If not supported. |
| -errno | Negative errno for other failures. |
|
static |
#include <include/zephyr/cache.h>
Flush an address range in the i-cache.
Flush the specified address range of the instruction cache.
addr or a padded size is not strictly necessary.| addr | Starting address to flush. |
| size | Range size. |
| 0 | If succeeded. |
| -ENOTSUP | If not supported. |
| -errno | Negative errno for other failures. |
|
static |
#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. |
|
static |
#include <include/zephyr/cache.h>
Invalidate an address range in the i-cache.
Invalidate the specified address range of the instruction cache.
addr is not aligned to the cache line and/or size is not a multiple of the cache line size the behaviour is undefined.| addr | Starting address to invalidate. |
| size | Range size. |
| 0 | If succeeded. |
| -ENOTSUP | If not supported. |
| -errno | Negative errno for other failures. |
|
static |
#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. |