Home
last modified time | relevance | path

Searched refs:random_index (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dprotection_keys.c562 int random_index; in alloc_random_pkey() local
576 random_index = rand() % nr_alloced; in alloc_random_pkey()
577 ret = alloced_pkeys[random_index]; in alloc_random_pkey()
579 alloced_pkeys[random_index] = 0; in alloc_random_pkey()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dprotection_keys.c554 int random_index; in alloc_random_pkey() local
568 random_index = rand() % nr_alloced; in alloc_random_pkey()
569 ret = alloced_pkeys[random_index]; in alloc_random_pkey()
571 alloced_pkeys[random_index] = 0; in alloc_random_pkey()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dintel_migrate.c281 static int random_index(unsigned int max) in random_index() function
299 return intel_context_create(engines[random_index(count)]); in __migrate_engines()

Completed in 7 milliseconds