Lines Matching +full:0 +full:m
15 static void bat_show_603(struct seq_file *m, int idx, u32 lower, u32 upper, bool is_d) in bat_show_603() argument
17 u32 bepi = upper & 0xfffe0000; in bat_show_603()
18 u32 bl = (upper >> 2) & 0x7ff; in bat_show_603()
23 seq_printf(m, "%d: ", idx); in bat_show_603()
24 if (k == 0) { in bat_show_603()
25 seq_puts(m, " -\n"); in bat_show_603()
29 seq_printf(m, "0x%08x-0x%08x ", bepi, bepi + size - 1); in bat_show_603()
31 seq_printf(m, "0x%016llx ", brpn); in bat_show_603()
33 seq_printf(m, "0x%08x ", brpn); in bat_show_603()
35 pt_dump_size(m, size); in bat_show_603()
38 seq_puts(m, "User "); in bat_show_603()
40 seq_puts(m, "Kernel "); in bat_show_603()
42 seq_puts(m, "Kernel/User "); in bat_show_603()
45 seq_puts(m, is_d ? "r " : " x "); in bat_show_603()
47 seq_puts(m, is_d ? "rw " : " x "); in bat_show_603()
49 seq_puts(m, is_d ? " " : " "); in bat_show_603()
51 seq_puts(m, lower & _PAGE_WRITETHRU ? "w " : " "); in bat_show_603()
52 seq_puts(m, lower & _PAGE_NO_CACHE ? "i " : " "); in bat_show_603()
53 seq_puts(m, lower & _PAGE_COHERENT ? "m " : " "); in bat_show_603()
54 seq_puts(m, lower & _PAGE_GUARDED ? "g " : " "); in bat_show_603()
55 seq_puts(m, "\n"); in bat_show_603()
60 static int bats_show(struct seq_file *m, void *v) in bats_show() argument
62 seq_puts(m, "---[ Instruction Block Address Translation ]---\n"); in bats_show()
64 BAT_SHOW_603(m, 0, SPRN_IBAT0L, SPRN_IBAT0U, false); in bats_show()
65 BAT_SHOW_603(m, 1, SPRN_IBAT1L, SPRN_IBAT1U, false); in bats_show()
66 BAT_SHOW_603(m, 2, SPRN_IBAT2L, SPRN_IBAT2U, false); in bats_show()
67 BAT_SHOW_603(m, 3, SPRN_IBAT3L, SPRN_IBAT3U, false); in bats_show()
69 BAT_SHOW_603(m, 4, SPRN_IBAT4L, SPRN_IBAT4U, false); in bats_show()
70 BAT_SHOW_603(m, 5, SPRN_IBAT5L, SPRN_IBAT5U, false); in bats_show()
71 BAT_SHOW_603(m, 6, SPRN_IBAT6L, SPRN_IBAT6U, false); in bats_show()
72 BAT_SHOW_603(m, 7, SPRN_IBAT7L, SPRN_IBAT7U, false); in bats_show()
75 seq_puts(m, "\n---[ Data Block Address Translation ]---\n"); in bats_show()
77 BAT_SHOW_603(m, 0, SPRN_DBAT0L, SPRN_DBAT0U, true); in bats_show()
78 BAT_SHOW_603(m, 1, SPRN_DBAT1L, SPRN_DBAT1U, true); in bats_show()
79 BAT_SHOW_603(m, 2, SPRN_DBAT2L, SPRN_DBAT2U, true); in bats_show()
80 BAT_SHOW_603(m, 3, SPRN_DBAT3L, SPRN_DBAT3U, true); in bats_show()
82 BAT_SHOW_603(m, 4, SPRN_DBAT4L, SPRN_DBAT4U, true); in bats_show()
83 BAT_SHOW_603(m, 5, SPRN_DBAT5L, SPRN_DBAT5U, true); in bats_show()
84 BAT_SHOW_603(m, 6, SPRN_DBAT6L, SPRN_DBAT6U, true); in bats_show()
85 BAT_SHOW_603(m, 7, SPRN_DBAT7L, SPRN_DBAT7U, true); in bats_show()
88 return 0; in bats_show()
97 return 0; in bats_init()