Home
last modified time | relevance | path

Searched refs:bat (Results 1 – 13 of 13) sorted by relevance

/arch/powerpc/mm/book3s32/
Dmmu.c85 struct ppc_bat *bat = BATS[b]; in find_free_bat() local
87 if (!(bat[1].batu & 3)) in find_free_bat()
122 struct ppc_bat *bat = BATS[index]; in setibat() local
129 bat[0].batu = virt | (bl << 2) | 2; /* Vs=1, Vp=0 */ in setibat()
130 bat[0].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setibat()
132 bat[0].batu |= 1; /* Vp = 1 */ in setibat()
137 struct ppc_bat *bat = BATS[index]; in clearibat() local
139 bat[0].batu = 0; in clearibat()
140 bat[0].batl = 0; in clearibat()
242 struct ppc_bat *bat = BATS[i]; in mmu_mark_rodata_ro() local
[all …]
/arch/powerpc/kvm/
Dbook3s_32_mmu.c132 struct kvmppc_bat *bat; in kvmppc_mmu_book3s_32_xlate_bat() local
137 bat = &vcpu_book3s->dbat[i]; in kvmppc_mmu_book3s_32_xlate_bat()
139 bat = &vcpu_book3s->ibat[i]; in kvmppc_mmu_book3s_32_xlate_bat()
142 if (!bat->vp) in kvmppc_mmu_book3s_32_xlate_bat()
145 if (!bat->vs) in kvmppc_mmu_book3s_32_xlate_bat()
152 data ? 'd' : 'i', i, eaddr, bat->bepi, in kvmppc_mmu_book3s_32_xlate_bat()
153 bat->bepi_mask); in kvmppc_mmu_book3s_32_xlate_bat()
155 if ((eaddr & bat->bepi_mask) == bat->bepi) { in kvmppc_mmu_book3s_32_xlate_bat()
162 pte->raddr = bat->brpn | (eaddr & ~bat->bepi_mask); in kvmppc_mmu_book3s_32_xlate_bat()
163 pte->may_read = bat->pp; in kvmppc_mmu_book3s_32_xlate_bat()
[all …]
Dbook3s_emulate.c633 void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat, bool upper, in kvmppc_set_bat() argument
639 bat->bepi_mask = (~bl << 17); in kvmppc_set_bat()
640 bat->bepi = val & 0xfffe0000; in kvmppc_set_bat()
641 bat->vs = (val & 2) ? 1 : 0; in kvmppc_set_bat()
642 bat->vp = (val & 1) ? 1 : 0; in kvmppc_set_bat()
643 bat->raw = (bat->raw & 0xffffffff00000000ULL) | val; in kvmppc_set_bat()
646 bat->brpn = val & 0xfffe0000; in kvmppc_set_bat()
647 bat->wimg = (val >> 3) & 0xf; in kvmppc_set_bat()
648 bat->pp = val & 3; in kvmppc_set_bat()
649 bat->raw = (bat->raw & 0x00000000ffffffffULL) | ((u64)val << 32); in kvmppc_set_bat()
[all …]
/arch/arm64/boot/dts/sprd/
Dsc2731.dtsi23 monitored-battery = <&bat>;
101 bat-detect-gpio = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
103 io-channel-names = "bat-temp", "charge-vol";
104 monitored-battery = <&bat>;
Dsp9860g-1h10.dts43 bat: battery { label
/arch/arm64/boot/dts/freescale/
Dimx8mq-librem5-r4.dts19 &bat {
Dimx8mq-librem5.dtsi963 bat: fuel-gauge@36 { label
990 monitored-battery = <&bat>;
/arch/arm/boot/dts/
Dqcom-pm8941.dtsi51 "bat-temp-ok",
52 "bat-present",
Drk3188-bqedison2qc.dts296 bat: battery@55 { label
411 monitored-battery = <&bat>;
/arch/x86/kernel/
Dapm_32.c1026 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/
Dkvm_book3s.h232 extern void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat,
/arch/arm64/boot/dts/rockchip/
Drk3399-pinebook-pro.dts37 bat: battery { label
768 monitored-battery = <&bat>;
/arch/arm64/boot/dts/nvidia/
Dtegra210-p2894.dtsi1640 regulator-name = "vdd-ac-bat";