Lines Matching refs:adj_start

457 	u64 adj_start, adj_end;  in drm_mm_reserve_node()  local
469 adj_start = hole_start = __drm_mm_hole_node_start(hole); in drm_mm_reserve_node()
473 mm->color_adjust(hole, node->color, &adj_start, &adj_end); in drm_mm_reserve_node()
475 if (adj_start > node->start || adj_end < end) in drm_mm_reserve_node()
548 u64 adj_start, adj_end; in drm_mm_insert_node_in_range() local
562 adj_start = max(col_start, range_start); in drm_mm_insert_node_in_range()
565 if (adj_end <= adj_start || adj_end - adj_start < size) in drm_mm_insert_node_in_range()
569 adj_start = adj_end - size; in drm_mm_insert_node_in_range()
575 rem = adj_start & remainder_mask; in drm_mm_insert_node_in_range()
577 div64_u64_rem(adj_start, alignment, &rem); in drm_mm_insert_node_in_range()
579 adj_start -= rem; in drm_mm_insert_node_in_range()
581 adj_start += alignment; in drm_mm_insert_node_in_range()
583 if (adj_start < max(col_start, range_start) || in drm_mm_insert_node_in_range()
584 min(col_end, range_end) - adj_start < size) in drm_mm_insert_node_in_range()
587 if (adj_end <= adj_start || in drm_mm_insert_node_in_range()
588 adj_end - adj_start < size) in drm_mm_insert_node_in_range()
595 node->start = adj_start; in drm_mm_insert_node_in_range()
604 if (adj_start > hole_start) in drm_mm_insert_node_in_range()
606 if (adj_start + size < hole_end) in drm_mm_insert_node_in_range()
790 u64 adj_start, adj_end; in drm_mm_scan_add_block() local
815 adj_start = max(col_start, scan->range_start); in drm_mm_scan_add_block()
817 if (adj_end <= adj_start || adj_end - adj_start < scan->size) in drm_mm_scan_add_block()
821 adj_start = adj_end - scan->size; in drm_mm_scan_add_block()
827 rem = adj_start & scan->remainder_mask; in drm_mm_scan_add_block()
829 div64_u64_rem(adj_start, scan->alignment, &rem); in drm_mm_scan_add_block()
831 adj_start -= rem; in drm_mm_scan_add_block()
833 adj_start += scan->alignment; in drm_mm_scan_add_block()
834 if (adj_start < max(col_start, scan->range_start) || in drm_mm_scan_add_block()
835 min(col_end, scan->range_end) - adj_start < scan->size) in drm_mm_scan_add_block()
838 if (adj_end <= adj_start || in drm_mm_scan_add_block()
839 adj_end - adj_start < scan->size) in drm_mm_scan_add_block()
844 scan->hit_start = adj_start; in drm_mm_scan_add_block()
845 scan->hit_end = adj_start + scan->size; in drm_mm_scan_add_block()