Lines Matching full:fix
67 struct fb_fix_screeninfo fix; in do_fb_ioctl() local
100 memcpy(&fix, &info->fix, sizeof(fix)); in do_fb_ioctl()
102 fix.smem_start = 0; in do_fb_ioctl()
105 ret = copy_to_user(argp, &fix, sizeof(fix)) ? -EFAULT : 0; in do_fb_ioctl()
228 static int do_fscreeninfo_to_user(struct fb_fix_screeninfo *fix, in do_fscreeninfo_to_user() argument
234 err = copy_to_user(&fix32->id, &fix->id, sizeof(fix32->id)); in do_fscreeninfo_to_user()
236 data = (__u32) (unsigned long) fix->smem_start; in do_fscreeninfo_to_user()
239 err |= put_user(fix->smem_len, &fix32->smem_len); in do_fscreeninfo_to_user()
240 err |= put_user(fix->type, &fix32->type); in do_fscreeninfo_to_user()
241 err |= put_user(fix->type_aux, &fix32->type_aux); in do_fscreeninfo_to_user()
242 err |= put_user(fix->visual, &fix32->visual); in do_fscreeninfo_to_user()
243 err |= put_user(fix->xpanstep, &fix32->xpanstep); in do_fscreeninfo_to_user()
244 err |= put_user(fix->ypanstep, &fix32->ypanstep); in do_fscreeninfo_to_user()
245 err |= put_user(fix->ywrapstep, &fix32->ywrapstep); in do_fscreeninfo_to_user()
246 err |= put_user(fix->line_length, &fix32->line_length); in do_fscreeninfo_to_user()
248 data = (__u32) (unsigned long) fix->mmio_start; in do_fscreeninfo_to_user()
251 err |= put_user(fix->mmio_len, &fix32->mmio_len); in do_fscreeninfo_to_user()
252 err |= put_user(fix->accel, &fix32->accel); in do_fscreeninfo_to_user()
253 err |= copy_to_user(fix32->reserved, fix->reserved, in do_fscreeninfo_to_user()
254 sizeof(fix->reserved)); in do_fscreeninfo_to_user()
264 struct fb_fix_screeninfo fix; in fb_get_fscreeninfo() local
267 fix = info->fix; in fb_get_fscreeninfo()
269 fix.smem_start = 0; in fb_get_fscreeninfo()
271 return do_fscreeninfo_to_user(&fix, compat_ptr(arg)); in fb_get_fscreeninfo()
397 unsigned long fb_size = PAGE_ALIGN(info->fix.smem_len); in get_fb_unmapped_area()