Home
last modified time | relevance | path

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

/linux/mm/
H A Dpage_alloc.c287 int alloc_flags);
1859 unsigned int alloc_flags) in prep_new_page() argument
1872 if (alloc_flags & ALLOC_NO_WATERMARKS) in prep_new_page()
2278 int block_type, unsigned int alloc_flags) in try_to_claim_block() argument
2299 if (boost_watermark(zone) && (alloc_flags & ALLOC_KSWAPD)) in try_to_claim_block()
2352 unsigned int alloc_flags) in __rmqueue_claim() argument
2365 if (order < pageblock_order && alloc_flags & ALLOC_NOFRAGMENT) in __rmqueue_claim()
2390 alloc_flags); in __rmqueue_claim()
2443 unsigned int alloc_flags, enum rmqueue_mode *mode) in __rmqueue() argument
2453 if (alloc_flags & ALLOC_CMA && in __rmqueue()
[all …]
/linux/drivers/base/regmap/
H A Dregcache-maple.c76 entry = kmalloc_array(last - index + 1, sizeof(*entry), 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()
340 entry = kmalloc_array(last - first + 1, sizeof(*entry), map->alloc_flags); in regcache_maple_insert_block()
351 ret = mas_store_gfp(&mas, entry, map->alloc_flags); in regcache_maple_insert_block()
H A Dregcache-rbtree.c188 map->cache = kmalloc_obj(*rbtree_ctx, map->alloc_flags); in regcache_rbtree_init()
280 blk = krealloc_array(rbnode->block, blklen, map->cache_word_size, map->alloc_flags); in regcache_rbtree_insert_to_block()
289 map->alloc_flags); in regcache_rbtree_insert_to_block()
323 rbnode = kzalloc_obj(*rbnode, map->alloc_flags); in regcache_rbtree_node_alloc()
349 map->alloc_flags); in regcache_rbtree_node_alloc()
355 map->alloc_flags); in regcache_rbtree_node_alloc()
H A Dregcache-flat.c39 cache = kzalloc_flex(*cache, data, cache_size, map->alloc_flags); in regcache_flat_init()
43 cache->valid = bitmap_zalloc(cache_size, map->alloc_flags); in regcache_flat_init()
H A Dregmap.c769 map->alloc_flags = GFP_ATOMIC; in __regmap_init()
771 map->alloc_flags = GFP_KERNEL; in __regmap_init()
2390 wval = kmemdup_array(val, val_count, val_bytes, map->alloc_flags); in regmap_bulk_write()
/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()
H A Dttm_pool.c1136 int nid, unsigned int alloc_flags) in ttm_pool_init() argument
1144 pool->alloc_flags = alloc_flags; in ttm_pool_init()
H A Dttm_bo.c881 return bo->bdev->alloc_flags & TTM_ALLOCATION_PROPAGATE_ENOSPC ? in ttm_bo_validate()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gpuvm.c312 u32 alloc_flags = bo->kfd_bo->alloc_flags; in amdgpu_amdkfd_release_notify() local
315 amdgpu_amdkfd_unreserve_mem_limit(adev, size, alloc_flags, in amdgpu_amdkfd_release_notify()
342 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_USERPTR) in create_dmamap_sg_bo()
519 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE) in get_pte_flags()
521 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE) in get_pte_flags()
564 mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_dmamap_userptr()
660 mmio = (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP); in kfd_mem_dmamap_sg_bo()
666 dir = mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_dmamap_sg_bo()
725 mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_dmaunmap_userptr()
787 dir = mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE ? in kfd_mem_dmaunmap_sg_bo()
[all …]
/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 Dcompaction.h93 unsigned int order, unsigned int alloc_flags,
104 int alloc_flags);
H A Dgfp.h447 acr_flags_t alloc_flags, gfp_t gfp_mask);
452 acr_flags_t alloc_flags, gfp_t gfp_mask);
/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/md/
H A 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()
H A Ddm-zoned-metadata.c2050 int alloc_flags = zmd->nr_cache ? DMZ_ALLOC_CACHE : DMZ_ALLOC_RND; in dmz_get_chunk_mapping() local
2065 dzone = dmz_alloc_zone(zmd, 0, alloc_flags); in dmz_get_chunk_mapping()
2162 int alloc_flags = zmd->nr_cache ? DMZ_ALLOC_CACHE : DMZ_ALLOC_RND; in dmz_get_chunk_buffer() local
2171 bzone = dmz_alloc_zone(zmd, 0, alloc_flags); in dmz_get_chunk_buffer()
/linux/fs/xfs/
H A Dxfs_extent_busy.h59 unsigned busy_gen, uint32_t alloc_flags);
/linux/fs/xfs/libxfs/
H A Dxfs_alloc.h198 int xfs_alloc_fix_freelist(struct xfs_alloc_arg *args, uint32_t alloc_flags);
/linux/fs/btrfs/
H A Dblock-group.c3104 u64 alloc_flags; in btrfs_inc_block_group_ro() local
3157 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->flags); in btrfs_inc_block_group_ro()
3158 if (alloc_flags != cache->flags) { in btrfs_inc_block_group_ro()
3159 ret = btrfs_chunk_alloc(trans, space_info, alloc_flags, in btrfs_inc_block_group_ro()
3187 alloc_flags = btrfs_get_alloc_profile(fs_info, space_info->flags); in btrfs_inc_block_group_ro()
3188 ret = btrfs_chunk_alloc(trans, space_info, alloc_flags, CHUNK_ALLOC_FORCE); in btrfs_inc_block_group_ro()
3204 alloc_flags = btrfs_get_alloc_profile(fs_info, cache->flags); in btrfs_inc_block_group_ro()
3206 check_system_chunk(trans, alloc_flags); in btrfs_inc_block_group_ro()
4088 u64 alloc_flags = btrfs_get_alloc_profile(trans->fs_info, type); in btrfs_force_chunk_alloc() local
4097 return btrfs_chunk_alloc(trans, space_info, alloc_flags, CHUNK_ALLOC_FORCE); in btrfs_force_chunk_alloc()
H A Dzoned.c2765 u64 alloc_flags; in btrfs_zoned_reserve_data_reloc_bg() local
2780 alloc_flags = btrfs_get_alloc_profile(fs_info, space_info->flags); in btrfs_zoned_reserve_data_reloc_bg()
2781 index = btrfs_bg_flags_to_raid_index(alloc_flags); in btrfs_zoned_reserve_data_reloc_bg()
2845 ret = btrfs_chunk_alloc(trans, space_info, alloc_flags, CHUNK_ALLOC_FORCE); in btrfs_zoned_reserve_data_reloc_bg()
/linux/fs/xfs/scrub/
H A Drepair.h49 int xrep_fix_freelist(struct xfs_scrub *sc, int alloc_flags);
/linux/drivers/iommu/
H A Ddma-iommu.c913 gfp_t alloc_flags = gfp; in __iommu_dma_alloc_pages() local
917 alloc_flags |= __GFP_NORETRY; in __iommu_dma_alloc_pages()
918 page = alloc_pages_node(nid, alloc_flags, order); in __iommu_dma_alloc_pages()
/linux/arch/s390/kvm/
H A Dkvm-s390.c3178 gfp_t alloc_flags = GFP_KERNEL_ACCOUNT | __GFP_ZERO; in kvm_arch_init_vm() local
3197 alloc_flags |= GFP_DMA; in kvm_arch_init_vm()
3200 kvm->arch.sca = alloc_pages_exact(sizeof(*kvm->arch.sca), alloc_flags); in kvm_arch_init_vm()