Lines Matching refs:alignment
242 * xge_hal_check_alignment - Check buffer alignment and calculate the
246 * @alignment: Alignment "granularity" (see below), in bytes.
250 * Check buffer alignment and calculate "misaligned" portion, if exists.
252 * the specified @alignment. If this is the case,
257 * may or may not be equal @alignment. The difference between these two
258 * arguments is that the @alignment is used to make the decision: aligned
262 * @alignment=8 and @copy_size=64 will work okay on AMD Opteron boxes.
264 * Note: @copy_size should be a multiple of @alignment. In many practical
265 * cases @copy_size and @alignment will probably be equal.
270 xge_hal_check_alignment(dma_addr_t dma_pointer, int size, int alignment,
275 misaligned_size = (int)(dma_pointer & (alignment - 1));