Lines Matching refs:bias_end

26 	u32 mm_size, size, ps, bias_size, bias_start, bias_end, bias_rem;  in drm_test_buddy_alloc_range_bias()  local
60 bias_end = bias_start + bias_size; in drm_test_buddy_alloc_range_bias()
66 bias_end, bias_size + ps, bias_size, in drm_test_buddy_alloc_range_bias()
70 bias_start, bias_end, bias_size, bias_size); in drm_test_buddy_alloc_range_bias()
75 bias_end, bias_size + ps, ps, in drm_test_buddy_alloc_range_bias()
79 bias_start, bias_end, bias_size + ps, ps); in drm_test_buddy_alloc_range_bias()
84 bias_end, bias_size, ps, in drm_test_buddy_alloc_range_bias()
88 bias_start + ps, bias_end, bias_size, ps); in drm_test_buddy_alloc_range_bias()
93 bias_end - ps, in drm_test_buddy_alloc_range_bias()
98 bias_start + ps, bias_end - ps, bias_size >> 1, bias_size >> 1); in drm_test_buddy_alloc_range_bias()
103 bias_end, bias_size, bias_size, in drm_test_buddy_alloc_range_bias()
107 bias_start, bias_end, bias_size, bias_size); in drm_test_buddy_alloc_range_bias()
113 bias_end, ps, bias_size, in drm_test_buddy_alloc_range_bias()
117 bias_start, bias_end, ps, bias_size); in drm_test_buddy_alloc_range_bias()
125 bias_end, size, ps, in drm_test_buddy_alloc_range_bias()
129 bias_start, bias_end, size, ps); in drm_test_buddy_alloc_range_bias()
135 bias_end, bias_rem + ps, ps, in drm_test_buddy_alloc_range_bias()
139 bias_start, bias_end, bias_rem + ps, ps); in drm_test_buddy_alloc_range_bias()
148 bias_end, size, ps, in drm_test_buddy_alloc_range_bias()
152 bias_start, bias_end, size, ps); in drm_test_buddy_alloc_range_bias()
181 bias_end = round_up(bias_start + prandom_u32_state(&prng) % (mm_size - bias_start), ps); in drm_test_buddy_alloc_range_bias()
182 bias_end = max(bias_end, bias_start + ps); in drm_test_buddy_alloc_range_bias()
183 bias_rem = bias_end - bias_start; in drm_test_buddy_alloc_range_bias()
190 bias_end, size, ps, in drm_test_buddy_alloc_range_bias()
194 bias_start, bias_end, size, ps); in drm_test_buddy_alloc_range_bias()
203 u32 old_bias_end = bias_end; in drm_test_buddy_alloc_range_bias()
207 if (bias_end != mm_size) in drm_test_buddy_alloc_range_bias()
208 bias_end += round_up(prandom_u32_state(&prng) % (mm_size - bias_end), ps); in drm_test_buddy_alloc_range_bias()
211 bias_rem += bias_end - old_bias_end; in drm_test_buddy_alloc_range_bias()
212 } while (!bias_rem && (bias_start || bias_end != mm_size)); in drm_test_buddy_alloc_range_bias()
216 KUNIT_ASSERT_EQ(test, bias_end, mm_size); in drm_test_buddy_alloc_range_bias()
218 drm_buddy_alloc_blocks(&mm, bias_start, bias_end, in drm_test_buddy_alloc_range_bias()
223 bias_start, bias_end, ps); in drm_test_buddy_alloc_range_bias()
239 bias_end = round_up(bias_start + prandom_u32_state(&prng) % (mm_size - bias_start), ps); in drm_test_buddy_alloc_range_bias()
240 bias_end = max(bias_end, bias_start + ps); in drm_test_buddy_alloc_range_bias()
241 bias_rem = bias_end - bias_start; in drm_test_buddy_alloc_range_bias()
248 bias_end, size, ps, in drm_test_buddy_alloc_range_bias()
252 bias_start, bias_end, size, ps); in drm_test_buddy_alloc_range_bias()