Home
last modified time | relevance | path

Searched refs:gfp (Results 1 – 25 of 2766) sorted by relevance

12345678910>>...111

/linux/kernel/dma/
A Dpool.c48 if (gfp & __GFP_DMA) in dma_atomic_pool_size_add()
50 else if (gfp & __GFP_DMA32) in dma_atomic_pool_size_add()
56 static bool cma_in_zone(gfp_t gfp) in cma_in_zone() argument
80 gfp_t gfp) in atomic_pool_expand() argument
92 if (cma_in_zone(gfp)) in atomic_pool_expand()
96 page = alloc_pages(gfp, order); in atomic_pool_expand()
125 dma_atomic_pool_size_add(gfp, pool_size); in atomic_pool_expand()
163 gfp_t gfp) in __dma_atomic_pool_init() argument
178 pool_size >> 10, &gfp); in __dma_atomic_pool_init()
183 gen_pool_size(pool) >> 10, &gfp); in __dma_atomic_pool_init()
[all …]
A Ddirect.c88 gfp_t gfp) in __dma_direct_alloc_pages() argument
108 page = dma_alloc_contiguous(dev, size, gfp); in __dma_direct_alloc_pages()
115 page = alloc_pages_node(node, gfp, get_order(size)); in __dma_direct_alloc_pages()
122 !(gfp & (GFP_DMA32 | GFP_DMA))) { in __dma_direct_alloc_pages()
123 gfp |= GFP_DMA32; in __dma_direct_alloc_pages()
127 if (IS_ENABLED(CONFIG_ZONE_DMA) && !(gfp & GFP_DMA)) { in __dma_direct_alloc_pages()
128 gfp = (gfp & ~GFP_DMA32) | GFP_DMA; in __dma_direct_alloc_pages()
137 dma_addr_t *dma_handle, gfp_t gfp) in dma_direct_alloc_from_pool() argument
161 gfp |= __GFP_NOWARN; in dma_direct_alloc()
195 !gfpflags_allow_blocking(gfp) && in dma_direct_alloc()
[all …]
/linux/lib/kunit/
A Dstring-stream.c18 gfp_t gfp; member
27 frag = kunit_kzalloc(ctx->test, sizeof(*frag), ctx->gfp); in string_stream_fragment_init()
51 struct kunit *test, int len, gfp_t gfp) in alloc_string_stream_fragment() argument
56 .gfp = gfp in alloc_string_stream_fragment()
62 gfp, in alloc_string_stream_fragment()
91 stream->gfp); in string_stream_vadd()
137 buf = kunit_kzalloc(stream->test, buf_len, stream->gfp); in string_stream_get_string()
169 gfp_t gfp; member
182 stream->gfp = ctx->gfp; in string_stream_init()
201 .gfp = gfp in alloc_string_stream()
[all …]
/linux/include/linux/
A Dkmemleak.h19 gfp_t gfp) __ref;
21 gfp_t gfp) __ref;
23 gfp_t gfp) __ref;
33 gfp_t gfp) __ref;
40 gfp_t gfp) in kmemleak_alloc_recursive() argument
43 kmemleak_alloc(ptr, size, min_count, gfp); in kmemleak_alloc_recursive()
63 gfp_t gfp) in kmemleak_alloc() argument
68 gfp_t gfp) in kmemleak_alloc_recursive() argument
72 gfp_t gfp) in kmemleak_alloc_percpu() argument
76 gfp_t gfp) in kmemleak_vmalloc() argument
[all …]
A Dxarray.h584 void *entry, gfp_t gfp) in xa_store_bh() argument
589 curr = __xa_store(xa, index, entry, gfp); in xa_store_bh()
610 void *entry, gfp_t gfp) in xa_store_irq() argument
615 curr = __xa_store(xa, index, entry, gfp); in xa_store_irq()
685 void *old, void *entry, gfp_t gfp) in xa_cmpxchg() argument
712 void *old, void *entry, gfp_t gfp) in xa_cmpxchg_bh() argument
739 void *old, void *entry, gfp_t gfp) in xa_cmpxchg_irq() argument
773 err = __xa_insert(xa, index, entry, gfp); in xa_insert()
802 err = __xa_insert(xa, index, entry, gfp); in xa_insert_bh()
831 err = __xa_insert(xa, index, entry, gfp); in xa_insert_irq()
[all …]
A Dgfp.h529 unsigned long __alloc_pages_bulk(gfp_t gfp, int preferred_nid,
534 unsigned long alloc_pages_bulk_array_mempolicy(gfp_t gfp,
542 return __alloc_pages_bulk(gfp, numa_mem_id(), NULL, nr_pages, list, NULL); in alloc_pages_bulk_list()
557 return __alloc_pages_bulk(gfp, nid, NULL, nr_pages, NULL, page_array); in alloc_pages_bulk_array_node()
574 struct folio *__folio_alloc_node(gfp_t gfp, unsigned int order, int nid) in __folio_alloc_node() argument
577 VM_WARN_ON((gfp & __GFP_THISNODE) && !node_online(nid)); in __folio_alloc_node()
579 return __folio_alloc(gfp, order, nid, NULL); in __folio_alloc_node()
597 struct page *alloc_pages(gfp_t gfp, unsigned int order);
598 struct folio *folio_alloc(gfp_t gfp, unsigned order);
609 static inline struct folio *folio_alloc(gfp_t gfp, unsigned int order) in folio_alloc() argument
[all …]
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) in dev_coredumpv() argument
75 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument
84 size_t datalen, gfp_t gfp) in dev_coredumpsg() argument
A Didr.h271 static inline int ida_alloc(struct ida *ida, gfp_t gfp) in ida_alloc() argument
273 return ida_alloc_range(ida, 0, ~0, gfp); in ida_alloc()
289 static inline int ida_alloc_min(struct ida *ida, unsigned int min, gfp_t gfp) in ida_alloc_min() argument
291 return ida_alloc_range(ida, min, ~0, gfp); in ida_alloc_min()
307 static inline int ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp) in ida_alloc_max() argument
309 return ida_alloc_range(ida, 0, max, gfp); in ida_alloc_max()
321 #define ida_simple_get(ida, start, end, gfp) \ argument
322 ida_alloc_range(ida, start, (end) - 1, gfp)
/linux/include/net/sctp/
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 …]
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);
/linux/tools/virtio/linux/
A Dkernel.h55 static inline void *kmalloc(size_t s, gfp_t gfp) in kmalloc() argument
61 static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp) in kmalloc_array() argument
63 return kmalloc(n * s, gfp); in kmalloc_array()
66 static inline void *kzalloc(size_t s, gfp_t gfp) in kzalloc() argument
68 void *p = kmalloc(s, gfp); in kzalloc()
74 static inline void *alloc_pages_exact(size_t s, gfp_t gfp) in alloc_pages_exact() argument
76 return kmalloc(s, gfp); in alloc_pages_exact()
91 static inline void *krealloc(void *p, size_t s, gfp_t gfp) in krealloc() argument
97 static inline unsigned long __get_free_page(gfp_t gfp) in __get_free_page() argument
121 static inline void *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t gfp) in krealloc_array() argument
[all …]
/linux/net/wireless/
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/lib/
A Dkasprintf.c15 char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap) in kvasprintf() argument
25 p = kmalloc_track_caller(first+1, gfp); in kvasprintf()
43 const char *kvasprintf_const(gfp_t gfp, const char *fmt, va_list ap) in kvasprintf_const() argument
46 return kstrdup_const(fmt, gfp); in kvasprintf_const()
48 return kstrdup_const(va_arg(ap, const char*), gfp); in kvasprintf_const()
49 return kvasprintf(gfp, fmt, ap); in kvasprintf_const()
53 char *kasprintf(gfp_t gfp, const char *fmt, ...) in kasprintf() argument
59 p = kvasprintf(gfp, fmt, ap); in kasprintf()
/linux/mm/
A Dslob.c200 page = alloc_pages(gfp, order); in slob_new_pages()
374 if (unlikely(gfp & __GFP_ZERO)) in slob_alloc()
483 gfp &= gfp_allowed_mask; in __do_kmalloc_node()
485 might_alloc(gfp); in __do_kmalloc_node()
508 size, size + minalign, gfp, node); in __do_kmalloc_node()
513 gfp |= __GFP_COMP; in __do_kmalloc_node()
514 ret = slob_new_pages(gfp, order, node); in __do_kmalloc_node()
517 size, PAGE_SIZE << order, gfp, node); in __do_kmalloc_node()
520 kmemleak_alloc(ret, size, 1, gfp); in __do_kmalloc_node()
524 void *__kmalloc(size_t size, gfp_t gfp) in __kmalloc() argument
[all …]
/linux/net/sctp/
A Dauth.c188 gfp_t gfp) in sctp_auth_make_key_vector() argument
202 new = sctp_auth_create_key(len, gfp); in sctp_auth_make_key_vector()
223 gfp_t gfp) in sctp_auth_make_local_vector() argument
234 gfp_t gfp) in sctp_auth_make_peer_vector() argument
239 gfp); in sctp_auth_make_peer_vector()
256 gfp_t gfp) in sctp_auth_asoc_set_secret() argument
289 gfp_t gfp) in sctp_auth_asoc_create_secret() argument
341 gfp); in sctp_auth_asoc_create_secret()
355 gfp_t gfp) in sctp_auth_asoc_copy_shkeys() argument
466 gfp); in sctp_auth_init_hmacs()
[all …]
A Dulpevent.c49 gfp_t gfp) in sctp_ulpevent_new() argument
54 skb = alloc_skb(size, gfp); in sctp_ulpevent_new()
149 MSG_NOTIFICATION, gfp); in sctp_ulpevent_make_assoc_change()
251 MSG_NOTIFICATION, gfp); in sctp_ulpevent_make_peer_addr_change()
376 gfp_t gfp) in sctp_ulpevent_make_remote_error() argument
445 gfp); in sctp_ulpevent_make_send_failed()
579 __u16 flags, gfp_t gfp) in sctp_ulpevent_make_shutdown_event() argument
586 MSG_NOTIFICATION, gfp); in sctp_ulpevent_make_shutdown_event()
648 MSG_NOTIFICATION, gfp); in sctp_ulpevent_make_adaptation_indication()
677 gfp_t gfp) in sctp_ulpevent_make_rcvmsg() argument
[all …]
A Dbind_addr.c35 gfp_t gfp, int flags);
45 enum sctp_scope scope, gfp_t gfp, in sctp_bind_addr_copy() argument
57 gfp, flags); in sctp_bind_addr_copy()
69 SCTP_SCOPE_LINK, gfp, in sctp_bind_addr_copy()
90 gfp_t gfp) in sctp_bind_addr_dup() argument
100 1, gfp); in sctp_bind_addr_dup()
207 gfp_t gfp) in sctp_bind_addrs_to_raw() argument
234 retval.v = kmalloc(len, gfp); in sctp_bind_addrs_to_raw()
282 SCTP_ADDR_SRC, gfp); in sctp_raw_to_bind_addrs()
455 gfp_t gfp, int flags) in sctp_copy_one_addr() argument
[all …]
/linux/include/asm-generic/
A Dpgalloc.h59 static inline pgtable_t __pte_alloc_one(struct mm_struct *mm, gfp_t gfp) in __pte_alloc_one() argument
63 pte = alloc_page(gfp); in __pte_alloc_one()
122 gfp_t gfp = GFP_PGTABLE_USER; in pmd_alloc_one() local
125 gfp = GFP_PGTABLE_KERNEL; in pmd_alloc_one()
126 page = alloc_pages(gfp, 0); in pmd_alloc_one()
162 gfp_t gfp = GFP_PGTABLE_USER; in pud_alloc_one() local
165 gfp = GFP_PGTABLE_KERNEL; in pud_alloc_one()
166 return (pud_t *)get_zeroed_page(gfp); in pud_alloc_one()
/linux/tools/testing/fault-injection/
A Dfailcmd.sh44 --reject-start=value, --reject-end=value, --ignore-gfp-wait=value
52 --ignore-gfp-highmem=value, --min-order=value
92 LONGOPTS=$LONGOPTS,ignore-gfp-wait:,cache-filter:
94 LONGOPTS=$LONGOPTS,ignore-gfp-wait:,ignore-gfp-highmem:,min-order:
182 --ignore-gfp-wait)
183 echo $2 > $FAULTATTR/ignore-gfp-wait
190 --ignore-gfp-highmem)
191 echo $2 > $FAULTATTR/ignore-gfp-highmem
/linux/scripts/coccinelle/locks/
A Dcall_kern.cocci20 @gfp exists@
40 identifier gfp.fn;
75 position gfp.p;
82 position gfp.p;
88 p << gfp.p;
89 fn << gfp.fn;
99 p << gfp.p;
100 fn << gfp.fn;
/linux/security/apparmor/include/
A Dlabel.h60 gfp_t gfp);
299 gfp_t gfp);
312 int flags, gfp_t gfp);
314 struct aa_label *label, int flags, gfp_t gfp);
316 struct aa_label *label, int flags, gfp_t gfp);
318 struct aa_label *label, int flags, gfp_t gfp);
320 gfp_t gfp);
323 void aa_label_printk(struct aa_label *label, gfp_t gfp);
326 size_t n, gfp_t gfp, bool create,
329 gfp_t gfp, bool create, bool force_stack);
[all …]
/linux/arch/powerpc/include/asm/
A Dpgalloc.h8 static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp) in pgtable_gfp_flags() argument
11 return gfp; in pgtable_gfp_flags()
12 return gfp | __GFP_ACCOUNT; in pgtable_gfp_flags()
15 static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp) in pgtable_gfp_flags() argument
17 return gfp | __GFP_ACCOUNT; in pgtable_gfp_flags()
/linux/drivers/base/
A Ddevres.c108 size_t size, gfp_t gfp, int nid) in alloc_dr() argument
116 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr()
162 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node()
552 grp = kmalloc(sizeof(*grp), gfp); in devres_open_group()
865 return devm_kmalloc(dev, new_size, gfp); in devm_krealloc()
895 total_new_size, gfp, dev_to_node(dev)); in devm_krealloc()
953 buf = devm_kmalloc(dev, size, gfp); in devm_kstrdup()
978 return devm_kstrdup(dev, s, gfp); in devm_kstrdup_const()
1004 p = devm_kmalloc(dev, len+1, gfp); in devm_kvasprintf()
1031 p = devm_kvasprintf(dev, gfp, fmt, ap); in devm_kasprintf()
[all …]
/linux/lib/reed_solomon/
A Dreed_solomon.c71 int fcr, int prim, int nroots, gfp_t gfp) in codec_init() argument
76 rs = kzalloc(sizeof(*rs), gfp); in codec_init()
91 rs->alpha_to = kmalloc_array(rs->nn + 1, sizeof(uint16_t), gfp); in codec_init()
95 rs->index_of = kmalloc_array(rs->nn + 1, sizeof(uint16_t), gfp); in codec_init()
99 rs->genpoly = kmalloc_array(rs->nroots + 1, sizeof(uint16_t), gfp); in codec_init()
215 int prim, int nroots, gfp_t gfp) in init_rs_internal() argument
237 rs = kzalloc(sizeof(*rs) + bsize, gfp); in init_rs_internal()
266 rs->codec = codec_init(symsize, gfpoly, gffunc, fcr, prim, nroots, gfp); in init_rs_internal()
289 int nroots, gfp_t gfp) in init_rs_gfp() argument
291 return init_rs_internal(symsize, gfpoly, NULL, fcr, prim, nroots, gfp); in init_rs_gfp()
/linux/tools/testing/radix-tree/
A Dlinux.c29 void *kmem_cache_alloc(struct kmem_cache *cachep, int gfp) in kmem_cache_alloc() argument
33 if (!(gfp & __GFP_DIRECT_RECLAIM)) in kmem_cache_alloc()
52 else if (gfp & __GFP_ZERO) in kmem_cache_alloc()
81 void *kmalloc(size_t size, gfp_t gfp) in kmalloc() argument
85 if (!(gfp & __GFP_DIRECT_RECLAIM)) in kmalloc()
92 if (gfp & __GFP_ZERO) in kmalloc()

Completed in 34 milliseconds

12345678910>>...111