Home
last modified time | relevance | path

Searched refs:gfp_mask (Results 1 – 7 of 7) sorted by relevance

/kernel/power/
Dsnapshot.c189 static void *get_image_page(gfp_t gfp_mask, int safe_needed) in get_image_page() argument
193 res = (void *)get_zeroed_page(gfp_mask); in get_image_page()
199 res = (void *)get_zeroed_page(gfp_mask); in get_image_page()
208 static void *__get_safe_page(gfp_t gfp_mask) in __get_safe_page() argument
217 return get_image_page(gfp_mask, PG_SAFE); in __get_safe_page()
220 unsigned long get_safe_page(gfp_t gfp_mask) in get_safe_page() argument
222 return (unsigned long)__get_safe_page(gfp_mask); in get_safe_page()
225 static struct page *alloc_image_page(gfp_t gfp_mask) in alloc_image_page() argument
229 page = alloc_page(gfp_mask); in alloc_image_page()
295 gfp_t gfp_mask; /* mask for allocating pages */ member
[all …]
/kernel/
Dumh.c357 char **envp, gfp_t gfp_mask, in call_usermodehelper_setup() argument
363 sub_info = kzalloc(sizeof(struct subprocess_info), gfp_mask); in call_usermodehelper_setup()
486 gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; in call_usermodehelper() local
488 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
Dkexec_core.c144 gfp_t gfp_mask,
304 static struct page *kimage_alloc_pages(gfp_t gfp_mask, unsigned int order) in kimage_alloc_pages() argument
310 pages = alloc_pages(gfp_mask & ~__GFP_ZERO, order); in kimage_alloc_pages()
321 gfp_mask); in kimage_alloc_pages()
323 if (gfp_mask & __GFP_ZERO) in kimage_alloc_pages()
679 gfp_t gfp_mask, in kimage_alloc_page() argument
719 page = kimage_alloc_pages(gfp_mask, 0); in kimage_alloc_page()
759 if (!(gfp_mask & __GFP_HIGHMEM) && in kimage_alloc_page()
Daudit.c200 gfp_t gfp_mask; member
1788 gfp_t gfp_mask, int type) in audit_buffer_alloc() argument
1792 ab = kmem_cache_alloc(audit_buffer_cache, gfp_mask); in audit_buffer_alloc()
1796 ab->skb = nlmsg_new(AUDIT_BUFSIZ, gfp_mask); in audit_buffer_alloc()
1803 ab->gfp_mask = gfp_mask; in audit_buffer_alloc()
1860 struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, in audit_log_start() argument
1892 if (gfpflags_allow_blocking(gfp_mask) && (stime > 0)) { in audit_log_start()
1914 ab = audit_buffer_alloc(ctx, gfp_mask, type); in audit_log_start()
1942 int ret = pskb_expand_head(skb, 0, extra, ab->gfp_mask); in audit_expand()
2150 pathname = kmalloc(PATH_MAX+11, ab->gfp_mask); in audit_log_d_path()
[all …]
/kernel/dma/
Dswiotlb.c430 int swiotlb_init_late(size_t size, gfp_t gfp_mask, in swiotlb_init_late() argument
452 if (IS_ENABLED(CONFIG_ZONE_DMA) && (gfp_mask & __GFP_DMA)) in swiotlb_init_late()
454 else if (IS_ENABLED(CONFIG_ZONE_DMA32) && (gfp_mask & __GFP_DMA32)) in swiotlb_init_late()
468 vstart = (void *)__get_free_pages(gfp_mask | __GFP_NOWARN, in swiotlb_init_late()
/kernel/cgroup/
Dcpuset.c4145 bool cpuset_node_allowed(int node, gfp_t gfp_mask) in cpuset_node_allowed() argument
4161 if (gfp_mask & __GFP_HARDWALL) /* If hardwall request, stop here */ in cpuset_node_allowed()
Dcgroup.c328 gfp_t gfp_mask) in cgroup_idr_alloc() argument
332 idr_preload(gfp_mask); in cgroup_idr_alloc()
334 ret = idr_alloc(idr, ptr, start, end, gfp_mask & ~__GFP_DIRECT_RECLAIM); in cgroup_idr_alloc()