/arch/arm/lib/ |
D | uaccess_with_memcpy.c | 30 spinlock_t *ptl; in pin_page_for_write() local 55 ptl = ¤t->mm->page_table_lock; in pin_page_for_write() 56 spin_lock(ptl); in pin_page_for_write() 59 spin_unlock(ptl); in pin_page_for_write() 64 *ptlp = ptl; in pin_page_for_write() 71 pte = pte_offset_map_lock(current->mm, pmd, addr, &ptl); in pin_page_for_write() 74 pte_unmap_unlock(pte, ptl); in pin_page_for_write() 79 *ptlp = ptl; in pin_page_for_write() 102 spinlock_t *ptl; in __copy_to_user_memcpy() local 105 while (!pin_page_for_write(to, &pte, &ptl)) { in __copy_to_user_memcpy() [all …]
|
/arch/arm/mm/ |
D | fault-armv.c | 71 static inline void do_pte_lock(spinlock_t *ptl) in do_pte_lock() argument 77 spin_lock_nested(ptl, SINGLE_DEPTH_NESTING); in do_pte_lock() 80 static inline void do_pte_unlock(spinlock_t *ptl) in do_pte_unlock() argument 82 spin_unlock(ptl); in do_pte_unlock() 85 static inline void do_pte_lock(spinlock_t *ptl) {} in do_pte_lock() argument 86 static inline void do_pte_unlock(spinlock_t *ptl) {} in do_pte_unlock() argument 92 spinlock_t *ptl; in adjust_pte() local 116 ptl = pte_lockptr(vma->vm_mm, pmd); in adjust_pte() 118 do_pte_lock(ptl); in adjust_pte() 122 do_pte_unlock(ptl); in adjust_pte()
|
/arch/powerpc/mm/ |
D | hugetlbpage.c | 46 unsigned int pshift, spinlock_t *ptl) in __hugepte_alloc() argument 84 spin_lock(ptl); in __hugepte_alloc() 104 spin_unlock(ptl); in __hugepte_alloc() 120 spinlock_t *ptl; in huge_pte_alloc() local 133 ptl = &mm->page_table_lock; in huge_pte_alloc() 143 ptl = pud_lockptr(mm, pu); in huge_pte_alloc() 154 ptl = pmd_lockptr(mm, pm); in huge_pte_alloc() 161 ptl = &mm->page_table_lock; in huge_pte_alloc() 169 ptl = pud_lockptr(mm, pu); in huge_pte_alloc() 176 ptl = pmd_lockptr(mm, pm); in huge_pte_alloc() [all …]
|
/arch/s390/mm/ |
D | pgtable.c | 758 spinlock_t *ptl; in set_guest_storage_key() local 767 ptl = pmd_lock(mm, pmdp); in set_guest_storage_key() 769 spin_unlock(ptl); in set_guest_storage_key() 781 spin_unlock(ptl); in set_guest_storage_key() 784 spin_unlock(ptl); in set_guest_storage_key() 786 ptep = pte_alloc_map_lock(mm, pmdp, addr, &ptl); in set_guest_storage_key() 814 pte_unmap_unlock(ptep, ptl); in set_guest_storage_key() 859 spinlock_t *ptl; in reset_guest_reference_bit() local 870 ptl = pmd_lock(mm, pmdp); in reset_guest_reference_bit() 872 spin_unlock(ptl); in reset_guest_reference_bit() [all …]
|
D | gmap.c | 544 spinlock_t *ptl; in __gmap_link() local 600 ptl = pmd_lock(mm, pmd); in __gmap_link() 622 spin_unlock(ptl); in __gmap_link() 677 spinlock_t *ptl; in __gmap_zap() local 686 ptep = get_locked_pte(gmap->mm, vmaddr, &ptl); in __gmap_zap() 689 pte_unmap_unlock(ptep, ptl); in __gmap_zap() 846 spinlock_t **ptl) in gmap_pte_op_walk() argument 855 return pte_alloc_map_lock(gmap->mm, (pmd_t *) table, gaddr, ptl); in gmap_pte_op_walk() 891 static void gmap_pte_op_end(spinlock_t *ptl) in gmap_pte_op_end() argument 893 if (ptl) in gmap_pte_op_end() [all …]
|
/arch/x86/kernel/ |
D | ldt.c | 208 spinlock_t *ptl; in map_ldt_struct() local 242 ptep = get_locked_pte(mm, va, &ptl); in map_ldt_struct() 255 pte_unmap_unlock(ptep, ptl); in map_ldt_struct() 281 spinlock_t *ptl; in unmap_ldt_struct() local 285 ptep = get_locked_pte(mm, va, &ptl); in unmap_ldt_struct() 287 pte_unmap_unlock(ptep, ptl); in unmap_ldt_struct()
|
D | alternative.c | 782 spinlock_t *ptl; in __text_poke() local 818 ptep = get_locked_pte(poking_mm, poking_addr, &ptl); in __text_poke() 874 pte_unmap_unlock(ptep, ptl); in __text_poke()
|
D | vm86_32.c | 167 spinlock_t *ptl; in mark_screen_rdonly() local 193 pte = pte_offset_map_lock(mm, pmd, 0xA0000, &ptl); in mark_screen_rdonly() 199 pte_unmap_unlock(pte, ptl); in mark_screen_rdonly()
|
/arch/m68k/kernel/ |
D | sys_m68k.c | 470 spinlock_t *ptl; in sys_atomic_cmpxchg_32() local 480 pte = pte_offset_map_lock(mm, pmd, (unsigned long)mem, &ptl); in sys_atomic_cmpxchg_32() 483 pte_unmap_unlock(pte, ptl); in sys_atomic_cmpxchg_32() 495 pte_unmap_unlock(pte, ptl); in sys_atomic_cmpxchg_32()
|
/arch/powerpc/mm/book3s64/ |
D | subpage_prot.c | 60 spinlock_t *ptl; in hpte_flush_range() local 71 pte = pte_offset_map_lock(mm, pmd, addr, &ptl); in hpte_flush_range() 79 pte_unmap_unlock(pte - 1, ptl); in hpte_flush_range()
|
/arch/sh/mm/ |
D | cache-sh5.c | 390 spinlock_t *ptl; in sh64_dcache_purge_user_pages() local 408 pte = pte_offset_map_lock(mm, pmd, addr, &ptl); in sh64_dcache_purge_user_pages() 416 pte_unmap_unlock(pte - 1, ptl); in sh64_dcache_purge_user_pages()
|
/arch/x86/xen/ |
D | mmu_pv.c | 699 spinlock_t *ptl = NULL; in xen_pte_lock() local 702 ptl = ptlock_ptr(page); in xen_pte_lock() 703 spin_lock_nest_lock(ptl, &mm->page_table_lock); in xen_pte_lock() 706 return ptl; in xen_pte_lock() 711 spinlock_t *ptl = v; in xen_pte_unlock() local 712 spin_unlock(ptl); in xen_pte_unlock() 741 spinlock_t *ptl; in xen_pin_page() local 765 ptl = NULL; in xen_pin_page() 767 ptl = xen_pte_lock(page, mm); in xen_pin_page() 773 if (ptl) { in xen_pin_page() [all …]
|
/arch/x86/mm/ |
D | init.c | 712 spinlock_t *ptl; in poking_init() local 736 ptep = get_locked_pte(poking_mm, poking_addr, &ptl); in poking_init() 738 pte_unmap_unlock(ptep, ptl); in poking_init()
|