Home
last modified time | relevance | path

Searched refs:GFP (Results 1 – 14 of 14) sorted by relevance

/linux/Documentation/translations/zh_CN/core-api/
H A Dmemory-allocation.rst
H A Dgfp_mask-from-fs-io.rst
H A Dxarray.rst
H A Didr.rst
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Dhuge_gem_object.c30 #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()
H A Dhuge_pages.c80 #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()
/linux/security/apparmor/include/
H A Dlib.h245 * @GFP: memory allocation type to use
254 #define fn_label_build(L, P, GFP, FN) \ argument
265 if (vec_setup(label, __lvec, (L)->size, (GFP))) { \
279 if (!vec_setup(profile, __pvec, __count, (GFP))) { \
287 __count, (GFP)); \
319 #define fn_label_build_in_ns(L, P, GFP, NS_FN, OTHER_FN) \ argument
321 fn_label_build((L), (P), (GFP), \
H A Dlabel.h29 #define vec_setup(T, V, N, GFP) \ argument
37 (V) = kzalloc(sizeof(struct aa_ ## T *) * (N), (GFP)); \
/linux/Documentation/core-api/
H A Dmm-api.rst32 :doc: Useful GFP flag combinations
H A Dgfp_mask-from-fs-io.rst4 GFP masks used from FS/IO context
H A Didr.rst64 you may need to pass a restrictive set of GFP flags, which can lead
H A Dxarray.rst177 and the GFP flags specified will be ignored.
180 a restrictive set of GFP flags. In that case, the functions return a
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_gem_gtt.c60 #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()
/linux/Documentation/mm/
H A Dphysical_memory.rst346 The page allocator uses the GFP flags, see :ref:`mm-api-gfp-flags`, specified by