/linux-6.3-rc2/include/linux/ |
A D | gfp.h | 235 warn_if_node_offline(nid, gfp_mask); in __alloc_pages_node() 260 return __alloc_pages_node(nid, gfp_mask, order); in alloc_pages_node() 280 #define alloc_page(gfp_mask) alloc_pages(gfp_mask, 0) argument 296 #define __get_free_page(gfp_mask) \ argument 297 __get_free_pages((gfp_mask), 0) 299 #define __get_dma_pages(gfp_mask, order) \ argument 300 __get_free_pages((gfp_mask) | GFP_DMA, (order)) 308 unsigned int fragsz, gfp_t gfp_mask, 312 unsigned int fragsz, gfp_t gfp_mask) in page_frag_alloc() argument 339 bool gfp_pfmemalloc_allowed(gfp_t gfp_mask); [all …]
|
A D | cpuset.h | 83 extern bool __cpuset_node_allowed(int node, gfp_t gfp_mask); 85 static inline bool cpuset_node_allowed(int node, gfp_t gfp_mask) in cpuset_node_allowed() argument 88 return __cpuset_node_allowed(node, gfp_mask); in cpuset_node_allowed() 92 static inline bool __cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask) in __cpuset_zone_allowed() argument 94 return __cpuset_node_allowed(zone_to_nid(z), gfp_mask); in __cpuset_zone_allowed() 97 static inline bool cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask) in cpuset_zone_allowed() argument 100 return __cpuset_zone_allowed(z, gfp_mask); in cpuset_zone_allowed() 226 static inline bool cpuset_node_allowed(int node, gfp_t gfp_mask) in cpuset_node_allowed() argument 231 static inline bool __cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask) in __cpuset_zone_allowed() argument 236 static inline bool cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask) in cpuset_zone_allowed() argument
|
A D | mempool.h | 13 typedef void * (mempool_alloc_t)(gfp_t gfp_mask, void *pool_data); 41 gfp_t gfp_mask, int node_id); 49 gfp_t gfp_mask, int nid); 53 extern void *mempool_alloc(mempool_t *pool, gfp_t gfp_mask) __malloc; 61 void *mempool_alloc_slab(gfp_t gfp_mask, void *pool_data); 82 void *mempool_kmalloc(gfp_t gfp_mask, void *pool_data); 101 void *mempool_alloc_pages(gfp_t gfp_mask, void *pool_data);
|
A D | blk-crypto.h | 84 gfp_t gfp_mask); 115 int __bio_crypt_clone(struct bio *dst, struct bio *src, gfp_t gfp_mask); 128 gfp_t gfp_mask) in bio_crypt_clone() argument 131 return __bio_crypt_clone(dst, src, gfp_mask); in bio_crypt_clone()
|
A D | page_owner.h | 13 unsigned short order, gfp_t gfp_mask); 28 unsigned short order, gfp_t gfp_mask) in set_page_owner() argument 31 __set_page_owner(page, order, gfp_mask); in set_page_owner() 59 unsigned int order, gfp_t gfp_mask) in set_page_owner() argument
|
/linux-6.3-rc2/mm/ |
A D | mempool.c | 187 gfp_t gfp_mask, int node_id) in mempool_init_node() argument 197 gfp_mask, node_id); in mempool_init_node() 268 gfp_t gfp_mask, int node_id) in mempool_create_node() argument 277 gfp_mask, node_id)) { in mempool_create_node() 387 VM_WARN_ON_ONCE(gfp_mask & __GFP_ZERO); in mempool_alloc() 388 might_alloc(gfp_mask); in mempool_alloc() 420 if (gfp_temp != gfp_mask) { in mempool_alloc() 422 gfp_temp = gfp_mask; in mempool_alloc() 518 return kmem_cache_alloc(mem, gfp_mask); in mempool_alloc_slab() 536 return kmalloc(size, gfp_mask); in mempool_kmalloc() [all …]
|
A D | page_owner.c | 27 gfp_t gfp_mask; member 162 unsigned short order, gfp_t gfp_mask) in __set_page_owner_handle() argument 172 page_owner->gfp_mask = gfp_mask; in __set_page_owner_handle() 187 gfp_t gfp_mask) in __set_page_owner() argument 192 handle = save_stack(gfp_mask); in __set_page_owner() 250 new_page_owner->gfp_mask = old_page_owner->gfp_mask; in __folio_copy_owner() 413 &page_owner->gfp_mask, page_owner->pid, in print_page_owner() 460 gfp_t gfp_mask; in __dump_page_owner() local 469 gfp_mask = page_owner->gfp_mask; in __dump_page_owner() 470 mt = gfp_migratetype(gfp_mask); in __dump_page_owner() [all …]
|
A D | page_alloc.c | 4281 gfp_mask)) { in get_page_from_freelist() 4392 current->comm, &vaf, gfp_mask, &gfp_mask, in warn_alloc() 4430 .gfp_mask = gfp_mask, in __alloc_pages_may_oom() 4493 WARN_ON_ONCE_GFP(gfp_mask & __GFP_NOFAIL, gfp_mask)) { in __alloc_pages_may_oom() 4726 gfp_mask = current_gfp_context(gfp_mask); in fs_reclaim_acquire() 4743 gfp_mask = current_gfp_context(gfp_mask); in fs_reclaim_release() 5362 might_alloc(gfp_mask); in prepare_alloc_pages() 5712 gfp_t gfp = gfp_mask; in __page_frag_cache_refill() 9315 .gfp_mask = current_gfp_context(gfp_mask), in alloc_contig_range() 9433 gfp_mask); in __alloc_contig_pages() [all …]
|
A D | swap.h | 46 struct page *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, 51 struct page *__read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, 84 gfp_t gfp_mask, struct vm_fault *vmf) in swap_cluster_readahead() argument 89 static inline struct page *swapin_readahead(swp_entry_t swp, gfp_t gfp_mask, in swapin_readahead() argument 124 gfp_t gfp_mask, void **shadowp) in add_to_swap_cache() argument
|
A D | swap_state.c | 453 folio = vma_alloc_folio(gfp_mask, 0, vma, addr, false); in __read_swap_cache_async() 485 if (mem_cgroup_swapin_charge_folio(folio, NULL, gfp_mask, entry)) in __read_swap_cache_async() 515 struct page *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, in read_swap_cache_async() argument 521 struct page *retpage = __read_swap_cache_async(entry, gfp_mask, in read_swap_cache_async() 609 struct page *swap_cluster_readahead(swp_entry_t entry, gfp_t gfp_mask, in swap_cluster_readahead() argument 642 gfp_mask, vma, addr, &page_allocated); in swap_cluster_readahead() 806 page = __read_swap_cache_async(entry, gfp_mask, vma, in swap_vma_readahead() 824 return read_swap_cache_async(fentry, gfp_mask, vma, vmf->address, in swap_vma_readahead() 840 struct page *swapin_readahead(swp_entry_t entry, gfp_t gfp_mask, in swapin_readahead() argument 844 swap_vma_readahead(entry, gfp_mask, vmf) : in swapin_readahead() [all …]
|
/linux-6.3-rc2/block/ |
A D | blk-lib.c | 39 sector_t nr_sects, gfp_t gfp_mask, struct bio **biop) in __blkdev_issue_discard() argument 67 bio = blk_next_bio(bio, bdev, 0, REQ_OP_DISCARD, gfp_mask); in __blkdev_issue_discard() 98 sector_t nr_sects, gfp_t gfp_mask) in blkdev_issue_discard() argument 119 sector_t sector, sector_t nr_sects, gfp_t gfp_mask, in __blkdev_issue_write_zeroes() argument 135 bio = blk_next_bio(bio, bdev, 0, REQ_OP_WRITE_ZEROES, gfp_mask); in __blkdev_issue_write_zeroes() 169 sector_t sector, sector_t nr_sects, gfp_t gfp_mask, in __blkdev_issue_zero_pages() argument 181 REQ_OP_WRITE, gfp_mask); in __blkdev_issue_zero_pages() 219 sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, in __blkdev_issue_zeroout() argument 253 sector_t nr_sects, gfp_t gfp_mask, unsigned flags) in blkdev_issue_zeroout() argument 270 gfp_mask, &bio, flags); in blkdev_issue_zeroout() [all …]
|
A D | blk-map.c | 22 gfp_t gfp_mask) in bio_alloc_map_data() argument 131 struct iov_iter *iter, gfp_t gfp_mask) in bio_copy_user_iov() argument 156 bio = bio_kmalloc(nr_pages, gfp_mask); in bio_copy_user_iov() 246 unsigned int nr_vecs, gfp_t gfp_mask) in blk_rq_map_bio_alloc() argument 256 bio = bio_kmalloc(nr_vecs, gfp_mask); in blk_rq_map_bio_alloc() 265 gfp_t gfp_mask) in bio_map_user_iov() argument 383 unsigned int len, gfp_t gfp_mask) in bio_map_kern() argument 394 bio = bio_kmalloc(nr_pages, gfp_mask); in bio_map_kern() 484 bio = bio_kmalloc(nr_pages, gfp_mask); in bio_copy_kern() 720 gfp_mask); in blk_rq_map_user_io() [all …]
|
A D | blk-crypto.c | 91 const u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE], gfp_t gfp_mask) in bio_crypt_set_ctx() argument 99 WARN_ON_ONCE(!(gfp_mask & __GFP_DIRECT_RECLAIM)); in bio_crypt_set_ctx() 101 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in bio_crypt_set_ctx() 115 int __bio_crypt_clone(struct bio *dst, struct bio *src, gfp_t gfp_mask) in __bio_crypt_clone() argument 117 dst->bi_crypt_context = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in __bio_crypt_clone() 303 gfp_t gfp_mask) in __blk_crypto_rq_bio_prep() argument 306 rq->crypt_ctx = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in __blk_crypto_rq_bio_prep()
|
/linux-6.3-rc2/fs/btrfs/ |
A D | ulist.h | 48 struct ulist *ulist_alloc(gfp_t gfp_mask); 50 int ulist_add(struct ulist *ulist, u64 val, u64 aux, gfp_t gfp_mask); 52 u64 *old_aux, gfp_t gfp_mask); 57 void **old_aux, gfp_t gfp_mask) in ulist_add_merge_ptr() argument 61 int ret = ulist_add_merge(ulist, val, (uintptr_t)aux, &old64, gfp_mask); in ulist_add_merge_ptr() 65 return ulist_add_merge(ulist, val, (u64)aux, (u64 *)old_aux, gfp_mask); in ulist_add_merge_ptr()
|
A D | ulist.c | 97 struct ulist *ulist_alloc(gfp_t gfp_mask) in ulist_alloc() argument 99 struct ulist *ulist = kmalloc(sizeof(*ulist), gfp_mask); in ulist_alloc() 193 int ulist_add(struct ulist *ulist, u64 val, u64 aux, gfp_t gfp_mask) in ulist_add() argument 195 return ulist_add_merge(ulist, val, aux, NULL, gfp_mask); in ulist_add() 199 u64 *old_aux, gfp_t gfp_mask) in ulist_add_merge() argument 210 node = kmalloc(sizeof(*node), gfp_mask); in ulist_add_merge()
|
/linux-6.3-rc2/fs/nfs/blocklayout/ |
A D | dev.c | 236 struct pnfs_block_volume *volumes, int idx, gfp_t gfp_mask) in bl_parse_simple() argument 242 dev = bl_resolve_deviceid(server, v, gfp_mask); in bl_parse_simple() 411 volumes, v->concat.volumes[i], gfp_mask); in bl_parse_concat() 440 volumes, v->stripe.volumes[i], gfp_mask); in bl_parse_stripe() 460 return bl_parse_simple(server, d, volumes, idx, gfp_mask); in bl_parse_deviceid() 462 return bl_parse_slice(server, d, volumes, idx, gfp_mask); in bl_parse_deviceid() 468 return bl_parse_scsi(server, d, volumes, idx, gfp_mask); in bl_parse_deviceid() 477 gfp_t gfp_mask) in bl_alloc_deviceid_node() argument 488 scratch = alloc_page(gfp_mask); in bl_alloc_deviceid_node() 501 gfp_mask); in bl_alloc_deviceid_node() [all …]
|
/linux-6.3-rc2/lib/ |
A D | generic-radix-tree.c | 79 static inline struct genradix_node *genradix_alloc_node(gfp_t gfp_mask) in genradix_alloc_node() argument 83 node = (struct genradix_node *)__get_free_page(gfp_mask|__GFP_ZERO); in genradix_alloc_node() 90 kmemleak_alloc(node, PAGE_SIZE, 1, gfp_mask); in genradix_alloc_node() 105 gfp_t gfp_mask) in __genradix_ptr_alloc() argument 122 new_node = genradix_alloc_node(gfp_mask); in __genradix_ptr_alloc() 145 new_node = genradix_alloc_node(gfp_mask); in __genradix_ptr_alloc() 218 gfp_t gfp_mask) in __genradix_prealloc() argument 223 if (!__genradix_ptr_alloc(radix, offset, gfp_mask)) in __genradix_prealloc()
|
A D | scatterlist.c | 161 void *ptr = (void *) __get_free_page(gfp_mask); in sg_kmalloc() 162 kmemleak_alloc(ptr, PAGE_SIZE, 1, gfp_mask); in sg_kmalloc() 166 gfp_mask); in sg_kmalloc() 318 sg = alloc_fn(alloc_size, gfp_mask); in __sg_alloc_table() 376 NULL, 0, gfp_mask, sg_kmalloc); in sg_alloc_table() 386 gfp_t gfp_mask) in get_next_sg() argument 399 new_sg = sg_kmalloc(alloc_size, gfp_mask); in get_next_sg() 454 unsigned int left_pages, gfp_t gfp_mask) in sg_alloc_append_table_from_pages() argument 524 gfp_mask); in sg_alloc_append_table_from_pages() 578 gfp_t gfp_mask) in sg_alloc_table_from_pages_segment() argument [all …]
|
/linux-6.3-rc2/net/sunrpc/auth_gss/ |
A D | gss_krb5_keys.c | 174 inblockdata = kmalloc(blocksize, gfp_mask); in krb5_DK() 178 outblockdata = kmalloc(blocksize, gfp_mask); in krb5_DK() 291 gfp_t gfp_mask) in krb5_derive_key_v1() argument 297 inblock.data = kmalloc(inblock.len, gfp_mask); in krb5_derive_key_v1() 355 gfp_t gfp_mask) in krb5_derive_key_v2() argument 361 inblock.data = kmalloc(inblock.len, gfp_mask); in krb5_derive_key_v2() 456 gfp_t gfp_mask) in krb5_kdf_feedback_cmac() argument 485 step.data = kzalloc(step.len, gfp_mask); in krb5_kdf_feedback_cmac() 490 DR.data = kmalloc(DR.len, gfp_mask); in krb5_kdf_feedback_cmac() 588 gfp_t gfp_mask) in krb5_kdf_hmac_sha2() argument [all …]
|
A D | gss_krb5_mech.c | 495 KEY_USAGE_SEED_CHECKSUM, gfp_mask)) in gss_krb5_import_ctx_v1() 558 KEY_USAGE_SEED_ENCRYPTION, gfp_mask)) in gss_krb5_import_ctx_v2() 574 KEY_USAGE_SEED_ENCRYPTION, gfp_mask)) in gss_krb5_import_ctx_v2() 591 KEY_USAGE_SEED_CHECKSUM, gfp_mask)) in gss_krb5_import_ctx_v2() 599 KEY_USAGE_SEED_CHECKSUM, gfp_mask)) in gss_krb5_import_ctx_v2() 608 KEY_USAGE_SEED_INTEGRITY, gfp_mask)) in gss_krb5_import_ctx_v2() 616 KEY_USAGE_SEED_INTEGRITY, gfp_mask)) in gss_krb5_import_ctx_v2() 643 gfp_t gfp_mask) in gss_import_v2_context() argument 703 return ctx->gk5e->import_ctx(ctx, gfp_mask); in gss_import_v2_context() 711 time64_t *endtime, gfp_t gfp_mask) in gss_krb5_import_sec_context() argument [all …]
|
A D | gss_krb5_internal.h | 36 int (*import_ctx)(struct krb5_ctx *ctx, gfp_t gfp_mask); 41 gfp_t gfp_mask); 120 gfp_t gfp_mask); 126 gfp_t gfp_mask); 132 gfp_t gfp_mask); 138 gfp_t gfp_mask); 157 u32 usage, u8 seed, gfp_t gfp_mask) in krb5_derive_key() argument 169 return gk5e->derive_key(gk5e, inkey, outkey, &label, gfp_mask); in krb5_derive_key()
|
/linux-6.3-rc2/include/linux/sched/ |
A D | mm.h | 226 extern void fs_reclaim_acquire(gfp_t gfp_mask); 227 extern void fs_reclaim_release(gfp_t gfp_mask); 231 static inline void fs_reclaim_acquire(gfp_t gfp_mask) { } in fs_reclaim_acquire() argument 232 static inline void fs_reclaim_release(gfp_t gfp_mask) { } in fs_reclaim_release() argument 269 static inline void might_alloc(gfp_t gfp_mask) in might_alloc() argument 271 fs_reclaim_acquire(gfp_mask); in might_alloc() 272 fs_reclaim_release(gfp_mask); in might_alloc() 274 might_sleep_if(gfpflags_allow_blocking(gfp_mask)); in might_alloc()
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | icm.c | 99 gfp_t gfp_mask, int node) in mlx4_alloc_icm_pages() argument 103 page = alloc_pages_node(node, gfp_mask, order); in mlx4_alloc_icm_pages() 105 page = alloc_pages(gfp_mask, order); in mlx4_alloc_icm_pages() 115 int order, gfp_t gfp_mask) in mlx4_alloc_icm_coherent() argument 118 &buf->dma_addr, gfp_mask); in mlx4_alloc_icm_coherent() 133 gfp_t gfp_mask, int coherent) in mlx4_alloc_icm() argument 142 BUG_ON(coherent && (gfp_mask & __GFP_HIGHMEM)); in mlx4_alloc_icm() 145 gfp_mask & ~(__GFP_HIGHMEM | __GFP_NOWARN), in mlx4_alloc_icm() 162 gfp_mask & ~(__GFP_HIGHMEM | in mlx4_alloc_icm() 167 gfp_mask & ~(__GFP_HIGHMEM | in mlx4_alloc_icm() [all …]
|
/linux-6.3-rc2/fs/ntfs/ |
A D | malloc.h | 28 static inline void *__ntfs_malloc(unsigned long size, gfp_t gfp_mask) in __ntfs_malloc() argument 33 return kmalloc(PAGE_SIZE, gfp_mask & ~__GFP_HIGHMEM); in __ntfs_malloc() 37 return __vmalloc(size, gfp_mask); in __ntfs_malloc()
|
/linux-6.3-rc2/drivers/connector/ |
A D | connector.c | 62 gfp_t gfp_mask) in cn_netlink_send_mult() argument 96 skb = nlmsg_new(size, gfp_mask); in cn_netlink_send_mult() 114 gfp_mask); in cn_netlink_send_mult() 116 !gfpflags_allow_blocking(gfp_mask)); in cn_netlink_send_mult() 122 gfp_t gfp_mask) in cn_netlink_send() argument 124 return cn_netlink_send_mult(msg, msg->len, portid, __group, gfp_mask); in cn_netlink_send()
|