Lines Matching refs:GFP_KERNEL

38 	assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0);  in idr_alloc_test()
39 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd); in idr_alloc_test()
52 id = idr_alloc_cyclic(&idr, item, 1, 0x4000, GFP_KERNEL); in idr_alloc_test()
64 idr_alloc(&idr, (void *)-1, 10, 11, GFP_KERNEL); in idr_replace_test()
83 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
88 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
94 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == i); in idr_null_test()
102 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 5); in idr_null_test()
114 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
123 assert(idr_alloc(&idr, NULL, 1, 0, GFP_KERNEL) == i); in idr_null_test()
135 idr_preload(GFP_KERNEL); in idr_nowait_test()
160 GFP_KERNEL) == indices[i]); in idr_get_next_test()
187 BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL)); in idr_u32_test1()
189 BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL) != -ENOSPC); in idr_u32_test1()
229 BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i); in idr_align_test()
235 BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i - 1); in idr_align_test()
241 BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i - 2); in idr_align_test()
247 BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i - 3); in idr_align_test()
253 BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != 0); in idr_align_test()
254 BUG_ON(idr_alloc(idr, &name[i + 1], 0, 0, GFP_KERNEL) != 1); in idr_align_test()
263 BUG_ON(idr_alloc(idr, NULL, 0, 0, GFP_KERNEL) != 0); in idr_align_test()
272 BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != 0); in idr_align_test()
273 BUG_ON(idr_alloc(idr, NULL, 0, 0, GFP_KERNEL) != 1); in idr_align_test()
291 idr_alloc(&find_idr, xa_mk_value(id), id, id + 1, GFP_KERNEL); in idr_throbber()
309 anchor_id + 1, GFP_KERNEL) != anchor_id); in idr_find_test_1()
347 assert(idr_alloc(&idr, item, 0, 20000, GFP_KERNEL) == i); in idr_checks()
350 assert(idr_alloc(&idr, DUMMY_PTR, 5, 30, GFP_KERNEL) < 0); in idr_checks()
365 assert(idr_alloc(&idr, DUMMY_PTR, 0, 0, GFP_KERNEL) == 0); in idr_checks()
368 assert(idr_alloc(&idr, DUMMY_PTR, 0, 0, GFP_KERNEL) == i); in idr_checks()
374 assert(idr_alloc(&idr, item, i, i + 10, GFP_KERNEL) == i); in idr_checks()
376 assert(idr_alloc(&idr, DUMMY_PTR, i - 2, i, GFP_KERNEL) == -ENOSPC); in idr_checks()
377 assert(idr_alloc(&idr, DUMMY_PTR, i - 2, i + 10, GFP_KERNEL) == -ENOSPC); in idr_checks()
394 id = idr_alloc_cyclic(&idr, item, 0, 0, GFP_KERNEL); in idr_checks()
404 assert(idr_alloc(&idr, item, 1, 20000, GFP_KERNEL) == i); in idr_checks()
465 id = ida_alloc(&ida, GFP_KERNEL); in ida_check_conv_user()
492 IDA_BUG_ON(&ida, ida_alloc_min(&ida, bit, GFP_KERNEL) in ida_check_random()
507 assert(ida_simple_get(&ida, 0, 20000, GFP_KERNEL) == i); in ida_simple_get_remove_test()
509 assert(ida_simple_get(&ida, 5, 30, GFP_KERNEL) < 0); in ida_simple_get_remove_test()
548 ret = ida_alloc_range(ida, 128, 128, GFP_KERNEL); in ida_leak_fn()