/linux-master/fs/bcachefs/ |
H A D | darray.c | 7 int __bch2_darray_resize(darray_char *d, size_t element_size, size_t new_size, gfp_t gfp) argument 12 void *data = kvmalloc_array(new_size, element_size, gfp);
|
/linux-master/tools/virtio/linux/ |
H A D | kernel.h | 56 static inline void *kmalloc(size_t s, gfp_t gfp) argument 62 static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp) argument 64 return kmalloc(n * s, gfp); 67 static inline void *kzalloc(size_t s, gfp_t gfp) argument 69 void *p = kmalloc(s, gfp); 75 static inline void *alloc_pages_exact(size_t s, gfp_t gfp) argument 77 return kmalloc(s, gfp); 92 static inline void *krealloc(void *p, size_t s, gfp_t gfp) argument 98 static inline unsigned long __get_free_page(gfp_t gfp) argument 118 static inline void *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t gfp) argument [all...] |
H A D | virtio.h | 38 gfp_t gfp); 43 gfp_t gfp); 48 gfp_t gfp);
|
/linux-master/lib/kunit/ |
H A D | string-stream.c | 17 static struct string_stream_fragment *alloc_string_stream_fragment(int len, gfp_t gfp) argument 21 frag = kzalloc(sizeof(*frag), gfp); 25 frag->fragment = kmalloc(len, gfp); 67 frag_container = alloc_string_stream_fragment(buf_len, stream->gfp); 123 buf = kzalloc(buf_len, stream->gfp); 157 struct string_stream *alloc_string_stream(gfp_t gfp) argument 161 stream = kzalloc(sizeof(*stream), gfp); 165 stream->gfp = gfp; 190 struct string_stream *kunit_alloc_string_stream(struct kunit *test, gfp_t gfp) argument [all...] |
/linux-master/net/wireless/ |
H A 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); 99 int key_id, const u8 *tsc, gfp_t gfp); 108 gfp_t gfp); 112 struct cfg80211_rx_info *info, gfp_t gfp); [all...] |
/linux-master/include/net/sctp/ |
H A D | stream_sched.h | 22 gfp_t gfp); 28 int (*init_sid)(struct sctp_stream *stream, __u16 sid, gfp_t gfp); 48 __u16 value, gfp_t gfp); 54 int sctp_sched_init_sid(struct sctp_stream *stream, __u16 sid, gfp_t gfp);
|
H A 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-master/include/linux/ |
H A D | zpool.h | 38 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp); 46 int zpool_malloc(struct zpool *pool, size_t size, gfp_t gfp, 81 void *(*create)(const char *name, gfp_t gfp); 85 int (*malloc)(void *pool, size_t size, gfp_t gfp,
|
H A D | xarray.h | 15 #include <linux/gfp.h> 576 * @gfp: Memory allocation flags. 586 void *entry, gfp_t gfp) 590 might_alloc(gfp); 592 curr = __xa_store(xa, index, entry, gfp); 603 * @gfp: Memory allocation flags. 613 void *entry, gfp_t gfp) 617 might_alloc(gfp); 619 curr = __xa_store(xa, index, entry, gfp); 679 * @gfp 585 xa_store_bh(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp) argument 612 xa_store_irq(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp) argument 688 xa_cmpxchg(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp) argument 716 xa_cmpxchg_bh(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp) argument 744 xa_cmpxchg_irq(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp) argument 774 xa_insert(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp) argument 804 xa_insert_bh(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp) argument 834 xa_insert_irq(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp) argument 867 xa_alloc(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp) argument 900 xa_alloc_bh(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp) argument 933 xa_alloc_irq(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp) argument 970 xa_alloc_cyclic(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp) argument 1007 xa_alloc_cyclic_bh(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp) argument 1044 xa_alloc_cyclic_irq(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp) argument 1076 xa_reserve(struct xarray *xa, unsigned long index, gfp_t gfp) argument 1094 xa_reserve_bh(struct xarray *xa, unsigned long index, gfp_t gfp) argument 1112 xa_reserve_irq(struct xarray *xa, unsigned long index, gfp_t gfp) argument 1565 xas_split_alloc(struct xa_state *xas, void *entry, unsigned int order, gfp_t gfp) argument [all...] |
H A D | objpool.h | 74 * @gfp: gfp flags for kmalloc & vmalloc 86 gfp_t gfp; member in struct:objpool_head 102 * @gfp: flags for memory allocation (via kmalloc or vmalloc) 118 gfp_t gfp, void *context, objpool_init_obj_cb objinit,
|
H A D | flex_proportions.h | 14 #include <linux/gfp.h> 37 int fprop_global_init(struct fprop_global *p, gfp_t gfp); 52 int fprop_local_init_percpu(struct fprop_local_percpu *pl, gfp_t gfp);
|
H A D | string_helpers.h | 112 char *kstrdup_quotable(const char *src, gfp_t gfp); 113 char *kstrdup_quotable_cmdline(struct task_struct *task, gfp_t gfp); 114 char *kstrdup_quotable_file(struct file *file, gfp_t gfp); 116 char *kstrdup_and_replace(const char *src, char old, char new, gfp_t gfp); 118 char **kasprintf_strarray(gfp_t gfp, const char *prefix, size_t n);
|
H A D | btree-type.h | 32 gfp_t gfp) 34 return btree_merge(&target->h, &victim->h, BTREE_TYPE_GEO, gfp); 45 void *val, gfp_t gfp) 48 return btree_insert(&head->h, BTREE_TYPE_GEO, &_key, val, gfp); 88 void *val, gfp_t gfp) 91 val, gfp); 30 merge(BTREE_TYPE_HEAD *target, BTREE_TYPE_HEAD *victim, gfp_t gfp) argument 44 insert(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, void *val, gfp_t gfp) argument 87 insert(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, void *val, gfp_t gfp) argument
|
H A D | skb_array.h | 180 static inline int skb_array_init(struct skb_array *a, int size, gfp_t gfp) argument 182 return ptr_ring_init(&a->ring, size, gfp); 196 static inline int skb_array_resize(struct skb_array *a, int size, gfp_t gfp) argument 198 return ptr_ring_resize(&a->ring, size, gfp, __skb_array_destroy_skb); 203 gfp_t gfp) 207 nrings, size, gfp, 201 skb_array_resize_multiple(struct skb_array **rings, int nrings, unsigned int size, gfp_t gfp) argument
|
/linux-master/net/rds/ |
H A D | page.c | 34 #include <linux/gfp.h> 53 * @gfp: the waiting behaviour of the allocation 55 * @gfp is always ored with __GFP_HIGHMEM. Callers must be prepared to 69 gfp_t gfp) 76 gfp |= __GFP_HIGHMEM; 80 page = alloc_page(gfp); 122 page = alloc_page(gfp); 68 rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes, gfp_t gfp) argument
|
/linux-master/include/drm/ |
H A D | drm_managed.h | 6 #include <linux/gfp.h> 52 void *drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp) __malloc; 58 * @gfp: GFP allocation flags 64 static inline void *drmm_kzalloc(struct drm_device *dev, size_t size, gfp_t gfp) argument 66 return drmm_kmalloc(dev, size, gfp | __GFP_ZERO); 108 char *drmm_kstrdup(struct drm_device *dev, const char *s, gfp_t gfp);
|
/linux-master/include/net/netfilter/ |
H A D | nf_conntrack_timestamp.h | 27 struct nf_conn_tstamp *nf_ct_tstamp_ext_add(struct nf_conn *ct, gfp_t gfp) argument 35 return nf_ct_ext_add(ct, NF_CT_EXT_TSTAMP, gfp);
|
/linux-master/mm/ |
H A D | percpu-km.c | 8 * Chunks are allocated as a contiguous kernel memory using gfp 42 int page_start, int page_end, gfp_t gfp) 53 static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp) argument 61 chunk = pcpu_alloc_chunk(gfp); 65 pages = alloc_pages(gfp, order_base_2(nr_pages)); 41 pcpu_populate_chunk(struct pcpu_chunk *chunk, int page_start, int page_end, gfp_t gfp) argument
|
/linux-master/arch/arm64/include/asm/ |
H A D | vmap_stack.h | 7 #include <linux/gfp.h>
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_sw_fence.h | 13 #include <linux/gfp.h> 77 gfp_t gfp); 90 gfp_t gfp); 96 gfp_t gfp);
|
/linux-master/net/ceph/ |
H A D | buffer.c | 12 struct ceph_buffer *ceph_buffer_new(size_t len, gfp_t gfp) argument 16 b = kmalloc(sizeof(*b), gfp); 20 b->vec.iov_base = kvmalloc(len, gfp);
|
/linux-master/lib/ |
H A D | argv_split.c | 45 * @gfp: the GFP mask used to allocate memory 60 char **argv_split(gfp_t gfp, const char *str, int *argcp) argument 67 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); 72 argv = kmalloc_array(argc + 2, sizeof(*argv), gfp);
|
/linux-master/drivers/staging/rtl8723bs/include/ |
H A D | ioctl_cfg80211.h | 111 #define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, 0) 113 #define rtw_cfg80211_mgmt_tx_status(adapter, cookie, buf, len, ack, gfp) cfg80211_mgmt_tx_status((adapter)->rtw_wdev, cookie, buf, len, ack, gfp) 114 #define rtw_cfg80211_ready_on_channel(adapter, cookie, chan, channel_type, duration, gfp) cfg80211_ready_on_channel((adapter)->rtw_wdev, cookie, chan, duration, gfp) 115 #define rtw_cfg80211_remain_on_channel_expired(adapter, cookie, chan, chan_type, gfp) cfg80211_remain_on_channel_expired((adapter)->rtw_wdev, cookie, chan, gfp)
|
/linux-master/kernel/dma/ |
H A D | direct.c | 119 gfp_t gfp, bool allow_highmem) 130 gfp |= dma_direct_optimal_gfp_mask(dev, &phys_limit); 131 page = dma_alloc_contiguous(dev, size, gfp); 141 page = alloc_pages_node(node, gfp, get_order(size)); 148 !(gfp & (GFP_DMA32 | GFP_DMA))) { 149 gfp |= GFP_DMA32; 153 if (IS_ENABLED(CONFIG_ZONE_DMA) && !(gfp & GFP_DMA)) { 154 gfp = (gfp & ~GFP_DMA32) | GFP_DMA; 164 * pools for the given device/gfp 118 __dma_direct_alloc_pages(struct device *dev, size_t size, gfp_t gfp, bool allow_highmem) argument 166 dma_direct_use_pool(struct device *dev, gfp_t gfp) argument 171 dma_direct_alloc_from_pool(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) argument 189 dma_direct_alloc_no_mapping(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) argument 207 dma_direct_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) argument 357 dma_direct_alloc_pages(struct device *dev, size_t size, dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) argument [all...] |
/linux-master/lib/reed_solomon/ |
H A D | reed_solomon.c | 65 * @gfp: GFP_ flags for allocations 71 int fcr, int prim, int nroots, gfp_t gfp) 76 rs = kzalloc(sizeof(*rs), gfp); 91 rs->alpha_to = kmalloc_array(rs->nn + 1, sizeof(uint16_t), gfp); 95 rs->index_of = kmalloc_array(rs->nn + 1, sizeof(uint16_t), gfp); 99 rs->genpoly = kmalloc_array(rs->nroots + 1, sizeof(uint16_t), gfp); 211 * @gfp: GFP_ flags for allocations 215 int prim, int nroots, gfp_t gfp) 237 rs = kzalloc(sizeof(*rs) + bsize, gfp); 266 rs->codec = codec_init(symsize, gfpoly, gffunc, fcr, prim, nroots, gfp); 70 codec_init(int symsize, int gfpoly, int (*gffunc)(int), int fcr, int prim, int nroots, gfp_t gfp) argument 213 init_rs_internal(int symsize, int gfpoly, int (*gffunc)(int), int fcr, int prim, int nroots, gfp_t gfp) argument 288 init_rs_gfp(int symsize, int gfpoly, int fcr, int prim, int nroots, gfp_t gfp) argument [all...] |