Home
last modified time | relevance | path

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

12345678910>>...24

/linux-6.3-rc2/lib/
A Dfortify_kunit.c147 gfp_t gfp = GFP_KERNEL | __GFP_NOWARN; \
187 orig = kmalloc(alloc_size, gfp); \
190 krealloc(orig, (alloc_size) * 2, gfp), \
192 orig = kmalloc(alloc_size, gfp); \
197 orig = kmalloc(alloc_size, gfp); \
213 gfp_t gfp = GFP_KERNEL | __GFP_NOWARN; \
225 gfp_t gfp = GFP_KERNEL | __GFP_NOWARN; \
255 orig = kvmalloc(prev_size, gfp); \
265 gfp_t gfp = GFP_KERNEL | __GFP_NOWARN; \
287 devm_kcalloc(dev, 1, alloc_size, gfp), \
[all …]
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-6.3-rc2/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.c118 gfp_t gfp, bool allow_highmem) in __dma_direct_alloc_pages() argument
131 page = dma_alloc_contiguous(dev, size, gfp); in __dma_direct_alloc_pages()
148 !(gfp & (GFP_DMA32 | GFP_DMA))) { in __dma_direct_alloc_pages()
149 gfp |= GFP_DMA32; in __dma_direct_alloc_pages()
154 gfp = (gfp & ~GFP_DMA32) | GFP_DMA; in __dma_direct_alloc_pages()
172 dma_addr_t *dma_handle, gfp_t gfp) in dma_direct_alloc_from_pool() argument
191 dma_addr_t *dma_handle, gfp_t gfp) in dma_direct_alloc_no_mapping() argument
217 gfp |= __GFP_NOWARN; in dma_direct_alloc()
232 return arch_dma_alloc(dev, size, dma_handle, gfp, in dma_direct_alloc()
250 if (dma_direct_use_pool(dev, gfp)) in dma_direct_alloc()
[all …]
/linux-6.3-rc2/include/linux/
A Dkmemleak.h19 gfp_t gfp) __ref;
21 gfp_t gfp) __ref;
23 gfp_t gfp) __ref;
33 gfp_t gfp) __ref;
39 gfp_t gfp) in kmemleak_alloc_recursive() argument
42 kmemleak_alloc(ptr, size, min_count, gfp); in kmemleak_alloc_recursive()
62 gfp_t gfp) in kmemleak_alloc() argument
67 gfp_t gfp) in kmemleak_alloc_recursive() argument
71 gfp_t gfp) in kmemleak_alloc_percpu() argument
75 gfp_t gfp) in kmemleak_vmalloc() argument
[all …]
A Dgfp.h182 unsigned long __alloc_pages_bulk(gfp_t gfp, int preferred_nid,
187 unsigned long alloc_pages_bulk_array_mempolicy(gfp_t gfp,
244 warn_if_node_offline(nid, gfp); in __folio_alloc_node()
246 return __folio_alloc(gfp, order, nid, NULL); in __folio_alloc_node()
264 struct page *alloc_pages(gfp_t gfp, unsigned int order);
265 struct folio *folio_alloc(gfp_t gfp, unsigned order);
275 return __folio_alloc_node(gfp, order, numa_node_id()); in folio_alloc()
277 #define vma_alloc_folio(gfp, order, vma, addr, hugepage) \ argument
278 folio_alloc(gfp, order)
281 static inline struct page *alloc_page_vma(gfp_t gfp, in alloc_page_vma() argument
[all …]
A Dxarray.h590 might_alloc(gfp); in xa_store_bh()
617 might_alloc(gfp); in xa_store_irq()
693 might_alloc(gfp); in xa_cmpxchg()
721 might_alloc(gfp); in xa_cmpxchg_bh()
749 might_alloc(gfp); in xa_cmpxchg_irq()
779 might_alloc(gfp); in xa_insert()
809 might_alloc(gfp); in xa_insert_bh()
839 might_alloc(gfp); in xa_insert_irq()
869 might_alloc(gfp); in xa_alloc()
899 might_alloc(gfp); in xa_alloc_bh()
[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-6.3-rc2/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);
A Dauth.h71 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp);
73 int sctp_auth_asoc_init_active_key(struct sctp_association *asoc, gfp_t gfp);
79 gfp_t gfp);
80 int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp);
94 struct sctp_shared_key *ep_key, gfp_t gfp);
110 int sctp_auth_init(struct sctp_endpoint *ep, gfp_t gfp);
/linux-6.3-rc2/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-6.3-rc2/net/wireless/
A Dnl80211.h60 const u8 *buf, size_t len, gfp_t gfp);
67 bool reconnect, gfp_t gfp);
71 bool reconnect, gfp_t gfp);
74 const u8 *addr, gfp_t gfp);
77 const u8 *addr, gfp_t gfp);
81 gfp_t gfp);
84 struct cfg80211_roam_info *info, gfp_t gfp);
96 int key_id, const u8 *tsc, gfp_t gfp);
105 gfp_t gfp);
109 struct cfg80211_rx_info *info, gfp_t gfp);
[all …]
/linux-6.3-rc2/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()
152 gfp_t gfp = GFP_PGTABLE_USER; in __pud_alloc_one() local
155 gfp = GFP_PGTABLE_KERNEL; in __pud_alloc_one()
156 return (pud_t *)get_zeroed_page(gfp); in __pud_alloc_one()
/linux-6.3-rc2/lib/kunit/
A Dstring-stream.c17 struct kunit *test, int len, gfp_t gfp) in alloc_string_stream_fragment() argument
21 frag = kunit_kzalloc(test, sizeof(*frag), gfp); in alloc_string_stream_fragment()
25 frag->fragment = kunit_kmalloc(test, len, gfp); in alloc_string_stream_fragment()
60 stream->gfp); in string_stream_vadd()
106 buf = kunit_kzalloc(stream->test, buf_len, stream->gfp); in string_stream_get_string()
136 struct string_stream *alloc_string_stream(struct kunit *test, gfp_t gfp) in alloc_string_stream() argument
140 stream = kunit_kzalloc(test, sizeof(*stream), gfp); in alloc_string_stream()
144 stream->gfp = gfp; in alloc_string_stream()
/linux-6.3-rc2/mm/
A Dslob.c197 page = __alloc_pages_node(node, gfp, order); in slob_new_pages()
200 page = alloc_pages(gfp, order); in slob_new_pages()
359 b = slob_new_pages(gfp & ~__GFP_ZERO, 0, node); in slob_alloc()
376 if (unlikely(gfp & __GFP_ZERO)) in slob_alloc()
486 gfp &= gfp_allowed_mask; in __do_kmalloc_node()
488 might_alloc(gfp); in __do_kmalloc_node()
515 gfp |= __GFP_COMP; in __do_kmalloc_node()
516 ret = slob_new_pages(gfp, order, node); in __do_kmalloc_node()
521 kmemleak_alloc(ret, size, 1, gfp); in __do_kmalloc_node()
525 void *__kmalloc(size_t size, gfp_t gfp) in __kmalloc() argument
[all …]
/linux-6.3-rc2/net/sctp/
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 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 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()
96 gfp_t gfp) in sctp_bind_addr_dup() argument
106 1, gfp); in sctp_bind_addr_dup()
213 gfp_t gfp) in sctp_bind_addrs_to_raw() argument
240 retval.v = kmalloc(len, gfp); in sctp_bind_addrs_to_raw()
288 SCTP_ADDR_SRC, gfp); in sctp_raw_to_bind_addrs()
461 gfp_t gfp, int flags) in sctp_copy_one_addr() argument
[all …]
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/staging/rtl8723bs/include/
A Dioctl_cfg80211.h111 #define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw… argument
113 …tatus(adapter, cookie, buf, len, ack, gfp) cfg80211_mgmt_tx_status((adapter)->rtw_wdev, cookie, bu… argument
114 …okie, chan, channel_type, duration, gfp) cfg80211_ready_on_channel((adapter)->rtw_wdev, cookie, c… argument
115 …ed(adapter, cookie, chan, chan_type, gfp) cfg80211_remain_on_channel_expired((adapter)->rtw_wdev, … argument
/linux-6.3-rc2/security/apparmor/include/
A Dlabel.h60 gfp_t gfp);
301 gfp_t gfp);
314 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 struct aa_label *label, int flags, gfp_t gfp);
322 gfp_t gfp);
325 void aa_label_printk(struct aa_label *label, gfp_t gfp);
328 size_t n, gfp_t gfp, bool create,
331 gfp_t gfp, bool create, bool force_stack);
[all …]

Completed in 42 milliseconds

12345678910>>...24