5#ifndef __SOF_LIB_VREGION_H__
6#define __SOF_LIB_VREGION_H__
10#include <sof/compiler_attributes.h>
32#if CONFIG_SOF_VREGIONS
151#include <zephyr/syscalls/vregion.h>
unsigned int use_count
Definition vregion.h:156
static void vregion_info(struct vregion *vr)
Definition vregion.h:194
static void * vregion_alloc_coherent_align(struct vregion *vr, size_t size, size_t alignment)
Definition vregion.h:188
static struct vregion * vregion_put(struct vregion *vr)
Definition vregion.h:172
static void * vregion_alloc_align(struct vregion *vr, size_t size, size_t alignment)
Definition vregion.h:184
vregion_mem_type
Memory types for virtual region allocations.
Definition vregion.h:26
@ VREGION_MEM_TYPE_INVALID
Definition vregion.h:29
@ VREGION_MEM_TYPE_INTERIM
Definition vregion.h:27
@ VREGION_MEM_TYPE_LIFETIME
Definition vregion.h:28
static struct vregion * vregion_create(size_t memsize)
Definition vregion.h:159
static struct vregion * vregion_create_map(uintptr_t *vreg_start, size_t *vreg_size)
Definition vregion.h:163
static void vregion_set_interim(struct vregion *vr)
Definition vregion.h:167
static struct vregion * vregion_get(struct vregion *vr)
Definition vregion.h:168
static void * vregion_alloc_coherent(struct vregion *vr, size_t size)
Definition vregion.h:180
static bool vregion_verify(struct vregion *vr)
Definition vregion.h:200
static void vregion_mem_info(struct vregion *vr, size_t *size, uintptr_t *start)
Definition vregion.h:195
static void vregion_free(struct vregion *vr, void *ptr)
Definition vregion.h:193
static void * vregion_alloc(struct vregion *vr, size_t size)
Definition vregion.h:176