Lines Matching +full:low +full:-
1 // SPDX-License-Identifier: GPL-2.0
12 unsigned long low; member
19 * centaur_get_free_region - Get a free MTRR.
24 * Returns: the index of the region on success, else -1 on error.
40 mtrr_if->get(i, &lbase, &lsize, <ype); in centaur_get_free_region()
45 return -ENOSPC; in centaur_get_free_region()
53 centaur_mcr[mcr].low = lo; in mtrr_centaur_report_mcr()
62 *size = -(centaur_mcr[reg].low & 0xfffff000) >> PAGE_SHIFT; in centaur_get_mcr()
63 *type = MTRR_TYPE_WRCOMB; /* write-combining */ in centaur_get_mcr()
65 if (centaur_mcr_type == 1 && ((centaur_mcr[reg].low & 31) & 2)) in centaur_get_mcr()
67 if (centaur_mcr_type == 1 && (centaur_mcr[reg].low & 31) == 25) in centaur_get_mcr()
69 if (centaur_mcr_type == 0 && (centaur_mcr[reg].low & 31) == 31) in centaur_get_mcr()
77 unsigned long low, high; in centaur_set_mcr() local
81 high = low = 0; in centaur_set_mcr()
85 /* Only support write-combining... */ in centaur_set_mcr()
86 low = -size << PAGE_SHIFT | 0x1f; in centaur_set_mcr()
89 low = -size << PAGE_SHIFT | 0x02; /* NC */ in centaur_set_mcr()
91 low = -size << PAGE_SHIFT | 0x09; /* WWO, WC */ in centaur_set_mcr()
95 centaur_mcr[reg].low = low; in centaur_set_mcr()
96 wrmsr(MSR_IDT_MCR0 + reg, low, high); in centaur_set_mcr()
107 pr_warn("mtrr: only write-combining%s supported\n", in centaur_validate_add_page()
109 return -EINVAL; in centaur_validate_add_page()