Home
last modified time | relevance | path

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

1234567891011

/linux-6.6.21/include/trace/events/
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 …]
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 …]
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-6.6.21/kernel/livepatch/
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-6.6.21/fs/crypto/
Dcrypto.c50 struct page *fscrypt_alloc_bounce_page(gfp_t gfp_flags) in fscrypt_alloc_bounce_page() argument
52 return mempool_alloc(fscrypt_bounce_page_pool, gfp_flags); in fscrypt_alloc_bounce_page()
104 unsigned int offs, gfp_t gfp_flags) in fscrypt_crypt_block() argument
121 req = skcipher_request_alloc(tfm, gfp_flags); in fscrypt_crypt_block()
175 gfp_t gfp_flags) in fscrypt_encrypt_pagecache_blocks() argument
193 ciphertext_page = fscrypt_alloc_bounce_page(gfp_flags); in fscrypt_encrypt_pagecache_blocks()
200 blocksize, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks()
231 u64 lblk_num, gfp_t gfp_flags) in fscrypt_encrypt_block_inplace() argument
234 len, offs, gfp_flags); in fscrypt_encrypt_block_inplace()
/linux-6.6.21/drivers/infiniband/hw/hns/
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-6.6.21/fs/nfs/filelayout/
Dfilelayoutdev.c64 gfp_t gfp_flags) in nfs4_fl_alloc_deviceid_node() argument
80 scratch = alloc_page(gfp_flags); in nfs4_fl_alloc_deviceid_node()
102 stripe_indices = kcalloc(cnt, sizeof(u8), gfp_flags); in nfs4_fl_alloc_deviceid_node()
139 dsaddr = kzalloc(struct_size(dsaddr, ds_list, num), gfp_flags); in nfs4_fl_alloc_deviceid_node()
162 &stream, gfp_flags); in nfs4_fl_alloc_deviceid_node()
172 dsaddr->ds_list[i] = nfs4_pnfs_ds_add(&dsaddrs, gfp_flags); in nfs4_fl_alloc_deviceid_node()
Dfilelayout.c540 gfp_t gfp_flags) in filelayout_check_deviceid() argument
552 lo->plh_lc_cred, gfp_flags); in filelayout_check_deviceid()
602 gfp_t gfp_flags) in filelayout_check_layout() argument
653 gfp_t gfp_flags) in filelayout_decode_layout() argument
664 scratch = alloc_page(gfp_flags); in filelayout_decode_layout()
706 gfp_flags); in filelayout_decode_layout()
713 fl->fh_array[i] = kmalloc(sizeof(struct nfs_fh), gfp_flags); in filelayout_decode_layout()
768 gfp_t gfp_flags) in filelayout_alloc_lseg() argument
774 fl = kzalloc(sizeof(*fl), gfp_flags); in filelayout_alloc_lseg()
778 rc = filelayout_decode_layout(layoutid, fl, lgr, gfp_flags); in filelayout_alloc_lseg()
[all …]
/linux-6.6.21/lib/livepatch/
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-6.6.21/tools/perf/
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
743 .flags = gfp_flags, in compact_gfp_string()
755 unsigned int gfp_flags) in parse_gfp_flags() argument
767 .flags = gfp_flags, in parse_gfp_flags()
[all …]
/linux-6.6.21/tools/include/linux/
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-6.6.21/kernel/bpf/
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()
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()
477 gfp_t gfp_flags) in bpf_local_storage_alloc() argument
489 storage = bpf_mem_cache_alloc_flags(&smap->storage_ma, gfp_flags); in bpf_local_storage_alloc()
493 gfp_flags | __GFP_NOWARN); in bpf_local_storage_alloc()
553 void *value, u64 map_flags, gfp_t gfp_flags) in bpf_local_storage_update() argument
568 if (gfp_flags == GFP_KERNEL && (map_flags & ~BPF_F_LOCK) != BPF_NOEXIST) in bpf_local_storage_update()
579 selem = bpf_selem_alloc(smap, owner, value, true, gfp_flags); in bpf_local_storage_update()
583 err = bpf_local_storage_alloc(owner, smap, selem, gfp_flags); in bpf_local_storage_update()
[all …]
/linux-6.6.21/net/sunrpc/
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()
89 if (xprt_alloc_xdr_buf(&req->rq_rcv_buf, gfp_flags) < 0) { in xprt_alloc_bc_req()
96 if (xprt_alloc_xdr_buf(&req->rq_snd_buf, gfp_flags) < 0) { in xprt_alloc_bc_req()
Dsysfs.h29 struct rpc_xprt *xprt, gfp_t gfp_flags);
32 struct rpc_xprt *xprt, gfp_t gfp_flags);
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()
/linux-6.6.21/drivers/scsi/aic94xx/
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-6.6.21/include/linux/sched/
Dmm.h274 static inline void memalloc_retry_wait(gfp_t gfp_flags) in memalloc_retry_wait() argument
281 gfp_flags = current_gfp_context(gfp_flags); in memalloc_retry_wait()
282 if (gfpflags_allow_blocking(gfp_flags) && in memalloc_retry_wait()
283 !(gfp_flags & __GFP_NORETRY)) in memalloc_retry_wait()
/linux-6.6.21/drivers/gpu/drm/ttm/
Dttm_pool.c79 static struct page *ttm_pool_alloc_page(struct ttm_pool *pool, gfp_t gfp_flags, in ttm_pool_alloc_page() argument
92 gfp_flags |= __GFP_NOMEMALLOC | __GFP_NORETRY | __GFP_NOWARN | in ttm_pool_alloc_page()
96 p = alloc_pages_node(pool->nid, gfp_flags, order); in ttm_pool_alloc_page()
110 &dma->addr, gfp_flags, attr); in ttm_pool_alloc_page()
427 gfp_t gfp_flags = GFP_USER; in ttm_pool_alloc() local
437 gfp_flags |= __GFP_ZERO; in ttm_pool_alloc()
440 gfp_flags |= __GFP_RETRY_MAYFAIL; in ttm_pool_alloc()
443 gfp_flags |= GFP_DMA32; in ttm_pool_alloc()
445 gfp_flags |= GFP_HIGHUSER; in ttm_pool_alloc()
480 (p = ttm_pool_alloc_page(pool, gfp_flags, order))) { in ttm_pool_alloc()
/linux-6.6.21/include/linux/
Dbpf_local_storage.h158 bool charge_mem, gfp_t gfp_flags);
168 gfp_t gfp_flags);
172 void *value, u64 map_flags, gfp_t gfp_flags);
Dstackdepot.h96 gfp_t gfp_flags, bool can_alloc);
111 unsigned int nr_entries, gfp_t gfp_flags);
Dgfp.h16 static inline int gfp_migratetype(const gfp_t gfp_flags) in gfp_migratetype() argument
18 VM_WARN_ON((gfp_flags & GFP_MOVABLE_MASK) == GFP_MOVABLE_MASK); in gfp_migratetype()
29 return (__force unsigned long)(gfp_flags & GFP_MOVABLE_MASK) >> GFP_MOVABLE_SHIFT; in gfp_migratetype()
34 static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags) in gfpflags_allow_blocking() argument
36 return !!(gfp_flags & __GFP_DIRECT_RECLAIM); in gfpflags_allow_blocking()
/linux-6.6.21/net/ceph/
Dsnapshot.c28 gfp_t gfp_flags) in ceph_create_snap_context() argument
35 snapc = kzalloc(size, gfp_flags); in ceph_create_snap_context()
/linux-6.6.21/drivers/scsi/libsas/
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-6.6.21/fs/nfs/
Dpnfs_nfs.c97 pnfs_alloc_commit_array(size_t n, gfp_t gfp_flags) in pnfs_alloc_commit_array() argument
102 p = kmalloc(struct_size(p, buckets, n), gfp_flags); in pnfs_alloc_commit_array()
664 static struct nfs4_pnfs_ds_addr *nfs4_pnfs_ds_addr_alloc(gfp_t gfp_flags) in nfs4_pnfs_ds_addr_alloc() argument
666 struct nfs4_pnfs_ds_addr *da = kzalloc(sizeof(*da), gfp_flags); in nfs4_pnfs_ds_addr_alloc()
717 nfs4_pnfs_remotestr(struct list_head *dsaddrs, gfp_t gfp_flags) in nfs4_pnfs_remotestr() argument
729 remotestr = kzalloc(len, gfp_flags); in nfs4_pnfs_remotestr()
766 nfs4_pnfs_ds_add(struct list_head *dsaddrs, gfp_t gfp_flags) in nfs4_pnfs_ds_add() argument
776 ds = kzalloc(sizeof(*ds), gfp_flags); in nfs4_pnfs_ds_add()
781 remotestr = nfs4_pnfs_remotestr(dsaddrs, gfp_flags); in nfs4_pnfs_ds_add()
1046 nfs4_decode_mp_ds_addr(struct net *net, struct xdr_stream *xdr, gfp_t gfp_flags) in nfs4_decode_mp_ds_addr() argument
[all …]

1234567891011