Lines Matching +full:segment +full:-
1 /* Copyright (c) 2008-2012 Freescale Semiconductor, Inc
67 * +-----------+----------+---------------------------+-----------+-----------+
71 * +-----------+----------+---------------------------+-----------+-----------+
80 @Description Memory Segment structure
86 /* The segment's name */
96 uint32_t num; /* Number of blocks in segment */
111 @Description Create a new memory segment.
113 @Param[in] name - Name of memory partition.
114 @Param[in] p_Handle - Handle to new segment is returned through here.
115 @Param[in] num - Number of blocks in new segment.
116 @Param[in] dataSize - Size of blocks in segment.
117 @Param[in] prefixSize - How many bytes to allocate before the data.
118 @Param[in] postfixSize - How many bytes to allocate after the data.
119 @Param[in] alignment - Requested alignment for data field (in bytes).
121 @Return E_OK - success, E_NO_MEMORY - out of memory.
134 @Description Create a new memory segment.
136 @Param[in] name - Name of memory partition.
137 @Param[in] p_Handle - Handle to new segment is returned through here.
138 @Param[in] num - Number of blocks in new segment.
139 @Param[in] dataSize - Size of blocks in segment.
140 @Param[in] prefixSize - How many bytes to allocate before the data.
141 @Param[in] postfixSize - How many bytes to allocate after the data.
142 @Param[in] alignment - Requested alignment for data field (in bytes).
143 @Param[in] memPartitionId - Memory partition ID for allocation.
144 @Param[in] consecutiveMem - Whether to allocate the memory blocks
147 @Return E_OK - success, E_NO_MEMORY - out of memory.
162 @Description Create a new memory segment with a specified base address.
164 @Param[in] name - Name of memory partition.
165 @Param[in] p_Handle - Handle to new segment is returned through here.
166 @Param[in] num - Number of blocks in new segment.
167 @Param[in] dataSize - Size of blocks in segment.
168 @Param[in] prefixSize - How many bytes to allocate before the data.
169 @Param[in] postfixSize - How many bytes to allocate after the data.
170 @Param[in] alignment - Requested alignment for data field (in bytes).
171 @Param[in] address - The required base address.
173 @Return E_OK - success, E_NO_MEMORY - out of memory.
187 @Description Free a specific memory segment.
189 @Param[in] h_Mem - Handle to memory segment.
198 @Description Get a block of memory from a segment.
200 @Param[in] h_Mem - Handle to memory segment.
209 @Description Get up to N blocks of memory from a segment.
211 The blocks are assumed to be of a fixed size (one size per segment).
213 @Param[in] h_Mem - Handle to memory segment.
214 @Param[in] num - Number of blocks to allocate.
215 @Param[out] array - Array of at least num pointers to which the addresses
230 @Description Put a block of memory back to a segment.
232 @Param[in] h_Mem - Handle to memory segment.
233 @Param[in] p_Block - The block to return.
247 @Param[in] num - The number of blocks in the segment.
248 @Param[in] dataSize - Size of block to get.
249 @Param[in] prefixSize - The prefix size
250 @Param postfixSize - The postfix size
251 @Param[in] alignment - The requested alignment value (in bytes)
253 @Return The memory block size a segment with the given attributes needs.
263 #error "Memory-Leaks-Debug option is supported only for freescale CodeWarrior"
274 @Param[in] h_Mem - Handle to memory segment.
287 #define MEM_GetBase(h_Mem) ((t_MemorySegment *)(h_Mem))->p_Bases[0]
292 #define MEM_GetSize(h_Mem) ((t_MemorySegment *)(h_Mem))->dataSize
297 #define MEM_GetPrefixSize(h_Mem) ((t_MemorySegment *)(h_Mem))->prefixSize
302 #define MEM_GetPostfixSize(h_Mem) ((t_MemorySegment *)(h_Mem))->postfixSize
307 #define MEM_GetAlignment(h_Mem) ((t_MemorySegment *)(h_Mem))->alignment
310 @Description Get the number of blocks in the segment
312 #define MEM_GetNumOfBlocks(h_Mem) ((t_MemorySegment *)(h_Mem))->num