Lines Matching +full:memory +full:- +full:to +full:- +full:memory

4  * SPDX-License-Identifier: Apache-2.0
11 * @brief Memory-Attr Interface
12 * @defgroup memory_attr_interface Memory-Attr Interface
19 #include <zephyr/dt-bindings/memory-attr/memory-attr.h>
38 * `zephyr,memory-attr`
41 * with the `zephyr,memory-attr` property. The macro is expanded once for each
45 * @param fn macro to invoke
51 * @brief memory-attr region structure.
53 * This structure represents the data gathered from DT about a memory-region
54 * marked with memory attributes.
57 /** Memory node full name */
59 /** Memory region physical address */
61 /** Memory region size */
63 /** Memory region attributes */
68 * @brief Get the list of memory regions.
70 * Get the list of enabled memory regions with their memory-attribute as
73 * @param region Pointer to pointer to the list of memory regions.
75 * @retval Number of memory regions returned in the parameter.
82 * This function is used to check if a given buffer with a given set of
83 * attributes fully match a memory region in terms of size and attributes.
85 * This is usually used to verify that a buffer has the expected attributes
86 * (for example the buffer is cacheable / non-cacheable or belongs to RAM /
89 * The expected set of attributes for the buffer is and-matched against the
90 * full set of attributes for the memory region it belongs to (bitmask). So the
92 * for the memory region (but the region can be marked also with other
100 * @retval -ENOSYS if the operation is not supported (for example if the MMU is enabled).
101 * @retval -ENOTSUP if the wrong parameters were passed.
102 * @retval -EINVAL if the buffer has the wrong set of attributes.
103 * @retval -ENOSPC if the buffer is too big for the region it belongs to.
104 * @retval -ENOBUFS if the buffer is entirely allocated outside a memory region.