rnd_state
struct rnd_state rand_state;
static char *generate_random_sgl_divisions(struct rnd_state *rng,
static void generate_random_testvec_config(struct rnd_state *rng,
struct rnd_state rng;
static void generate_random_hash_testvec(struct rnd_state *rng,
struct rnd_state rng;
struct rnd_state rng;
struct rnd_state rng;
static void mutate_aead_message(struct rnd_state *rng,
static void generate_aead_message(struct rnd_state *rng,
static void generate_random_aead_testvec(struct rnd_state *rng,
struct rnd_state rng;
static void generate_random_cipher_testvec(struct rnd_state *rng,
struct rnd_state rng;
static inline void init_rnd_state(struct rnd_state *rng)
static inline u8 prandom_u8(struct rnd_state *rng)
static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil)
static inline bool prandom_bool(struct rnd_state *rng)
static inline u32 prandom_u32_inclusive(struct rnd_state *rng,
static unsigned int generate_random_length(struct rnd_state *rng,
static void flip_random_bit(struct rnd_state *rng, u8 *buf, size_t size)
static void flip_random_byte(struct rnd_state *rng, u8 *buf, size_t size)
static void mutate_buffer(struct rnd_state *rng, u8 *buf, size_t size)
static void generate_random_bytes(struct rnd_state *rng, u8 *buf, size_t count)
static u32 igt_random_size(struct rnd_state *prng,
struct rnd_state *prng)
struct rnd_state *prng)
tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng)
struct rnd_state *prng)
static int tiled_blits_bounce(struct tiled_blits *t, struct rnd_state *prng)
struct rnd_state *prng)
random_engine(struct drm_i915_private *i915, struct rnd_state *prng)
struct rnd_state *prng)
static int random_range(struct rnd_state *rnd, int min, int max)
static int random_priority(struct rnd_state *rnd)
struct rnd_state prng;
struct rnd_state *prng)
static int __lrc_garbage(struct intel_engine_cs *engine, struct rnd_state *prng)
u32 sz, struct rnd_state *prng)
u32 sz, struct rnd_state *prng)
migrate_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng)
global_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng)
migrate_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng)
global_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng)
struct rnd_state prng;
struct rnd_state *prng,
static unsigned int random_engine(struct rnd_state *rnd)
struct rnd_state prng;
struct rnd_state prng;
struct rnd_state *prng)
struct rnd_state prng;
u64 i915_prandom_u64_state(struct rnd_state *rnd)
struct rnd_state *state)
struct rnd_state *state)
unsigned int *i915_random_order(unsigned int count, struct rnd_state *state)
u64 igt_random_offset(struct rnd_state *state,
struct rnd_state state__; \
struct rnd_state name__ = I915_RND_STATE_INITIALIZER(i915_selftest.random_seed)
struct rnd_state name__ = I915_RND_STATE_INITIALIZER(prandom_u32_state(&(parent__)))
u64 i915_prandom_u64_state(struct rnd_state *rnd);
static inline u32 i915_prandom_u32_max_state(u32 ep_ro, struct rnd_state *state)
struct rnd_state *state);
struct rnd_state *state);
struct rnd_state *state);
u64 igt_random_offset(struct rnd_state *state,
struct rnd_state *prng)
struct rnd_state *rnd,
struct rnd_state *rnd)
struct rnd_state *rnd)
struct rnd_state *rnd)
struct rnd_state *rnd)
struct rnd_state *rnd)
struct rnd_state *rnd,
struct rnd_state prng;
struct rnd_state prng;
struct rnd_state *rnd);
struct rnd_state *rnd,
u32 drm_prandom_u32_max_state(u32 ep_ro, struct rnd_state *state)
struct rnd_state *state)
unsigned int *drm_random_order(unsigned int count, struct rnd_state *state)
struct rnd_state state__; \
struct rnd_state name__ = DRM_RND_STATE_INITIALIZER(seed__)
struct rnd_state *state);
struct rnd_state *state);
struct rnd_state *state);
static int shrink_test_fill_random(struct xe_bo *bo, struct rnd_state *state,
unsigned int bo_nr, struct rnd_state *state,
struct rnd_state prng;
struct rnd_state prng;
prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt);
prandom_bytes_state(&rnd_state, writebuf, len);
prandom_seed_state(&rnd_state, 1);
prandom_seed_state(&rnd_state, 1);
prandom_seed_state(&rnd_state, 3);
static struct rnd_state rnd_state;
prandom_seed_state(&rnd_state, 3);
prandom_seed_state(&rnd_state, 5);
prandom_seed_state(&rnd_state, 5);
prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt);
prandom_seed_state(&rnd_state, 11);
prandom_bytes_state(&rnd_state, writebuf, sz * cnt);
prandom_seed_state(&rnd_state, 11);
prandom_bytes_state(&rnd_state, writebuf, mtd->oobavail * 2);
prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize);
rnd_state = old_state;
prandom_bytes_state(&rnd_state, writebuf, pgsize);
prandom_bytes_state(&rnd_state, writebuf, pgsize);
prandom_bytes_state(&rnd_state, writebuf, pgsize);
prandom_seed_state(&rnd_state, 1);
static struct rnd_state rnd_state;
prandom_seed_state(&rnd_state, 1);
prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize);
prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize);
struct rnd_state old_state = rnd_state;
prandom_bytes_state(&rnd_state, writebuf, subpgsize);
prandom_bytes_state(&rnd_state, writebuf, subpgsize);
prandom_bytes_state(&rnd_state, writebuf, subpgsize * k);
prandom_seed_state(&rnd_state, 1);
prandom_seed_state(&rnd_state, 1);
static struct rnd_state rnd_state;
prandom_seed_state(&rnd_state, 3);
prandom_seed_state(&rnd_state, 3);
prandom_bytes_state(&rnd_state, writebuf, subpgsize);
prandom_bytes_state(&rnd_state, writebuf, subpgsize);
prandom_bytes_state(&rnd_state, writebuf, subpgsize * k);
port_id = prandom_u32_state(&fip->rnd_state) & 0xffff;
prandom_seed_state(&fip->rnd_state, fip->lp->wwpn);
u32 prandom_u32_state(struct rnd_state *state);
void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state);
static inline void prandom_seed_state(struct rnd_state *state, u64 seed)
struct rnd_state rnd_state;
static DEFINE_PER_CPU(struct rnd_state, bpf_user_rnd_state);
struct rnd_state *state;
struct rnd_state rng;
DEFINE_PER_CPU(struct rnd_state, sched_rnd_state);
DECLARE_PER_CPU(struct rnd_state, sched_rnd_state);
static struct rnd_state rng;
static DEFINE_PER_CPU(struct rnd_state, fault_rnd_state);
struct rnd_state *state;
static struct rnd_state rnd;
struct rnd_state rnd;
void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state)
struct rnd_state *state = per_cpu_ptr(pcpu_state, i);
static void prandom_state_selftest_seed(struct rnd_state *state, u32 seed)
struct rnd_state state;
struct rnd_state state;
u32 prandom_u32_state(struct rnd_state *state)
void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes)
static void prandom_warmup(struct rnd_state *state)
static struct rnd_state rnd;
struct rnd_state rnd;
struct rnd_state rnd;
static struct rnd_state rnd_state;
u32 n_bits = hweight32(prandom_u32_state(&rnd_state)) % (max_bits + 1);
return prandom_u32_state(&rnd_state) & GENMASK(n_bits, 0);
u32 rand1 = prandom_u32_state(&rnd_state);
u64 val = (u64)prandom_u32_state(&rnd_state) * rand1;
prandom_seed_state(&rnd_state, 3141592653589793238ULL);
static DEFINE_PER_CPU(struct rnd_state, slab_rnd_state);
struct rnd_state *state;
struct rnd_state prng_state;
struct rnd_state *s = &p->prng_state;
struct rnd_state *s = &q->prng.prng_state;
static inline void prandom_seed_state(struct rnd_state *state, u64 seed)
static inline u32 prandom_u32_state(struct rnd_state *state)