/linux/include/trace/events/ |
A D | kmem.h | 18 gfp_t gfp_flags), 27 __field( gfp_t, gfp_flags ) 35 __entry->gfp_flags = gfp_flags; 43 show_gfp_flags(__entry->gfp_flags)) 68 gfp_t gfp_flags, 78 __field( gfp_t, gfp_flags ) 87 __entry->gfp_flags = gfp_flags; 104 gfp_t gfp_flags, int node), 113 gfp_t gfp_flags, int node), 211 __field( gfp_t, gfp_flags ) [all …]
|
A D | vmscan.h | 99 __field( gfp_t, gfp_flags ) 106 __entry->gfp_flags = gfp_flags; 119 TP_ARGS(order, gfp_flags), 123 __field( gfp_t, gfp_flags ) 128 __entry->gfp_flags = gfp_flags; 140 TP_ARGS(order, gfp_flags) 148 TP_ARGS(order, gfp_flags) 155 TP_ARGS(order, gfp_flags) 213 __field(gfp_t, gfp_flags) 449 __field(gfp_t, gfp_flags) [all …]
|
/linux/fs/crypto/ |
A D | crypto.c | 50 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() 96 unsigned int offs, gfp_t gfp_flags) in fscrypt_crypt_block() argument 113 req = skcipher_request_alloc(tfm, gfp_flags); in fscrypt_crypt_block() 167 gfp_t gfp_flags) in fscrypt_encrypt_pagecache_blocks() argument 185 ciphertext_page = fscrypt_alloc_bounce_page(gfp_flags); in fscrypt_encrypt_pagecache_blocks() 192 blocksize, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks() 223 u64 lblk_num, gfp_t gfp_flags) in fscrypt_encrypt_block_inplace() argument 226 len, offs, gfp_flags); in fscrypt_encrypt_block_inplace()
|
/linux/kernel/livepatch/ |
A D | shadow.c | 105 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/drivers/infiniband/hw/hns/ |
A D | hns_roce_alloc.c | 73 gfp_t gfp_flags; in hns_roce_buf_alloc() local 80 gfp_flags = (flags & HNS_ROCE_BUF_NOSLEEP) ? GFP_ATOMIC : GFP_KERNEL; in hns_roce_buf_alloc() 81 buf = kzalloc(sizeof(*buf), gfp_flags); in hns_roce_buf_alloc() 97 trunks = kcalloc(ntrunk, sizeof(*trunks), gfp_flags); in hns_roce_buf_alloc() 107 &trunks[i].map, gfp_flags); in hns_roce_buf_alloc()
|
/linux/tools/perf/ |
A D | builtin-kmem.c | 282 unsigned gfp_flags; member 467 data->gfp_flags = pstat->gfp_flags; in __page_stat__findnew_page() 522 data->gfp_flags = pstat->gfp_flags; in __page_stat__findnew_alloc() 577 data->gfp_flags = pstat->gfp_flags; in __page_stat__findnew_caller() 721 .flags = gfp_flags, in compact_gfp_string() 745 .flags = gfp_flags, in parse_gfp_flags() 768 new->flags = gfp_flags; in parse_gfp_flags() 796 .gfp_flags = gfp_flags, in evsel__process_page_alloc_event() 886 this.gfp_flags = pstat->gfp_flags; in evsel__process_page_free_event() 1631 if (l->gfp_flags < r->gfp_flags) in gfp_flags_cmp() [all …]
|
/linux/fs/nfs/filelayout/ |
A D | filelayoutdev.c | 64 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() 141 gfp_flags); in nfs4_fl_alloc_deviceid_node() 164 &stream, gfp_flags); in nfs4_fl_alloc_deviceid_node() 174 dsaddr->ds_list[i] = nfs4_pnfs_ds_add(&dsaddrs, gfp_flags); in nfs4_fl_alloc_deviceid_node()
|
A D | filelayout.c | 538 gfp_t gfp_flags) in filelayout_check_deviceid() argument 550 lo->plh_lc_cred, gfp_flags); in filelayout_check_deviceid() 600 gfp_t gfp_flags) in filelayout_check_layout() argument 651 gfp_t gfp_flags) in filelayout_decode_layout() argument 662 scratch = alloc_page(gfp_flags); in filelayout_decode_layout() 704 gfp_flags); in filelayout_decode_layout() 766 gfp_t gfp_flags) in filelayout_alloc_lseg() argument 772 fl = kzalloc(sizeof(*fl), gfp_flags); in filelayout_alloc_lseg() 833 gfp_t gfp_flags) in fl_pnfs_update_layout() argument 841 gfp_flags); in fl_pnfs_update_layout() [all …]
|
/linux/net/xdp/ |
A D | xsk_queue.c | 26 gfp_t gfp_flags; in xskq_create() local 36 gfp_flags = GFP_KERNEL | __GFP_ZERO | __GFP_NOWARN | in xskq_create() 40 q->ring = (struct xdp_ring *)__get_free_pages(gfp_flags, in xskq_create()
|
/linux/net/sunrpc/ |
A D | backchannel_rqst.c | 67 static int xprt_alloc_xdr_buf(struct xdr_buf *buf, gfp_t gfp_flags) in xprt_alloc_xdr_buf() argument 71 page = alloc_page(gfp_flags); in xprt_alloc_xdr_buf() 79 struct rpc_rqst *xprt_alloc_bc_req(struct rpc_xprt *xprt, gfp_t gfp_flags) in xprt_alloc_bc_req() argument 84 req = kzalloc(sizeof(*req), gfp_flags); in xprt_alloc_bc_req() 92 if (xprt_alloc_xdr_buf(&req->rq_rcv_buf, gfp_flags) < 0) { in xprt_alloc_bc_req() 99 if (xprt_alloc_xdr_buf(&req->rq_snd_buf, gfp_flags) < 0) { in xprt_alloc_bc_req()
|
A D | xprtmultipath.c | 100 static int xprt_switch_alloc_id(struct rpc_xprt_switch *xps, gfp_t gfp_flags) in xprt_switch_alloc_id() argument 104 id = ida_simple_get(&rpc_xprtswitch_ids, 0, 0, gfp_flags); in xprt_switch_alloc_id() 126 gfp_t gfp_flags) in xprt_switch_alloc() argument 130 xps = kmalloc(sizeof(*xps), gfp_flags); in xprt_switch_alloc() 134 xprt_switch_alloc_id(xps, gfp_flags); in xprt_switch_alloc() 140 rpc_sysfs_xprt_switch_setup(xps, xprt, gfp_flags); in xprt_switch_alloc() 143 rpc_sysfs_xprt_setup(xps, xprt, gfp_flags); in xprt_switch_alloc()
|
A D | sysfs.c | 483 gfp_t gfp_flags) in rpc_sysfs_xprt_switch_alloc() argument 487 p = kzalloc(sizeof(*p), gfp_flags); in rpc_sysfs_xprt_switch_alloc() 503 gfp_t gfp_flags) in rpc_sysfs_xprt_alloc() argument 507 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() 570 gfp_t gfp_flags) in rpc_sysfs_xprt_setup() argument 576 rpc_xprt = rpc_sysfs_xprt_alloc(&switch_obj->kobject, xprt, gfp_flags); in rpc_sysfs_xprt_setup()
|
/linux/lib/livepatch/ |
A D | test_klp_shadow_vars.c | 73 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/drivers/scsi/aic94xx/ |
A D | aic94xx_task.c | 38 gfp_t gfp_flags) in asd_map_scatterlist() argument 74 gfp_flags); in asd_map_scatterlist() 347 gfp_t gfp_flags) in asd_build_ata_ascb() argument 402 gfp_flags); in asd_build_ata_ascb() 415 gfp_t gfp_flags) in asd_build_smp_ascb() argument 465 gfp_t gfp_flags) in asd_build_ssp_ascb() argument 528 int asd_execute_task(struct sas_task *task, gfp_t gfp_flags) in asd_execute_task() argument 542 ascb = asd_ascb_alloc_list(asd_ha, &res, gfp_flags); in asd_execute_task() 562 res = asd_build_ata_ascb(a, t, gfp_flags); in asd_execute_task() 565 res = asd_build_smp_ascb(a, t, gfp_flags); in asd_execute_task() [all …]
|
/linux/drivers/gpu/drm/ttm/ |
A D | ttm_pool.c | 78 static struct page *ttm_pool_alloc_page(struct ttm_pool *pool, gfp_t gfp_flags, in ttm_pool_alloc_page() argument 91 gfp_flags |= __GFP_NOMEMALLOC | __GFP_NORETRY | __GFP_NOWARN | in ttm_pool_alloc_page() 95 p = alloc_pages(gfp_flags, order); in ttm_pool_alloc_page() 109 &dma->addr, gfp_flags, attr); in ttm_pool_alloc_page() 366 gfp_t gfp_flags = GFP_USER; in ttm_pool_alloc() local 375 gfp_flags |= __GFP_ZERO; in ttm_pool_alloc() 378 gfp_flags |= __GFP_RETRY_MAYFAIL; in ttm_pool_alloc() 381 gfp_flags |= GFP_DMA32; in ttm_pool_alloc() 383 gfp_flags |= GFP_HIGHUSER; in ttm_pool_alloc() 396 p = ttm_pool_alloc_page(pool, gfp_flags, order); in ttm_pool_alloc()
|
/linux/include/linux/ |
A D | gfp.h | 343 static inline int gfp_migratetype(const gfp_t gfp_flags) in gfp_migratetype() argument 345 VM_WARN_ON((gfp_flags & GFP_MOVABLE_MASK) == GFP_MOVABLE_MASK); in gfp_migratetype() 353 return (gfp_flags & GFP_MOVABLE_MASK) >> GFP_MOVABLE_SHIFT; in gfp_migratetype() 358 static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags) in gfpflags_allow_blocking() argument 360 return !!(gfp_flags & __GFP_DIRECT_RECLAIM); in gfpflags_allow_blocking() 380 static inline bool gfpflags_normal_context(const gfp_t gfp_flags) in gfpflags_normal_context() argument 382 return (gfp_flags & (__GFP_DIRECT_RECLAIM | __GFP_MEMALLOC)) == in gfpflags_normal_context()
|
A D | stackdepot.h | 20 gfp_t gfp_flags, bool can_alloc); 23 unsigned int nr_entries, gfp_t gfp_flags);
|
/linux/drivers/scsi/libsas/ |
A D | sas_event.c | 136 gfp_t gfp_flags) in sas_notify_port_event() argument 144 ev = sas_alloc_event(phy, gfp_flags); in sas_notify_port_event() 159 gfp_t gfp_flags) in sas_notify_phy_event() argument 167 ev = sas_alloc_event(phy, gfp_flags); in sas_notify_phy_event()
|
/linux/fs/nfs/ |
A D | pnfs_nfs.c | 97 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() 713 nfs4_pnfs_remotestr(struct list_head *dsaddrs, gfp_t gfp_flags) in nfs4_pnfs_remotestr() argument 725 remotestr = kzalloc(len, gfp_flags); in nfs4_pnfs_remotestr() 762 nfs4_pnfs_ds_add(struct list_head *dsaddrs, gfp_t gfp_flags) in nfs4_pnfs_ds_add() argument 772 ds = kzalloc(sizeof(*ds), gfp_flags); in nfs4_pnfs_ds_add() 777 remotestr = nfs4_pnfs_remotestr(dsaddrs, gfp_flags); in nfs4_pnfs_ds_add() 1054 gfp_flags); in nfs4_decode_mp_ds_addr() 1061 IPV6_SCOPE_ID_LEN + 8, gfp_flags); in nfs4_decode_mp_ds_addr() 1083 da = nfs4_pnfs_ds_addr_alloc(gfp_flags); in nfs4_decode_mp_ds_addr() [all …]
|
A D | pnfs_dev.c | 99 const struct cred *cred, gfp_t gfp_flags) in nfs4_get_device_info() argument 120 pdev = kzalloc(sizeof(*pdev), gfp_flags); in nfs4_get_device_info() 124 pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); in nfs4_get_device_info() 129 pages[i] = alloc_page(gfp_flags); in nfs4_get_device_info() 152 gfp_flags); in nfs4_get_device_info()
|
/linux/block/ |
A D | blk-ioc.c | 250 int create_task_io_context(struct task_struct *task, gfp_t gfp_flags, int node) in create_task_io_context() argument 255 ioc = kmem_cache_alloc_node(iocontext_cachep, gfp_flags | __GFP_ZERO, in create_task_io_context() 304 gfp_t gfp_flags, int node) in get_task_io_context() argument 308 might_sleep_if(gfpflags_allow_blocking(gfp_flags)); in get_task_io_context() 319 } while (!create_task_io_context(task, gfp_flags, node)); in get_task_io_context()
|
/linux/fs/nfs/flexfilelayout/ |
A D | flexfilelayoutdev.c | 43 gfp_t gfp_flags) in nfs4_ff_alloc_deviceid_node() argument 58 scratch = alloc_page(gfp_flags); in nfs4_ff_alloc_deviceid_node() 62 new_ds = kzalloc(sizeof(struct nfs4_ff_layout_ds), gfp_flags); in nfs4_ff_alloc_deviceid_node() 84 &stream, gfp_flags); in nfs4_ff_alloc_deviceid_node() 104 gfp_flags); in nfs4_ff_alloc_deviceid_node() 150 new_ds->ds = nfs4_pnfs_ds_add(&dsaddrs, gfp_flags); in nfs4_ff_alloc_deviceid_node() 253 gfp_t gfp_flags) in ff_layout_track_ds_error() argument 263 dserr = kmalloc(sizeof(*dserr), gfp_flags); in ff_layout_track_ds_error()
|
/linux/tools/testing/radix-tree/linux/ |
A D | gfp.h | 28 static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags) in gfpflags_allow_blocking() argument 30 return !!(gfp_flags & __GFP_DIRECT_RECLAIM); in gfpflags_allow_blocking()
|
/linux/drivers/crypto/marvell/cesa/ |
A D | tdma.c | 216 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()
|
/linux/include/linux/usb/ |
A D | gadget.h | 143 gfp_t gfp_flags); 147 gfp_t gfp_flags); 251 struct usb_request *usb_ep_alloc_request(struct usb_ep *ep, gfp_t gfp_flags); 253 int usb_ep_queue(struct usb_ep *ep, struct usb_request *req, gfp_t gfp_flags); 269 gfp_t gfp_flags) in usb_ep_alloc_request() argument 275 gfp_t gfp_flags) in usb_ep_queue() argument
|