Lines Matching refs:alloced_pkeys
554 int alloced_pkeys[NR_PKEYS]; in alloc_random_pkey() local
557 memset(alloced_pkeys, 0, sizeof(alloced_pkeys)); in alloc_random_pkey()
565 alloced_pkeys[nr_alloced++] = new_pkey; in alloc_random_pkey()
571 ret = alloced_pkeys[random_index]; in alloc_random_pkey()
573 alloced_pkeys[random_index] = 0; in alloc_random_pkey()
578 if (!alloced_pkeys[i]) in alloc_random_pkey()
580 free_ret = sys_pkey_free(alloced_pkeys[i]); in alloc_random_pkey()
961 int alloced_pkeys[NR_PKEYS]; in test_pkey_alloc_free_attach_pkey0() local
984 alloced_pkeys[nr_alloced++] = new_pkey; in test_pkey_alloc_free_attach_pkey0()
990 if (!alloced_pkeys[i]) in test_pkey_alloc_free_attach_pkey0()
992 free_ret = sys_pkey_free(alloced_pkeys[i]); in test_pkey_alloc_free_attach_pkey0()