Lines Matching refs:gentry

165 	struct mtrr_gentry gentry;  in mtrr_ioctl()  local
182 if (copy_from_user(&gentry, arg, sizeof gentry)) in mtrr_ioctl()
209 err = get_user(gentry.regnum, &g32->regnum); in mtrr_ioctl()
210 err |= get_user(gentry.base, &g32->base); in mtrr_ioctl()
211 err |= get_user(gentry.size, &g32->size); in mtrr_ioctl()
212 err |= get_user(gentry.type, &g32->type); in mtrr_ioctl()
261 if (gentry.regnum >= num_var_ranges) in mtrr_ioctl()
263 mtrr_if->get(gentry.regnum, &base, &size, &type); in mtrr_ioctl()
266 if (base + size - 1 >= (1UL << (8 * sizeof(gentry.size) - PAGE_SHIFT)) in mtrr_ioctl()
267 || size >= (1UL << (8 * sizeof(gentry.size) - PAGE_SHIFT))) in mtrr_ioctl()
268 gentry.base = gentry.size = gentry.type = 0; in mtrr_ioctl()
270 gentry.base = base << PAGE_SHIFT; in mtrr_ioctl()
271 gentry.size = size << PAGE_SHIFT; in mtrr_ioctl()
272 gentry.type = type; in mtrr_ioctl()
315 if (gentry.regnum >= num_var_ranges) in mtrr_ioctl()
317 mtrr_if->get(gentry.regnum, &base, &size, &type); in mtrr_ioctl()
319 if (size != (__typeof__(gentry.size))size) in mtrr_ioctl()
320 gentry.base = gentry.size = gentry.type = 0; in mtrr_ioctl()
322 gentry.base = base; in mtrr_ioctl()
323 gentry.size = size; in mtrr_ioctl()
324 gentry.type = type; in mtrr_ioctl()
335 if (copy_to_user(arg, &gentry, sizeof gentry)) in mtrr_ioctl()
344 err = put_user(gentry.base, &g32->base); in mtrr_ioctl()
345 err |= put_user(gentry.size, &g32->size); in mtrr_ioctl()
346 err |= put_user(gentry.regnum, &g32->regnum); in mtrr_ioctl()
347 err |= put_user(gentry.type, &g32->type); in mtrr_ioctl()