Lines Matching refs:new_pkey
568 int new_pkey = alloc_pkey(); in alloc_random_pkey() local
569 if (new_pkey < 0) in alloc_random_pkey()
571 alloced_pkeys[nr_alloced++] = new_pkey; in alloc_random_pkey()
993 int new_pkey = alloc_pkey(); in test_pkey_alloc_free_attach_pkey0() local
994 pkey_assert(new_pkey != 0); in test_pkey_alloc_free_attach_pkey0()
996 if (new_pkey < 0) in test_pkey_alloc_free_attach_pkey0()
998 alloced_pkeys[nr_alloced++] = new_pkey; in test_pkey_alloc_free_attach_pkey0()
1221 int new_pkey; in test_pkey_alloc_exhaust() local
1223 new_pkey = alloc_pkey(); in test_pkey_alloc_exhaust()
1230 if ((new_pkey == -1) && (errno == ENOSPC)) { in test_pkey_alloc_exhaust()
1240 allocated_pkeys[nr_allocated_pkeys++] = new_pkey; in test_pkey_alloc_exhaust()
1327 int new_pkey = alloc_pkey(); in test_pkey_init_state() local
1329 if (new_pkey < 0) in test_pkey_init_state()
1331 allocated_pkeys[nr_allocated_pkeys++] = new_pkey; in test_pkey_init_state()