Home
last modified time | relevance | path

Searched defs:flags (Results 1 – 25 of 58) sorted by relevance

123

/mm/
Dhighmem.c140 #define lock_kmap_any(flags) spin_lock_irqsave(&kmap_lock, flags) argument
141 #define unlock_kmap_any(flags) spin_unlock_irqrestore(&kmap_lock, flags) argument
145 #define lock_kmap_any(flags) \ argument
147 #define unlock_kmap_any(flags) \ argument
309 unsigned long vaddr, flags; in kmap_high_get() local
333 unsigned long flags; in kunmap_high() local
411 unsigned long flags; in page_address() local
445 unsigned long flags; in set_page_address() local
Dslab_common.c125 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr, in __kmem_cache_alloc_bulk()
294 unsigned long flags, const char *name, void (*ctor)(void *)) in find_mergeable()
344 unsigned long calculate_alignment(unsigned long flags, in calculate_alignment()
369 unsigned long flags, void (*ctor)(void *), in create_cache()
434 unsigned long flags, void (*ctor)(void *)) in kmem_cache_create()
886 unsigned long flags) in create_boot_cache()
906 unsigned long flags) in create_kmalloc_cache()
970 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags) in kmalloc_slab()
1064 static void __init new_kmalloc_cache(int idx, unsigned long flags) in new_kmalloc_cache()
1075 void __init create_kmalloc_caches(unsigned long flags) in create_kmalloc_caches()
[all …]
Dkmemleak.c152 unsigned int flags; /* object status flags */ member
491 unsigned long flags; in find_and_get_object() local
514 unsigned long flags; in find_and_remove_object() local
551 unsigned long flags; in create_object() local
637 unsigned long flags; in __delete_object() local
718 unsigned long flags; in paint_it() local
765 unsigned long flags; in add_scan_area() local
811 unsigned long flags; in object_set_excess_ref() local
834 unsigned long flags; in object_no_scan() local
856 unsigned long flags; in log_early() local
[all …]
Dslab.c443 unsigned long flags, size_t *left_over) in cache_estimate()
654 gfp_t flags) in alternate_node_alloc()
660 gfp_t flags, int nodeid) in ____cache_alloc_node()
665 static inline gfp_t gfp_exact_node(gfp_t flags) in gfp_exact_node()
779 unsigned long flags; in drain_alien_cache() local
844 static inline gfp_t gfp_exact_node(gfp_t flags) in gfp_exact_node()
1371 unsigned long flags; in slab_out_of_memory() local
1409 static struct page *kmem_getpages(struct kmem_cache *cachep, gfp_t flags, in kmem_getpages()
1753 size_t size, unsigned long flags) in calculate_slab_order()
1881 unsigned long flags, const char *name, in kmem_cache_flags()
[all …]
Dprocess_vm_access.c92 unsigned int flags = 0; in process_vm_rw_single_vec() local
157 unsigned long flags, int vm_write) in process_vm_rw_core()
265 unsigned long flags, int vm_write) in process_vm_rw()
302 unsigned long, riovcnt, unsigned long, flags) in SYSCALL_DEFINE6() argument
310 unsigned long, riovcnt, unsigned long, flags) in SYSCALL_DEFINE6() argument
323 unsigned long flags, int vm_write) in compat_process_vm_rw()
361 compat_ulong_t, flags) in COMPAT_SYSCALL_DEFINE6() argument
372 compat_ulong_t, flags) in COMPAT_SYSCALL_DEFINE6() argument
Dmemory-failure.c182 unsigned long pfn, struct page *page, int flags) in kill_proc()
328 int flags) in kill_procs()
932 int trapno, int flags, struct page **hpagep) in hwpoison_user_mappings()
1050 static int memory_failure_hugetlb(unsigned long pfn, int trapno, int flags) in memory_failure_hugetlb()
1140 int memory_failure(unsigned long pfn, int trapno, int flags) in memory_failure()
1315 int flags; member
1344 void memory_failure_queue(unsigned long pfn, int trapno, int flags) in memory_failure_queue()
1514 static int __get_any_page(struct page *p, unsigned long pfn, int flags) in __get_any_page()
1544 static int get_any_page(struct page *page, unsigned long pfn, int flags) in get_any_page()
1571 static int soft_offline_huge_page(struct page *page, int flags) in soft_offline_huge_page()
[all …]
Dballoon_compaction.c44 unsigned long flags; in balloon_page_enqueue() local
74 unsigned long flags; in balloon_page_dequeue() local
127 unsigned long flags; in balloon_page_isolate() local
140 unsigned long flags; in balloon_page_putback() local
Dmempolicy.c241 static struct mempolicy *mpol_new(unsigned short mode, unsigned short flags, in mpol_new()
410 unsigned long flags; member
425 unsigned long flags = qp->flags; in queue_pages_required() local
443 unsigned long flags; in queue_pages_pmd() local
497 unsigned long flags = qp->flags; in queue_pages_pte_range() local
563 unsigned long flags = qp->flags; in queue_pages_hugetlb() local
622 unsigned long flags = qp->flags; in queue_pages_test_walk() local
670 nodemask_t *nodes, unsigned long flags, in queue_pages_range()
789 static long do_set_mempolicy(unsigned short mode, unsigned short flags, in do_set_mempolicy()
866 unsigned long addr, unsigned long flags) in do_get_mempolicy()
[all …]
Dmemblock.c111 ulong flags) in __memblock_find_range_bottom_up()
145 ulong flags) in __memblock_find_range_top_down()
190 phys_addr_t end, int nid, ulong flags) in memblock_find_in_range_node()
253 ulong flags = choose_memblock_flags(); in memblock_find_in_range() local
474 int nid, unsigned long flags) in memblock_insert_region()
506 int nid, unsigned long flags) in memblock_add_range()
870 void __init_memblock __next_mem_range(u64 *idx, int nid, ulong flags, in __next_mem_range()
979 void __init_memblock __next_mem_range_rev(u64 *idx, int nid, ulong flags, in __next_mem_range_rev()
1137 phys_addr_t end, int nid, ulong flags) in memblock_alloc_range_nid()
1159 ulong flags) in memblock_alloc_range()
[all …]
Dmempool.c114 static void kasan_unpoison_element(mempool_t *pool, void *element, gfp_t flags) in kasan_unpoison_element()
130 static void *remove_element(mempool_t *pool, gfp_t flags) in remove_element()
242 unsigned long flags; in mempool_resize() local
315 unsigned long flags; in mempool_alloc() local
391 unsigned long flags; in mempool_free() local
Dslob.c275 unsigned long flags; in slob_alloc() local
346 unsigned long flags; in slob_free() local
527 int __kmem_cache_create(struct kmem_cache *c, unsigned long flags) in __kmem_cache_create()
537 static void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node) in slob_alloc_node()
565 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc()
623 int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, in kmem_cache_alloc_bulk()
Dnommu.c240 void *__vmalloc_node_flags(unsigned long size, int node, gfp_t flags) in __vmalloc_node_flags()
421 void *vmap(struct page **pages, unsigned int count, unsigned long flags, pgprot_t prot) in vmap()
672 static void protect_vma(struct vm_area_struct *vma, unsigned long flags) in protect_vma()
897 unsigned long flags, in validate_mmap_request()
1056 unsigned long flags, in determine_vm_flags()
1209 unsigned long flags, in do_mmap()
1431 unsigned long, prot, unsigned long, flags, in SYSCALL_DEFINE6() argument
1459 unsigned long flags; member
1699 unsigned long flags, unsigned long new_addr) in do_mremap()
1734 unsigned long, new_len, unsigned long, flags, in SYSCALL_DEFINE5() argument
[all …]
Dgup.c24 unsigned int flags) in no_page_table()
40 pte_t *pte, unsigned int flags) in follow_pfn_pte()
67 static inline bool can_follow_write_pte(pte_t pte, unsigned int flags) in can_follow_write_pte()
74 unsigned long address, pmd_t *pmd, unsigned int flags) in follow_page_pte()
216 unsigned int flags, unsigned int *page_mask) in follow_pmd_mask()
311 unsigned int flags, unsigned int *page_mask) in follow_pud_mask()
351 unsigned int flags, unsigned int *page_mask) in follow_p4d_mask()
388 unsigned long address, unsigned int flags, in follow_page_mask()
493 unsigned long address, unsigned int *flags, int *nonblocking) in faultin_page()
867 unsigned int flags) in __get_user_pages_locked()
[all …]
Dshmem.c146 static inline int shmem_acct_size(unsigned long flags, loff_t size) in shmem_acct_size()
152 static inline void shmem_unacct_size(unsigned long flags, loff_t size) in shmem_unacct_size()
158 static inline int shmem_reacct_size(unsigned long flags, in shmem_reacct_size()
177 static inline int shmem_acct_block(unsigned long flags, long pages) in shmem_acct_block()
186 static inline void shmem_unacct_blocks(unsigned long flags, long pages) in shmem_unacct_blocks()
294 unsigned long flags; in shmem_charge() local
314 unsigned long flags; in shmem_uncharge() local
2021 unsigned long pgoff, unsigned long flags) in shmem_get_unmapped_area()
2183 umode_t mode, dev_t dev, unsigned long flags) in shmem_get_inode()
2417 loff_t pos, unsigned len, unsigned flags, in shmem_write_begin()
[all …]
Dmlock.c577 vm_flags_t flags) in apply_vma_lock_flags()
664 static __must_check int do_mlock(unsigned long start, size_t len, vm_flags_t flags) in do_mlock()
716 SYSCALL_DEFINE3(mlock2, unsigned long, start, size_t, len, int, flags) in SYSCALL_DEFINE3() argument
754 static int apply_mlockall_flags(int flags) in apply_mlockall_flags()
790 SYSCALL_DEFINE1(mlockall, int, flags) in SYSCALL_DEFINE1() argument
Dhuge_memory.c499 loff_t off, unsigned long flags, unsigned long size) in __thp_get_unmapped_area()
534 unsigned long len, unsigned long pgoff, unsigned long flags) in thp_get_unmapped_area()
849 pmd_t *pmd, int flags) in touch_pmd()
862 pmd_t *pmd, int flags) in follow_devmap_pmd()
997 pud_t *pud, int flags) in touch_pud()
1010 pud_t *pud, int flags) in follow_devmap_pud()
1374 static inline bool can_follow_write_pmd(pmd_t pmd, unsigned int flags) in can_follow_write_pmd()
1383 unsigned int flags) in follow_trans_huge_pmd()
1460 int flags = 0; in do_huge_pmd_numa_page() local
2369 pgoff_t end, unsigned long flags) in __split_huge_page()
[all …]
Dpage_isolation.c22 unsigned long flags, pfn; in set_migratetype_isolate() local
86 unsigned long flags, nr_pages; in unset_migratetype_isolate() local
267 unsigned long pfn, flags; in test_pages_isolated() local
Dslub.c425 unsigned long flags; in cmpxchg_double_slab() local
1292 unsigned long flags, const char *name, in kmem_cache_flags()
1325 unsigned long flags, const char *name, in kmem_cache_flags()
1349 static inline void kmalloc_large_node_hook(void *ptr, size_t size, gfp_t flags) in kmalloc_large_node_hook()
1374 unsigned long flags; in slab_free_hook() local
1431 gfp_t flags, int node, struct kmem_cache_order_objects oo) in alloc_slab_page()
1556 static struct page *allocate_slab(struct kmem_cache *s, gfp_t flags, int node) in allocate_slab()
1641 static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node) in new_slab()
1806 struct kmem_cache_cpu *c, gfp_t flags) in get_partial_node()
1854 static void *get_any_partial(struct kmem_cache *s, gfp_t flags, in get_any_partial()
[all …]
Dmmap.c58 #define arch_mmap_check(addr, len, flags) (0) argument
1305 unsigned long flags, in mlock_future_check()
1356 unsigned long flags, vm_flags_t vm_flags, in do_mmap()
1513 unsigned long, prot, unsigned long, flags, in SYSCALL_DEFINE6() argument
1566 unsigned long flags; member
2020 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area()
2058 const unsigned long flags) in arch_get_unmapped_area_topdown()
2109 unsigned long pgoff, unsigned long flags) in get_unmapped_area()
2788 unsigned long, prot, unsigned long, pgoff, unsigned long, flags) in SYSCALL_DEFINE5() argument
2898 static int do_brk_flags(unsigned long addr, unsigned long len, unsigned long flags, struct list_hea… in do_brk_flags()
[all …]
Dslab.h24 unsigned long flags; /* Active flags on the slab */ member
116 unsigned long flags, void (*ctor)(void *)) in __kmem_cache_alias()
120 unsigned long flags, const char *name, in kmem_cache_flags()
412 gfp_t flags) in slab_pre_alloc_hook()
431 static inline void slab_post_alloc_hook(struct kmem_cache *s, gfp_t flags, in slab_post_alloc_hook()
Dbootmem.c308 unsigned long eidx, int flags) in __reserve()
336 int reserve, int flags) in mark_bootmem_node()
357 int reserve, int flags) in mark_bootmem()
444 unsigned long size, int flags) in reserve_bootmem_node()
465 int flags) in reserve_bootmem()
Dinternal.h246 static inline bool is_cow_mapping(vm_flags_t flags) in is_cow_mapping()
258 static inline bool is_exec_mapping(vm_flags_t flags) in is_exec_mapping()
269 static inline bool is_stack_mapping(vm_flags_t flags) in is_stack_mapping()
277 static inline bool is_data_mapping(vm_flags_t flags) in is_data_mapping()
/mm/kasan/
Dquarantine.c142 unsigned long flags; in qlink_free() local
174 unsigned long flags; in quarantine_put() local
215 unsigned long flags; in quarantine_reduce() local
301 unsigned long flags, i; in quarantine_remove_cache() local
Dkasan.c340 unsigned long *flags) in kasan_cache_create()
437 static inline depot_stack_handle_t save_stack(gfp_t flags) in save_stack()
456 static inline void set_track(struct kasan_track *track, gfp_t flags) in set_track()
487 void kasan_slab_alloc(struct kmem_cache *cache, void *object, gfp_t flags) in kasan_slab_alloc()
530 gfp_t flags) in kasan_kmalloc()
555 void kasan_kmalloc_large(const void *ptr, size_t size, gfp_t flags) in kasan_kmalloc_large()
577 void kasan_krealloc(const void *object, size_t size, gfp_t flags) in kasan_krealloc()
Dreport.c160 static void kasan_start_report(unsigned long *flags) in kasan_start_report()
170 static void kasan_end_report(unsigned long *flags) in kasan_end_report()
328 unsigned long flags; in kasan_report_double_free() local
341 unsigned long flags; in kasan_report_error() local

123