Lines Matching refs:pid
29 unsigned int pid, in tlbiel_radix_set_isa300() argument
36 rs = ((unsigned long)pid << PPC_BITLSHIFT(31)); in tlbiel_radix_set_isa300()
100 static __always_inline void __tlbiel_pid(unsigned long pid, int set, in __tlbiel_pid() argument
107 rs = ((unsigned long)pid) << PPC_BITLSHIFT(31); in __tlbiel_pid()
116 static __always_inline void __tlbie_pid(unsigned long pid, unsigned long ric) in __tlbie_pid() argument
121 rs = pid << PPC_BITLSHIFT(31); in __tlbie_pid()
130 static __always_inline void __tlbie_pid_lpid(unsigned long pid, in __tlbie_pid_lpid() argument
137 rs = (pid << PPC_BITLSHIFT(31)) | (lpid & ~(PPC_BITMASK(0, 31))); in __tlbie_pid_lpid()
173 static __always_inline void __tlbiel_va(unsigned long va, unsigned long pid, in __tlbiel_va() argument
180 rs = pid << PPC_BITLSHIFT(31); in __tlbiel_va()
189 static __always_inline void __tlbie_va(unsigned long va, unsigned long pid, in __tlbie_va() argument
196 rs = pid << PPC_BITLSHIFT(31); in __tlbie_va()
205 static __always_inline void __tlbie_va_lpid(unsigned long va, unsigned long pid, in __tlbie_va_lpid() argument
213 rs = (pid << PPC_BITLSHIFT(31)) | (lpid & ~(PPC_BITMASK(0, 31))); in __tlbie_va_lpid()
239 static inline void fixup_tlbie_va(unsigned long va, unsigned long pid, in fixup_tlbie_va() argument
249 __tlbie_va(va, pid, ap, RIC_FLUSH_TLB); in fixup_tlbie_va()
253 static inline void fixup_tlbie_va_range(unsigned long va, unsigned long pid, in fixup_tlbie_va_range() argument
263 __tlbie_va(va, pid, ap, RIC_FLUSH_TLB); in fixup_tlbie_va_range()
268 unsigned long pid, in fixup_tlbie_va_range_lpid() argument
279 __tlbie_va_lpid(va, pid, lpid, ap, RIC_FLUSH_TLB); in fixup_tlbie_va_range_lpid()
283 static inline void fixup_tlbie_pid(unsigned long pid) in fixup_tlbie_pid() argument
298 __tlbie_va(va, pid, mmu_get_ap(MMU_PAGE_64K), RIC_FLUSH_TLB); in fixup_tlbie_pid()
302 static inline void fixup_tlbie_pid_lpid(unsigned long pid, unsigned long lpid) in fixup_tlbie_pid_lpid() argument
317 __tlbie_va_lpid(va, pid, lpid, mmu_get_ap(MMU_PAGE_64K), in fixup_tlbie_pid_lpid()
358 static inline void _tlbiel_pid(unsigned long pid, unsigned long ric) in _tlbiel_pid() argument
368 __tlbiel_pid(pid, 0, RIC_FLUSH_PWC); in _tlbiel_pid()
372 __tlbiel_pid(pid, 0, RIC_FLUSH_TLB); in _tlbiel_pid()
381 __tlbiel_pid(pid, 0, RIC_FLUSH_ALL); in _tlbiel_pid()
387 __tlbiel_pid(pid, set, RIC_FLUSH_TLB); in _tlbiel_pid()
394 static inline void _tlbie_pid(unsigned long pid, unsigned long ric) in _tlbie_pid() argument
405 __tlbie_pid(pid, RIC_FLUSH_TLB); in _tlbie_pid()
406 fixup_tlbie_pid(pid); in _tlbie_pid()
409 __tlbie_pid(pid, RIC_FLUSH_PWC); in _tlbie_pid()
413 __tlbie_pid(pid, RIC_FLUSH_ALL); in _tlbie_pid()
414 fixup_tlbie_pid(pid); in _tlbie_pid()
419 static inline void _tlbie_pid_lpid(unsigned long pid, unsigned long lpid, in _tlbie_pid_lpid() argument
431 __tlbie_pid_lpid(pid, lpid, RIC_FLUSH_TLB); in _tlbie_pid_lpid()
432 fixup_tlbie_pid_lpid(pid, lpid); in _tlbie_pid_lpid()
435 __tlbie_pid_lpid(pid, lpid, RIC_FLUSH_PWC); in _tlbie_pid_lpid()
439 __tlbie_pid_lpid(pid, lpid, RIC_FLUSH_ALL); in _tlbie_pid_lpid()
440 fixup_tlbie_pid_lpid(pid, lpid); in _tlbie_pid_lpid()
445 unsigned long pid; member
454 _tlbiel_pid(t->pid, RIC_FLUSH_TLB); in do_tlbiel_pid()
456 _tlbiel_pid(t->pid, RIC_FLUSH_PWC); in do_tlbiel_pid()
458 _tlbiel_pid(t->pid, RIC_FLUSH_ALL); in do_tlbiel_pid()
462 unsigned long pid, unsigned long ric) in _tlbiel_pid_multicast() argument
465 struct tlbiel_pid t = { .pid = pid, .ric = ric }; in _tlbiel_pid_multicast()
474 _tlbie_pid(pid, RIC_FLUSH_ALL); in _tlbiel_pid_multicast()
525 unsigned long pid, unsigned long page_size, in __tlbiel_va_range() argument
532 __tlbiel_va(addr, pid, ap, RIC_FLUSH_TLB); in __tlbiel_va_range()
535 static __always_inline void _tlbiel_va(unsigned long va, unsigned long pid, in _tlbiel_va() argument
541 __tlbiel_va(va, pid, ap, ric); in _tlbiel_va()
546 unsigned long pid, unsigned long page_size, in _tlbiel_va_range() argument
551 __tlbiel_pid(pid, 0, RIC_FLUSH_PWC); in _tlbiel_va_range()
552 __tlbiel_va_range(start, end, pid, page_size, psize); in _tlbiel_va_range()
557 unsigned long pid, unsigned long page_size, in __tlbie_va_range() argument
564 __tlbie_va(addr, pid, ap, RIC_FLUSH_TLB); in __tlbie_va_range()
566 fixup_tlbie_va_range(addr - page_size, pid, ap); in __tlbie_va_range()
570 unsigned long pid, unsigned long lpid, in __tlbie_va_range_lpid() argument
578 __tlbie_va_lpid(addr, pid, lpid, ap, RIC_FLUSH_TLB); in __tlbie_va_range_lpid()
580 fixup_tlbie_va_range_lpid(addr - page_size, pid, lpid, ap); in __tlbie_va_range_lpid()
583 static __always_inline void _tlbie_va(unsigned long va, unsigned long pid, in _tlbie_va() argument
589 __tlbie_va(va, pid, ap, ric); in _tlbie_va()
590 fixup_tlbie_va(va, pid, ap); in _tlbie_va()
595 unsigned long pid; member
606 _tlbiel_va(t->va, t->pid, t->psize, RIC_FLUSH_TLB); in do_tlbiel_va()
608 _tlbiel_va(t->va, t->pid, t->psize, RIC_FLUSH_PWC); in do_tlbiel_va()
610 _tlbiel_va(t->va, t->pid, t->psize, RIC_FLUSH_ALL); in do_tlbiel_va()
614 unsigned long va, unsigned long pid, in _tlbiel_va_multicast() argument
618 struct tlbiel_va t = { .va = va, .pid = pid, .psize = psize, .ric = ric }; in _tlbiel_va_multicast()
621 _tlbie_va(va, pid, psize, RIC_FLUSH_TLB); in _tlbiel_va_multicast()
625 unsigned long pid; member
637 _tlbiel_va_range(t->start, t->end, t->pid, t->page_size, in do_tlbiel_va_range()
653 unsigned long pid, unsigned long page_size, in _tlbie_va_range() argument
658 __tlbie_pid(pid, RIC_FLUSH_PWC); in _tlbie_va_range()
659 __tlbie_va_range(start, end, pid, page_size, psize); in _tlbie_va_range()
664 unsigned long pid, unsigned long lpid, in _tlbie_va_range_lpid() argument
670 __tlbie_pid_lpid(pid, lpid, RIC_FLUSH_PWC); in _tlbie_va_range_lpid()
671 __tlbie_va_range_lpid(start, end, pid, lpid, page_size, psize); in _tlbie_va_range_lpid()
677 unsigned long pid, unsigned long page_size, in _tlbiel_va_range_multicast() argument
682 .pid = pid, .page_size = page_size, in _tlbiel_va_range_multicast()
687 _tlbie_va_range(start, end, pid, page_size, psize, also_pwc); in _tlbiel_va_range_multicast()
703 unsigned long pid; in radix__local_flush_tlb_mm() local
706 pid = mm->context.id; in radix__local_flush_tlb_mm()
707 if (pid != MMU_NO_CONTEXT) in radix__local_flush_tlb_mm()
708 _tlbiel_pid(pid, RIC_FLUSH_TLB); in radix__local_flush_tlb_mm()
716 unsigned long pid; in radix__local_flush_all_mm() local
719 pid = mm->context.id; in radix__local_flush_all_mm()
720 if (pid != MMU_NO_CONTEXT) in radix__local_flush_all_mm()
721 _tlbiel_pid(pid, RIC_FLUSH_ALL); in radix__local_flush_all_mm()
735 unsigned long pid; in radix__local_flush_tlb_page_psize() local
738 pid = mm->context.id; in radix__local_flush_tlb_page_psize()
739 if (pid != MMU_NO_CONTEXT) in radix__local_flush_tlb_page_psize()
740 _tlbiel_va(vmaddr, pid, psize, RIC_FLUSH_TLB); in radix__local_flush_tlb_page_psize()
773 unsigned long pid = mm->context.id; in exit_lazy_flush_tlb() local
811 _tlbiel_pid(pid, RIC_FLUSH_ALL); in exit_lazy_flush_tlb()
936 unsigned long pid; in radix__flush_tlb_mm() local
939 pid = mm->context.id; in radix__flush_tlb_mm()
940 if (unlikely(pid == MMU_NO_CONTEXT)) in radix__flush_tlb_mm()
952 _tlbiel_pid(pid, RIC_FLUSH_TLB); in radix__flush_tlb_mm()
959 pseries_rpt_invalidate(pid, tgt, H_RPTI_TYPE_TLB, in radix__flush_tlb_mm()
963 _tlbie_pid(pid, RIC_FLUSH_ALL); in radix__flush_tlb_mm()
965 _tlbie_pid(pid, RIC_FLUSH_TLB); in radix__flush_tlb_mm()
967 _tlbiel_pid_multicast(mm, pid, RIC_FLUSH_TLB); in radix__flush_tlb_mm()
976 unsigned long pid; in __flush_all_mm() local
979 pid = mm->context.id; in __flush_all_mm()
980 if (unlikely(pid == MMU_NO_CONTEXT)) in __flush_all_mm()
987 _tlbiel_pid(pid, RIC_FLUSH_ALL); in __flush_all_mm()
996 pseries_rpt_invalidate(pid, tgt, type, in __flush_all_mm()
999 _tlbie_pid(pid, RIC_FLUSH_ALL); in __flush_all_mm()
1001 _tlbiel_pid_multicast(mm, pid, RIC_FLUSH_ALL); in __flush_all_mm()
1015 unsigned long pid; in radix__flush_tlb_page_psize() local
1018 pid = mm->context.id; in radix__flush_tlb_page_psize()
1019 if (unlikely(pid == MMU_NO_CONTEXT)) in radix__flush_tlb_page_psize()
1026 _tlbiel_va(vmaddr, pid, psize, RIC_FLUSH_TLB); in radix__flush_tlb_page_psize()
1037 pseries_rpt_invalidate(pid, tgt, H_RPTI_TYPE_TLB, in radix__flush_tlb_page_psize()
1041 _tlbie_va(vmaddr, pid, psize, RIC_FLUSH_TLB); in radix__flush_tlb_page_psize()
1043 _tlbiel_va_multicast(mm, vmaddr, pid, psize, RIC_FLUSH_TLB); in radix__flush_tlb_page_psize()
1116 unsigned long pid; in __radix__flush_tlb_range() local
1124 pid = mm->context.id; in __radix__flush_tlb_range()
1125 if (unlikely(pid == MMU_NO_CONTEXT)) in __radix__flush_tlb_range()
1159 pseries_rpt_invalidate(pid, tgt, type, pg_sizes, start, end); in __radix__flush_tlb_range()
1165 _tlbiel_pid(pid, RIC_FLUSH_ALL); in __radix__flush_tlb_range()
1168 _tlbie_pid(pid, RIC_FLUSH_ALL); in __radix__flush_tlb_range()
1170 _tlbiel_pid_multicast(mm, pid, RIC_FLUSH_ALL); in __radix__flush_tlb_range()
1188 __tlbiel_pid(pid, 0, RIC_FLUSH_PWC); in __radix__flush_tlb_range()
1189 __tlbiel_va_range(start, end, pid, page_size, mmu_virtual_psize); in __radix__flush_tlb_range()
1191 __tlbiel_va_range(hstart, hend, pid, in __radix__flush_tlb_range()
1197 __tlbie_pid(pid, RIC_FLUSH_PWC); in __radix__flush_tlb_range()
1198 __tlbie_va_range(start, end, pid, page_size, mmu_virtual_psize); in __radix__flush_tlb_range()
1200 __tlbie_va_range(hstart, hend, pid, in __radix__flush_tlb_range()
1205 start, end, pid, page_size, mmu_virtual_psize, flush_pwc); in __radix__flush_tlb_range()
1208 hstart, hend, pid, PMD_SIZE, MMU_PAGE_2M, flush_pwc); in __radix__flush_tlb_range()
1316 unsigned long pid; in __radix__flush_tlb_range_psize() local
1324 pid = mm->context.id; in __radix__flush_tlb_range_psize()
1325 if (unlikely(pid == MMU_NO_CONTEXT)) in __radix__flush_tlb_range_psize()
1352 pseries_rpt_invalidate(pid, tgt, type, pg_sizes, start, end); in __radix__flush_tlb_range_psize()
1355 _tlbiel_pid(pid, also_pwc ? RIC_FLUSH_ALL : RIC_FLUSH_TLB); in __radix__flush_tlb_range_psize()
1361 _tlbie_pid(pid, in __radix__flush_tlb_range_psize()
1364 _tlbiel_pid_multicast(mm, pid, in __radix__flush_tlb_range_psize()
1371 _tlbiel_va_range(start, end, pid, page_size, psize, also_pwc); in __radix__flush_tlb_range_psize()
1373 _tlbie_va_range(start, end, pid, page_size, psize, also_pwc); in __radix__flush_tlb_range_psize()
1376 start, end, pid, page_size, psize, also_pwc); in __radix__flush_tlb_range_psize()
1397 unsigned long pid, end; in radix__flush_tlb_collapsed_pmd() local
1400 pid = mm->context.id; in radix__flush_tlb_collapsed_pmd()
1401 if (unlikely(pid == MMU_NO_CONTEXT)) in radix__flush_tlb_collapsed_pmd()
1417 _tlbiel_va_range(addr, end, pid, PAGE_SIZE, mmu_virtual_psize, true); in radix__flush_tlb_collapsed_pmd()
1429 pseries_rpt_invalidate(pid, tgt, type, pg_sizes, in radix__flush_tlb_collapsed_pmd()
1432 _tlbie_va_range(addr, end, pid, PAGE_SIZE, mmu_virtual_psize, true); in radix__flush_tlb_collapsed_pmd()
1435 addr, end, pid, PAGE_SIZE, mmu_virtual_psize, true); in radix__flush_tlb_collapsed_pmd()
1478 void do_h_rpt_invalidate_prt(unsigned long pid, unsigned long lpid, in do_h_rpt_invalidate_prt() argument
1491 _tlbie_pid_lpid(pid, lpid, RIC_FLUSH_ALL); in do_h_rpt_invalidate_prt()
1496 _tlbie_pid_lpid(pid, lpid, RIC_FLUSH_PWC); in do_h_rpt_invalidate_prt()
1500 return _tlbie_pid_lpid(pid, lpid, RIC_FLUSH_TLB); in do_h_rpt_invalidate_prt()
1518 _tlbie_pid_lpid(pid, lpid, RIC_FLUSH_TLB); in do_h_rpt_invalidate_prt()
1521 _tlbie_va_range_lpid(start, end, pid, lpid, in do_h_rpt_invalidate_prt()