Lines Matching full:size
38 mtrr_file_add(unsigned long base, unsigned long size, in mtrr_file_add() argument
52 if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1))) in mtrr_file_add()
55 size >>= PAGE_SHIFT; in mtrr_file_add()
57 reg = mtrr_add_page(base, size, type, true); in mtrr_file_add()
64 mtrr_file_del(unsigned long base, unsigned long size, in mtrr_file_del() argument
71 if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1))) in mtrr_file_del()
74 size >>= PAGE_SHIFT; in mtrr_file_del()
76 reg = mtrr_del_page(-1, base, size); in mtrr_file_del()
91 * "base=%Lx size=%Lx type=%s" or "disable=%d"
98 unsigned long long base, size; in mtrr_write() local
133 if (strncmp(ptr, "size=", 5)) in mtrr_write()
136 size = simple_strtoull(ptr + 5, &ptr, 0); in mtrr_write()
137 if ((base & 0xfff) || (size & 0xfff)) in mtrr_write()
150 size >>= PAGE_SHIFT; in mtrr_write()
151 err = mtrr_add_page((unsigned long)base, (unsigned long)size, i, true); in mtrr_write()
163 unsigned long size; in mtrr_ioctl() local
200 err |= get_user(sentry.size, &s32->size); in mtrr_ioctl()
213 err |= get_user(gentry.size, &g32->size); in mtrr_ioctl()
232 mtrr_file_add(sentry.base, sentry.size, sentry.type, true, in mtrr_ioctl()
241 err = mtrr_add(sentry.base, sentry.size, sentry.type, false); in mtrr_ioctl()
249 err = mtrr_file_del(sentry.base, sentry.size, file, 0); in mtrr_ioctl()
257 err = mtrr_del(-1, sentry.base, sentry.size); in mtrr_ioctl()
265 mtrr_if->get(gentry.regnum, &base, &size, &type); in mtrr_ioctl()
268 if (base + size - 1 >= (1UL << (8 * sizeof(gentry.size) - PAGE_SHIFT)) in mtrr_ioctl()
269 || size >= (1UL << (8 * sizeof(gentry.size) - PAGE_SHIFT))) in mtrr_ioctl()
270 gentry.base = gentry.size = gentry.type = 0; in mtrr_ioctl()
273 gentry.size = size << PAGE_SHIFT; in mtrr_ioctl()
285 mtrr_file_add(sentry.base, sentry.size, sentry.type, true, in mtrr_ioctl()
295 mtrr_add_page(sentry.base, sentry.size, sentry.type, false); in mtrr_ioctl()
303 err = mtrr_file_del(sentry.base, sentry.size, file, 1); in mtrr_ioctl()
311 err = mtrr_del_page(-1, sentry.base, sentry.size); in mtrr_ioctl()
319 mtrr_if->get(gentry.regnum, &base, &size, &type); in mtrr_ioctl()
321 if (size != (__typeof__(gentry.size))size) in mtrr_ioctl()
322 gentry.base = gentry.size = gentry.type = 0; in mtrr_ioctl()
325 gentry.size = size; in mtrr_ioctl()
347 err |= put_user(gentry.size, &g32->size); in mtrr_ioctl()
403 unsigned long base, size; in mtrr_seq_show() local
407 mtrr_if->get(i, &base, &size, &type); in mtrr_seq_show()
408 if (size == 0) { in mtrr_seq_show()
412 if (size < (0x100000 >> PAGE_SHIFT)) { in mtrr_seq_show()
415 size <<= PAGE_SHIFT - 10; in mtrr_seq_show()
418 size >>= 20 - PAGE_SHIFT; in mtrr_seq_show()
421 seq_printf(seq, "reg%02i: base=0x%06lx000 (%5luMB), size=%5lu%cB, count=%d: %s\n", in mtrr_seq_show()
423 size, factor, in mtrr_seq_show()