Lines Matching full:alignment

48 #define ALIGN_BLOCK(p_Block, prefixSize, alignment)                 \
51 p_Block += PAD_ALIGNMENT((alignment), (uintptr_t)(p_Block)); \
182 ALIGN_BLOCK(p_Temp, p_Mem->prefixSize, p_Mem->alignment);
185 p_Temp += p_Mem->alignment;
213 uint16_t alignment)
217 /* Make sure that the alignment is at least 4 */
218 if (alignment < 4)
220 alignment = 4;
226 pad2 = PAD_ALIGNMENT(alignment, blockSize);
230 return ((num * blockSize) + alignment);
240 uint16_t alignment)
250 alignment);
264 alignment,
284 uint16_t alignment,
302 /* make sure that the alignment is at least 4 and power of 2 */
303 if (alignment < 4)
305 alignment = 4;
307 else if (!POWER_OF_2(alignment))
309 RETURN_ERROR(MAJOR, E_INVALID_VALUE, ("Alignment (should be power of 2)"));
346 p_Mem->alignment = alignment;
358 /* Make sure the entire size is a multiple of alignment */
359 endPad = (uint16_t)PAD_ALIGNMENT(alignment, (alignPad + prefixSize + dataSize + postfixSize));
363 ALIGN_BLOCK(p_Blocks, prefixSize, alignment);
400 uint16_t alignment,
418 /* make sure that the alignment is at least 4 and power of 2 */
419 if (alignment < 4)
421 alignment = 4;
423 else if (!POWER_OF_2(alignment))
425 RETURN_ERROR(MAJOR, E_INVALID_VALUE, ("Alignment (should be power of 2)"));
461 p_Mem->alignment = alignment;
471 /* Make sure the entire size is a multiple of alignment */
472 endPad = (uint16_t)PAD_ALIGNMENT(alignment, alignPad + prefixSize + dataSize + postfixSize);
480 /* |alignment - 1| bytes at most will be discarded in the beginning of the
481 received segment for alignment reasons, therefore the allocation is of:
482 (alignment + (num * block size)). */
484 XX_MallocSmart((uint32_t)((num * blockSize) + alignment), memPartitionId, 1);
496 ALIGN_BLOCK(p_Blocks, prefixSize, alignment);
512 /* |alignment - 1| bytes at most will be discarded in the beginning of the
513 received segment for alignment reasons, therefore the allocation is of:
514 (alignment + block size). */
518 XX_MallocSmart((uint32_t)(blockSize + alignment), memPartitionId, 1);
529 ALIGN_BLOCK(p_Block, prefixSize, alignment);
533 We know we have them because alignment is at least 4 bytes. */
535 p_Block += alignment;
750 ALIGN_BLOCK(p_Block, p_Mem->prefixSize, p_Mem->alignment);
753 p_Block += p_Mem->alignment;