Lines Matching +full:mem +full:- +full:array
1 /* Copyright (c) 2008-2012 Freescale Semiconductor, Inc
67 * +-----------+----------+---------------------------+-----------+-----------+
71 * +-----------+----------+---------------------------+-----------+-----------+
88 uint8_t **p_BlocksStack; /* Array of pointers to blocks */
100 void *p_MemDbg; /* MEM debug database (MEM leaks detection) */
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.
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.
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.
189 @Param[in] h_Mem - Handle to memory segment.
200 @Param[in] h_Mem - Handle to memory 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
225 uint16_t MEM_GetN(t_Handle h_Mem, uint32_t num, void *array[]);
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)
263 #error "Memory-Leaks-Debug option is supported only for freescale CodeWarrior"
269 @Description Report MEM object leaks.
272 but it can also be invoked while the MEM object is alive.
274 @Param[in] h_Mem - Handle to memory segment.
285 @Description Get base of MEM
287 #define MEM_GetBase(h_Mem) ((t_MemorySegment *)(h_Mem))->p_Bases[0]
290 @Description Get size of MEM block
292 #define MEM_GetSize(h_Mem) ((t_MemorySegment *)(h_Mem))->dataSize
295 @Description Get prefix size of MEM block
297 #define MEM_GetPrefixSize(h_Mem) ((t_MemorySegment *)(h_Mem))->prefixSize
300 @Description Get postfix size of MEM block
302 #define MEM_GetPostfixSize(h_Mem) ((t_MemorySegment *)(h_Mem))->postfixSize
305 @Description Get alignment of MEM block (in bytes)
307 #define MEM_GetAlignment(h_Mem) ((t_MemorySegment *)(h_Mem))->alignment
312 #define MEM_GetNumOfBlocks(h_Mem) ((t_MemorySegment *)(h_Mem))->num
314 /** @} */ /* end of MEM group */