Lines Matching full:alignment

357  * blk_queue_alignment_offset - set physical block alignment offset
359 * @offset: alignment offset in bytes
483 * attempt to combine the values and ensure proper alignment.
486 * top device's block sizes and alignment offsets may be adjusted to
487 * ensure alignment with the bottom device. If no compatible sizes
495 unsigned int top, bottom, alignment, ret = 0; in blk_stack_limits() local
524 alignment = queue_limit_alignment_offset(b, start); in blk_stack_limits()
526 /* Bottom device has different alignment. Check that it is in blk_stack_limits()
527 * compatible with the current top alignment. in blk_stack_limits()
529 if (t->alignment_offset != alignment) { in blk_stack_limits()
533 bottom = max(b->physical_block_size, b->io_min) + alignment; in blk_stack_limits()
588 t->alignment_offset = lcm_not_zero(t->alignment_offset, alignment) in blk_stack_limits()
597 /* Discard alignment and granularity */ in blk_stack_limits()
599 alignment = queue_limit_discard_alignment(b, start); in blk_stack_limits()
602 t->discard_alignment != alignment) { in blk_stack_limits()
604 bottom = b->discard_granularity + alignment; in blk_stack_limits()
617 t->discard_alignment = lcm_not_zero(t->discard_alignment, alignment) % in blk_stack_limits()
711 * blk_queue_dma_alignment - set dma length and memory alignment
713 * @mask: alignment mask
716 * set required memory and length alignment for direct dma transactions.
727 * blk_queue_update_dma_alignment - update dma length and memory alignment
729 * @mask: alignment mask
732 * update required memory and length alignment for direct dma transactions.
733 * If the requested alignment is larger than the current alignment, then
734 * the current queue alignment is updated to the new value, otherwise it