Lines Matching full:mask
25 "Mask ||", "Size ||"); in do_mtrr_list()
28 uint64_t base, mask, size; in do_mtrr_list() local
32 mask = native_read_msr(MTRR_PHYS_MASK_MSR(i)); in do_mtrr_list()
33 size = ~mask & ((1ULL << CONFIG_CPU_ADDR_BITS) - 1); in do_mtrr_list()
36 valid = mask & MTRR_PHYS_MASK_VALID; in do_mtrr_list()
40 mask & ~MTRR_PHYS_MASK_VALID, size); in do_mtrr_list()
51 uint64_t base, mask; in do_mtrr_set() local
70 mask = ~((uint64_t)size - 1); in do_mtrr_set()
71 mask &= (1ULL << CONFIG_CPU_ADDR_BITS) - 1; in do_mtrr_set()
73 mask |= MTRR_PHYS_MASK_VALID; in do_mtrr_set()
75 printf("base=%llx, mask=%llx\n", base, mask); in do_mtrr_set()
78 wrmsrl(MTRR_PHYS_MASK_MSR(reg), mask); in do_mtrr_set()
87 uint64_t mask; in mtrr_set_valid() local
90 mask = native_read_msr(MTRR_PHYS_MASK_MSR(reg)); in mtrr_set_valid()
92 mask |= MTRR_PHYS_MASK_VALID; in mtrr_set_valid()
94 mask &= ~MTRR_PHYS_MASK_VALID; in mtrr_set_valid()
95 wrmsrl(MTRR_PHYS_MASK_MSR(reg), mask); in mtrr_set_valid()