Lines Matching refs:gentry

173 	struct mtrr_gentry gentry;  in mtrr_ioctl()  local
190 if (copy_from_user(&gentry, arg, sizeof gentry)) in mtrr_ioctl()
217 err = get_user(gentry.regnum, &g32->regnum); in mtrr_ioctl()
218 err |= get_user(gentry.base, &g32->base); in mtrr_ioctl()
219 err |= get_user(gentry.size, &g32->size); in mtrr_ioctl()
220 err |= get_user(gentry.type, &g32->type); in mtrr_ioctl()
269 if (gentry.regnum >= num_var_ranges) in mtrr_ioctl()
271 mtrr_if->get(gentry.regnum, &base, &size, &type); in mtrr_ioctl()
274 if (base + size - 1 >= (1UL << (8 * sizeof(gentry.size) - PAGE_SHIFT)) in mtrr_ioctl()
275 || size >= (1UL << (8 * sizeof(gentry.size) - PAGE_SHIFT))) in mtrr_ioctl()
276 gentry.base = gentry.size = gentry.type = 0; in mtrr_ioctl()
278 gentry.base = base << PAGE_SHIFT; in mtrr_ioctl()
279 gentry.size = size << PAGE_SHIFT; in mtrr_ioctl()
280 gentry.type = type; in mtrr_ioctl()
323 if (gentry.regnum >= num_var_ranges) in mtrr_ioctl()
325 mtrr_if->get(gentry.regnum, &base, &size, &type); in mtrr_ioctl()
327 if (size != (__typeof__(gentry.size))size) in mtrr_ioctl()
328 gentry.base = gentry.size = gentry.type = 0; in mtrr_ioctl()
330 gentry.base = base; in mtrr_ioctl()
331 gentry.size = size; in mtrr_ioctl()
332 gentry.type = type; in mtrr_ioctl()
343 if (copy_to_user(arg, &gentry, sizeof gentry)) in mtrr_ioctl()
352 err = put_user(gentry.base, &g32->base); in mtrr_ioctl()
353 err |= put_user(gentry.size, &g32->size); in mtrr_ioctl()
354 err |= put_user(gentry.regnum, &g32->regnum); in mtrr_ioctl()
355 err |= put_user(gentry.type, &g32->type); in mtrr_ioctl()