Searched refs:bat (Results 1 – 13 of 13) sorted by relevance
/arch/powerpc/mm/book3s32/ |
D | mmu.c | 85 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/ |
D | book3s_32_mmu.c | 132 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 …]
|
D | book3s_emulate.c | 633 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/ |
D | sc2731.dtsi | 23 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>;
|
D | sp9860g-1h10.dts | 43 bat: battery { label
|
/arch/arm64/boot/dts/freescale/ |
D | imx8mq-librem5-r4.dts | 19 &bat {
|
D | imx8mq-librem5.dtsi | 963 bat: fuel-gauge@36 { label 990 monitored-battery = <&bat>;
|
/arch/arm/boot/dts/ |
D | qcom-pm8941.dtsi | 51 "bat-temp-ok", 52 "bat-present",
|
D | rk3188-bqedison2qc.dts | 296 bat: battery@55 { label 411 monitored-battery = <&bat>;
|
/arch/x86/kernel/ |
D | apm_32.c | 1026 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 | 232 extern void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat,
|
/arch/arm64/boot/dts/rockchip/ |
D | rk3399-pinebook-pro.dts | 37 bat: battery { label 768 monitored-battery = <&bat>;
|
/arch/arm64/boot/dts/nvidia/ |
D | tegra210-p2894.dtsi | 1640 regulator-name = "vdd-ac-bat";
|