Lines Matching +full:memory +full:- +full:region
1 /* SPDX-License-Identifier: GPL-2.0+ */
27 uint32_t used; /* Number of bytes used in region */
40 * @return 0 if ok, -ve on error
45 * ofnode_decode_region() - Decode a memory region from a node
47 * Look up a property in a node which contains a memory region address and
51 * 32-bit machines.
55 * @param basep Returns base address of region
56 * @param size Returns size of region
57 * @return 0 if ok, -1 on error (property not found)
63 * ofnode_decode_memory_region()- Decode a named region within a memory bank
65 * This function handles selection of a memory region. The region is
66 * specified as an offset/size within a particular type of memory.
70 * <mem_type>-memory<suffix> for the name of the memory bank
71 * <mem_type>-offset<suffix> for the offset in that bank
74 * that the region is entirely within the memory bank.5
76 * @param node ofnode containing the properties (-1 for /config)
77 * @param mem_type Type of memory to use, which is a name, such as
78 * "u-boot" or "kernel".
79 * @param suffix String to append to the memory/offset
81 * @param basep Returns base of region
82 * @param sizep Returns size of region
83 * @return 0 if OK, -ive on error