Lines Matching refs:adj_start
454 u64 adj_start, adj_end; in drm_mm_reserve_node() local
466 adj_start = hole_start = __drm_mm_hole_node_start(hole); in drm_mm_reserve_node()
470 mm->color_adjust(hole, node->color, &adj_start, &adj_end); in drm_mm_reserve_node()
472 if (adj_start > node->start || adj_end < end) in drm_mm_reserve_node()
545 u64 adj_start, adj_end; in drm_mm_insert_node_in_range() local
559 adj_start = max(col_start, range_start); in drm_mm_insert_node_in_range()
562 if (adj_end <= adj_start || adj_end - adj_start < size) in drm_mm_insert_node_in_range()
566 adj_start = adj_end - size; in drm_mm_insert_node_in_range()
572 rem = adj_start & remainder_mask; in drm_mm_insert_node_in_range()
574 div64_u64_rem(adj_start, alignment, &rem); in drm_mm_insert_node_in_range()
576 adj_start -= rem; in drm_mm_insert_node_in_range()
578 adj_start += alignment; in drm_mm_insert_node_in_range()
580 if (adj_start < max(col_start, range_start) || in drm_mm_insert_node_in_range()
581 min(col_end, range_end) - adj_start < size) in drm_mm_insert_node_in_range()
584 if (adj_end <= adj_start || in drm_mm_insert_node_in_range()
585 adj_end - adj_start < size) in drm_mm_insert_node_in_range()
592 node->start = adj_start; in drm_mm_insert_node_in_range()
601 if (adj_start > hole_start) in drm_mm_insert_node_in_range()
603 if (adj_start + size < hole_end) in drm_mm_insert_node_in_range()
787 u64 adj_start, adj_end; in drm_mm_scan_add_block() local
812 adj_start = max(col_start, scan->range_start); in drm_mm_scan_add_block()
814 if (adj_end <= adj_start || adj_end - adj_start < scan->size) in drm_mm_scan_add_block()
818 adj_start = adj_end - scan->size; in drm_mm_scan_add_block()
824 rem = adj_start & scan->remainder_mask; in drm_mm_scan_add_block()
826 div64_u64_rem(adj_start, scan->alignment, &rem); in drm_mm_scan_add_block()
828 adj_start -= rem; in drm_mm_scan_add_block()
830 adj_start += scan->alignment; in drm_mm_scan_add_block()
831 if (adj_start < max(col_start, scan->range_start) || in drm_mm_scan_add_block()
832 min(col_end, scan->range_end) - adj_start < scan->size) in drm_mm_scan_add_block()
835 if (adj_end <= adj_start || in drm_mm_scan_add_block()
836 adj_end - adj_start < scan->size) in drm_mm_scan_add_block()
841 scan->hit_start = adj_start; in drm_mm_scan_add_block()
842 scan->hit_end = adj_start + scan->size; in drm_mm_scan_add_block()