/drivers/gpu/drm/ |
D | drm_crtc_internal.h | 46 void drm_fb_release(struct drm_file *file_priv); 50 void *data, struct drm_file *file_priv); 52 void *data, struct drm_file *file_priv); 54 void *data, struct drm_file *file_priv); 58 void *data, struct drm_file *file_priv); 60 void *data, struct drm_file *file_priv); 62 void *data, struct drm_file *file_priv); 68 void *data, struct drm_file *file_priv); 70 void *data, struct drm_file *file_priv); 74 struct drm_file *file_priv); [all …]
|
D | drm_fops.c | 278 static void drm_events_release(struct drm_file *file_priv) in drm_events_release() argument 280 struct drm_device *dev = file_priv->minor->dev; in drm_events_release() 287 list_for_each_entry_safe(e, et, &file_priv->pending_event_list, in drm_events_release() 290 e->file_priv = NULL; in drm_events_release() 294 list_for_each_entry_safe(e, et, &file_priv->event_list, link) { in drm_events_release() 367 struct drm_file *file_priv = filp->private_data; in drm_release() local 368 struct drm_minor *minor = file_priv->minor; in drm_release() 376 list_del(&file_priv->lhead); in drm_release() 380 dev->driver->preclose(dev, file_priv); in drm_release() 388 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_release() [all …]
|
D | drm_auth.c | 57 int drm_getmagic(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getmagic() argument 63 if (!file_priv->magic) { in drm_getmagic() 64 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic() 67 file_priv->magic = ret; in drm_getmagic() 69 auth->magic = file_priv->magic; in drm_getmagic() 78 struct drm_file *file_priv) in drm_authmagic() argument 86 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic() 89 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic() 169 struct drm_file *file_priv) in drm_setmaster_ioctl() argument 174 if (drm_is_current_master(file_priv)) in drm_setmaster_ioctl() [all …]
|
D | drm_internal.h | 36 struct drm_file *file_priv); 40 struct drm_file *file_priv); 42 struct drm_file *file_priv); 56 struct drm_file *file_priv); 58 struct drm_file *file_priv); 62 struct drm_file *file_priv); 64 struct drm_file *file_priv); 66 struct drm_file *file_priv); 68 struct drm_file *file_priv); 69 int drm_master_open(struct drm_file *file_priv); [all …]
|
D | drm_lock.c | 108 lock_data->file_priv = NULL; in drm_lock_transfer() 159 struct drm_file *file_priv) in drm_legacy_lock() argument 163 struct drm_master *master = file_priv->master; in drm_legacy_lock() 169 ++file_priv->lock_count; in drm_legacy_lock() 195 master->lock.file_priv = file_priv; in drm_legacy_lock() 222 if (!drm_is_current_master(file_priv)) { in drm_legacy_lock() 250 int drm_legacy_unlock(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_legacy_unlock() argument 253 struct drm_master *master = file_priv->master; in drm_legacy_unlock() 324 struct drm_file *file_priv) in drm_legacy_i_have_hw_lock() argument 326 struct drm_master *master = file_priv->master; in drm_legacy_i_have_hw_lock() [all …]
|
D | drm_ioctl.c | 99 struct drm_file *file_priv); 113 struct drm_file *file_priv) in drm_getunique() argument 116 struct drm_master *master = file_priv->master; in drm_getunique() 136 static int drm_set_busid(struct drm_device *dev, struct drm_file *file_priv) in drm_set_busid() argument 138 struct drm_master *master = file_priv->master; in drm_set_busid() 174 struct drm_file *file_priv) in drm_getclient() argument 190 client->auth = file_priv->authenticated; in drm_getclient() 213 struct drm_file *file_priv) in drm_getstats() argument 226 static int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getcap() argument 290 drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_setclientcap() argument [all …]
|
D | drm_gem.c | 254 struct drm_file *file_priv = data; in drm_gem_object_release_handle() local 259 dev->driver->gem_close_object(obj, file_priv); in drm_gem_object_release_handle() 262 drm_gem_remove_prime_handles(obj, file_priv); in drm_gem_object_release_handle() 263 drm_vma_node_revoke(&obj->vma_node, file_priv); in drm_gem_object_release_handle() 345 drm_gem_handle_create_tail(struct drm_file *file_priv, in drm_gem_handle_create_tail() argument 362 spin_lock(&file_priv->table_lock); in drm_gem_handle_create_tail() 364 ret = idr_alloc(&file_priv->object_idr, obj, 1, 0, GFP_NOWAIT); in drm_gem_handle_create_tail() 366 spin_unlock(&file_priv->table_lock); in drm_gem_handle_create_tail() 375 ret = drm_vma_node_allow(&obj->vma_node, file_priv); in drm_gem_handle_create_tail() 380 ret = dev->driver->gem_open_object(obj, file_priv); in drm_gem_handle_create_tail() [all …]
|
D | drm_framebuffer.c | 106 void *data, struct drm_file *file_priv) in drm_mode_addfb() argument 120 ret = drm_mode_addfb2(dev, &r, file_priv); in drm_mode_addfb() 308 struct drm_file *file_priv) in drm_internal_framebuffer_create() argument 340 fb = dev->mode_config.funcs->fb_create(dev, file_priv, r); in drm_internal_framebuffer_create() 365 void *data, struct drm_file *file_priv) in drm_mode_addfb2() argument 373 fb = drm_internal_framebuffer_create(dev, r, file_priv); in drm_mode_addfb2() 381 mutex_lock(&file_priv->fbs_lock); in drm_mode_addfb2() 382 list_add(&fb->filp_head, &file_priv->fbs); in drm_mode_addfb2() 383 mutex_unlock(&file_priv->fbs_lock); in drm_mode_addfb2() 420 void *data, struct drm_file *file_priv) in drm_mode_rmfb() argument [all …]
|
D | drm_context.c | 173 struct drm_file *file_priv) in drm_legacy_getsareactx() argument 221 struct drm_file *file_priv) in drm_legacy_setsareactx() argument 299 struct drm_file *file_priv, int new) in drm_context_switch_complete() argument 303 if (!_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) { in drm_context_switch_complete() 325 struct drm_file *file_priv) in drm_legacy_resctx() argument 360 struct drm_file *file_priv) in drm_legacy_addctx() argument 389 ctx_entry->tag = file_priv; in drm_legacy_addctx() 408 struct drm_file *file_priv) in drm_legacy_getctx() argument 434 struct drm_file *file_priv) in drm_legacy_switchctx() argument 458 struct drm_file *file_priv) in drm_legacy_newctx() argument [all …]
|
D | drm_prime.c | 495 struct drm_file *file_priv, uint32_t handle, in drm_gem_prime_handle_to_fd() argument 503 mutex_lock(&file_priv->prime.lock); in drm_gem_prime_handle_to_fd() 504 obj = drm_gem_object_lookup(file_priv, handle); in drm_gem_prime_handle_to_fd() 510 dmabuf = drm_prime_lookup_buf_by_handle(&file_priv->prime, handle); in drm_gem_prime_handle_to_fd() 547 ret = drm_prime_add_buf_handle(&file_priv->prime, in drm_gem_prime_handle_to_fd() 575 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_handle_to_fd() 657 struct drm_file *file_priv, int prime_fd, in drm_gem_prime_fd_to_handle() argument 668 mutex_lock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle() 670 ret = drm_prime_lookup_buf_handle(&file_priv->prime, in drm_gem_prime_fd_to_handle() 691 ret = drm_gem_handle_create_tail(file_priv, obj, handle); in drm_gem_prime_fd_to_handle() [all …]
|
/drivers/gpu/drm/i810/ |
D | i810_dma.c | 122 static int i810_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) in i810_map_buffer() argument 124 struct drm_device *dev = file_priv->minor->dev; in i810_map_buffer() 134 old_fops = file_priv->filp->f_op; in i810_map_buffer() 135 file_priv->filp->f_op = &i810_buffer_fops; in i810_map_buffer() 137 buf_priv->virtual = (void *)vm_mmap(file_priv->filp, 0, buf->total, in i810_map_buffer() 141 file_priv->filp->f_op = old_fops; in i810_map_buffer() 170 struct drm_file *file_priv) in i810_dma_get_buffer() argument 183 retcode = i810_map_buffer(buf, file_priv); in i810_dma_get_buffer() 189 buf->file_priv = file_priv; in i810_dma_get_buffer() 423 struct drm_file *file_priv) in i810_dma_init() argument [all …]
|
/drivers/gpu/drm/via/ |
D | via_drv.c | 35 struct via_file_private *file_priv; in via_driver_open() local 38 file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL); in via_driver_open() 39 if (!file_priv) in via_driver_open() 42 file->driver_priv = file_priv; in via_driver_open() 44 INIT_LIST_HEAD(&file_priv->obj_list); in via_driver_open() 51 struct via_file_private *file_priv = file->driver_priv; in via_driver_postclose() local 53 kfree(file_priv); in via_driver_postclose()
|
D | via_drv.h | 126 extern int via_fb_init(struct drm_device *dev, void *data, struct drm_file *file_priv); 127 extern int via_mem_alloc(struct drm_device *dev, void *data, struct drm_file *file_priv); 128 extern int via_mem_free(struct drm_device *dev, void *data, struct drm_file *file_priv); 129 extern int via_agp_init(struct drm_device *dev, void *data, struct drm_file *file_priv); 130 extern int via_map_init(struct drm_device *dev, void *data, struct drm_file *file_priv); 131 extern int via_decoder_futex(struct drm_device *dev, void *data, struct drm_file *file_priv); 132 extern int via_wait_irq(struct drm_device *dev, void *data, struct drm_file *file_priv); 133 extern int via_dma_blit_sync(struct drm_device *dev, void *data, struct drm_file *file_priv); 134 extern int via_dma_blit(struct drm_device *dev, void *data, struct drm_file *file_priv); 160 struct drm_file *file_priv);
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_g2d.h | 12 struct drm_file *file_priv); 14 struct drm_file *file_priv); 16 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_gem.h | 72 struct drm_file *file_priv); 76 struct drm_file *file_priv); 98 struct drm_file *file_priv); 103 struct drm_file *file_priv); 109 int exynos_drm_gem_dumb_create(struct drm_file *file_priv, 114 int exynos_drm_gem_dumb_map_offset(struct drm_file *file_priv,
|
D | exynos_drm_gem.c | 129 struct drm_file *file_priv, in exynos_drm_gem_handle_create() argument 138 ret = drm_gem_handle_create(file_priv, obj, handle); in exynos_drm_gem_handle_create() 175 struct drm_file *file_priv) in exynos_drm_gem_get_size() argument 180 obj = drm_gem_object_lookup(file_priv, gem_handle); in exynos_drm_gem_get_size() 272 struct drm_file *file_priv) in exynos_drm_gem_create_ioctl() argument 282 ret = exynos_drm_gem_handle_create(&exynos_gem->base, file_priv, in exynos_drm_gem_create_ioctl() 293 struct drm_file *file_priv) in exynos_drm_gem_map_ioctl() argument 297 return exynos_drm_gem_dumb_map_offset(file_priv, dev, args->handle, in exynos_drm_gem_map_ioctl() 368 struct drm_file *file_priv) in exynos_drm_gem_get_ioctl() argument 374 obj = drm_gem_object_lookup(file_priv, args->handle); in exynos_drm_gem_get_ioctl() [all …]
|
/drivers/gpu/drm/sis/ |
D | sis_drv.c | 83 struct sis_file_private *file_priv; in sis_driver_open() local 86 file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL); in sis_driver_open() 87 if (!file_priv) in sis_driver_open() 90 file->driver_priv = file_priv; in sis_driver_open() 92 INIT_LIST_HEAD(&file_priv->obj_list); in sis_driver_open() 99 struct sis_file_private *file_priv = file->driver_priv; in sis_driver_postclose() local 101 kfree(file_priv); in sis_driver_postclose()
|
D | sis_mm.c | 63 static int sis_fb_init(struct drm_device *dev, void *data, struct drm_file *file_priv) in sis_fb_init() argument 89 struct sis_file_private *file_priv = file->driver_priv; in sis_drm_alloc() local 138 list_add(&item->owner_list, &file_priv->obj_list); in sis_drm_alloc() 165 static int sis_drm_free(struct drm_device *dev, void *data, struct drm_file *file_priv) in sis_drm_free() argument 194 struct drm_file *file_priv) in sis_fb_alloc() argument 196 return sis_drm_alloc(dev, file_priv, data, VIDEO_TYPE); in sis_fb_alloc() 200 struct drm_file *file_priv) in sis_ioctl_agp_init() argument 218 struct drm_file *file_priv) in sis_ioctl_agp_alloc() argument 221 return sis_drm_alloc(dev, file_priv, data, AGP_TYPE); in sis_ioctl_agp_alloc() 316 struct sis_file_private *file_priv = file->driver_priv; in sis_reclaim_buffers_locked() local [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_drv.h | 544 static inline struct vmw_fpriv *vmw_fpriv(struct drm_file *file_priv) in vmw_fpriv() argument 546 return (struct vmw_fpriv *)file_priv->driver_priv; in vmw_fpriv() 643 struct drm_file *file_priv); 645 struct drm_file *file_priv); 647 struct drm_file *file_priv); 655 struct drm_file *file_priv); 657 struct drm_file *file_priv); 703 struct drm_file *file_priv); 705 struct drm_file *file_priv); 707 struct drm_file *file_priv); [all …]
|
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() 174 struct drm_file *file_priv) in vmw_get_cap_3d_ioctl() argument 185 struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv); in vmw_get_cap_3d_ioctl() 246 struct drm_file *file_priv) in vmw_present_ioctl() argument 248 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() 308 ret = vmw_kms_present(dev_priv, file_priv, in vmw_present_ioctl() 329 struct drm_file *file_priv) in vmw_present_readback_ioctl() argument 390 ret = vmw_kms_readback(dev_priv, file_priv, in vmw_present_readback_ioctl() 417 struct drm_file *file_priv = filp->private_data; in vmw_fops_poll() local [all …]
|
/drivers/char/tpm/ |
D | tpm-dev.c | 24 struct file_priv { struct 39 struct file_priv *priv = (struct file_priv *)ptr; in user_reader_timeout() argument 46 struct file_priv *priv = container_of(work, struct file_priv, work); in timeout_work() 58 struct file_priv *priv; in tpm_open() 88 struct file_priv *priv = file->private_data; in tpm_read() 117 struct file_priv *priv = file->private_data; in tpm_write() 176 struct file_priv *priv = file->private_data; in tpm_release()
|
/drivers/gpu/drm/i915/ |
D | i915_gem_context.c | 234 ctx->file_priv = ERR_PTR(-EBADF); in context_close() 262 struct drm_i915_file_private *file_priv) in __create_hw_context() argument 306 if (file_priv != NULL) { in __create_hw_context() 307 ret = idr_alloc(&file_priv->context_idr, ctx, in __create_hw_context() 314 ctx->file_priv = file_priv; in __create_hw_context() 315 if (file_priv) in __create_hw_context() 344 struct drm_i915_file_private *file_priv) in i915_gem_create_context() argument 350 ctx = __create_hw_context(dev, file_priv); in i915_gem_create_context() 356 i915_ppgtt_create(to_i915(dev), file_priv); in i915_gem_create_context() 361 idr_remove(&file_priv->context_idr, ctx->user_handle); in i915_gem_create_context() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_gem.c | 62 nouveau_gem_object_open(struct drm_gem_object *gem, struct drm_file *file_priv) in nouveau_gem_object_open() argument 64 struct nouveau_cli *cli = nouveau_cli(file_priv); in nouveau_gem_object_open() 147 nouveau_gem_object_close(struct drm_gem_object *gem, struct drm_file *file_priv) in nouveau_gem_object_close() argument 149 struct nouveau_cli *cli = nouveau_cli(file_priv); in nouveau_gem_object_close() 225 nouveau_gem_info(struct drm_file *file_priv, struct drm_gem_object *gem, in nouveau_gem_info() argument 228 struct nouveau_cli *cli = nouveau_cli(file_priv); in nouveau_gem_info() 256 struct drm_file *file_priv) in nouveau_gem_ioctl_new() argument 259 struct nouveau_cli *cli = nouveau_cli(file_priv); in nouveau_gem_ioctl_new() 276 ret = drm_gem_handle_create(file_priv, &nvbo->gem, &req->info.handle); in nouveau_gem_ioctl_new() 278 ret = nouveau_gem_info(file_priv, &nvbo->gem, &req->info); in nouveau_gem_ioctl_new() [all …]
|
/drivers/gpu/drm/qxl/ |
D | qxl_ioctl.c | 34 struct drm_file *file_priv) in qxl_alloc_ioctl() argument 47 ret = qxl_gem_object_create_with_handle(qdev, file_priv, in qxl_alloc_ioctl() 62 struct drm_file *file_priv) in qxl_map_ioctl() argument 67 return qxl_mode_dumb_mmap(file_priv, qdev->ddev, qxl_map->handle, in qxl_map_ioctl() 110 static int qxlhw_handle_to_bo(struct drm_file *file_priv, uint64_t handle, in qxlhw_handle_to_bo() argument 117 gobj = drm_gem_object_lookup(file_priv, handle); in qxlhw_handle_to_bo() 140 struct drm_file *file_priv) in qxl_process_single_command() argument 223 ret = qxlhw_handle_to_bo(file_priv, reloc.dst_handle, release, in qxl_process_single_command() 236 ret = qxlhw_handle_to_bo(file_priv, reloc.src_handle, release, in qxl_process_single_command() 275 struct drm_file *file_priv) in qxl_execbuffer_ioctl() argument [all …]
|
/drivers/gpu/drm/r128/ |
D | r128_state.c | 772 struct drm_file *file_priv, in r128_cce_dispatch_blit() argument 825 if (buf->file_priv != file_priv) { in r128_cce_dispatch_blit() 827 DRM_CURRENTPID, buf->file_priv); in r128_cce_dispatch_blit() 1207 static int r128_cce_clear(struct drm_device *dev, void *data, struct drm_file *file_priv) in r128_cce_clear() argument 1214 LOCK_TEST_WITH_RETURN(dev, file_priv); in r128_cce_clear() 1275 static int r128_cce_flip(struct drm_device *dev, void *data, struct drm_file *file_priv) in r128_cce_flip() argument 1280 LOCK_TEST_WITH_RETURN(dev, file_priv); in r128_cce_flip() 1295 static int r128_cce_swap(struct drm_device *dev, void *data, struct drm_file *file_priv) in r128_cce_swap() argument 1301 LOCK_TEST_WITH_RETURN(dev, file_priv); in r128_cce_swap() 1318 static int r128_cce_vertex(struct drm_device *dev, void *data, struct drm_file *file_priv) in r128_cce_vertex() argument [all …]
|