/linux-6.1.9/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 | 118 gfp_t gfp, bool allow_highmem) in __dma_direct_alloc_pages() argument 129 gfp |= dma_direct_optimal_gfp_mask(dev, dev->coherent_dma_mask, 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.1.9/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 | idr.h | 271 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.1.9/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.1.9/lib/ |
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.1.9/tools/virtio/linux/ |
D | kernel.h | 54 static inline void *kmalloc(size_t s, gfp_t gfp) in kmalloc() argument 60 static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp) in kmalloc_array() argument 62 return kmalloc(n * s, gfp); in kmalloc_array() 65 static inline void *kzalloc(size_t s, gfp_t gfp) in kzalloc() argument 67 void *p = kmalloc(s, gfp); in kzalloc() 73 static inline void *alloc_pages_exact(size_t s, gfp_t gfp) in alloc_pages_exact() argument 75 return kmalloc(s, gfp); in alloc_pages_exact() 90 static inline void *krealloc(void *p, size_t s, gfp_t gfp) in krealloc() argument 96 static inline unsigned long __get_free_page(gfp_t gfp) in __get_free_page() argument 120 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.1.9/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); 95 int key_id, const u8 *tsc, gfp_t gfp); 104 gfp_t gfp); 108 struct cfg80211_rx_info *info, gfp_t gfp); [all …]
|
/linux-6.1.9/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() 138 gfp_t gfp; member 141 struct string_stream *alloc_string_stream(struct kunit *test, gfp_t gfp) in alloc_string_stream() argument 145 stream = kunit_kzalloc(test, sizeof(*stream), gfp); in alloc_string_stream() 149 stream->gfp = gfp; in alloc_string_stream()
|
/linux-6.1.9/include/asm-generic/ |
D | pgalloc.h | 59 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.1.9/mm/ |
D | slob.c | 191 static void *slob_new_pages(gfp_t gfp, int order, int node) in slob_new_pages() argument 197 page = __alloc_pages_node(node, gfp, order); in slob_new_pages() 200 page = alloc_pages(gfp, order); in slob_new_pages() 301 static void *slob_alloc(size_t size, gfp_t gfp, int align, int node, in slob_alloc() argument 359 b = slob_new_pages(gfp & ~__GFP_ZERO, 0, node); in slob_alloc() 376 if (unlikely(gfp & __GFP_ZERO)) in slob_alloc() 478 __do_kmalloc_node(size_t size, gfp_t gfp, int node, unsigned long caller) in __do_kmalloc_node() argument 486 gfp &= gfp_allowed_mask; in __do_kmalloc_node() 488 might_alloc(gfp); in __do_kmalloc_node() 503 m = slob_alloc(size + minalign, gfp, align, node, minalign); in __do_kmalloc_node() [all …]
|
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/drivers/staging/rtl8723bs/include/ |
D | ioctl_cfg80211.h | 111 #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.1.9/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 …]
|
/linux-6.1.9/drivers/base/ |
D | devres.c | 108 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() 121 if (!(gfp & __GFP_ZERO)) in alloc_dr() 159 void *__devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp, int nid, in __devres_alloc_node() argument 164 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node() 549 void * devres_open_group(struct device *dev, void *id, gfp_t gfp) in devres_open_group() argument 554 grp = kmalloc(sizeof(*grp), gfp); in devres_open_group() 817 void *devm_kmalloc(struct device *dev, size_t size, gfp_t gfp) in devm_kmalloc() argument 825 dr = alloc_dr(devm_kmalloc_release, size, gfp, dev_to_node(dev)); in devm_kmalloc() 855 void *devm_krealloc(struct device *dev, void *ptr, size_t new_size, gfp_t gfp) in devm_krealloc() argument [all …]
|