Lines Matching refs:bat
81 struct ppc_bat *bat = BATS[b]; in find_free_bat() local
83 if (!(bat[1].batu & 3)) in find_free_bat()
118 struct ppc_bat *bat = BATS[index]; in setibat() local
125 bat[0].batu = virt | (bl << 2) | 2; /* Vs=1, Vp=0 */ in setibat()
126 bat[0].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setibat()
128 bat[0].batu |= 1; /* Vp = 1 */ in setibat()
133 struct ppc_bat *bat = BATS[index]; in clearibat() local
135 bat[0].batu = 0; in clearibat()
136 bat[0].batl = 0; in clearibat()
245 struct ppc_bat *bat = BATS[i]; in mmu_mark_rodata_ro() local
248 bat[1].batl = (bat[1].batl & ~BPP_RW) | BPP_RX; in mmu_mark_rodata_ro()
265 struct ppc_bat *bat; in setbat() local
275 bat = BATS[index]; in setbat()
286 bat[1].batu = virt | (bl << 2) | 2; /* Vs=1, Vp=0 */ in setbat()
287 bat[1].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setbat()
289 bat[1].batu |= 1; /* Vp = 1 */ in setbat()
295 bat[0] = bat[1]; in setbat()
297 bat[0].batu = bat[0].batl = 0; in setbat()