Searched refs:gfp (Results 1 - 25 of 1030) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Dgfp_api.h1 #include <linux/gfp.h>
H A Dmemregion.h12 int memregion_alloc(gfp_t gfp);
15 static inline int memregion_alloc(gfp_t gfp) argument
H A Dkmemleak.h19 gfp_t gfp) __ref;
21 gfp_t gfp) __ref;
23 gfp_t gfp) __ref;
30 extern void kmemleak_scan_area(const void *ptr, size_t size, gfp_t gfp) __ref;
33 gfp_t gfp) __ref;
40 gfp_t gfp)
43 kmemleak_alloc(ptr, size, min_count, gfp);
63 gfp_t gfp)
68 gfp_t gfp)
72 gfp_t gfp)
38 kmemleak_alloc_recursive(const void *ptr, size_t size, int min_count, slab_flags_t flags, gfp_t gfp) argument
62 kmemleak_alloc(const void *ptr, size_t size, int min_count, gfp_t gfp) argument
66 kmemleak_alloc_recursive(const void *ptr, size_t size, int min_count, slab_flags_t flags, gfp_t gfp) argument
71 kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, gfp_t gfp) argument
75 kmemleak_vmalloc(const struct vm_struct *area, size_t size, gfp_t gfp) argument
100 kmemleak_scan_area(const void *ptr, size_t size, gfp_t gfp) argument
109 kmemleak_alloc_phys(phys_addr_t phys, size_t size, int min_count, gfp_t gfp) argument
[all...]
H A Dvmpressure.h8 #include <linux/gfp.h>
33 extern void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree,
35 extern void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, int prio);
47 static inline void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree, argument
49 static inline void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, argument
H A Ddevcoredump.h56 gfp_t gfp);
59 void *data, size_t datalen, gfp_t gfp,
65 size_t datalen, gfp_t gfp);
68 size_t datalen, gfp_t gfp)
75 void *data, size_t datalen, gfp_t gfp,
84 size_t datalen, gfp_t gfp)
67 dev_coredumpv(struct device *dev, void *data, size_t datalen, gfp_t gfp) argument
74 dev_coredumpm(struct device *dev, struct module *owner, void *data, size_t datalen, gfp_t gfp, ssize_t (*read)(char *buffer, loff_t offset, size_t count, void *data, size_t datalen), void (*free)(void *data)) argument
83 dev_coredumpsg(struct device *dev, struct scatterlist *table, size_t datalen, gfp_t gfp) argument
H A Dzpool.h43 gfp_t gfp, const struct zpool_ops *ops);
51 int zpool_malloc(struct zpool *pool, size_t size, gfp_t gfp,
91 gfp_t gfp,
97 int (*malloc)(void *pool, size_t size, gfp_t gfp,
/linux-master/tools/lib/
H A Dslab.c9 #include <linux/gfp.h>
14 void *kmalloc(size_t size, gfp_t gfp) argument
18 if (!(gfp & __GFP_DIRECT_RECLAIM))
25 if (gfp & __GFP_ZERO)
/linux-master/lib/
H A Dmemregion.c9 int memregion_alloc(gfp_t gfp) argument
11 return ida_alloc(&memregion_ids, gfp);
H A Dkasprintf.c15 char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap) argument
25 p = kmalloc_track_caller(first+1, gfp);
43 const char *kvasprintf_const(gfp_t gfp, const char *fmt, va_list ap) argument
46 return kstrdup_const(fmt, gfp);
48 return kstrdup_const(va_arg(ap, const char*), gfp);
49 return kvasprintf(gfp, fmt, ap);
53 char *kasprintf(gfp_t gfp, const char *fmt, ...) argument
59 p = kvasprintf(gfp, fmt, ap);
H A Dtest_free_pages.c10 #include <linux/gfp.h>
14 static void test_free_pages(gfp_t gfp) argument
19 unsigned long addr = __get_free_pages(gfp, 3);
/linux-master/include/net/sctp/
H A Dstream_interleave.h25 int len, __u8 flags, gfp_t gfp);
29 struct sctp_chunk *chunk, gfp_t gfp);
33 struct sctp_chunk *chunk, gfp_t gfp);
34 void (*start_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
35 void (*abort_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
H A Dulpevent.h81 gfp_t gfp);
90 gfp_t gfp);
96 gfp_t gfp);
103 gfp_t gfp);
108 gfp_t gfp);
113 __u32 flags, gfp_t gfp);
116 const struct sctp_association *asoc, gfp_t gfp);
120 gfp_t gfp);
124 __u32 indication, gfp_t gfp);
127 const struct sctp_association *asoc, gfp_t gfp);
[all...]
H A Dstream_sched.h22 gfp_t gfp);
28 int (*init_sid)(struct sctp_stream *stream, __u16 sid, gfp_t gfp);
48 __u16 value, gfp_t gfp);
54 int sctp_sched_init_sid(struct sctp_stream *stream, __u16 sid, gfp_t gfp);
/linux-master/lib/kunit/
H A Dstring-stream.c18 gfp_t gfp; member in struct:string_stream_fragment_alloc_context
27 frag = kunit_kzalloc(ctx->test, sizeof(*frag), ctx->gfp);
32 frag->fragment = kunit_kmalloc(ctx->test, ctx->len, ctx->gfp);
51 struct kunit *test, int len, gfp_t gfp)
56 .gfp = gfp
62 gfp,
91 stream->gfp);
137 buf = kunit_kzalloc(stream->test, buf_len, stream->gfp);
169 gfp_t gfp; member in struct:string_stream_alloc_context
50 alloc_string_stream_fragment( struct kunit *test, int len, gfp_t gfp) argument
197 alloc_string_stream(struct kunit *test, gfp_t gfp) argument
[all...]
/linux-master/arch/arm64/mm/
H A Dpgd.c10 #include <linux/gfp.h>
22 gfp_t gfp = GFP_PGTABLE_USER; local
25 return (pgd_t *)__get_free_page(gfp);
27 return kmem_cache_alloc(pgd_cache, gfp);
/linux-master/tools/testing/memblock/linux/
H A Dkmemleak.h10 int min_count, gfp_t gfp)
9 kmemleak_alloc_phys(phys_addr_t phys, size_t size, int min_count, gfp_t gfp) argument
/linux-master/tools/include/linux/
H A Dslab.h6 #include <linux/gfp.h>
13 void *kmalloc(size_t size, gfp_t gfp);
26 static inline void *kzalloc(size_t size, gfp_t gfp) argument
28 return kmalloc(size, gfp | __GFP_ZERO);
/linux-master/include/net/
H A Dhwbm.h21 int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp);
26 static inline int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp) argument
/linux-master/include/asm-generic/
H A Dpgalloc.h50 * @gfp: GFP flags to use for the allocation
59 static inline pgtable_t __pte_alloc_one(struct mm_struct *mm, gfp_t gfp) argument
63 pte = alloc_page(gfp);
122 gfp_t gfp = GFP_PGTABLE_USER; local
125 gfp = GFP_PGTABLE_KERNEL;
126 page = alloc_pages(gfp, 0);
152 gfp_t gfp = GFP_PGTABLE_USER; local
155 gfp = GFP_PGTABLE_KERNEL;
156 return (pud_t *)get_zeroed_page(gfp);
/linux-master/kernel/dma/
H A Dpool.c46 static void dma_atomic_pool_size_add(gfp_t gfp, size_t size) argument
48 if (gfp & __GFP_DMA)
50 else if (gfp & __GFP_DMA32)
56 static bool cma_in_zone(gfp_t gfp) argument
72 if (IS_ENABLED(CONFIG_ZONE_DMA) && (gfp & GFP_DMA))
74 if (IS_ENABLED(CONFIG_ZONE_DMA32) && (gfp & GFP_DMA32))
80 gfp_t gfp)
92 if (cma_in_zone(gfp))
96 page = alloc_pages(gfp, order);
125 dma_atomic_pool_size_add(gfp, pool_siz
79 atomic_pool_expand(struct gen_pool *pool, size_t pool_size, gfp_t gfp) argument
145 atomic_pool_resize(struct gen_pool *pool, gfp_t gfp) argument
162 __dma_atomic_pool_init(size_t pool_size, gfp_t gfp) argument
224 dma_guess_pool(struct gen_pool *prev, gfp_t gfp) argument
265 dma_alloc_from_pool(struct device *dev, size_t size, void **cpu_addr, gfp_t gfp, bool (*phys_addr_ok)(struct device *, phys_addr_t, size_t)) argument
[all...]
/linux-master/include/drm/
H A Ddrm_managed.h6 #include <linux/gfp.h>
47 void *drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp) __malloc;
53 * @gfp: GFP allocation flags
59 static inline void *drmm_kzalloc(struct drm_device *dev, size_t size, gfp_t gfp) argument
61 return drmm_kmalloc(dev, size, gfp | __GFP_ZERO);
103 char *drmm_kstrdup(struct drm_device *dev, const char *s, gfp_t gfp);
/linux-master/arch/powerpc/include/asm/
H A Dpgalloc.h8 static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp) argument
11 return gfp;
12 return gfp | __GFP_ACCOUNT;
15 static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp) argument
17 return gfp | __GFP_ACCOUNT;
/linux-master/net/wireless/
H A Dnl80211.h60 const u8 *buf, size_t len, gfp_t gfp);
63 const u8 *buf, size_t len, gfp_t gfp,
69 bool reconnect, gfp_t gfp);
73 bool reconnect, gfp_t gfp);
76 const u8 *addr, gfp_t gfp);
79 const u8 *addr, gfp_t gfp);
83 gfp_t gfp);
86 struct cfg80211_roam_info *info, gfp_t gfp);
97 int key_id, const u8 *tsc, gfp_t gfp);
106 gfp_t gfp);
[all...]
/linux-master/drivers/gpu/drm/i915/
H A Di915_deps.h22 * @gfp: Allocation mode.
29 gfp_t gfp; member in struct:i915_deps
32 void i915_deps_init(struct i915_deps *deps, gfp_t gfp);
/linux-master/tools/virtio/linux/
H A Dkernel.h55 static inline void *kmalloc(size_t s, gfp_t gfp) argument
61 static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp) argument
63 return kmalloc(n * s, gfp);
66 static inline void *kzalloc(size_t s, gfp_t gfp) argument
68 void *p = kmalloc(s, gfp);
74 static inline void *alloc_pages_exact(size_t s, gfp_t gfp) argument
76 return kmalloc(s, gfp);
91 static inline void *krealloc(void *p, size_t s, gfp_t gfp) argument
97 static inline unsigned long __get_free_page(gfp_t gfp) argument
121 static inline void *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t gfp) argument
[all...]

Completed in 242 milliseconds

1234567891011>>