/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/ |
H A D | huge_gem_object.c | 30 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in huge_get_pages() macro 37 pages = kmalloc(sizeof(*pages), GFP); in huge_get_pages() 41 if (sg_alloc_table(pages, npages, GFP)) { in huge_get_pages() 50 page = alloc_page(GFP | __GFP_HIGHMEM); in huge_get_pages() 78 #undef GFP in huge_get_pages() macro
|
H A D | huge_pages.c | 61 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in get_huge_pages() macro 68 st = kmalloc(sizeof(*st), GFP); in get_huge_pages() 72 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in get_huge_pages() 96 page = alloc_pages(GFP | __GFP_ZERO, order); in get_huge_pages() 193 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages() 197 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in fake_get_huge_pages() 246 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages_single() 250 if (sg_alloc_table(st, 1, GFP)) { in fake_get_huge_pages_single() 269 #undef GFP in fake_get_huge_pages_single() macro
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/selftests/ |
H A D | huge_gem_object.c | 30 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_RETRY_MAYFAIL) in huge_get_pages() macro 41 pages = kmalloc(sizeof(*pages), GFP); in huge_get_pages() 45 if (sg_alloc_table(pages, npages, GFP)) { in huge_get_pages() 54 page = alloc_page(GFP | __GFP_HIGHMEM); in huge_get_pages() 82 #undef GFP in huge_get_pages() macro
|
H A D | huge_pages.c | 80 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in get_huge_pages() macro 91 st = kmalloc(sizeof(*st), GFP); in get_huge_pages() 95 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in get_huge_pages() 119 page = alloc_pages(GFP | __GFP_ZERO, order); in get_huge_pages() 223 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages() 227 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in fake_get_huge_pages() 273 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages_single() 277 if (sg_alloc_table(st, 1, GFP)) { in fake_get_huge_pages_single() 296 #undef GFP in fake_get_huge_pages_single() macro
|
/kernel/linux/linux-5.10/security/apparmor/include/ |
H A D | lib.h | 213 * @GFP: memory allocation type to use 222 #define fn_label_build(L, P, GFP, FN) \ 233 if (vec_setup(label, __lvec, (L)->size, (GFP))) { \ 247 if (!vec_setup(profile, __pvec, __count, (GFP))) { \ 255 __count, (GFP)); \ 287 #define fn_label_build_in_ns(L, P, GFP, NS_FN, OTHER_FN) \ 289 fn_label_build((L), (P), (GFP), \
|
H A D | label.h | 28 #define vec_setup(T, V, N, GFP) \ 36 (V) = kzalloc(sizeof(struct aa_ ## T *) * (N), (GFP)); \
|
/kernel/linux/linux-6.6/security/apparmor/include/ |
H A D | lib.h | 224 * @GFP: memory allocation type to use 233 #define fn_label_build(L, P, GFP, FN) \ 244 if (vec_setup(label, __lvec, (L)->size, (GFP))) { \ 258 if (!vec_setup(profile, __pvec, __count, (GFP))) { \ 266 __count, (GFP)); \ 298 #define fn_label_build_in_ns(L, P, GFP, NS_FN, OTHER_FN) \ 300 fn_label_build((L), (P), (GFP), \
|
H A D | label.h | 28 #define vec_setup(T, V, N, GFP) \ 36 (V) = kzalloc(sizeof(struct aa_ ## T *) * (N), (GFP)); \
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
H A D | i915_gem_gtt.c | 54 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in fake_get_pages() macro 61 pages = kmalloc(sizeof(*pages), GFP); in fake_get_pages() 66 if (sg_alloc_table(pages, rem, GFP)) { in fake_get_pages() 89 #undef GFP in fake_get_pages() macro
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/ |
H A D | i915_gem_gtt.c | 60 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in fake_get_pages() macro 66 pages = kmalloc(sizeof(*pages), GFP); in fake_get_pages() 77 if (sg_alloc_table(pages, rem, GFP)) { in fake_get_pages() 98 #undef GFP in fake_get_pages() macro
|