Home
last modified time | relevance | path

Searched refs:gfp_flags (Results 1 – 25 of 227) sorted by relevance

12345678910

/linux/include/trace/events/
H A Dvmscan.h91 TP_PROTO(int nid, int zid, int order, gfp_t gfp_flags),
93 TP_ARGS(nid, zid, order, gfp_flags),
99 __field( unsigned long, gfp_flags )
106 __entry->gfp_flags = (__force unsigned long)gfp_flags;
112 show_gfp_flags(__entry->gfp_flags))
117 TP_PROTO(int order, gfp_t gfp_flags),
119 TP_ARGS(order, gfp_flags),
123 __field( unsigned long, gfp_flags )
128 __entry->gfp_flags = (__force unsigned long)gfp_flags;
133 show_gfp_flags(__entry->gfp_flags))
[all …]
H A Dkmem.h17 gfp_t gfp_flags,
20 TP_ARGS(call_site, ptr, s, gfp_flags, node),
27 __field( unsigned long, gfp_flags )
37 __entry->gfp_flags = (__force unsigned long)gfp_flags;
40 ((gfp_flags & __GFP_ACCOUNT) ||
49 show_gfp_flags(__entry->gfp_flags),
60 gfp_t gfp_flags,
63 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags, node),
70 __field( unsigned long, gfp_flags )
79 __entry->gfp_flags = (__force unsigned long)gfp_flags;
[all …]
H A Dpercpu.h16 void __percpu *ptr, size_t bytes_alloc, gfp_t gfp_flags),
19 ptr, bytes_alloc, gfp_flags),
31 __field( unsigned long, gfp_flags )
43 __entry->gfp_flags = (__force unsigned long)gfp_flags;
51 __entry->bytes_alloc, show_gfp_flags(__entry->gfp_flags))
/linux/kernel/livepatch/
H A Dshadow.c105 size_t size, gfp_t gfp_flags, in __klp_shadow_get_or_alloc() argument
123 new_shadow = kzalloc(size + sizeof(*new_shadow), gfp_flags); in __klp_shadow_get_or_alloc()
197 size_t size, gfp_t gfp_flags, in klp_shadow_alloc() argument
200 return __klp_shadow_get_or_alloc(obj, id, size, gfp_flags, in klp_shadow_alloc()
226 size_t size, gfp_t gfp_flags, in klp_shadow_get_or_alloc() argument
229 return __klp_shadow_get_or_alloc(obj, id, size, gfp_flags, in klp_shadow_get_or_alloc()
/linux/fs/crypto/
H A Dcrypto.c50 struct page *fscrypt_alloc_bounce_page(gfp_t gfp_flags) in fscrypt_alloc_bounce_page() argument
59 return mempool_alloc(fscrypt_bounce_page_pool, gfp_flags); in fscrypt_alloc_bounce_page()
112 gfp_t gfp_flags) in fscrypt_crypt_data_unit() argument
128 req = skcipher_request_alloc(tfm, gfp_flags); in fscrypt_crypt_data_unit()
183 gfp_t gfp_flags) in fscrypt_encrypt_pagecache_blocks() argument
202 ciphertext_page = fscrypt_alloc_bounce_page(gfp_flags); in fscrypt_encrypt_pagecache_blocks()
209 du_size, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks()
242 u64 lblk_num, gfp_t gfp_flags) in fscrypt_encrypt_block_inplace() argument
248 gfp_flags); in fscrypt_encrypt_block_inplace()
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_alloc.c72 gfp_t gfp_flags; in hns_roce_buf_alloc() local
79 gfp_flags = (flags & HNS_ROCE_BUF_NOSLEEP) ? GFP_ATOMIC : GFP_KERNEL; in hns_roce_buf_alloc()
80 buf = kzalloc(sizeof(*buf), gfp_flags); in hns_roce_buf_alloc()
96 trunks = kcalloc(ntrunk, sizeof(*trunks), gfp_flags); in hns_roce_buf_alloc()
106 &trunks[i].map, gfp_flags); in hns_roce_buf_alloc()
/linux/tools/perf/
H A Dbuiltin-kmem.c295 unsigned gfp_flags; member
490 data->gfp_flags = pstat->gfp_flags; in __page_stat__findnew_page()
545 data->gfp_flags = pstat->gfp_flags; in __page_stat__findnew_alloc()
600 data->gfp_flags = pstat->gfp_flags; in __page_stat__findnew_caller()
689 static char *compact_gfp_flags(char *gfp_flags) in compact_gfp_flags() argument
691 char *orig_flags = strdup(gfp_flags); in compact_gfp_flags()
740 static char *compact_gfp_string(unsigned long gfp_flags) in compact_gfp_string() argument
755 parse_gfp_flags(struct evsel * evsel,struct perf_sample * sample,unsigned int gfp_flags) parse_gfp_flags() argument
810 unsigned int gfp_flags = evsel__intval(evsel, sample, "gfp_flags"); evsel__process_page_alloc_event() local
[all...]
/linux/tools/testing/selftests/livepatch/test_modules/
H A Dtest_klp_shadow_vars.c73 gfp_t gfp_flags, klp_shadow_ctor_t ctor, in shadow_alloc() argument
79 sv = klp_shadow_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_alloc()
81 __func__, ptr_id(obj), id, size, &gfp_flags, ptr_id(ctor), in shadow_alloc()
88 gfp_t gfp_flags, klp_shadow_ctor_t ctor, in shadow_get_or_alloc() argument
94 sv = klp_shadow_get_or_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_get_or_alloc()
96 __func__, ptr_id(obj), id, size, &gfp_flags, ptr_id(ctor), in shadow_get_or_alloc()
/linux/fs/nfs/filelayout/
H A Dfilelayoutdev.c65 gfp_t gfp_flags) in nfs4_fl_alloc_deviceid_node() argument
81 scratch = alloc_page(gfp_flags); in nfs4_fl_alloc_deviceid_node()
103 stripe_indices = kcalloc(cnt, sizeof(u8), gfp_flags); in nfs4_fl_alloc_deviceid_node()
140 dsaddr = kzalloc(struct_size(dsaddr, ds_list, num), gfp_flags); in nfs4_fl_alloc_deviceid_node()
163 &stream, gfp_flags); in nfs4_fl_alloc_deviceid_node()
173 dsaddr->ds_list[i] = nfs4_pnfs_ds_add(&dsaddrs, gfp_flags); in nfs4_fl_alloc_deviceid_node()
/linux/drivers/scsi/aic94xx/
H A Daic94xx_task.c38 gfp_t gfp_flags) in asd_map_scatterlist() argument
77 gfp_flags); in asd_map_scatterlist()
349 gfp_t gfp_flags) in asd_build_ata_ascb() argument
399 gfp_flags); in asd_build_ata_ascb()
412 gfp_t gfp_flags) in asd_build_smp_ascb() argument
462 gfp_t gfp_flags) in asd_build_ssp_ascb() argument
495 res = asd_map_scatterlist(task, scb->ssp_task.sg_element, gfp_flags); in asd_build_ssp_ascb()
522 int asd_execute_task(struct sas_task *task, gfp_t gfp_flags) in asd_execute_task() argument
535 ascb = asd_ascb_alloc_list(asd_ha, &res, gfp_flags); in asd_execute_task()
555 res = asd_build_ata_ascb(a, t, gfp_flags); in asd_execute_task()
[all …]
/linux/net/sunrpc/
H A Dbackchannel_rqst.c64 static int xprt_alloc_xdr_buf(struct xdr_buf *buf, gfp_t gfp_flags) in xprt_alloc_xdr_buf() argument
68 page = alloc_page(gfp_flags); in xprt_alloc_xdr_buf()
77 gfp_t gfp_flags = GFP_KERNEL | __GFP_NORETRY | __GFP_NOWARN; in xprt_alloc_bc_req() local
81 req = kzalloc(sizeof(*req), gfp_flags); in xprt_alloc_bc_req()
88 if (xprt_alloc_xdr_buf(&req->rq_rcv_buf, gfp_flags) < 0) { in xprt_alloc_bc_req()
95 if (xprt_alloc_xdr_buf(&req->rq_snd_buf, gfp_flags) < 0) { in xprt_alloc_bc_req()
H A Dxprtmultipath.c102 static int xprt_switch_alloc_id(struct rpc_xprt_switch *xps, gfp_t gfp_flags) in xprt_switch_alloc_id() argument
106 id = ida_alloc(&rpc_xprtswitch_ids, gfp_flags); in xprt_switch_alloc_id()
128 gfp_t gfp_flags) in xprt_switch_alloc() argument
132 xps = kmalloc(sizeof(*xps), gfp_flags); in xprt_switch_alloc()
136 xprt_switch_alloc_id(xps, gfp_flags); in xprt_switch_alloc()
142 rpc_sysfs_xprt_switch_setup(xps, xprt, gfp_flags); in xprt_switch_alloc()
145 rpc_sysfs_xprt_setup(xps, xprt, gfp_flags); in xprt_switch_alloc()
H A Dsysfs.h29 struct rpc_xprt *xprt, gfp_t gfp_flags);
32 struct rpc_xprt *xprt, gfp_t gfp_flags);
H A Dsysfs.c480 gfp_t gfp_flags) in rpc_sysfs_xprt_switch_alloc() argument
484 p = kzalloc(sizeof(*p), gfp_flags); in rpc_sysfs_xprt_switch_alloc()
500 gfp_t gfp_flags) in rpc_sysfs_xprt_alloc() argument
504 p = kzalloc(sizeof(*p), gfp_flags); in rpc_sysfs_xprt_alloc()
548 gfp_t gfp_flags) in rpc_sysfs_xprt_switch_setup() argument
559 xprt_switch, net, gfp_flags); in rpc_sysfs_xprt_switch_setup()
572 gfp_t gfp_flags) in rpc_sysfs_xprt_setup() argument
581 rpc_xprt = rpc_sysfs_xprt_alloc(&switch_obj->kobject, xprt, gfp_flags); in rpc_sysfs_xprt_setup()
/linux/kernel/bpf/
H A Dbpf_task_storage.c209 u64 flags, gfp_t gfp_flags, bool nobusy) in __bpf_task_storage_get() argument
222 BPF_NOEXIST, gfp_flags); in __bpf_task_storage_get()
231 task, void *, value, u64, flags, gfp_t, gfp_flags) in BPF_CALL_5() argument
242 gfp_flags, nobusy); in BPF_CALL_5()
250 task, void *, value, u64, flags, gfp_t, gfp_flags) in BPF_CALL_5() argument
260 gfp_flags, true); in BPF_CALL_5()
H A Dbpf_local_storage.c76 void *value, bool charge_mem, gfp_t gfp_flags) in bpf_selem_alloc() argument
85 selem = bpf_mem_cache_alloc_flags(&smap->selem_ma, gfp_flags); in bpf_selem_alloc()
98 gfp_flags | __GFP_NOWARN); in bpf_selem_alloc()
451 gfp_t gfp_flags) in bpf_local_storage_alloc() argument
463 storage = bpf_mem_cache_alloc_flags(&smap->storage_ma, gfp_flags); in bpf_local_storage_alloc()
467 gfp_flags | __GFP_NOWARN); in bpf_local_storage_alloc()
527 void *value, u64 map_flags, gfp_t gfp_flags) in bpf_local_storage_update() argument
542 if (gfp_flags == GFP_KERNEL && (map_flags & ~BPF_F_LOCK) != BPF_NOEXIST) in bpf_local_storage_update()
553 selem = bpf_selem_alloc(smap, owner, value, true, gfp_flags); in bpf_local_storage_update()
557 err = bpf_local_storage_alloc(owner, smap, selem, gfp_flags); in bpf_local_storage_update()
[all …]
/linux/drivers/gpu/drm/ttm/
H A Dttm_pool.c79 /* Allocate pages of size 1 << order with the given gfp_flags */
80 static struct page *ttm_pool_alloc_page(struct ttm_pool *pool, gfp_t gfp_flags, in ttm_pool_alloc_page() argument
93 gfp_flags |= __GFP_NOMEMALLOC | __GFP_NORETRY | __GFP_NOWARN | in ttm_pool_alloc_page()
97 p = alloc_pages_node(pool->nid, gfp_flags, order); in ttm_pool_alloc_page()
111 &dma->addr, gfp_flags, attr); in ttm_pool_alloc_page()
436 gfp_t gfp_flags = GFP_USER; in ttm_pool_alloc() local
446 gfp_flags |= __GFP_ZERO; in ttm_pool_alloc()
449 gfp_flags |= __GFP_RETRY_MAYFAIL; in ttm_pool_alloc()
452 gfp_flags |= GFP_DMA32; in ttm_pool_alloc()
454 gfp_flags | in ttm_pool_alloc()
[all...]
/linux/tools/include/linux/
H A Dgfp.h8 static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags) in gfpflags_allow_blocking() argument
10 return !!(gfp_flags & __GFP_DIRECT_RECLAIM); in gfpflags_allow_blocking()
/linux/drivers/md/dm-vdo/
H A Dmemory-alloc.c213 const gfp_t gfp_flags = GFP_KERNEL | __GFP_ZERO | __GFP_RETRY_MAYFAIL; in vdo_allocate_memory() local
232 p = kmalloc(size, gfp_flags | __GFP_NOWARN); in vdo_allocate_memory()
240 p = kmalloc(size, gfp_flags); in vdo_allocate_memory()
260 p = __vmalloc(size, gfp_flags | __GFP_NOWARN); in vdo_allocate_memory()
266 p = __vmalloc(size, gfp_flags); in vdo_allocate_memory()
/linux/drivers/scsi/libsas/
H A Dsas_event.c165 gfp_t gfp_flags) in sas_notify_port_event() argument
172 ev = sas_alloc_event(phy, gfp_flags); in sas_notify_port_event()
192 gfp_t gfp_flags) in sas_notify_phy_event() argument
199 ev = sas_alloc_event(phy, gfp_flags); in sas_notify_phy_event()
/linux/net/ceph/
H A Dsnapshot.c28 gfp_t gfp_flags) in ceph_create_snap_context() argument
35 snapc = kzalloc(size, gfp_flags); in ceph_create_snap_context()
/linux/mm/
H A Dexecmem.c21 gfp_t gfp_flags = GFP_KERNEL | __GFP_NOWARN; in __execmem_alloc() local
31 p = __vmalloc_node_range(size, align, start, end, gfp_flags, in __execmem_alloc()
37 p = __vmalloc_node_range(size, align, start, end, gfp_flags, in __execmem_alloc()
/linux/include/linux/
H A Dbpf_local_storage.h184 bool charge_mem, gfp_t gfp_flags);
194 gfp_t gfp_flags);
198 void *value, u64 map_flags, gfp_t gfp_flags);
/linux/fs/nfs/
H A Dpnfs_dev.c99 const struct cred *cred, gfp_t gfp_flags) in nfs4_get_device_info() argument
117 pdev = kzalloc(sizeof(*pdev), gfp_flags); in nfs4_get_device_info()
121 pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); in nfs4_get_device_info()
126 pages[i] = alloc_page(gfp_flags); in nfs4_get_device_info()
149 gfp_flags); in nfs4_get_device_info()
/linux/drivers/crypto/marvell/cesa/
H A Dtdma.c216 u32 size, u32 flags, gfp_t gfp_flags) in mv_cesa_dma_add_result_op() argument
220 tdma = mv_cesa_dma_add_desc(chain, gfp_flags); in mv_cesa_dma_add_result_op()
283 u32 flags, gfp_t gfp_flags) in mv_cesa_dma_add_data_transfer() argument
287 tdma = mv_cesa_dma_add_desc(chain, gfp_flags); in mv_cesa_dma_add_data_transfer()
325 gfp_t gfp_flags) in mv_cesa_dma_add_op_transfers() argument
345 flags, gfp_flags); in mv_cesa_dma_add_op_transfers()

12345678910