Lines Matching refs:file_priv
118 struct drm_file *file_priv) in drm_mode_addfb() argument
139 ret = drm_mode_addfb2(dev, &r, file_priv); in drm_mode_addfb()
149 void *data, struct drm_file *file_priv) in drm_mode_addfb_ioctl() argument
151 return drm_mode_addfb(dev, data, file_priv); in drm_mode_addfb_ioctl()
289 struct drm_file *file_priv) in drm_internal_framebuffer_create() argument
321 fb = dev->mode_config.funcs->fb_create(dev, file_priv, r); in drm_internal_framebuffer_create()
347 void *data, struct drm_file *file_priv) in drm_mode_addfb2() argument
355 fb = drm_internal_framebuffer_create(dev, r, file_priv); in drm_mode_addfb2()
363 mutex_lock(&file_priv->fbs_lock); in drm_mode_addfb2()
364 list_add(&fb->filp_head, &file_priv->fbs); in drm_mode_addfb2()
365 mutex_unlock(&file_priv->fbs_lock); in drm_mode_addfb2()
371 void *data, struct drm_file *file_priv) in drm_mode_addfb2_ioctl() argument
391 return drm_mode_addfb2(dev, data, file_priv); in drm_mode_addfb2_ioctl()
429 struct drm_file *file_priv) in drm_mode_rmfb() argument
438 fb = drm_framebuffer_lookup(dev, file_priv, fb_id); in drm_mode_rmfb()
442 mutex_lock(&file_priv->fbs_lock); in drm_mode_rmfb()
443 list_for_each_entry(fbl, &file_priv->fbs, filp_head) in drm_mode_rmfb()
447 mutex_unlock(&file_priv->fbs_lock); in drm_mode_rmfb()
452 mutex_unlock(&file_priv->fbs_lock); in drm_mode_rmfb()
485 void *data, struct drm_file *file_priv) in drm_mode_rmfb_ioctl() argument
489 return drm_mode_rmfb(dev, *fb_id, file_priv); in drm_mode_rmfb_ioctl()
506 void *data, struct drm_file *file_priv) in drm_mode_getfb() argument
515 fb = drm_framebuffer_lookup(dev, file_priv, r->fb_id); in drm_mode_getfb()
541 if (!drm_is_current_master(file_priv) && !capable(CAP_SYS_ADMIN)) { in drm_mode_getfb()
547 ret = fb->funcs->create_handle(fb, file_priv, &r->handle); in drm_mode_getfb()
568 void *data, struct drm_file *file_priv) in drm_mode_getfb2_ioctl() argument
578 fb = drm_framebuffer_lookup(dev, file_priv, r->fb_id); in drm_mode_getfb2_ioctl()
619 if (!drm_is_current_master(file_priv) && !capable(CAP_SYS_ADMIN)) { in drm_mode_getfb2_ioctl()
641 ret = drm_gem_handle_create(file_priv, fb->obj[i], in drm_mode_getfb2_ioctl()
645 ret = fb->funcs->create_handle(fb, file_priv, in drm_mode_getfb2_ioctl()
660 drm_gem_handle_delete(file_priv, r->handles[i]); in drm_mode_getfb2_ioctl()
696 void *data, struct drm_file *file_priv) in drm_mode_dirtyfb_ioctl() argument
709 fb = drm_framebuffer_lookup(dev, file_priv, r->fb_id); in drm_mode_dirtyfb_ioctl()
749 ret = fb->funcs->dirty(fb, file_priv, flags, r->color, in drm_mode_dirtyfb_ioctl()
884 struct drm_file *file_priv, in drm_framebuffer_lookup() argument
890 obj = __drm_mode_object_find(dev, file_priv, id, DRM_MODE_OBJECT_FB); in drm_framebuffer_lookup()