/linux-6.6.21/drivers/platform/surface/aggregator/ |
D | ssh_packet_layer.c | 335 ptl_info(packet->ptl, "packet error injection: dropping ACK packet %p\n", in __ssh_ptl_should_drop_ack_packet() 347 ptl_info(packet->ptl, "packet error injection: dropping NAK packet %p\n", in __ssh_ptl_should_drop_nak_packet() 359 ptl_info(packet->ptl, in __ssh_ptl_should_drop_dsq_packet() 387 static int ssh_ptl_write_buf(struct ssh_ptl *ptl, struct ssh_packet *packet, in ssh_ptl_write_buf() argument 395 ptl_info(packet->ptl, in ssh_ptl_write_buf() 402 return serdev_device_write_buf(ptl->serdev, buf, count); in ssh_ptl_write_buf() 419 ptl_info(packet->ptl, in ssh_ptl_tx_inject_invalid_data() 431 static void ssh_ptl_rx_inject_invalid_syn(struct ssh_ptl *ptl, in ssh_ptl_rx_inject_invalid_syn() argument 448 static void ssh_ptl_rx_inject_invalid_data(struct ssh_ptl *ptl, in ssh_ptl_rx_inject_invalid_data() argument 486 static inline int ssh_ptl_write_buf(struct ssh_ptl *ptl, in ssh_ptl_write_buf() argument [all …]
|
D | ssh_packet_layer.h | 139 int ssh_ptl_init(struct ssh_ptl *ptl, struct serdev_device *serdev, 142 void ssh_ptl_destroy(struct ssh_ptl *ptl); 151 static inline struct device *ssh_ptl_get_device(struct ssh_ptl *ptl) in ssh_ptl_get_device() argument 153 return ptl->serdev ? &ptl->serdev->dev : NULL; in ssh_ptl_get_device() 156 int ssh_ptl_tx_start(struct ssh_ptl *ptl); 157 int ssh_ptl_tx_stop(struct ssh_ptl *ptl); 158 int ssh_ptl_rx_start(struct ssh_ptl *ptl); 159 int ssh_ptl_rx_stop(struct ssh_ptl *ptl); 160 void ssh_ptl_shutdown(struct ssh_ptl *ptl); 162 int ssh_ptl_submit(struct ssh_ptl *ptl, struct ssh_packet *p); [all …]
|
D | ssh_request_layer.h | 66 struct ssh_ptl ptl; member 94 #define rtl_dbg(r, fmt, ...) ptl_dbg(&(r)->ptl, fmt, ##__VA_ARGS__) 95 #define rtl_info(p, fmt, ...) ptl_info(&(p)->ptl, fmt, ##__VA_ARGS__) 96 #define rtl_warn(r, fmt, ...) ptl_warn(&(r)->ptl, fmt, ##__VA_ARGS__) 97 #define rtl_err(r, fmt, ...) ptl_err(&(r)->ptl, fmt, ##__VA_ARGS__) 112 return ssh_ptl_get_device(&rtl->ptl); in ssh_rtl_get_device() 123 struct ssh_ptl *ptl; in ssh_request_rtl() local 125 ptl = READ_ONCE(rqst->packet.ptl); in ssh_request_rtl() 126 return likely(ptl) ? to_ssh_rtl(ptl, ptl) : NULL; in ssh_request_rtl()
|
D | ssh_request_layer.c | 258 status = ssh_ptl_submit(&rtl->ptl, &rqst->packet); in ssh_rtl_tx_try_process_one() 391 if (cmpxchg(&rqst->packet.ptl, NULL, &rtl->ptl)) { in ssh_rtl_submit() 619 if (flags == fixed && !READ_ONCE(r->packet.ptl)) { in ssh_rtl_cancel_nonpending() 674 if (!READ_ONCE(r->packet.ptl)) { in ssh_rtl_cancel_pending() 911 struct ssh_rtl *rtl = to_ssh_rtl(p, ptl); in ssh_rtl_rx_command() 1033 status = ssh_ptl_init(&rtl->ptl, serdev, &ptl_ops); in ssh_rtl_init() 1067 ssh_ptl_destroy(&rtl->ptl); in ssh_rtl_destroy() 1080 status = ssh_ptl_tx_start(&rtl->ptl); in ssh_rtl_start() 1086 status = ssh_ptl_rx_start(&rtl->ptl); in ssh_rtl_start() 1089 ssh_ptl_tx_stop(&rtl->ptl); in ssh_rtl_start() [all …]
|
/linux-6.6.21/drivers/media/platform/allegro-dvt/ |
D | nal-hevc.c | 101 struct nal_hevc_profile_tier_level *ptl) in nal_hevc_rbsp_profile_tier_level() argument 106 rbsp_bits(rbsp, 2, &ptl->general_profile_space); in nal_hevc_rbsp_profile_tier_level() 107 rbsp_bit(rbsp, &ptl->general_tier_flag); in nal_hevc_rbsp_profile_tier_level() 108 rbsp_bits(rbsp, 5, &ptl->general_profile_idc); in nal_hevc_rbsp_profile_tier_level() 110 rbsp_bit(rbsp, &ptl->general_profile_compatibility_flag[i]); in nal_hevc_rbsp_profile_tier_level() 111 rbsp_bit(rbsp, &ptl->general_progressive_source_flag); in nal_hevc_rbsp_profile_tier_level() 112 rbsp_bit(rbsp, &ptl->general_interlaced_source_flag); in nal_hevc_rbsp_profile_tier_level() 113 rbsp_bit(rbsp, &ptl->general_non_packed_constraint_flag); in nal_hevc_rbsp_profile_tier_level() 114 rbsp_bit(rbsp, &ptl->general_frame_only_constraint_flag); in nal_hevc_rbsp_profile_tier_level() 115 if (ptl->general_profile_idc == 4 || in nal_hevc_rbsp_profile_tier_level() [all …]
|
/linux-6.6.21/mm/ |
D | page_vma_mapped.c | 23 pvmw->address, &pvmw->ptl); in map_pte() 24 *ptlp = pvmw->ptl; in map_pte() 70 pvmw->ptl = *ptlp; in map_pte() 71 spin_lock(pvmw->ptl); in map_pte() 178 spinlock_t *ptl; in page_vma_mapped_walk() local 203 pvmw->ptl = huge_pte_lock(hstate, mm, pvmw->pte); in page_vma_mapped_walk() 240 pvmw->ptl = pmd_lock(mm, pvmw->pmd); in page_vma_mapped_walk() 262 spin_unlock(pvmw->ptl); in page_vma_mapped_walk() 263 pvmw->ptl = NULL; in page_vma_mapped_walk() 273 spinlock_t *ptl = pmd_lock(mm, pvmw->pmd); in page_vma_mapped_walk() local [all …]
|
D | huge_memory.c | 679 vmf->ptl = pmd_lock(vma->vm_mm, vmf->pmd); in __do_huge_pmd_anonymous_page() 691 spin_unlock(vmf->ptl); in __do_huge_pmd_anonymous_page() 708 spin_unlock(vmf->ptl); in __do_huge_pmd_anonymous_page() 715 spin_unlock(vmf->ptl); in __do_huge_pmd_anonymous_page() 802 vmf->ptl = pmd_lock(vma->vm_mm, vmf->pmd); in do_huge_pmd_anonymous_page() 807 spin_unlock(vmf->ptl); in do_huge_pmd_anonymous_page() 810 spin_unlock(vmf->ptl); in do_huge_pmd_anonymous_page() 818 spin_unlock(vmf->ptl); in do_huge_pmd_anonymous_page() 821 spin_unlock(vmf->ptl); in do_huge_pmd_anonymous_page() 841 spinlock_t *ptl; in insert_pfn_pmd() local [all …]
|
D | mincore.c | 103 spinlock_t *ptl; in mincore_pte_range() local 109 ptl = pmd_trans_huge_lock(pmd, vma); in mincore_pte_range() 110 if (ptl) { in mincore_pte_range() 112 spin_unlock(ptl); in mincore_pte_range() 116 ptep = pte_offset_map_lock(walk->mm, pmd, addr, &ptl); in mincore_pte_range() 151 pte_unmap_unlock(ptep - 1, ptl); in mincore_pte_range()
|
D | memory.c | 411 spinlock_t *ptl = pmd_lock(mm, pmd); in pmd_install() local 432 spin_unlock(ptl); in pmd_install() 1402 spinlock_t *ptl; in zap_pte_range() local 1409 start_pte = pte = pte_offset_map_lock(mm, pmd, addr, &ptl); in zap_pte_range() 1525 pte_unmap_unlock(start_pte, ptl); in zap_pte_range() 1561 spinlock_t *ptl = pmd_lock(tlb->mm, pmd); in zap_pmd_range() local 1567 spin_unlock(ptl); in zap_pmd_range() 1819 spinlock_t **ptl) in __get_locked_pte() argument 1825 return pte_alloc_map_lock(mm, pmd, addr, ptl); in __get_locked_pte() 1861 spinlock_t *ptl; in insert_page() local [all …]
|
D | khugepaged.c | 685 spinlock_t *ptl, in __collapse_huge_page_copy_succeeded() argument 702 spin_lock(ptl); in __collapse_huge_page_copy_succeeded() 704 spin_unlock(ptl); in __collapse_huge_page_copy_succeeded() 716 spin_lock(ptl); in __collapse_huge_page_copy_succeeded() 719 spin_unlock(ptl); in __collapse_huge_page_copy_succeeded() 780 spinlock_t *ptl, in __collapse_huge_page_copy() argument 807 __collapse_huge_page_copy_succeeded(pte, vma, address, ptl, in __collapse_huge_page_copy() 996 spinlock_t *ptl; in __collapse_huge_page_swapin() local 1008 pte = pte_offset_map_nolock(mm, pmd, address, &ptl); in __collapse_huge_page_swapin() 1021 vmf.ptl = ptl; in __collapse_huge_page_swapin() [all …]
|
D | hmm.c | 418 spinlock_t *ptl = pud_trans_huge_lock(pudp, walk->vma); in hmm_vma_walk_pud() local 420 if (!ptl) in hmm_vma_walk_pud() 428 spin_unlock(ptl); in hmm_vma_walk_pud() 439 spin_unlock(ptl); in hmm_vma_walk_pud() 451 spin_unlock(ptl); in hmm_vma_walk_pud() 465 spin_unlock(ptl); in hmm_vma_walk_pud() 484 spinlock_t *ptl; in hmm_vma_walk_hugetlb_entry() local 487 ptl = huge_pte_lock(hstate_vma(vma), walk->mm, pte); in hmm_vma_walk_hugetlb_entry() 499 spin_unlock(ptl); in hmm_vma_walk_hugetlb_entry() 518 spin_unlock(ptl); in hmm_vma_walk_hugetlb_entry()
|
D | migrate_device.c | 66 spinlock_t *ptl; in migrate_vma_collect_pmd() local 76 ptl = pmd_lock(mm, pmdp); in migrate_vma_collect_pmd() 78 spin_unlock(ptl); in migrate_vma_collect_pmd() 84 spin_unlock(ptl); in migrate_vma_collect_pmd() 90 spin_unlock(ptl); in migrate_vma_collect_pmd() 103 ptep = pte_offset_map_lock(mm, pmdp, addr, &ptl); in migrate_vma_collect_pmd() 274 pte_unmap_unlock(ptep - 1, ptl); in migrate_vma_collect_pmd() 570 spinlock_t *ptl; in migrate_vma_insert_page() local 630 ptep = pte_offset_map_lock(mm, pmdp, addr, &ptl); in migrate_vma_insert_page() 671 pte_unmap_unlock(ptep, ptl); in migrate_vma_insert_page() [all …]
|
D | madvise.c | 195 spinlock_t *ptl; in swapin_walk_pmd_entry() local 204 ptep = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in swapin_walk_pmd_entry() 216 pte_unmap_unlock(ptep, ptl); in swapin_walk_pmd_entry() 226 pte_unmap_unlock(ptep, ptl); in swapin_walk_pmd_entry() 352 spinlock_t *ptl; in madvise_cold_or_pageout_pte_range() local 369 ptl = pmd_trans_huge_lock(pmd, vma); in madvise_cold_or_pageout_pte_range() 370 if (!ptl) in madvise_cold_or_pageout_pte_range() 396 spin_unlock(ptl); in madvise_cold_or_pageout_pte_range() 428 spin_unlock(ptl); in madvise_cold_or_pageout_pte_range() 437 start_pte = pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in madvise_cold_or_pageout_pte_range() [all …]
|
D | pgtable-generic.c | 365 spinlock_t *ptl; in __pte_offset_map_lock() local 372 ptl = pte_lockptr(mm, &pmdval); in __pte_offset_map_lock() 373 spin_lock(ptl); in __pte_offset_map_lock() 375 *ptlp = ptl; in __pte_offset_map_lock() 378 pte_unmap_unlock(pte, ptl); in __pte_offset_map_lock()
|
D | userfaultfd.c | 81 spinlock_t *ptl; in mfill_atomic_install_pte() local 94 dst_pte = pte_offset_map_lock(dst_mm, dst_pmd, dst_addr, &ptl); in mfill_atomic_install_pte() 135 pte_unmap_unlock(dst_pte, ptl); in mfill_atomic_install_pte() 221 spinlock_t *ptl; in mfill_atomic_pte_zeropage() local 227 dst_pte = pte_offset_map_lock(dst_vma->vm_mm, dst_pmd, dst_addr, &ptl); in mfill_atomic_pte_zeropage() 242 pte_unmap_unlock(dst_pte, ptl); in mfill_atomic_pte_zeropage() 300 spinlock_t *ptl; in mfill_atomic_pte_poison() local 304 dst_pte = pte_offset_map_lock(dst_mm, dst_pmd, dst_addr, &ptl); in mfill_atomic_pte_poison() 324 pte_unmap_unlock(dst_pte, ptl); in mfill_atomic_pte_poison()
|
/linux-6.6.21/arch/arm/lib/ |
D | uaccess_with_memcpy.c | 31 spinlock_t *ptl; in pin_page_for_write() local 60 ptl = ¤t->mm->page_table_lock; in pin_page_for_write() 61 spin_lock(ptl); in pin_page_for_write() 64 spin_unlock(ptl); in pin_page_for_write() 69 *ptlp = ptl; in pin_page_for_write() 76 pte = pte_offset_map_lock(current->mm, pmd, addr, &ptl); in pin_page_for_write() 82 pte_unmap_unlock(pte, ptl); in pin_page_for_write() 87 *ptlp = ptl; in pin_page_for_write() 105 spinlock_t *ptl; in __copy_to_user_memcpy() local 108 while (!pin_page_for_write(to, &pte, &ptl)) { in __copy_to_user_memcpy() [all …]
|
/linux-6.6.21/arch/arm/mm/ |
D | fault-armv.c | 70 static inline void do_pte_lock(spinlock_t *ptl) in do_pte_lock() argument 76 spin_lock_nested(ptl, SINGLE_DEPTH_NESTING); in do_pte_lock() 79 static inline void do_pte_unlock(spinlock_t *ptl) in do_pte_unlock() argument 81 spin_unlock(ptl); in do_pte_unlock() 84 static inline void do_pte_lock(spinlock_t *ptl) {} in do_pte_lock() argument 85 static inline void do_pte_unlock(spinlock_t *ptl) {} in do_pte_unlock() argument 91 spinlock_t *ptl; in adjust_pte() local 120 pte = pte_offset_map_nolock(vma->vm_mm, pmd, address, &ptl); in adjust_pte() 124 do_pte_lock(ptl); in adjust_pte() 128 do_pte_unlock(ptl); in adjust_pte()
|
/linux-6.6.21/mm/damon/ |
D | vaddr.c | 305 spinlock_t *ptl; in damon_mkold_pmd_entry() local 308 ptl = pmd_lock(walk->mm, pmd); in damon_mkold_pmd_entry() 312 spin_unlock(ptl); in damon_mkold_pmd_entry() 318 spin_unlock(ptl); in damon_mkold_pmd_entry() 321 spin_unlock(ptl); in damon_mkold_pmd_entry() 324 pte = pte_offset_map_lock(walk->mm, pmd, addr, &ptl); in damon_mkold_pmd_entry() 333 pte_unmap_unlock(pte, ptl); in damon_mkold_pmd_entry() 372 spinlock_t *ptl; in damon_mkold_hugetlb_entry() local 375 ptl = huge_pte_lock(h, walk->mm, pte); in damon_mkold_hugetlb_entry() 383 spin_unlock(ptl); in damon_mkold_hugetlb_entry() [all …]
|
/linux-6.6.21/Documentation/translations/zh_CN/mm/ |
D | split_page_table_lock.rst | 63 面。这个区域与page->ptl共享存储。 79 page->ptl 82 page->ptl用于访问分割页表锁,其中'page'是包含该表的页面struct page。它 89 - 如果spinlock_t的大小大于long的大小,我们使用page->ptl作为spinlock_t 96 请不要直接访问page->ptl - -使用适当的辅助函数。
|
/linux-6.6.21/arch/s390/mm/ |
D | pgtable.c | 815 spinlock_t *ptl; in set_guest_storage_key() local 833 ptl = pmd_lock(mm, pmdp); in set_guest_storage_key() 835 spin_unlock(ptl); in set_guest_storage_key() 847 spin_unlock(ptl); in set_guest_storage_key() 850 spin_unlock(ptl); in set_guest_storage_key() 852 ptep = pte_offset_map_lock(mm, pmdp, addr, &ptl); in set_guest_storage_key() 879 pte_unmap_unlock(ptep, ptl); in set_guest_storage_key() 924 spinlock_t *ptl; in reset_guest_reference_bit() local 944 ptl = pmd_lock(mm, pmdp); in reset_guest_reference_bit() 946 spin_unlock(ptl); in reset_guest_reference_bit() [all …]
|
D | gmap.c | 554 spinlock_t *ptl; in __gmap_link() local 610 ptl = pmd_lock(mm, pmd); in __gmap_link() 632 spin_unlock(ptl); in __gmap_link() 688 spinlock_t *ptl; in __gmap_zap() local 702 ptep = get_locked_pte(gmap->mm, vmaddr, &ptl); in __gmap_zap() 705 pte_unmap_unlock(ptep, ptl); in __gmap_zap() 867 spinlock_t **ptl) in gmap_pte_op_walk() argument 876 return pte_alloc_map_lock(gmap->mm, (pmd_t *) table, gaddr, ptl); in gmap_pte_op_walk() 913 static void gmap_pte_op_end(pte_t *ptep, spinlock_t *ptl) in gmap_pte_op_end() argument 915 pte_unmap_unlock(ptep, ptl); in gmap_pte_op_end() [all …]
|
/linux-6.6.21/arch/powerpc/mm/ |
D | hugetlbpage.c | 47 unsigned int pshift, spinlock_t *ptl) in __hugepte_alloc() argument 82 spin_lock(ptl); in __hugepte_alloc() 102 spin_unlock(ptl); in __hugepte_alloc() 120 spinlock_t *ptl; in huge_pte_alloc() local 134 ptl = &mm->page_table_lock; in huge_pte_alloc() 144 ptl = pud_lockptr(mm, pu); in huge_pte_alloc() 155 ptl = pmd_lockptr(mm, pm); in huge_pte_alloc() 162 ptl = &mm->page_table_lock; in huge_pte_alloc() 170 ptl = pud_lockptr(mm, pu); in huge_pte_alloc() 177 ptl = pmd_lockptr(mm, pm); in huge_pte_alloc() [all …]
|
/linux-6.6.21/arch/s390/pci/ |
D | pci_mmio.c | 126 spinlock_t *ptl; in SYSCALL_DEFINE3() local 172 ret = follow_pte(vma->vm_mm, mmio_addr, &ptep, &ptl); in SYSCALL_DEFINE3() 184 pte_unmap_unlock(ptep, ptl); in SYSCALL_DEFINE3() 268 spinlock_t *ptl; in SYSCALL_DEFINE3() local 311 ret = follow_pte(vma->vm_mm, mmio_addr, &ptep, &ptl); in SYSCALL_DEFINE3() 325 pte_unmap_unlock(ptep, ptl); in SYSCALL_DEFINE3()
|
/linux-6.6.21/arch/powerpc/lib/ |
D | code-patching.c | 153 spinlock_t *ptl; in text_area_cpu_up_mm() local 174 pte = get_locked_pte(mm, addr, &ptl); in text_area_cpu_up_mm() 177 pte_unmap_unlock(pte, ptl); in text_area_cpu_up_mm() 290 spinlock_t *ptl; in __do_patch_instruction_mm() local 296 pte = get_locked_pte(patching_mm, text_poke_addr, &ptl); in __do_patch_instruction_mm() 326 pte_unmap_unlock(pte, ptl); in __do_patch_instruction_mm()
|
/linux-6.6.21/fs/proc/ |
D | task_mmu.c | 614 spinlock_t *ptl; in smaps_pte_range() local 616 ptl = pmd_trans_huge_lock(pmd, vma); in smaps_pte_range() 617 if (ptl) { in smaps_pte_range() 619 spin_unlock(ptl); in smaps_pte_range() 623 pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in smaps_pte_range() 630 pte_unmap_unlock(pte - 1, ptl); in smaps_pte_range() 1163 spinlock_t *ptl; in clear_refs_pte_range() local 1166 ptl = pmd_trans_huge_lock(pmd, vma); in clear_refs_pte_range() 1167 if (ptl) { in clear_refs_pte_range() 1183 spin_unlock(ptl); in clear_refs_pte_range() [all …]
|