Home
last modified time | relevance | path

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

12

/linux/mm/
H A Dpage_alloc.c303 int alloc_flags);
1250 unsigned int nr, unsigned int alloc_flags)
1264 alloc_tag_add_early_pfn(page_to_pfn(page), alloc_flags); in __pgalloc_tag_add()
1271 unsigned int nr, unsigned int alloc_flags) in __pgalloc_tag_add()
1274 __pgalloc_tag_add(page, task, nr, alloc_flags); in pgalloc_tag_add() argument
1307 unsigned int nr, unsigned int alloc_flags) {}
1824 gfp_t gfp_flags, unsigned int alloc_flags) in post_alloc_hook()
1875 pgalloc_tag_add(page, current, 1 << order, alloc_flags);
1879 unsigned int alloc_flags) in prep_new_page()
1881 post_alloc_hook(page, order, gfp_flags, alloc_flags); in prep_new_page()
1253 __pgalloc_tag_add(struct page * page,struct task_struct * task,unsigned int nr,unsigned int alloc_flags) __pgalloc_tag_add() argument
1310 pgalloc_tag_add(struct page * page,struct task_struct * task,unsigned int nr,unsigned int alloc_flags) pgalloc_tag_add() argument
1822 post_alloc_hook(struct page * page,unsigned int order,gfp_t gfp_flags,unsigned int alloc_flags) post_alloc_hook() argument
1877 prep_new_page(struct page * page,unsigned int order,gfp_t gfp_flags,unsigned int alloc_flags) prep_new_page() argument
2300 try_to_claim_block(struct zone * zone,struct page * page,int current_order,int order,int start_type,int block_type,unsigned int alloc_flags) try_to_claim_block() argument
2374 __rmqueue_claim(struct zone * zone,int order,int start_migratetype,unsigned int alloc_flags) __rmqueue_claim() argument
2467 __rmqueue(struct zone * zone,unsigned int order,int migratetype,unsigned int alloc_flags,enum rmqueue_mode * mode) __rmqueue() argument
2537 rmqueue_bulk(struct zone * zone,unsigned int order,unsigned long count,struct list_head * list,int migratetype,unsigned int alloc_flags) rmqueue_bulk() argument
3222 rmqueue_buddy(struct zone * preferred_zone,struct zone * zone,unsigned int order,unsigned int alloc_flags,int migratetype) rmqueue_buddy() argument
3328 __rmqueue_pcplist(struct zone * zone,unsigned int order,int migratetype,unsigned int alloc_flags,struct per_cpu_pages * pcp,struct list_head * list) __rmqueue_pcplist() argument
3373 rmqueue_pcplist(struct zone * preferred_zone,struct zone * zone,unsigned int order,int migratetype,unsigned int alloc_flags) rmqueue_pcplist() argument
3415 rmqueue(struct zone * preferred_zone,struct zone * zone,unsigned int order,gfp_t gfp_flags,unsigned int alloc_flags,int migratetype) rmqueue() argument
3572 __zone_watermark_unusable_free(struct zone * z,unsigned int order,unsigned int alloc_flags) __zone_watermark_unusable_free() argument
3599 __zone_watermark_ok(struct zone * z,unsigned int order,unsigned long mark,int highest_zoneidx,unsigned int alloc_flags,long free_pages) __zone_watermark_ok() argument
3677 zone_watermark_ok(struct zone * z,unsigned int order,unsigned long mark,int highest_zoneidx,unsigned int alloc_flags) zone_watermark_ok() argument
3685 zone_watermark_fast(struct zone * z,unsigned int order,unsigned long mark,int highest_zoneidx,unsigned int alloc_flags,gfp_t gfp_mask) zone_watermark_fast() argument
3754 unsigned int alloc_flags = 0; alloc_flags_nofragment() local
3800 get_page_from_freelist(gfp_t gfp_mask,unsigned int order,int alloc_flags,const struct alloc_context * ac) get_page_from_freelist() argument
4026 __alloc_pages_cpuset_fallback(gfp_t gfp_mask,unsigned int order,unsigned int alloc_flags,const struct alloc_context * ac) __alloc_pages_cpuset_fallback() argument
4140 __alloc_pages_direct_compact(gfp_t gfp_mask,unsigned int order,unsigned int alloc_flags,const struct alloc_context * ac,enum compact_priority prio,enum compact_result * compact_result) __alloc_pages_direct_compact() argument
4249 should_compact_retry(gfp_t gfp_mask,struct alloc_context * ac,int order,int alloc_flags,enum compact_result compact_result,enum compact_priority * compact_priority,int * compaction_retries) should_compact_retry() argument
4317 __alloc_pages_direct_compact(gfp_t gfp_mask,unsigned int order,unsigned int alloc_flags,const struct alloc_context * ac,enum compact_priority prio,enum compact_result * compact_result) __alloc_pages_direct_compact() argument
4326 should_compact_retry(gfp_t gfp_mask,struct alloc_context * ac,int order,int alloc_flags,enum compact_result compact_result,enum compact_priority * compact_priority,int * compaction_retries) should_compact_retry() argument
4465 __alloc_pages_direct_reclaim(gfp_t gfp_mask,unsigned int order,unsigned int alloc_flags,const struct alloc_context * ac,unsigned long * did_some_progress) __alloc_pages_direct_reclaim() argument
4530 unsigned int alloc_flags = 0; alloc_flags_nonblocking() local
4553 unsigned int alloc_flags = ALLOC_WMARK_MIN | ALLOC_CPUSET; alloc_flags_slowpath() local
4641 should_reclaim_retry(gfp_t gfp_mask,unsigned order,struct alloc_context * ac,int alloc_flags,bool did_some_progress,int * no_progress_loops) should_reclaim_retry() argument
4792 unsigned int alloc_flags; __alloc_pages_slowpath() local
5060 unsigned int alloc_flags = ac->alloc_flags | ALLOC_MIN_RESERVE; __alloc_pages_slowpath() local
5094 prepare_alloc_pages(gfp_t gfp_mask,unsigned int order,int preferred_nid,nodemask_t * nodemask,struct alloc_context * ac,gfp_t * alloc_gfp,unsigned int * alloc_flags) prepare_alloc_pages() argument
5170 unsigned int alloc_flags = ALLOC_WMARK_LOW; alloc_pages_bulk_noprof() local
5331 alloc_order_allowed(gfp_t gfp,unsigned int order,unsigned int alloc_flags) alloc_order_allowed() argument
5384 __alloc_frozen_pages_noprof(gfp_t gfp,unsigned int order,int preferred_nid,nodemask_t * nodemask,unsigned int alloc_flags) __alloc_frozen_pages_noprof() argument
5467 __alloc_pages_noprof(gfp_t gfp,unsigned int order,int preferred_nid,nodemask_t * nodemask,unsigned int alloc_flags) __alloc_pages_noprof() argument
7284 alloc_contig_frozen_range_noprof(unsigned long start,unsigned long end,acr_flags_t alloc_flags,gfp_t gfp_mask) alloc_contig_frozen_range_noprof() argument
7441 alloc_contig_range_noprof(unsigned long start,unsigned long end,acr_flags_t alloc_flags,gfp_t gfp_mask) alloc_contig_range_noprof() argument
7964 cond_accept_memory(struct zone * zone,unsigned int order,int alloc_flags) cond_accept_memory() argument
8028 cond_accept_memory(struct zone * zone,unsigned int order,int alloc_flags) cond_accept_memory() argument
[all...]
H A Dslab.h20 /* slab's alloc_flags definitions */
38 static inline bool alloc_flags_allow_spinning(const unsigned int alloc_flags) in alloc_flags_allow_spinning() argument
40 return !(alloc_flags & SLAB_ALLOC_NOLOCK); in alloc_flags_allow_spinning()
49 unsigned int alloc_flags, int node)
53 gfp_t flags, unsigned int alloc_flags, int node, kmalloc_token_t token) in _kmalloc_flags_noprof() argument
55 return __kmalloc_flags_noprof(PASS_TOKEN_PARAMS(size, token), flags, alloc_flags, node); in _kmalloc_flags_noprof()
419 unsigned int alloc_flags) in size_index_elem()
424 if (alloc_flags & SLAB_ALLOC_NO_OBJ_EXT)
817 gfp_t gfp, unsigned int alloc_flags);
433 kmalloc_slab(size_t size,kmem_buckets * b,gfp_t flags,kmalloc_token_t token,unsigned int alloc_flags) kmalloc_slab() argument
H A Dslub.c226 unsigned int alloc_flags; member
2197 gfp_t gfp, unsigned int alloc_flags) in alloc_slab_obj_exts()
2199 const bool allow_spin = alloc_flags_allow_spinning(alloc_flags); in alloc_slab_obj_exts()
2200 bool new_slab = alloc_flags & SLAB_ALLOC_NEW_SLAB; in alloc_slab_obj_exts()
2213 alloc_flags |= SLAB_ALLOC_NO_OBJ_EXT; in alloc_slab_obj_exts()
2215 alloc_flags &= ~SLAB_ALLOC_NEW_SLAB; in alloc_slab_obj_exts()
2217 /* This will use kmalloc_nolock() if alloc_flags say so */ in alloc_slab_obj_exts()
2218 vec = kmalloc_flags(sz, gfp | __GFP_ZERO, alloc_flags, slab_nid(slab)); in alloc_slab_obj_exts()
2369 gfp_t gfp, unsigned int alloc_flags) in prepare_slab_obj_exts_hook()
2389 gfp_t flags, unsigned int alloc_flags, voi in __alloc_tagging_slab_alloc_hook()
2165 alloc_slab_obj_exts(struct slab * slab,struct kmem_cache * s,gfp_t gfp,unsigned int alloc_flags) alloc_slab_obj_exts() argument
2337 alloc_slab_obj_exts(struct slab * slab,struct kmem_cache * s,gfp_t gfp,unsigned int alloc_flags) alloc_slab_obj_exts() argument
2357 prepare_slab_obj_exts_hook(struct kmem_cache * s,struct slab * slab,gfp_t flags,unsigned int alloc_flags,void * p) prepare_slab_obj_exts_hook() argument
2377 __alloc_tagging_slab_alloc_hook(struct kmem_cache * s,void * object,gfp_t flags,unsigned int alloc_flags) __alloc_tagging_slab_alloc_hook() argument
2423 alloc_tagging_slab_alloc_hook(struct kmem_cache * s,void * object,gfp_t flags,unsigned int alloc_flags) alloc_tagging_slab_alloc_hook() argument
2485 alloc_tagging_slab_alloc_hook(struct kmem_cache * s,void * object,gfp_t flags,unsigned int alloc_flags) alloc_tagging_slab_alloc_hook() argument
2808 __alloc_empty_sheaf(struct kmem_cache * s,gfp_t gfp,unsigned int alloc_flags,unsigned int capacity) __alloc_empty_sheaf() argument
2835 alloc_empty_sheaf(struct kmem_cache * s,gfp_t gfp,unsigned int alloc_flags) alloc_empty_sheaf() argument
3414 account_slab(struct slab * slab,int order,struct kmem_cache * s,gfp_t gfp,unsigned int alloc_flags) account_slab() argument
3442 allocate_slab(struct kmem_cache * s,gfp_t flags,unsigned int alloc_flags,int node) allocate_slab() argument
3504 new_slab(struct kmem_cache * s,gfp_t flags,unsigned int alloc_flags,int node) new_slab() argument
4715 __pcs_replace_empty_main(struct kmem_cache * s,struct slub_percpu_sheaves * pcs,gfp_t gfp,unsigned int alloc_flags) __pcs_replace_empty_main() argument
4827 alloc_from_pcs(struct kmem_cache * s,gfp_t gfp,unsigned int alloc_flags,int node) alloc_from_pcs() argument
5593 __kmalloc_flags_noprof(DECL_TOKEN_PARAMS (size,token),gfp_t flags,unsigned int alloc_flags,int node) __kmalloc_flags_noprof() argument
6131 unsigned int alloc_flags = to_alloc_flags(free_flags); __kfree_rcu_sheaf() local
[all...]
H A Dalloc_tag.c1182 void alloc_tag_add_early_pfn(unsigned long pfn, unsigned int alloc_flags) in alloc_tag_add_early_pfn() argument
1190 if (alloc_flags & ALLOC_NO_CODETAG) in alloc_tag_add_early_pfn()
H A Dhugetlb.c2883 * @alloc_flags: Flags controlling the allocation behavior. in hugetlb_alloc_folio()
2893 u8 alloc_flags) in hugetlb_alloc_folio()
2895 bool charge_hugetlb_cgroup_rsvd = alloc_flags & in hugetlb_alloc_folio()
2897 bool use_global_reservation = alloc_flags & in hugetlb_alloc_folio()
3020 u8 alloc_flags = 0; in alloc_hugetlb_folio()
3071 alloc_flags |= HUGETLB_ALLOC_CHARG_CGROUP_RSVD; in alloc_hugetlb_folio()
3078 alloc_flags |= HUGETLB_ALLOC_USE_GLOBAL_RESERVATIONS; in alloc_hugetlb_folio()
3092 folio = hugetlb_alloc_folio(h, &mpoli, vma->vm_mm, alloc_flags); in alloc_bootmem()
2840 hugetlb_alloc_folio(struct hstate * h,struct mempolicy_interpreted * mpoli,u8 alloc_flags) hugetlb_alloc_folio() argument
2962 u8 alloc_flags = 0; alloc_hugetlb_folio() local
/linux/drivers/base/regmap/
H A Dregcache-maple.c76 entry = kmalloc_objs(*entry, last - index + 1, map->alloc_flags); in regcache_maple_write()
94 ret = mas_store_gfp(&mas, entry, map->alloc_flags); in regcache_maple_write()
138 map->alloc_flags); in regcache_maple_drop()
151 map->alloc_flags); in regcache_maple_drop()
165 ret = mas_store_gfp(&mas, lower, map->alloc_flags); in regcache_maple_drop()
173 ret = mas_store_gfp(&mas, upper, map->alloc_flags); in regcache_maple_drop()
207 buf = kmalloc_array(max - min, val_bytes, map->alloc_flags); in regcache_maple_sync_block()
297 mt = kmalloc_obj(*mt, map->alloc_flags); in regcache_maple_init()
343 entry = kmalloc_objs(*entry, last - first + 1, map->alloc_flags); in regcache_maple_insert_block()
354 ret = mas_store_gfp(&mas, entry, map->alloc_flags); in regcache_maple_insert_block()
[all...]
/linux/drivers/gpu/drm/ttm/
H A Dttm_pool_internal.h12 return pool->alloc_flags & TTM_ALLOCATION_POOL_USE_DMA_ALLOC; in ttm_pool_uses_dma_alloc()
17 return pool->alloc_flags & TTM_ALLOCATION_POOL_USE_DMA32; in ttm_pool_uses_dma32()
22 return pool->alloc_flags & 0xff; in ttm_pool_beneficial_order()
/linux/fs/xfs/libxfs/
H A Dxfs_alloc.c1676 uint32_t alloc_flags) in xfs_alloc_ag_vextent_near() argument
1696 alloc_flags |= XFS_ALLOC_FLAG_TRYFLUSH; in xfs_alloc_ag_vextent_near()
1762 alloc_flags); in xfs_alloc_ag_vextent_near()
1766 alloc_flags &= ~XFS_ALLOC_FLAG_TRYFLUSH; in xfs_alloc_ag_vextent_near()
1792 uint32_t alloc_flags) in xfs_alloc_ag_vextent_size() argument
1807 alloc_flags |= XFS_ALLOC_FLAG_TRYFLUSH; in xfs_alloc_ag_vextent_size()
1879 alloc_flags); in xfs_alloc_ag_vextent_size()
1883 alloc_flags &= ~XFS_ALLOC_FLAG_TRYFLUSH; in xfs_alloc_ag_vextent_size()
1979 alloc_flags); in xfs_alloc_ag_vextent_size()
1983 alloc_flags in xfs_alloc_ag_vextent_size()
2828 xfs_alloc_fix_freelist(struct xfs_alloc_arg * args,uint32_t alloc_flags) xfs_alloc_fix_freelist() argument
3557 xfs_alloc_vextent_prepare_ag(struct xfs_alloc_arg * args,uint32_t alloc_flags) xfs_alloc_vextent_prepare_ag() argument
3687 uint32_t alloc_flags = 0; xfs_alloc_vextent_this_ag() local
3737 xfs_alloc_vextent_iterate_ags(struct xfs_alloc_arg * args,xfs_agnumber_t minimum_agno,xfs_agnumber_t start_agno,xfs_agblock_t target_agbno,uint32_t alloc_flags) xfs_alloc_vextent_iterate_ags() argument
3813 uint32_t alloc_flags = XFS_ALLOC_FLAG_TRYLOCK; xfs_alloc_vextent_start_ag() local
3867 uint32_t alloc_flags = XFS_ALLOC_FLAG_TRYLOCK; xfs_alloc_vextent_first_ag() local
3939 uint32_t alloc_flags = 0; xfs_alloc_vextent_near_bno() local
[all...]
H A Dxfs_alloc.h199 int xfs_alloc_fix_freelist(struct xfs_alloc_arg *args, uint32_t alloc_flags);
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gpuvm.c299 u32 alloc_flags = bo->kfd_bo->alloc_flags; in amdgpu_amdkfd_unreserve_mem_limit()
302 amdgpu_amdkfd_unreserve_mem_limit(adev, size, alloc_flags, in amdgpu_amdkfd_unreserve_mem_limit()
353 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_USERPTR) in create_dmamap_sg_bo()
530 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE)
532 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE)
575 mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_dmamap_userptr()
671 mmio = (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP); in kfd_mem_dmamap_sg_bo()
677 dir = mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_dmamap_sg_bo()
736 mem->alloc_flags in kfd_mem_dmaunmap_userptr()
312 u32 alloc_flags = bo->kfd_bo->alloc_flags; amdgpu_amdkfd_release_notify() local
1724 u64 alloc_flags; amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local
[all...]
H A Damdgpu_amdkfd.h90 uint32_t alloc_flags;
84 uint32_t alloc_flags; global() member
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.c120 unsigned int alloc_flags, in ttm_device_kunit_init_with_funcs() argument
129 alloc_flags); in ttm_device_kunit_init_with_funcs()
145 unsigned int alloc_flags) in ttm_device_kunit_init() argument
147 return ttm_device_kunit_init_with_funcs(priv, ttm, alloc_flags, in ttm_device_kunit_init()
/linux/include/linux/
H A Dstackdepot.h159 gfp_t alloc_flags,
178 unsigned int nr_entries, gfp_t alloc_flags);
H A Dalloc_tag.h168 void alloc_tag_add_early_pfn(unsigned long pfn, unsigned int alloc_flags);
172 static inline void alloc_tag_add_early_pfn(unsigned long pfn, unsigned int alloc_flags) {} in alloc_tag_add_early_pfn() argument
H A Dmmzone.h1640 int highest_zoneidx, unsigned int alloc_flags,
1644 unsigned int alloc_flags);
/linux/lib/
H A Dstackdepot.c643 gfp_t alloc_flags, in stack_depot_save_flags() argument
651 bool allow_spin = gfpflags_allow_spinning(alloc_flags); in stack_depot_save_flags()
685 page = alloc_pages(gfp_nested_mask(alloc_flags), in stack_depot_save_flags()
745 gfp_t alloc_flags) in stack_depot_save() argument
747 return stack_depot_save_flags(entries, nr_entries, alloc_flags, in stack_depot_save()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c2144 bo_bucket->alloc_flags = (uint32_t)kgd_mem->alloc_flags; in criu_checkpoint_bos()
2147 if (bo_bucket->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_USERPTR) { in criu_checkpoint_bos()
2155 if (bo_bucket->alloc_flags in criu_checkpoint_bos()
2158 bo_bucket->alloc_flags & in criu_checkpoint_bos()
2167 if (bo_bucket->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL) in criu_checkpoint_bos()
2170 else if (bo_bucket->alloc_flags & in criu_checkpoint_bos()
2185 "gpu_id = 0x%x alloc_flags = 0x%x idr_handle = 0x%x", in criu_checkpoint_bos()
2190 bo_bucket->alloc_flags, in criu_checkpoint_bos()
2498 if (bo_bucket->alloc_flags in criu_restore_memory_of_gpu()
[all...]
/linux/fs/xfs/
H A Dxfs_extent_busy.c613 uint32_t alloc_flags) in xfs_extent_busy_flush() argument
625 if (alloc_flags & XFS_ALLOC_FLAG_TRYFLUSH) in xfs_extent_busy_flush()
631 if (alloc_flags & XFS_ALLOC_FLAG_FREEING) in xfs_extent_busy_flush()
H A Dxfs_extent_busy.h59 unsigned busy_gen, uint32_t alloc_flags);
/linux/include/linux/sched/
H A Dtopology.h83 int alloc_flags; member
/linux/fs/btrfs/
H A Dblock-group.c3129 u64 alloc_flags;
3182 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->flags); in btrfs_inc_block_group_ro()
3183 if (alloc_flags != cache->flags) { in btrfs_inc_block_group_ro()
3184 ret = btrfs_chunk_alloc(trans, space_info, alloc_flags, in btrfs_inc_block_group_ro()
3212 alloc_flags = btrfs_get_alloc_profile(fs_info, space_info->flags); in btrfs_inc_block_group_ro()
3213 ret = btrfs_chunk_alloc(trans, space_info, alloc_flags, CHUNK_ALLOC_FORCE); in btrfs_inc_block_group_ro()
3229 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->flags); in btrfs_inc_block_group_ro()
3231 check_system_chunk(trans, alloc_flags); in btrfs_inc_block_group_ro()
3781 u64 alloc_flags = btrfs_get_alloc_profile(trans->fs_info, type); in btrfs_write_dirty_block_groups()
3790 return btrfs_chunk_alloc(trans, space_info, alloc_flags, CHUNK_ALLOC_FORC in btrfs_write_dirty_block_groups()
3141 u64 alloc_flags; btrfs_inc_block_group_ro() local
4125 u64 alloc_flags = btrfs_get_alloc_profile(trans->fs_info, type); btrfs_force_chunk_alloc() local
[all...]
H A Dzoned.c2814 u64 alloc_flags; in btrfs_zoned_reserve_data_reloc_bg()
2828 alloc_flags = btrfs_get_alloc_profile(fs_info, space_info->flags); in btrfs_zoned_reserve_data_reloc_bg()
2829 index = btrfs_bg_flags_to_raid_index(alloc_flags); in btrfs_zoned_reserve_data_reloc_bg()
2886 ret = btrfs_chunk_alloc(trans, space_info, alloc_flags, CHUNK_ALLOC_FORCE); in btrfs_free_zone_cache()
2798 u64 alloc_flags; btrfs_zoned_reserve_data_reloc_bg() local
/linux/fs/xfs/scrub/
H A Drepair.h49 int xrep_fix_freelist(struct xfs_scrub *sc, int alloc_flags);
H A Drepair.c469 int alloc_flags) in xrep_fix_freelist() argument
479 return xfs_alloc_fix_freelist(&args, alloc_flags); in xrep_fix_freelist()
/linux/drivers/iommu/
H A Ddma-iommu.c914 gfp_t alloc_flags = gfp; in __iommu_dma_alloc_pages()
918 alloc_flags |= __GFP_NORETRY; in __iommu_dma_alloc_pages()
919 page = alloc_pages_node(nid, alloc_flags, order); in __iommu_dma_alloc_pages()
913 gfp_t alloc_flags = gfp; __iommu_dma_alloc_pages() local

12