/linux-6.6.21/lib/ |
D | fortify_kunit.c | 147 gfp_t gfp = GFP_KERNEL | __GFP_NOWARN; \ 151 checker(expected_size, kmalloc(alloc_size, gfp), \ 154 kmalloc_node(alloc_size, gfp, NUMA_NO_NODE), \ 156 checker(expected_size, kzalloc(alloc_size, gfp), \ 159 kzalloc_node(alloc_size, gfp, NUMA_NO_NODE), \ 161 checker(expected_size, kcalloc(1, alloc_size, gfp), \ 163 checker(expected_size, kcalloc(alloc_size, 1, gfp), \ 166 kcalloc_node(1, alloc_size, gfp, NUMA_NO_NODE), \ 169 kcalloc_node(alloc_size, 1, gfp, NUMA_NO_NODE), \ 171 checker(expected_size, kmalloc_array(1, alloc_size, gfp), \ [all …]
|
D | kasprintf.c | 15 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.6.21/kernel/dma/ |
D | pool.c | 46 static void dma_atomic_pool_size_add(gfp_t gfp, size_t size) in dma_atomic_pool_size_add() argument 48 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 72 if (IS_ENABLED(CONFIG_ZONE_DMA) && (gfp & GFP_DMA)) in cma_in_zone() 74 if (IS_ENABLED(CONFIG_ZONE_DMA32) && (gfp & GFP_DMA32)) in cma_in_zone() 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() [all …]
|
D | direct.c | 119 gfp_t gfp, bool allow_highmem) in __dma_direct_alloc_pages() argument 130 gfp |= dma_direct_optimal_gfp_mask(dev, &phys_limit); in __dma_direct_alloc_pages() 131 page = dma_alloc_contiguous(dev, size, gfp); in __dma_direct_alloc_pages() 141 page = alloc_pages_node(node, gfp, get_order(size)); 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() 153 if (IS_ENABLED(CONFIG_ZONE_DMA) && !(gfp & GFP_DMA)) { in __dma_direct_alloc_pages() 154 gfp = (gfp & ~GFP_DMA32) | GFP_DMA; in __dma_direct_alloc_pages() 166 static bool dma_direct_use_pool(struct device *dev, gfp_t gfp) in dma_direct_use_pool() argument 168 return !gfpflags_allow_blocking(gfp) && !is_swiotlb_for_alloc(dev); in dma_direct_use_pool() [all …]
|
/linux-6.6.21/include/linux/ |
D | kmemleak.h | 19 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; 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 [all …]
|
D | gfp.h | 177 struct page *__alloc_pages(gfp_t gfp, unsigned int order, int preferred_nid, 179 struct folio *__folio_alloc(gfp_t gfp, unsigned int order, int preferred_nid, 182 unsigned long __alloc_pages_bulk(gfp_t gfp, int preferred_nid, 187 unsigned long alloc_pages_bulk_array_mempolicy(gfp_t gfp, 193 alloc_pages_bulk_list(gfp_t gfp, unsigned long nr_pages, struct list_head *list) in alloc_pages_bulk_list() argument 195 return __alloc_pages_bulk(gfp, numa_mem_id(), NULL, nr_pages, list, NULL); in alloc_pages_bulk_list() 199 alloc_pages_bulk_array(gfp_t gfp, unsigned long nr_pages, struct page **page_array) in alloc_pages_bulk_array() argument 201 return __alloc_pages_bulk(gfp, numa_mem_id(), NULL, nr_pages, NULL, page_array); in alloc_pages_bulk_array() 205 alloc_pages_bulk_array_node(gfp_t gfp, int nid, unsigned long nr_pages, struct page **page_array) in alloc_pages_bulk_array_node() argument 210 return __alloc_pages_bulk(gfp, nid, NULL, nr_pages, NULL, page_array); in alloc_pages_bulk_array_node() [all …]
|
D | xarray.h | 586 void *entry, gfp_t gfp) in xa_store_bh() argument 590 might_alloc(gfp); in xa_store_bh() 592 curr = __xa_store(xa, index, entry, gfp); in xa_store_bh() 613 void *entry, gfp_t gfp) in xa_store_irq() argument 617 might_alloc(gfp); in xa_store_irq() 619 curr = __xa_store(xa, index, entry, gfp); in xa_store_irq() 689 void *old, void *entry, gfp_t gfp) in xa_cmpxchg() argument 693 might_alloc(gfp); in xa_cmpxchg() 695 curr = __xa_cmpxchg(xa, index, old, entry, gfp); in xa_cmpxchg() 717 void *old, void *entry, gfp_t gfp) in xa_cmpxchg_bh() argument [all …]
|
D | devcoredump.h | 56 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
|
D | percpu_counter.h | 34 gfp_t gfp, u32 nr_counters, 37 #define percpu_counter_init_many(fbc, value, gfp, nr_counters) \ argument 41 __percpu_counter_init_many(fbc, value, gfp, nr_counters,\ 46 #define percpu_counter_init(fbc, value, gfp) \ argument 47 percpu_counter_init_many(fbc, value, gfp, 1) 131 s64 amount, gfp_t gfp, in percpu_counter_init_many() argument 143 gfp_t gfp) in percpu_counter_init() argument 145 return percpu_counter_init_many(fbc, amount, gfp, 1); in percpu_counter_init()
|
D | idr.h | 273 static inline int ida_alloc(struct ida *ida, gfp_t gfp) in ida_alloc() argument 275 return ida_alloc_range(ida, 0, ~0, gfp); in ida_alloc() 291 static inline int ida_alloc_min(struct ida *ida, unsigned int min, gfp_t gfp) in ida_alloc_min() argument 293 return ida_alloc_range(ida, min, ~0, gfp); in ida_alloc_min() 309 static inline int ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp) in ida_alloc_max() argument 311 return ida_alloc_range(ida, 0, max, gfp); in ida_alloc_max() 323 #define ida_simple_get(ida, start, end, gfp) \ argument 324 ida_alloc_range(ida, start, (end) - 1, gfp)
|
/linux-6.6.21/include/net/sctp/ |
D | ulpevent.h | 81 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 …]
|
D | stream_interleave.h | 25 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);
|
D | auth.h | 71 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.6.21/tools/virtio/linux/ |
D | kernel.h | 56 static inline void *kmalloc(size_t s, gfp_t gfp) in kmalloc() argument 62 static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp) in kmalloc_array() argument 64 return kmalloc(n * s, gfp); in kmalloc_array() 67 static inline void *kzalloc(size_t s, gfp_t gfp) in kzalloc() argument 69 void *p = kmalloc(s, gfp); in kzalloc() 75 static inline void *alloc_pages_exact(size_t s, gfp_t gfp) in alloc_pages_exact() argument 77 return kmalloc(s, gfp); in alloc_pages_exact() 92 static inline void *krealloc(void *p, size_t s, gfp_t gfp) in krealloc() argument 98 static inline unsigned long __get_free_page(gfp_t gfp) in __get_free_page() argument 118 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.6.21/net/wireless/ |
D | nl80211.h | 60 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.6.21/include/asm-generic/ |
D | pgalloc.h | 64 static inline pgtable_t __pte_alloc_one(struct mm_struct *mm, gfp_t gfp) in __pte_alloc_one() argument 68 ptdesc = pagetable_alloc(gfp, 0); in __pte_alloc_one() 130 gfp_t gfp = GFP_PGTABLE_USER; in pmd_alloc_one() local 133 gfp = GFP_PGTABLE_KERNEL; in pmd_alloc_one() 134 ptdesc = pagetable_alloc(gfp, 0); in pmd_alloc_one() 162 gfp_t gfp = GFP_PGTABLE_USER; in __pud_alloc_one() local 166 gfp = GFP_PGTABLE_KERNEL; in __pud_alloc_one() 167 gfp &= ~__GFP_HIGHMEM; in __pud_alloc_one() 169 ptdesc = pagetable_alloc(gfp, 0); in __pud_alloc_one()
|
/linux-6.6.21/lib/kunit/ |
D | string-stream.c | 17 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.6.21/net/sctp/ |
D | ulpevent.c | 49 gfp_t gfp) in sctp_ulpevent_new() argument 54 skb = alloc_skb(size, gfp); in sctp_ulpevent_new() 117 __u16 inbound, struct sctp_chunk *chunk, gfp_t gfp) in sctp_ulpevent_make_assoc_change() argument 131 sizeof(struct sctp_assoc_change), 0, gfp); in sctp_ulpevent_make_assoc_change() 149 MSG_NOTIFICATION, gfp); in sctp_ulpevent_make_assoc_change() 244 int flags, int state, int error, gfp_t gfp) in sctp_ulpevent_make_peer_addr_change() argument 251 MSG_NOTIFICATION, gfp); in sctp_ulpevent_make_peer_addr_change() 376 gfp_t gfp) in sctp_ulpevent_make_remote_error() argument 395 skb = skb_copy_expand(chunk->skb, sizeof(*sre), 0, gfp); in sctp_ulpevent_make_remote_error() 432 __u16 flags, __u32 error, gfp_t gfp) in sctp_ulpevent_make_send_failed() argument [all …]
|
D | auth.c | 58 static struct sctp_auth_bytes *sctp_auth_create_key(__u32 key_len, gfp_t gfp) in sctp_auth_create_key() argument 67 key = kmalloc(sizeof(struct sctp_auth_bytes) + key_len, gfp); in sctp_auth_create_key() 79 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp) in sctp_auth_shkey_create() argument 84 new = kzalloc(sizeof(struct sctp_shared_key), gfp); in sctp_auth_shkey_create() 188 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 228 (struct sctp_hmac_algo_param *)asoc->c.auth_hmacs, gfp); in sctp_auth_make_local_vector() 234 gfp_t gfp) in sctp_auth_make_peer_vector() argument 239 gfp); in sctp_auth_make_peer_vector() [all …]
|
D | bind_addr.c | 35 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() 145 int new_size, __u8 addr_state, gfp_t gfp) in sctp_add_bind_addr() argument 150 addr = kzalloc(sizeof(*addr), gfp); in sctp_add_bind_addr() 213 gfp_t gfp) in sctp_bind_addrs_to_raw() argument 240 retval.v = kmalloc(len, gfp); in sctp_bind_addrs_to_raw() [all …]
|
/linux-6.6.21/scripts/coccinelle/locks/ |
D | call_kern.cocci | 20 @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.6.21/tools/testing/fault-injection/ |
D | failcmd.sh | 44 --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.6.21/arch/powerpc/include/asm/ |
D | pgalloc.h | 8 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.6.21/mm/ |
D | zbud.c | 200 static struct zbud_pool *zbud_create_pool(gfp_t gfp) in zbud_create_pool() argument 205 pool = kzalloc(sizeof(struct zbud_pool), gfp); in zbud_create_pool() 246 static int zbud_alloc(struct zbud_pool *pool, size_t size, gfp_t gfp, in zbud_alloc() argument 254 if (!size || (gfp & __GFP_HIGHMEM)) in zbud_alloc() 277 page = alloc_page(gfp); in zbud_alloc() 383 static void *zbud_zpool_create(const char *name, gfp_t gfp) in zbud_zpool_create() argument 385 return zbud_create_pool(gfp); in zbud_zpool_create() 393 static int zbud_zpool_malloc(void *pool, size_t size, gfp_t gfp, in zbud_zpool_malloc() argument 396 return zbud_alloc(pool, size, gfp, handle); in zbud_zpool_malloc()
|
/linux-6.6.21/security/apparmor/include/ |
D | label.h | 60 gfp_t gfp); 280 bool aa_label_init(struct aa_label *label, int size, gfp_t gfp); 281 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp); 301 gfp_t gfp); 304 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, 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); [all …]
|