12 #include "../../mlx_utils/include/private/mlx_memory_priv.h" static __always_inline void struct dma_mapping size_t size_t align
mlx_status mlx_memory_cmp_priv(IN mlx_utils *utils __attribute__((unused)), IN mlx_void *first_block, IN mlx_void *second_block, IN mlx_size size, OUT mlx_uint32 *out)
uint8_t size
Entry size (in 32-bit words)
static void *__malloc malloc_phys(size_t size, size_t phys_align)
Allocate memory with specified physical alignment.
mlx_status mlx_memory_free_priv(IN mlx_utils *utils, IN mlx_void *ptr)
mlx_status mlx_memory_cpy_priv(IN mlx_utils *utils __attribute__((unused)), OUT mlx_void *destination_buffer, IN mlx_void *source_buffer, IN mlx_size length)
mlx_status mlx_memory_free_dma_priv(IN mlx_utils *utils, IN mlx_size size, IN mlx_void *ptr)
mlx_status mlx_memory_set_priv(IN mlx_utils *utils __attribute__((unused)), IN mlx_void *block, IN mlx_int32 value, IN mlx_size size)
Dynamic memory allocation.
mlx_status mlx_memory_map_dma_priv(IN mlx_utils *utils, IN mlx_void *addr, IN mlx_size number_of_bytes, OUT mlx_physical_address *phys_addr, OUT mlx_void **mapping)
void * memcpy(void *dest, const void *src, size_t len) __nonnull
static __always_inline unsigned long virt_to_bus(volatile const void *addr)
Convert virtual address to a bus address.
#define be32_to_cpu(value)
mlx_status mlx_memory_ummap_dma_priv(IN mlx_utils *utils, IN mlx_void *mapping)
pseudo_bit_t value[0x00020]
mlx_status mlx_memory_alloc_dma_priv(IN mlx_utils *utils, IN mlx_size size, IN mlx_size align, OUT mlx_void **ptr)
#define __unused
Declare a variable or data structure as unused.
A 16-bit general register.
mlx_status mlx_memory_alloc_priv(IN mlx_utils *utils, IN mlx_size size, OUT mlx_void **ptr)
static void(* free)(struct refcnt *refcnt))
void * zalloc(size_t size)
Allocate cleared memory.
void * malloc(size_t size)
Allocate memory.
mlx_status mlx_memory_be32_to_cpu_priv(IN mlx_utils *utils __attribute__((unused)), IN mlx_uint32 source, IN mlx_uint32 *destination)
#define cpu_to_be32(value)
#define MLX_OUT_OF_RESOURCES
uint8_t block[3][8]
DES-encrypted blocks.
static void free_phys(void *ptr, size_t size)
Free memory allocated with malloc_phys()
int memcmp(const void *first, const void *second, size_t len)
Compare memory regions.
#define NULL
NULL pointer (VOID *)
unsigned long mlx_physical_address
mlx_status mlx_memory_zalloc_priv(IN mlx_utils *utils, IN mlx_size size, OUT mlx_void **ptr)
void * memset(void *dest, int character, size_t len) __nonnull
mlx_status mlx_memory_cpu_to_be32_priv(IN mlx_utils *utils __attribute__((unused)), IN mlx_uint32 source, IN mlx_uint32 *destination)