Home
last modified time | relevance | path

Searched refs:alloc_flags (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.15/lib/
Dstackdepot.c106 u32 hash, void **prealloc, gfp_t alloc_flags) in depot_alloc_stack() argument
261 gfp_t alloc_flags) in stack_depot_save() argument
300 alloc_flags &= ~GFP_ZONEMASK; in stack_depot_save()
301 alloc_flags &= (GFP_ATOMIC | GFP_KERNEL); in stack_depot_save()
302 alloc_flags |= __GFP_NOWARN; in stack_depot_save()
303 page = alloc_pages(alloc_flags, STACK_ALLOC_ORDER); in stack_depot_save()
314 hash, &prealloc, alloc_flags); in stack_depot_save()
/Linux-v5.15/mm/
Dpage_alloc.c2424 unsigned int alloc_flags) in prep_new_page() argument
2437 if (alloc_flags & ALLOC_NO_WATERMARKS) in prep_new_page()
2652 unsigned int alloc_flags, int start_type, bool whole_block) in steal_suitable_fallback() argument
2678 if (boost_watermark(zone) && (alloc_flags & ALLOC_KSWAPD)) in steal_suitable_fallback()
2894 unsigned int alloc_flags) in __rmqueue_fallback() argument
2908 if (alloc_flags & ALLOC_NOFRAGMENT) in __rmqueue_fallback()
2960 steal_suitable_fallback(zone, page, alloc_flags, start_migratetype, in __rmqueue_fallback()
2976 unsigned int alloc_flags) in __rmqueue() argument
2986 if (alloc_flags & ALLOC_CMA && in __rmqueue()
2997 if (alloc_flags & ALLOC_CMA) in __rmqueue()
[all …]
Dcompaction.c2149 unsigned int alloc_flags, in __compaction_suitable() argument
2158 watermark = wmark_pages(zone, alloc_flags & ALLOC_WMARK_MASK); in __compaction_suitable()
2164 alloc_flags)) in __compaction_suitable()
2199 unsigned int alloc_flags, in compaction_suitable() argument
2205 ret = __compaction_suitable(zone, order, alloc_flags, highest_zoneidx, in compaction_suitable()
2237 int alloc_flags) in compaction_zonelist_suitable() argument
2259 compact_result = __compaction_suitable(zone, order, alloc_flags, in compaction_zonelist_suitable()
2290 ret = compaction_suitable(cc->zone, cc->order, cc->alloc_flags, in compact_zone()
2482 unsigned int alloc_flags, int highest_zoneidx, in compact_zone_order() argument
2493 .alloc_flags = alloc_flags, in compact_zone_order()
[all …]
Dinternal.h252 const unsigned int alloc_flags; /* alloc flags of a direct compactor */ member
/Linux-v5.15/include/linux/
Dcompaction.h95 unsigned int order, unsigned int alloc_flags,
100 unsigned int alloc_flags, int highest_zoneidx);
178 int alloc_flags);
190 int alloc_flags, int highest_zoneidx) in compaction_suitable() argument
Dmmzone.h933 int highest_zoneidx, unsigned int alloc_flags,
937 unsigned int alloc_flags);
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c404 bool coherent = mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_COHERENT; in get_pte_flags()
405 bool uncached = mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_UNCACHED; in get_pte_flags()
411 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE) in get_pte_flags()
413 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE) in get_pte_flags()
418 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_VRAM) { in get_pte_flags()
433 !(mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_VRAM)) in get_pte_flags()
436 } else if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_VRAM) { in get_pte_flags()
470 mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_dmamap_userptr()
551 mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_dmaunmap_userptr()
634 mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_attach_dmabuf()
[all …]
Damdgpu_amdkfd.h75 uint32_t alloc_flags; member
/Linux-v5.15/drivers/md/
Ddm-zoned-reclaim.c286 int alloc_flags = DMZ_ALLOC_SEQ; in dmz_reclaim_rnd_data() local
292 alloc_flags | DMZ_ALLOC_RECLAIM); in dmz_reclaim_rnd_data()
293 if (!szone && alloc_flags == DMZ_ALLOC_SEQ && dmz_nr_cache_zones(zmd)) { in dmz_reclaim_rnd_data()
294 alloc_flags = DMZ_ALLOC_RND; in dmz_reclaim_rnd_data()
Ddm-zoned-metadata.c2070 int alloc_flags = zmd->nr_cache ? DMZ_ALLOC_CACHE : DMZ_ALLOC_RND; in dmz_get_chunk_mapping() local
2085 dzone = dmz_alloc_zone(zmd, 0, alloc_flags); in dmz_get_chunk_mapping()
2182 int alloc_flags = zmd->nr_cache ? DMZ_ALLOC_CACHE : DMZ_ALLOC_RND; in dmz_get_chunk_buffer() local
2191 bzone = dmz_alloc_zone(zmd, 0, alloc_flags); in dmz_get_chunk_buffer()
/Linux-v5.15/fs/btrfs/
Dblock-group.c2509 u64 alloc_flags; in btrfs_inc_block_group_ro() local
2544 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->flags); in btrfs_inc_block_group_ro()
2545 if (alloc_flags != cache->flags) { in btrfs_inc_block_group_ro()
2546 ret = btrfs_chunk_alloc(trans, alloc_flags, in btrfs_inc_block_group_ro()
2564 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->space_info->flags); in btrfs_inc_block_group_ro()
2565 ret = btrfs_chunk_alloc(trans, alloc_flags, CHUNK_ALLOC_FORCE); in btrfs_inc_block_group_ro()
2573 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->flags); in btrfs_inc_block_group_ro()
2575 check_system_chunk(trans, alloc_flags); in btrfs_inc_block_group_ro()
3365 u64 alloc_flags = btrfs_get_alloc_profile(trans->fs_info, type); in btrfs_force_chunk_alloc() local
3367 return btrfs_chunk_alloc(trans, alloc_flags, CHUNK_ALLOC_FORCE); in btrfs_force_chunk_alloc()
/Linux-v5.15/drivers/base/regmap/
Dinternal.h64 gfp_t alloc_flags; member
Dregmap.c819 map->alloc_flags = GFP_ATOMIC; in __regmap_init()
821 map->alloc_flags = GFP_KERNEL; in __regmap_init()
2296 wval = kmemdup(val, val_count * val_bytes, map->alloc_flags); in regmap_bulk_write()
/Linux-v5.15/drivers/iommu/
Ddma-iommu.c641 gfp_t alloc_flags = gfp; in __iommu_dma_alloc_pages() local
645 alloc_flags |= __GFP_NORETRY; in __iommu_dma_alloc_pages()
646 page = alloc_pages_node(nid, alloc_flags, order); in __iommu_dma_alloc_pages()
/Linux-v5.15/drivers/gpu/drm/i915/gem/
Di915_gem_object.h60 unsigned alloc_flags);
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c77 gfp_t alloc_flags = cbk ? GFP_ATOMIC : GFP_KERNEL; in cmd_alloc_ent() local
80 ent = kzalloc(sizeof(*ent), alloc_flags); in cmd_alloc_ent()
/Linux-v5.15/arch/s390/kvm/
Dkvm-s390.c2677 gfp_t alloc_flags = GFP_KERNEL_ACCOUNT; in kvm_arch_init_vm() local
2700 alloc_flags |= GFP_DMA; in kvm_arch_init_vm()
2703 kvm->arch.sca = (struct bsca_block *) get_zeroed_page(alloc_flags); in kvm_arch_init_vm()