Home | History | Annotate | Download | only in linux

Lines Matching defs:mtrr

46 #if defined(MTRR)
47 #include <machine/mtrr.h>
80 #if defined(MTRR)
81 struct mtrr *mtrr;
86 mtrr = kmem_alloc(sizeof(*mtrr), KM_SLEEP);
87 mtrr->base = base;
88 mtrr->len = size;
89 mtrr->type = MTRR_TYPE_WC;
90 mtrr->flags = MTRR_VALID;
93 ret = -mtrr_set(mtrr, &n, NULL, MTRR_GETSET_KERNEL);
102 id = idr_alloc(&linux_writecomb.idr, mtrr, 0, 0, GFP_NOWAIT);
111 mtrr->type = 0;
112 mtrr->flags = 0;
114 ret = -mtrr_set(mtrr, &n, NULL, MTRR_GETSET_KERNEL);
119 kmem_free(mtrr, sizeof(*mtrr));
129 #if defined(MTRR)
130 struct mtrr *mtrr;
137 mtrr = idr_find(&linux_writecomb.idr, id);
141 if (mtrr != NULL) {
142 mtrr->type = 0;
143 mtrr->flags = 0;
145 ret = -mtrr_set(mtrr, &n, NULL, MTRR_GETSET_KERNEL);
148 kmem_free(mtrr, sizeof(*mtrr));
157 /* XXX Actually implement this...requires changes to our MTRR API. */