Home
last modified time | relevance | path

Searched refs:lpid (Results 1 – 20 of 20) sorted by relevance

/arch/powerpc/include/asm/
Dtrace.h175 TP_PROTO(unsigned long lpid, unsigned long local, unsigned long rb,
178 TP_ARGS(lpid, local, rb, rs, ric, prs, r),
180 __field(unsigned long, lpid)
190 __entry->lpid = lpid;
200 "prs=0x%lx, r=0x%lx", __entry->lpid, __entry->local,
Dvas.h89 int lpid; member
Dmmu.h228 extern void mmu_partition_table_set_entry(unsigned int lpid, unsigned long dw0,
Dkvm_ppc.h725 void kvmppc_claim_lpid(long lpid);
726 void kvmppc_free_lpid(long lpid);
Dkvm_host.h265 unsigned int lpid; member
/arch/powerpc/mm/
Dpgtable_64.c469 void mmu_partition_table_set_entry(unsigned int lpid, unsigned long dw0, in mmu_partition_table_set_entry() argument
472 unsigned long old = be64_to_cpu(partition_tb[lpid].patb0); in mmu_partition_table_set_entry()
474 partition_tb[lpid].patb0 = cpu_to_be64(dw0); in mmu_partition_table_set_entry()
475 partition_tb[lpid].patb1 = cpu_to_be64(dw1); in mmu_partition_table_set_entry()
485 "r" (TLBIEL_INVAL_SET_LPID), "r" (lpid)); in mmu_partition_table_set_entry()
487 "r" (TLBIEL_INVAL_SET_LPID), "r" (lpid)); in mmu_partition_table_set_entry()
488 trace_tlbie(lpid, 0, TLBIEL_INVAL_SET_LPID, lpid, 2, 0, 1); in mmu_partition_table_set_entry()
491 "r" (TLBIEL_INVAL_SET_LPID), "r" (lpid)); in mmu_partition_table_set_entry()
492 trace_tlbie(lpid, 0, TLBIEL_INVAL_SET_LPID, lpid, 2, 0, 0); in mmu_partition_table_set_entry()
Dtlb-radix.c457 void radix__flush_tlb_lpid_va(unsigned long lpid, unsigned long gpa, in radix__flush_tlb_lpid_va() argument
467 rs = lpid & ((1UL << 32) - 1); in radix__flush_tlb_lpid_va()
475 trace_tlbie(lpid, 0, rb, rs, ric, prs, r); in radix__flush_tlb_lpid_va()
479 void radix__flush_tlb_lpid(unsigned long lpid) in radix__flush_tlb_lpid() argument
485 rs = lpid & ((1UL << 32) - 1); in radix__flush_tlb_lpid()
493 trace_tlbie(lpid, 0, rb, rs, ric, prs, r); in radix__flush_tlb_lpid()
/arch/powerpc/kvm/
De500mc.c364 int lpid; in kvmppc_core_init_vm_e500mc() local
366 lpid = kvmppc_alloc_lpid(); in kvmppc_core_init_vm_e500mc()
367 if (lpid < 0) in kvmppc_core_init_vm_e500mc()
368 return lpid; in kvmppc_core_init_vm_e500mc()
376 lpid <<= 1; in kvmppc_core_init_vm_e500mc()
378 kvm->arch.lpid = lpid; in kvmppc_core_init_vm_e500mc()
384 int lpid = kvm->arch.lpid; in kvmppc_core_destroy_vm_e500mc() local
387 lpid >>= 1; in kvmppc_core_destroy_vm_e500mc()
389 kvmppc_free_lpid(lpid); in kvmppc_core_destroy_vm_e500mc()
Dpowerpc.c1893 long lpid; in kvmppc_alloc_lpid() local
1896 lpid = find_first_zero_bit(lpid_inuse, KVMPPC_NR_LPIDS); in kvmppc_alloc_lpid()
1897 if (lpid >= nr_lpids) { in kvmppc_alloc_lpid()
1901 } while (test_and_set_bit(lpid, lpid_inuse)); in kvmppc_alloc_lpid()
1903 return lpid; in kvmppc_alloc_lpid()
1907 void kvmppc_claim_lpid(long lpid) in kvmppc_claim_lpid() argument
1909 set_bit(lpid, lpid_inuse); in kvmppc_claim_lpid()
1913 void kvmppc_free_lpid(long lpid) in kvmppc_free_lpid() argument
1915 clear_bit(lpid, lpid_inuse); in kvmppc_free_lpid()
De500_mmu_host.c74 uint32_t lpid) in __write_host_tlbe() argument
85 mtspr(SPRN_MAS8, MAS8_TGS | get_thread_specific_lpid(lpid)); in __write_host_tlbe()
134 __write_host_tlbe(stlbe, mas0, vcpu_e500->vcpu.kvm->arch.lpid); in write_host_tlbe()
139 vcpu_e500->vcpu.kvm->arch.lpid); in write_host_tlbe()
De500.h310 return get_thread_specific_lpid(vcpu->kvm->arch.lpid); in get_lpid()
Dbook3s_hv_rm_mmu.c432 static inline void fixup_tlbie_lpid(unsigned long rb_value, unsigned long lpid) in fixup_tlbie_lpid() argument
459 "r" (rb_value), "r" (lpid)); in fixup_tlbie_lpid()
480 "r" (rbvalues[i]), "r" (kvm->arch.lpid)); in do_tlbies()
483 fixup_tlbie_lpid(rbvalues[i - 1], kvm->arch.lpid); in do_tlbies()
Dbook3s_64_mmu_radix.c162 : : "r" (addr), "r" (kvm->arch.lpid) : "memory"); in kvmppc_radix_tlbie_page()
165 : : "r" (addr), "r" (kvm->arch.lpid) : "memory"); in kvmppc_radix_tlbie_page()
Dbook3s_hv.c3568 mmu_partition_table_set_entry(kvm->arch.lpid, dw0, dw1); in kvmppc_setup_partition_table()
3747 unsigned long lpcr, lpid; in kvmppc_core_init_vm_hv() local
3753 lpid = kvmppc_alloc_lpid(); in kvmppc_core_init_vm_hv()
3754 if ((long)lpid < 0) in kvmppc_core_init_vm_hv()
3756 kvm->arch.lpid = lpid; in kvmppc_core_init_vm_hv()
3816 kvmppc_free_lpid(kvm->arch.lpid); in kvmppc_core_init_vm_hv()
3891 kvmppc_free_lpid(kvm->arch.lpid); in kvmppc_core_destroy_vm_hv()
Dbook3s_xive.c121 vcpu->kvm->arch.lpid, xc->server_num, prio); in xive_attach_escalation()
Dbook3s_64_mmu_hv.c138 info->virt, (long)info->order, kvm->arch.lpid); in kvmppc_set_hpt()
/arch/powerpc/include/asm/book3s/64/
Dtlbflush-radix.h41 extern void radix__flush_tlb_lpid_va(unsigned long lpid, unsigned long gpa,
43 extern void radix__flush_tlb_lpid(unsigned long lpid);
/arch/powerpc/platforms/powernv/
Dvas.h368 int lpid; member
Dvas-window.c352 val = SET_FIELD(VAS_LPID, val, winctx->lpid); in init_winctx_regs()
903 winctx->lpid = txattr->lpid; in init_winctx_for_txwin()
/arch/powerpc/kernel/
Dasm-offsets.c479 OFFSET(KVM_LPID, kvm, arch.lpid); in main()