/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_auth.c | 64 int drm_getmagic(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getmagic() argument 70 if (!file_priv->magic) { in drm_getmagic() 71 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic() 74 file_priv->magic = ret; in drm_getmagic() 76 auth->magic = file_priv->magic; in drm_getmagic() 85 struct drm_file *file_priv) in drm_authmagic() argument 93 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic() 96 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic() 206 drm_master_check_perm(struct drm_device *dev, struct drm_file *file_priv) in drm_master_check_perm() argument 208 if (file_priv->pid == task_pid(current) && file_priv->was_master) in drm_master_check_perm() [all …]
|
D | drm_crtc_internal.h | 77 void *data, struct drm_file *file_priv); 79 void *data, struct drm_file *file_priv); 92 void *data, struct drm_file *file_priv); 98 struct drm_file *file_priv); 100 struct drm_file *file_priv); 104 void *data, struct drm_file *file_priv); 106 void *data, struct drm_file *file_priv); 108 void *data, struct drm_file *file_priv); 116 void *data, struct drm_file *file_priv); 118 void *data, struct drm_file *file_priv); [all …]
|
D | drm_dumb_buffers.c | 60 struct drm_file *file_priv) in drm_mode_create_dumb() argument 94 return dev->driver->dumb_create(file_priv, dev, args); in drm_mode_create_dumb() 98 void *data, struct drm_file *file_priv) in drm_mode_create_dumb_ioctl() argument 100 return drm_mode_create_dumb(dev, data, file_priv); in drm_mode_create_dumb_ioctl() 118 void *data, struct drm_file *file_priv) in drm_mode_mmap_dumb_ioctl() argument 126 return dev->driver->dumb_map_offset(file_priv, dev, in drm_mode_mmap_dumb_ioctl() 130 return drm_gem_dumb_map_offset(file_priv, dev, args->handle, in drm_mode_mmap_dumb_ioctl() 135 struct drm_file *file_priv) in drm_mode_destroy_dumb() argument 141 return dev->driver->dumb_destroy(file_priv, dev, handle); in drm_mode_destroy_dumb() 143 return drm_gem_dumb_destroy(file_priv, dev, handle); in drm_mode_destroy_dumb() [all …]
|
D | drm_file.c | 211 static void drm_events_release(struct drm_file *file_priv) in drm_events_release() argument 213 struct drm_device *dev = file_priv->minor->dev; in drm_events_release() 220 list_for_each_entry_safe(e, et, &file_priv->pending_event_list, in drm_events_release() 223 e->file_priv = NULL; in drm_events_release() 227 list_for_each_entry_safe(e, et, &file_priv->event_list, link) { in drm_events_release() 303 struct drm_file *file_priv = filp->private_data; in drm_close_helper() local 304 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper() 307 list_del(&file_priv->lhead); in drm_close_helper() 310 drm_file_free(file_priv); in drm_close_helper() 486 struct drm_file *file_priv = filp->private_data; in drm_release() local [all …]
|
D | drm_lock.c | 114 lock_data->file_priv = NULL; in drm_lock_transfer() 165 struct drm_file *file_priv) in drm_legacy_lock() argument 169 struct drm_master *master = file_priv->master; in drm_legacy_lock() 175 ++file_priv->lock_count; in drm_legacy_lock() 202 master->lock.file_priv = file_priv; in drm_legacy_lock() 229 if (!drm_is_current_master(file_priv)) { in drm_legacy_lock() 257 int drm_legacy_unlock(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_legacy_unlock() argument 260 struct drm_master *master = file_priv->master; in drm_legacy_unlock() 330 struct drm_file *file_priv) in drm_legacy_i_have_hw_lock() argument 332 struct drm_master *master = file_priv->master; in drm_legacy_i_have_hw_lock() [all …]
|
D | drm_ioctl.c | 118 struct drm_file *file_priv) in drm_getunique() argument 124 master = file_priv->master; in drm_getunique() 146 static int drm_set_busid(struct drm_device *dev, struct drm_file *file_priv) in drm_set_busid() argument 148 struct drm_master *master = file_priv->master; in drm_set_busid() 184 struct drm_file *file_priv) in drm_getclient() argument 200 client->auth = file_priv->authenticated; in drm_getclient() 223 struct drm_file *file_priv) in drm_getstats() argument 236 static int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getcap() argument 316 drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_setclientcap() argument 330 file_priv->stereo_allowed = req->value; in drm_setclientcap() [all …]
|
D | drm_internal.h | 57 struct drm_file *file_priv); 64 struct drm_file *file_priv) in drm_irq_by_busid() argument 83 struct drm_file *file_priv); 85 struct drm_file *file_priv); 131 struct drm_file *file_priv); 138 struct drm_file *file_priv); 149 struct drm_file *file_priv); 151 struct drm_file *file_priv); 153 struct drm_file *file_priv); 155 struct drm_file *file_priv); [all …]
|
D | drm_framebuffer.c | 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() 292 struct drm_file *file_priv) in drm_internal_framebuffer_create() argument 324 fb = dev->mode_config.funcs->fb_create(dev, file_priv, r); in drm_internal_framebuffer_create() 350 void *data, struct drm_file *file_priv) in drm_mode_addfb2() argument 358 fb = drm_internal_framebuffer_create(dev, r, file_priv); in drm_mode_addfb2() 366 mutex_lock(&file_priv->fbs_lock); in drm_mode_addfb2() 367 list_add(&fb->filp_head, &file_priv->fbs); in drm_mode_addfb2() [all …]
|
D | drm_context.c | 179 struct drm_file *file_priv) in drm_legacy_getsareactx() argument 227 struct drm_file *file_priv) in drm_legacy_setsareactx() argument 305 struct drm_file *file_priv, int new) in drm_context_switch_complete() argument 309 if (!_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) { in drm_context_switch_complete() 331 struct drm_file *file_priv) in drm_legacy_resctx() argument 366 struct drm_file *file_priv) in drm_legacy_addctx() argument 398 ctx_entry->tag = file_priv; in drm_legacy_addctx() 417 struct drm_file *file_priv) in drm_legacy_getctx() argument 443 struct drm_file *file_priv) in drm_legacy_switchctx() argument 467 struct drm_file *file_priv) in drm_legacy_newctx() argument [all …]
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | privcmd-buf.c | 30 struct privcmd_buf_private *file_priv; member 39 struct privcmd_buf_private *file_priv; in privcmd_buf_open() local 41 file_priv = kzalloc(sizeof(*file_priv), GFP_KERNEL); in privcmd_buf_open() 42 if (!file_priv) in privcmd_buf_open() 45 mutex_init(&file_priv->lock); in privcmd_buf_open() 46 INIT_LIST_HEAD(&file_priv->list); in privcmd_buf_open() 48 file->private_data = file_priv; in privcmd_buf_open() 67 struct privcmd_buf_private *file_priv = file->private_data; in privcmd_buf_release() local 70 mutex_lock(&file_priv->lock); in privcmd_buf_release() 72 while (!list_empty(&file_priv->list)) { in privcmd_buf_release() [all …]
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_lease.h | 17 bool drm_lease_held(struct drm_file *file_priv, int id); 19 bool _drm_lease_held(struct drm_file *file_priv, int id); 23 uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs); 26 void *data, struct drm_file *file_priv); 29 void *data, struct drm_file *file_priv); 32 void *data, struct drm_file *file_priv); 35 void *data, struct drm_file *file_priv);
|
D | drm_agpsupport.h | 39 struct drm_file *file_priv); 42 struct drm_file *file_priv); 45 struct drm_file *file_priv); 48 struct drm_file *file_priv); 51 struct drm_file *file_priv); 54 struct drm_file *file_priv); 57 struct drm_file *file_priv); 60 struct drm_file *file_priv);
|
D | drm_file.h | 133 struct drm_file *file_priv; member 377 static inline bool drm_is_primary_client(const struct drm_file *file_priv) in drm_is_primary_client() argument 379 return file_priv->minor->type == DRM_MINOR_PRIMARY; in drm_is_primary_client() 391 static inline bool drm_is_render_client(const struct drm_file *file_priv) in drm_is_render_client() argument 393 return file_priv->minor->type == DRM_MINOR_RENDER; in drm_is_render_client() 403 struct drm_file *file_priv, 407 struct drm_file *file_priv,
|
D | drm_drv.h | 313 void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, 320 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv); 372 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, 383 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, 484 int (*dumb_create)(struct drm_file *file_priv, 502 int (*dumb_map_offset)(struct drm_file *file_priv, 521 int (*dumb_destroy)(struct drm_file *file_priv, 581 void (*preclose) (struct drm_device *, struct drm_file *file_priv); 582 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/via/ |
D | via_drv.c | 38 struct via_file_private *file_priv; in via_driver_open() local 41 file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL); in via_driver_open() 42 if (!file_priv) in via_driver_open() 45 file->driver_priv = file_priv; in via_driver_open() 47 INIT_LIST_HEAD(&file_priv->obj_list); in via_driver_open() 54 struct via_file_private *file_priv = file->driver_priv; in via_driver_postclose() local 56 kfree(file_priv); in via_driver_postclose()
|
D | via_drv.h | 189 extern int via_fb_init(struct drm_device *dev, void *data, struct drm_file *file_priv); 190 extern int via_mem_alloc(struct drm_device *dev, void *data, struct drm_file *file_priv); 191 extern int via_mem_free(struct drm_device *dev, void *data, struct drm_file *file_priv); 192 extern int via_agp_init(struct drm_device *dev, void *data, struct drm_file *file_priv); 193 extern int via_map_init(struct drm_device *dev, void *data, struct drm_file *file_priv); 194 extern int via_decoder_futex(struct drm_device *dev, void *data, struct drm_file *file_priv); 195 extern int via_wait_irq(struct drm_device *dev, void *data, struct drm_file *file_priv); 196 extern int via_dma_blit_sync(struct drm_device *dev, void *data, struct drm_file *file_priv); 197 extern int via_dma_blit(struct drm_device *dev, void *data, struct drm_file *file_priv); 223 struct drm_file *file_priv);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
D | exynos_drm_g2d.h | 9 struct drm_file *file_priv); 11 struct drm_file *file_priv); 13 struct drm_file *file_priv); 19 struct drm_file *file_priv) in exynos_g2d_get_ver_ioctl() argument 26 struct drm_file *file_priv) in exynos_g2d_set_cmdlist_ioctl() argument 32 struct drm_file *file_priv) in exynos_g2d_exec_ioctl() argument
|
D | exynos_drm_ipp.h | 138 struct drm_file *file_priv); 140 struct drm_file *file_priv); 142 struct drm_file *file_priv); 144 void *data, struct drm_file *file_priv); 147 void *data, struct drm_file *file_priv) in exynos_drm_ipp_get_res_ioctl() argument 155 void *data, struct drm_file *file_priv) in exynos_drm_ipp_get_caps_ioctl() argument 160 void *data, struct drm_file *file_priv) in exynos_drm_ipp_get_limits_ioctl() argument 165 void *data, struct drm_file *file_priv) in exynos_drm_ipp_commit_ioctl() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sis/ |
D | sis_drv.c | 81 struct sis_file_private *file_priv; in sis_driver_open() local 84 file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL); in sis_driver_open() 85 if (!file_priv) in sis_driver_open() 88 file->driver_priv = file_priv; in sis_driver_open() 90 INIT_LIST_HEAD(&file_priv->obj_list); in sis_driver_open() 97 struct sis_file_private *file_priv = file->driver_priv; in sis_driver_postclose() local 99 kfree(file_priv); in sis_driver_postclose()
|
D | sis_mm.c | 66 static int sis_fb_init(struct drm_device *dev, void *data, struct drm_file *file_priv) in sis_fb_init() argument 92 struct sis_file_private *file_priv = file->driver_priv; in sis_drm_alloc() local 139 list_add(&item->owner_list, &file_priv->obj_list); in sis_drm_alloc() 166 static int sis_drm_free(struct drm_device *dev, void *data, struct drm_file *file_priv) in sis_drm_free() argument 195 struct drm_file *file_priv) in sis_fb_alloc() argument 197 return sis_drm_alloc(dev, file_priv, data, VIDEO_TYPE); in sis_fb_alloc() 201 struct drm_file *file_priv) in sis_ioctl_agp_init() argument 219 struct drm_file *file_priv) in sis_ioctl_agp_alloc() argument 222 return sis_drm_alloc(dev, file_priv, data, AGP_TYPE); in sis_ioctl_agp_alloc() 317 struct sis_file_private *file_priv = file->driver_priv; in sis_reclaim_buffers_locked() local [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/v3d/ |
D | v3d_gem.c | 288 struct drm_file *file_priv, in v3d_lookup_bos() argument 330 spin_lock(&file_priv->table_lock); in v3d_lookup_bos() 332 struct drm_gem_object *bo = idr_find(&file_priv->object_idr, in v3d_lookup_bos() 338 spin_unlock(&file_priv->table_lock); in v3d_lookup_bos() 344 spin_unlock(&file_priv->table_lock); in v3d_lookup_bos() 400 struct drm_file *file_priv) in v3d_wait_bo_ioctl() argument 412 ret = drm_gem_dma_resv_wait(file_priv, args->handle, in v3d_wait_bo_ioctl() 432 v3d_job_init(struct v3d_dev *v3d, struct drm_file *file_priv, in v3d_job_init() argument 448 ret = drm_syncobj_find_fence(file_priv, in_sync, 0, 0, &in_fence); in v3d_job_init() 487 v3d_attach_fences_and_unlock_reservation(struct drm_file *file_priv, in v3d_attach_fences_and_unlock_reservation() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/panfrost/ |
D | panfrost_perfcnt.c | 70 struct drm_file *file_priv, in panfrost_perfcnt_enable_locked() argument 73 struct panfrost_file_priv *user = file_priv->driver_priv; in panfrost_perfcnt_enable_locked() 95 ret = panfrost_gem_open(&bo->base, file_priv); in panfrost_perfcnt_enable_locked() 170 panfrost_gem_close(&bo->base, file_priv); in panfrost_perfcnt_enable_locked() 179 struct drm_file *file_priv) in panfrost_perfcnt_disable_locked() argument 181 struct panfrost_file_priv *user = file_priv->driver_priv; in panfrost_perfcnt_disable_locked() 197 panfrost_gem_close(&perfcnt->mapping->obj->base.base, file_priv); in panfrost_perfcnt_disable_locked() 208 struct drm_file *file_priv) in panfrost_ioctl_perfcnt_enable() argument 225 ret = panfrost_perfcnt_enable_locked(pfdev, file_priv, in panfrost_ioctl_perfcnt_enable() 228 ret = panfrost_perfcnt_disable_locked(pfdev, file_priv); in panfrost_ioctl_perfcnt_enable() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i810/ |
D | i810_dma.c | 127 static int i810_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) in i810_map_buffer() argument 129 struct drm_device *dev = file_priv->minor->dev; in i810_map_buffer() 139 old_fops = file_priv->filp->f_op; in i810_map_buffer() 140 file_priv->filp->f_op = &i810_buffer_fops; in i810_map_buffer() 142 buf_priv->virtual = (void *)vm_mmap(file_priv->filp, 0, buf->total, in i810_map_buffer() 146 file_priv->filp->f_op = old_fops; in i810_map_buffer() 175 struct drm_file *file_priv) in i810_dma_get_buffer() argument 188 retcode = i810_map_buffer(buf, file_priv); in i810_dma_get_buffer() 194 buf->file_priv = file_priv; in i810_dma_get_buffer() 428 struct drm_file *file_priv) in i810_dma_init() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ioctl.c | 39 struct drm_file *file_priv) in vmw_getparam_ioctl() argument 44 struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv); in vmw_getparam_ioctl() 183 struct drm_file *file_priv) in vmw_get_cap_3d_ioctl() argument 194 struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv); in vmw_get_cap_3d_ioctl() 255 struct drm_file *file_priv) in vmw_present_ioctl() argument 257 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() 298 fb = drm_framebuffer_lookup(dev, file_priv, arg->fb_id); in vmw_present_ioctl() 317 ret = vmw_kms_present(dev_priv, file_priv, in vmw_present_ioctl() 338 struct drm_file *file_priv) in vmw_present_readback_ioctl() argument 381 fb = drm_framebuffer_lookup(dev, file_priv, arg->fb_id); in vmw_present_readback_ioctl() [all …]
|
D | vmwgfx_drv.h | 667 static inline struct vmw_fpriv *vmw_fpriv(struct drm_file *file_priv) in vmw_fpriv() argument 669 return (struct vmw_fpriv *)file_priv->driver_priv; in vmw_fpriv() 780 struct drm_file *file_priv); 782 struct drm_file *file_priv); 866 struct drm_file *file_priv); 868 struct drm_file *file_priv); 870 struct drm_file *file_priv); 947 struct drm_file *file_priv); 949 struct drm_file *file_priv); 951 struct drm_file *file_priv); [all …]
|