Searched refs:bat (Results 1 – 5 of 5) sorted by relevance
/arch/powerpc/kvm/ |
D | book3s_emulate.c | 271 void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat, bool upper, in kvmppc_set_bat() argument 277 bat->bepi_mask = (~bl << 17); in kvmppc_set_bat() 278 bat->bepi = val & 0xfffe0000; in kvmppc_set_bat() 279 bat->vs = (val & 2) ? 1 : 0; in kvmppc_set_bat() 280 bat->vp = (val & 1) ? 1 : 0; in kvmppc_set_bat() 281 bat->raw = (bat->raw & 0xffffffff00000000ULL) | val; in kvmppc_set_bat() 284 bat->brpn = val & 0xfffe0000; in kvmppc_set_bat() 285 bat->wimg = (val >> 3) & 0xf; in kvmppc_set_bat() 286 bat->pp = val & 3; in kvmppc_set_bat() 287 bat->raw = (bat->raw & 0x00000000ffffffffULL) | ((u64)val << 32); in kvmppc_set_bat() [all …]
|
D | book3s_32_mmu.c | 151 struct kvmppc_bat *bat; in kvmppc_mmu_book3s_32_xlate_bat() local 156 bat = &vcpu_book3s->dbat[i]; in kvmppc_mmu_book3s_32_xlate_bat() 158 bat = &vcpu_book3s->ibat[i]; in kvmppc_mmu_book3s_32_xlate_bat() 161 if (!bat->vp) in kvmppc_mmu_book3s_32_xlate_bat() 164 if (!bat->vs) in kvmppc_mmu_book3s_32_xlate_bat() 171 data ? 'd' : 'i', i, eaddr, bat->bepi, in kvmppc_mmu_book3s_32_xlate_bat() 172 bat->bepi_mask); in kvmppc_mmu_book3s_32_xlate_bat() 174 if ((eaddr & bat->bepi_mask) == bat->bepi) { in kvmppc_mmu_book3s_32_xlate_bat() 181 pte->raddr = bat->brpn | (eaddr & ~bat->bepi_mask); in kvmppc_mmu_book3s_32_xlate_bat() 182 pte->may_read = bat->pp; in kvmppc_mmu_book3s_32_xlate_bat() [all …]
|
/arch/powerpc/mm/ |
D | ppc_mmu_32.c | 120 struct ppc_bat *bat = BATS[index]; in setbat() local 133 bat[1].batu = virt | (bl << 2) | 2; /* Vs=1, Vp=0 */ in setbat() 134 bat[1].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setbat() 136 bat[1].batu |= 1; /* Vp = 1 */ in setbat() 139 bat[0].batu = bat[0].batl = 0; in setbat() 142 bat[0] = bat[1]; in setbat() 152 bat->batu = virt | wimgxpp | 4; /* Ks=0, Ku=1 */ in setbat() 153 bat->batl = phys | bl | 0x40; /* V=1 */ in setbat()
|
/arch/x86/kernel/ |
D | apm_32.c | 1029 static int apm_get_power_status(u_short *status, u_short *bat, u_short *life) in apm_get_power_status() argument 1042 *bat = call.ecx; in apm_get_power_status() 1053 u_short *bat, u_short *life, u_short *nbat) 1066 return apm_get_power_status(status, bat, life); 1073 *bat = ecx;
|
/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 144 extern void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat,
|