Home
last modified time | relevance | path

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

/linux-5.19.10/mm/
Dpage_alloc.c2450 unsigned int alloc_flags) in prep_new_page() argument
2463 if (alloc_flags & ALLOC_NO_WATERMARKS) in prep_new_page()
2677 unsigned int alloc_flags, int start_type, bool whole_block) in steal_suitable_fallback() argument
2703 if (boost_watermark(zone) && (alloc_flags & ALLOC_KSWAPD)) in steal_suitable_fallback()
2919 unsigned int alloc_flags) in __rmqueue_fallback() argument
2933 if (alloc_flags & ALLOC_NOFRAGMENT) in __rmqueue_fallback()
2985 steal_suitable_fallback(zone, page, alloc_flags, start_migratetype, in __rmqueue_fallback()
3001 unsigned int alloc_flags) in __rmqueue() argument
3011 if (alloc_flags & ALLOC_CMA && in __rmqueue()
3022 if (alloc_flags & ALLOC_CMA) in __rmqueue()
[all …]
Dcompaction.c2171 unsigned int alloc_flags, in __compaction_suitable() argument
2180 watermark = wmark_pages(zone, alloc_flags & ALLOC_WMARK_MASK); in __compaction_suitable()
2186 alloc_flags)) in __compaction_suitable()
2221 unsigned int alloc_flags, in compaction_suitable() argument
2227 ret = __compaction_suitable(zone, order, alloc_flags, highest_zoneidx, in compaction_suitable()
2259 int alloc_flags) in compaction_zonelist_suitable() argument
2281 compact_result = __compaction_suitable(zone, order, alloc_flags, in compaction_zonelist_suitable()
2313 ret = compaction_suitable(cc->zone, cc->order, cc->alloc_flags, in compact_zone()
2502 unsigned int alloc_flags, int highest_zoneidx, in compact_zone_order() argument
2513 .alloc_flags = alloc_flags, in compact_zone_order()
[all …]
Dinternal.h414 const unsigned int alloc_flags; /* alloc flags of a direct compactor */ member
/linux-5.19.10/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.h955 int highest_zoneidx, unsigned int alloc_flags,
959 unsigned int alloc_flags);
/linux-5.19.10/lib/
Dstackdepot.c366 gfp_t alloc_flags, bool can_alloc) in __stack_depot_save() argument
415 alloc_flags &= ~GFP_ZONEMASK; in __stack_depot_save()
416 alloc_flags &= (GFP_ATOMIC | GFP_KERNEL); in __stack_depot_save()
417 alloc_flags |= __GFP_NOWARN; in __stack_depot_save()
418 page = alloc_pages(alloc_flags, STACK_ALLOC_ORDER); in __stack_depot_save()
473 gfp_t alloc_flags) in stack_depot_save() argument
475 return __stack_depot_save(entries, nr_entries, alloc_flags, true); in stack_depot_save()
/linux-5.19.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c236 u32 alloc_flags = bo->kfd_bo->alloc_flags; in amdgpu_amdkfd_release_notify() local
239 unreserve_mem_limit(adev, size, alloc_flags); in amdgpu_amdkfd_release_notify()
388 bool coherent = mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_COHERENT; in get_pte_flags()
389 bool uncached = mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_UNCACHED; in get_pte_flags()
395 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE) in get_pte_flags()
397 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE) in get_pte_flags()
402 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_VRAM) { in get_pte_flags()
417 !(mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_VRAM)) in get_pte_flags()
420 } else if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_VRAM) { in get_pte_flags()
454 mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_dmamap_userptr()
[all …]
Damdgpu_amdkfd.h75 uint32_t alloc_flags; member
/linux-5.19.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_chardev.c1737 bo_bucket->alloc_flags = (uint32_t)kgd_mem->alloc_flags; in criu_checkpoint_bos()
1740 if (bo_bucket->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_USERPTR) { in criu_checkpoint_bos()
1748 if (bo_bucket->alloc_flags in criu_checkpoint_bos()
1751 bo_bucket->alloc_flags & in criu_checkpoint_bos()
1760 if (bo_bucket->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL) in criu_checkpoint_bos()
1763 else if (bo_bucket->alloc_flags & in criu_checkpoint_bos()
1781 bo_bucket->alloc_flags, in criu_checkpoint_bos()
1805 if (bo_buckets[bo_index].alloc_flags in criu_checkpoint_bos()
1930 if (bo_buckets[i].alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_VRAM) in criu_checkpoint()
2098 if (bo_bucket->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL) { in criu_restore_memory_of_gpu()
[all …]
/linux-5.19.10/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.c2056 int alloc_flags = zmd->nr_cache ? DMZ_ALLOC_CACHE : DMZ_ALLOC_RND; in dmz_get_chunk_mapping() local
2071 dzone = dmz_alloc_zone(zmd, 0, alloc_flags); in dmz_get_chunk_mapping()
2168 int alloc_flags = zmd->nr_cache ? DMZ_ALLOC_CACHE : DMZ_ALLOC_RND; in dmz_get_chunk_buffer() local
2177 bzone = dmz_alloc_zone(zmd, 0, alloc_flags); in dmz_get_chunk_buffer()
/linux-5.19.10/fs/btrfs/
Dblock-group.c2581 u64 alloc_flags; in btrfs_inc_block_group_ro() local
2629 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->flags); in btrfs_inc_block_group_ro()
2630 if (alloc_flags != cache->flags) { in btrfs_inc_block_group_ro()
2631 ret = btrfs_chunk_alloc(trans, alloc_flags, in btrfs_inc_block_group_ro()
2649 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->space_info->flags); in btrfs_inc_block_group_ro()
2650 ret = btrfs_chunk_alloc(trans, alloc_flags, CHUNK_ALLOC_FORCE); in btrfs_inc_block_group_ro()
2666 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->flags); in btrfs_inc_block_group_ro()
2668 check_system_chunk(trans, alloc_flags); in btrfs_inc_block_group_ro()
3487 u64 alloc_flags = btrfs_get_alloc_profile(trans->fs_info, type); in btrfs_force_chunk_alloc() local
3489 return btrfs_chunk_alloc(trans, alloc_flags, CHUNK_ALLOC_FORCE); in btrfs_force_chunk_alloc()
/linux-5.19.10/drivers/base/regmap/
Dinternal.h65 gfp_t alloc_flags; member
Dregmap.c820 map->alloc_flags = GFP_ATOMIC; in __regmap_init()
822 map->alloc_flags = GFP_KERNEL; in __regmap_init()
2315 wval = kmemdup(val, val_count * val_bytes, map->alloc_flags); in regmap_bulk_write()
/linux-5.19.10/include/uapi/linux/
Dkfd_ioctl.h544 __u32 alloc_flags; member
/linux-5.19.10/drivers/iommu/
Ddma-iommu.c751 gfp_t alloc_flags = gfp; in __iommu_dma_alloc_pages() local
755 alloc_flags |= __GFP_NORETRY; in __iommu_dma_alloc_pages()
756 page = alloc_pages_node(nid, alloc_flags, order); in __iommu_dma_alloc_pages()
/linux-5.19.10/drivers/gpu/drm/i915/gem/
Di915_gem_object.h60 unsigned alloc_flags);
/linux-5.19.10/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-5.19.10/arch/s390/kvm/
Dkvm-s390.c2747 gfp_t alloc_flags = GFP_KERNEL_ACCOUNT; in kvm_arch_init_vm() local
2770 alloc_flags |= GFP_DMA; in kvm_arch_init_vm()
2773 kvm->arch.sca = (struct bsca_block *) get_zeroed_page(alloc_flags); in kvm_arch_init_vm()