Lines Matching full:prng
165 I915_RND_STATE(prng); in igt_mock_reserve()
170 order = i915_random_order(count, &prng); in igt_mock_reserve()
184 u64 size = i915_prandom_u32_max_state(chunk_size, &prng); in igt_mock_reserve()
191 offset = igt_random_offset(&prng, 0, chunk_size, size, in igt_mock_reserve()
208 u32 size = i915_prandom_u32_max_state(cur_avail, &prng); in igt_mock_reserve()
243 I915_RND_STATE(prng); in igt_mock_contiguous()
279 target = i915_prandom_u64_state(&prng); in igt_mock_contiguous()
462 I915_RND_STATE(prng); in igt_mock_max_segment()
478 if (i915_prandom_u64_state(&prng) & 1) in igt_mock_max_segment()
565 I915_RND_STATE(prng); in igt_mock_io_size()
570 if (i915_prandom_u64_state(&prng) & 1) in igt_mock_io_size()
573 div64_u64_rem(i915_prandom_u64_state(&prng), SZ_8G, &total); in igt_mock_io_size()
577 div64_u64_rem(i915_prandom_u64_state(&prng), total - ps, &io_size); in igt_mock_io_size()
593 div64_u64_rem(i915_prandom_u64_state(&prng), rem, &size); in igt_mock_io_size()
632 div64_u64_rem(i915_prandom_u64_state(&prng), rem, &size); in igt_mock_io_size()
720 I915_RND_STATE(prng); in igt_gpu_write()
744 order = i915_random_order(count * count, &prng); in igt_gpu_write()
761 u32 rng = prandom_u32_state(&prng); in igt_gpu_write()
876 I915_RND_STATE(prng); in igt_lmem_create_cleared_cpu()
883 size = max_t(u32, PAGE_SIZE, i915_prandom_u32_max_state(SZ_32M, &prng)); in igt_lmem_create_cleared_cpu()
915 &prng); in igt_lmem_create_cleared_cpu()
932 val = prandom_u32_state(&prng); in igt_lmem_create_cleared_cpu()
961 I915_RND_STATE(prng); in igt_lmem_write_gpu()
975 sz = round_up(prandom_u32_state(&prng) % SZ_32M, PAGE_SIZE); in igt_lmem_write_gpu()
1002 struct rnd_state *prng) in random_engine_class() argument
1014 count = i915_prandom_u32_max_state(count, prng); in random_engine_class()
1022 I915_RND_STATE(prng); in igt_lmem_write_cpu()
1043 engine = random_engine_class(i915, I915_ENGINE_CLASS_COPY, &prng); in igt_lmem_write_cpu()
1049 sz = round_up(prandom_u32_state(&prng) % SZ_32M, PAGE_SIZE); in igt_lmem_write_cpu()
1091 order = i915_random_order(count * count, &prng); in igt_lmem_write_cpu()
1098 bytes[0] = igt_random_offset(&prng, 64, PAGE_SIZE - 64, 0, sizeof(u32)); in igt_lmem_write_cpu()
1117 offset = igt_random_offset(&prng, 0, obj->base.size, in igt_lmem_write_cpu()
1120 val = prandom_u32_state(&prng); in igt_lmem_write_cpu()
1128 dword = igt_random_offset(&prng, offset, in igt_lmem_write_cpu()