Home
last modified time | relevance | path

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

12345

/include/linux/
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;
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 …]
Dgfp.h176 struct page *__alloc_pages(gfp_t gfp, unsigned int order, int preferred_nid,
178 struct folio *__folio_alloc(gfp_t gfp, unsigned int order, int preferred_nid,
181 unsigned long __alloc_pages_bulk(gfp_t gfp, int preferred_nid,
186 unsigned long alloc_pages_bulk_array_mempolicy(gfp_t gfp,
192 alloc_pages_bulk_list(gfp_t gfp, unsigned long nr_pages, struct list_head *list) in alloc_pages_bulk_list() argument
194 return __alloc_pages_bulk(gfp, numa_mem_id(), NULL, nr_pages, list, NULL); in alloc_pages_bulk_list()
198 alloc_pages_bulk_array(gfp_t gfp, unsigned long nr_pages, struct page **page_array) in alloc_pages_bulk_array() argument
200 return __alloc_pages_bulk(gfp, numa_mem_id(), NULL, nr_pages, NULL, page_array); in alloc_pages_bulk_array()
204 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
209 return __alloc_pages_bulk(gfp, nid, NULL, nr_pages, NULL, page_array); in alloc_pages_bulk_array_node()
[all …]
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
Dxarray.h586 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 …]
Dvmpressure.h33 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, in vmpressure() argument
49 static inline void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, in vmpressure_prio() argument
Dmemregion.h12 int memregion_alloc(gfp_t gfp);
15 static inline int memregion_alloc(gfp_t gfp) in memregion_alloc() argument
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,
Didr.h273 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)
Dskb_array.h180 static inline int skb_array_init(struct skb_array *a, int size, gfp_t gfp) in skb_array_init() argument
182 return ptr_ring_init(&a->ring, size, gfp); in skb_array_init()
196 static inline int skb_array_resize(struct skb_array *a, int size, gfp_t gfp) in skb_array_resize() argument
198 return ptr_ring_resize(&a->ring, size, gfp, __skb_array_destroy_skb); in skb_array_resize()
203 gfp_t gfp) in skb_array_resize_multiple() argument
207 nrings, size, gfp, in skb_array_resize_multiple()
Dbtree-type.h32 gfp_t gfp) in BTREE_FN()
34 return btree_merge(&target->h, &victim->h, BTREE_TYPE_GEO, gfp); in BTREE_FN()
45 void *val, gfp_t gfp) in BTREE_FN()
48 return btree_insert(&head->h, BTREE_TYPE_GEO, &_key, val, gfp); in BTREE_FN()
88 void *val, gfp_t gfp) in BTREE_FN()
91 val, gfp); in BTREE_FN()
Dmaple_tree.h309 void *entry, gfp_t gfp);
311 unsigned long last, void *entry, gfp_t gfp);
314 unsigned long max, gfp_t gfp);
317 unsigned long max, gfp_t gfp);
320 unsigned long last, void *entry, gfp_t gfp);
322 void *entry, gfp_t gfp);
325 int mtree_dup(struct maple_tree *mt, struct maple_tree *new, gfp_t gfp);
326 int __mt_dup(struct maple_tree *mt, struct maple_tree *new, gfp_t gfp);
462 int mas_store_gfp(struct ma_state *mas, void *entry, gfp_t gfp);
468 int mas_preallocate(struct ma_state *mas, void *entry, gfp_t gfp);
[all …]
Dstring_helpers.h102 char *kstrdup_quotable(const char *src, gfp_t gfp);
103 char *kstrdup_quotable_cmdline(struct task_struct *task, gfp_t gfp);
104 char *kstrdup_quotable_file(struct file *file, gfp_t gfp);
106 char **kasprintf_strarray(gfp_t gfp, const char *prefix, size_t n);
Ddma-mapping.h149 gfp_t gfp, unsigned long attrs);
168 enum dma_data_direction dir, gfp_t gfp, unsigned long attrs);
243 dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) in dmam_alloc_attrs() argument
300 size_t size, enum dma_data_direction dir, gfp_t gfp, in dma_alloc_noncontiguous() argument
325 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp);
332 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_alloc_noncoherent() argument
334 struct page *page = dma_alloc_pages(dev, size, dma_handle, dir, gfp); in dma_alloc_noncoherent()
438 dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_coherent() argument
440 return dma_alloc_attrs(dev, size, dma_handle, gfp, in dma_alloc_coherent()
441 (gfp & __GFP_NOWARN) ? DMA_ATTR_NO_WARN : 0); in dma_alloc_coherent()
[all …]
Dbtree-128.h42 void *val, gfp_t gfp) in btree_insert128() argument
46 (unsigned long *)&key, val, gfp); in btree_insert128()
79 gfp_t gfp) in btree_merge128() argument
81 return btree_merge(&target->h, &victim->h, &btree_geo128, gfp); in btree_merge128()
Dptr_ring.h467 static inline void **__ptr_ring_init_queue_alloc(unsigned int size, gfp_t gfp) in __ptr_ring_init_queue_alloc() argument
471 return kvmalloc_array(size, sizeof(void *), gfp | __GFP_ZERO); in __ptr_ring_init_queue_alloc()
487 static inline int ptr_ring_init(struct ptr_ring *r, int size, gfp_t gfp) in ptr_ring_init() argument
489 r->queue = __ptr_ring_init_queue_alloc(size, gfp); in ptr_ring_init()
559 int size, gfp_t gfp, in __ptr_ring_swap_queue() argument
590 static inline int ptr_ring_resize(struct ptr_ring *r, int size, gfp_t gfp, in ptr_ring_resize() argument
594 void **queue = __ptr_ring_init_queue_alloc(size, gfp); in ptr_ring_resize()
603 old = __ptr_ring_swap_queue(r, queue, size, gfp, destroy); in ptr_ring_resize()
622 gfp_t gfp, void (*destroy)(void *)) in ptr_ring_resize_multiple() argument
628 queues = kmalloc_array(nrings, sizeof(*queues), gfp); in ptr_ring_resize_multiple()
[all …]
/include/net/sctp/
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 …]
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);
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);
Dstream_sched.h22 gfp_t gfp);
28 int (*init_sid)(struct sctp_stream *stream, __u16 sid, gfp_t gfp);
50 __u16 value, gfp_t gfp);
56 int sctp_sched_init_sid(struct sctp_stream *stream, __u16 sid, gfp_t gfp);
/include/asm-generic/
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()
/include/drm/
Ddrm_managed.h48 void *drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp) __malloc;
60 static inline void *drmm_kzalloc(struct drm_device *dev, size_t size, gfp_t gfp) in drmm_kzalloc() argument
62 return drmm_kmalloc(dev, size, gfp | __GFP_ZERO); in drmm_kzalloc()
104 char *drmm_kstrdup(struct drm_device *dev, const char *s, gfp_t gfp);
/include/linux/greybus/
Doperation.h149 gfp_t gfp);
154 size_t response_size, gfp_t gfp) in gb_operation_create() argument
157 response_size, 0, gfp); in gb_operation_create()
164 gfp_t gfp);
170 size_t response_size, gfp_t gfp);
175 gfp_t gfp);
/include/net/
Dhwbm.h23 int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp);
28 static inline int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp) in hwbm_pool_refill() argument
Dpage_pool.h215 struct page *page_pool_alloc_pages(struct page_pool *pool, gfp_t gfp);
219 gfp_t gfp = (GFP_ATOMIC | __GFP_NOWARN); in page_pool_dev_alloc_pages() local
221 return page_pool_alloc_pages(pool, gfp); in page_pool_dev_alloc_pages()
225 unsigned int size, gfp_t gfp);
231 gfp_t gfp = (GFP_ATOMIC | __GFP_NOWARN); in page_pool_dev_alloc_frag() local
233 return page_pool_alloc_frag(pool, offset, size, gfp); in page_pool_dev_alloc_frag()
/include/net/netfilter/
Dnf_conntrack_timestamp.h27 struct nf_conn_tstamp *nf_ct_tstamp_ext_add(struct nf_conn *ct, gfp_t gfp) in nf_ct_tstamp_ext_add() argument
35 return nf_ct_ext_add(ct, NF_CT_EXT_TSTAMP, gfp); in nf_ct_tstamp_ext_add()

12345