Lines Matching full:bat
53 * Return PA for this VA if it is mapped by a BAT, or 0
84 struct ppc_bat *bat = BATS[b]; in find_free_bat() local
86 if (!(bat[1].batu & 3)) in find_free_bat()
121 struct ppc_bat *bat = BATS[index]; in setibat() local
128 bat[0].batu = virt | (bl << 2) | 2; /* Vs=1, Vp=0 */ in setibat()
129 bat[0].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setibat()
131 bat[0].batu |= 1; /* Vp = 1 */ in setibat()
136 struct ppc_bat *bat = BATS[index]; in clearibat() local
138 bat[0].batu = 0; in clearibat()
139 bat[0].batl = 0; in clearibat()
241 struct ppc_bat *bat = BATS[i]; in mmu_mark_rodata_ro() local
244 bat[1].batl = (bat[1].batl & ~BPP_RW) | BPP_RX; in mmu_mark_rodata_ro()
251 * Set up one of the D BAT (block address translation) register pairs.
260 struct ppc_bat *bat; in setbat() local
266 pr_err("%s: no BAT available for mapping 0x%llx\n", __func__, in setbat()
270 bat = BATS[index]; in setbat()
281 bat[1].batu = virt | (bl << 2) | 2; /* Vs=1, Vp=0 */ in setbat()
282 bat[1].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setbat()
284 bat[1].batu |= 1; /* Vp = 1 */ in setbat()