/Linux-v6.1/drivers/gpu/drm/ |
D | drm_auth.c | 94 int drm_getmagic(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getmagic() argument 100 if (!file_priv->magic) { in drm_getmagic() 101 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic() 104 file_priv->magic = ret; in drm_getmagic() 106 auth->magic = file_priv->magic; in drm_getmagic() 115 struct drm_file *file_priv) in drm_authmagic() argument 123 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic() 126 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic() 236 drm_master_check_perm(struct drm_device *dev, struct drm_file *file_priv) in drm_master_check_perm() argument 238 if (file_priv->pid == task_pid(current) && file_priv->was_master) in drm_master_check_perm() [all …]
|
D | drm_crtc_internal.h | 82 void *data, struct drm_file *file_priv); 84 void *data, struct drm_file *file_priv); 97 void *data, struct drm_file *file_priv); 103 struct drm_file *file_priv); 105 struct drm_file *file_priv); 109 void *data, struct drm_file *file_priv); 111 void *data, struct drm_file *file_priv); 113 void *data, struct drm_file *file_priv); 121 void *data, struct drm_file *file_priv); 123 void *data, struct drm_file *file_priv); [all …]
|
D | drm_file.c | 205 static void drm_events_release(struct drm_file *file_priv) in drm_events_release() argument 207 struct drm_device *dev = file_priv->minor->dev; in drm_events_release() 214 list_for_each_entry_safe(e, et, &file_priv->pending_event_list, in drm_events_release() 217 e->file_priv = NULL; in drm_events_release() 221 list_for_each_entry_safe(e, et, &file_priv->event_list, link) { in drm_events_release() 296 struct drm_file *file_priv = filp->private_data; in drm_close_helper() local 297 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper() 300 list_del(&file_priv->lhead); in drm_close_helper() 303 drm_file_free(file_priv); in drm_close_helper() 481 struct drm_file *file_priv = filp->private_data; in drm_release() local [all …]
|
D | drm_dumb_buffers.c | 62 struct drm_file *file_priv) in drm_mode_create_dumb() argument 96 return dev->driver->dumb_create(file_priv, dev, args); in drm_mode_create_dumb() 100 void *data, struct drm_file *file_priv) in drm_mode_create_dumb_ioctl() argument 102 return drm_mode_create_dumb(dev, data, file_priv); in drm_mode_create_dumb_ioctl() 120 void *data, struct drm_file *file_priv) in drm_mode_mmap_dumb_ioctl() argument 128 return dev->driver->dumb_map_offset(file_priv, dev, in drm_mode_mmap_dumb_ioctl() 132 return drm_gem_dumb_map_offset(file_priv, dev, args->handle, in drm_mode_mmap_dumb_ioctl() 137 struct drm_file *file_priv) in drm_mode_destroy_dumb() argument 143 return dev->driver->dumb_destroy(file_priv, dev, handle); in drm_mode_destroy_dumb() 145 return drm_gem_dumb_destroy(file_priv, dev, handle); in drm_mode_destroy_dumb() [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 | 117 struct drm_file *file_priv) in drm_getunique() argument 123 master = file_priv->master; in drm_getunique() 145 static int drm_set_busid(struct drm_device *dev, struct drm_file *file_priv) in drm_set_busid() argument 147 struct drm_master *master = file_priv->master; in drm_set_busid() 183 struct drm_file *file_priv) in drm_getclient() argument 199 client->auth = file_priv->authenticated; in drm_getclient() 222 struct drm_file *file_priv) in drm_getstats() argument 235 static int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getcap() argument 315 drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_setclientcap() argument 329 file_priv->stereo_allowed = req->value; in drm_setclientcap() [all …]
|
D | drm_internal.h | 71 struct drm_file *file_priv); 73 struct drm_file *file_priv); 119 struct drm_file *file_priv); 126 struct drm_file *file_priv); 137 struct drm_file *file_priv); 139 struct drm_file *file_priv); 141 struct drm_file *file_priv); 143 struct drm_file *file_priv); 144 int drm_master_open(struct drm_file *file_priv); 145 void drm_master_release(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() 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() [all …]
|
D | drm_legacy.h | 139 struct drm_file *file_priv); 194 struct drm_file *file_priv); 196 struct drm_file *file_priv); 198 struct drm_file *file_priv); 200 struct drm_file *file_priv); 202 struct drm_file *file_priv); 204 struct drm_file *file_priv); 206 struct drm_file *file_priv); 208 struct drm_file *file_priv); 247 struct drm_file *file_priv); [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() 332 struct drm_file *file_priv) in drm_legacy_resctx() argument 367 struct drm_file *file_priv) in drm_legacy_addctx() argument 399 ctx_entry->tag = file_priv; in drm_legacy_addctx() 418 struct drm_file *file_priv) in drm_legacy_getctx() argument 444 struct drm_file *file_priv) in drm_legacy_switchctx() argument 468 struct drm_file *file_priv) in drm_legacy_newctx() argument [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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_drv.h | 275 void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, 282 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv); 310 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, 321 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, 379 int (*dumb_create)(struct drm_file *file_priv, 397 int (*dumb_map_offset)(struct drm_file *file_priv, 416 int (*dumb_destroy)(struct drm_file *file_priv, 467 void (*preclose) (struct drm_device *, struct drm_file *file_priv); 468 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
|
D | drm_file.h | 133 struct drm_file *file_priv; member 381 static inline bool drm_is_primary_client(const struct drm_file *file_priv) in drm_is_primary_client() argument 383 return file_priv->minor->type == DRM_MINOR_PRIMARY; in drm_is_primary_client() 395 static inline bool drm_is_render_client(const struct drm_file *file_priv) in drm_is_render_client() argument 397 return file_priv->minor->type == DRM_MINOR_RENDER; in drm_is_render_client() 407 struct drm_file *file_priv, 411 struct drm_file *file_priv,
|
/Linux-v6.1/drivers/gpu/drm/v3d/ |
D | v3d_gem.c | 296 struct drm_file *file_priv, in v3d_lookup_bos() argument 338 spin_lock(&file_priv->table_lock); in v3d_lookup_bos() 340 struct drm_gem_object *bo = idr_find(&file_priv->object_idr, in v3d_lookup_bos() 346 spin_unlock(&file_priv->table_lock); in v3d_lookup_bos() 352 spin_unlock(&file_priv->table_lock); in v3d_lookup_bos() 410 struct drm_file *file_priv) in v3d_wait_bo_ioctl() argument 422 ret = drm_gem_dma_resv_wait(file_priv, args->handle, in v3d_wait_bo_ioctl() 442 v3d_job_add_deps(struct drm_file *file_priv, struct v3d_job *job, in v3d_job_add_deps() argument 448 ret = drm_syncobj_find_fence(file_priv, in_sync, point, 0, &in_fence); in v3d_job_add_deps() 456 v3d_job_init(struct v3d_dev *v3d, struct drm_file *file_priv, in v3d_job_init() argument [all …]
|
D | v3d_drv.h | 353 struct v3d_bo *v3d_bo_create(struct drm_device *dev, struct drm_file *file_priv, 356 struct drm_file *file_priv); 358 struct drm_file *file_priv); 360 struct drm_file *file_priv); 376 struct drm_file *file_priv); 378 struct drm_file *file_priv); 380 struct drm_file *file_priv); 382 struct drm_file *file_priv); 396 int v3d_mmu_get_offset(struct drm_file *file_priv, struct v3d_bo *bo, 416 struct drm_file *file_priv); [all …]
|
/Linux-v6.1/drivers/gpu/drm/sis/ |
D | sis_drv.c | 82 struct sis_file_private *file_priv; in sis_driver_open() local 85 file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL); in sis_driver_open() 86 if (!file_priv) in sis_driver_open() 89 file->driver_priv = file_priv; in sis_driver_open() 91 INIT_LIST_HEAD(&file_priv->obj_list); in sis_driver_open() 98 struct sis_file_private *file_priv = file->driver_priv; in sis_driver_postclose() local 100 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 …]
|
/Linux-v6.1/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
|
/Linux-v6.1/drivers/gpu/drm/panfrost/ |
D | panfrost_perfcnt.c | 72 struct drm_file *file_priv, in panfrost_perfcnt_enable_locked() argument 75 struct panfrost_file_priv *user = file_priv->driver_priv; in panfrost_perfcnt_enable_locked() 98 ret = panfrost_gem_open(&bo->base, file_priv); in panfrost_perfcnt_enable_locked() 172 panfrost_gem_close(&bo->base, file_priv); in panfrost_perfcnt_enable_locked() 181 struct drm_file *file_priv) in panfrost_perfcnt_disable_locked() argument 183 struct panfrost_file_priv *user = file_priv->driver_priv; in panfrost_perfcnt_disable_locked() 200 panfrost_gem_close(&perfcnt->mapping->obj->base.base, file_priv); in panfrost_perfcnt_disable_locked() 211 struct drm_file *file_priv) in panfrost_ioctl_perfcnt_enable() argument 228 ret = panfrost_perfcnt_enable_locked(pfdev, file_priv, in panfrost_ioctl_perfcnt_enable() 231 ret = panfrost_perfcnt_disable_locked(pfdev, file_priv); in panfrost_ioctl_perfcnt_enable() [all …]
|
/Linux-v6.1/drivers/gpu/drm/i810/ |
D | i810_dma.c | 125 static int i810_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) in i810_map_buffer() argument 127 struct drm_device *dev = file_priv->minor->dev; in i810_map_buffer() 137 old_fops = file_priv->filp->f_op; in i810_map_buffer() 138 file_priv->filp->f_op = &i810_buffer_fops; in i810_map_buffer() 140 buf_priv->virtual = (void *)vm_mmap(file_priv->filp, 0, buf->total, in i810_map_buffer() 144 file_priv->filp->f_op = old_fops; in i810_map_buffer() 173 struct drm_file *file_priv) in i810_dma_get_buffer() argument 186 retcode = i810_map_buffer(buf, file_priv); in i810_dma_get_buffer() 192 buf->file_priv = file_priv; in i810_dma_get_buffer() 426 struct drm_file *file_priv) in i810_dma_init() argument [all …]
|
/Linux-v6.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_context.c | 350 i915_gem_vm_lookup(struct drm_i915_file_private *file_priv, u32 id) in i915_gem_vm_lookup() argument 354 xa_lock(&file_priv->vm_xa); in i915_gem_vm_lookup() 355 vm = xa_load(&file_priv->vm_xa, id); in i915_gem_vm_lookup() 358 xa_unlock(&file_priv->vm_xa); in i915_gem_vm_lookup() 1520 ctx->file_priv = ERR_PTR(-EBADF); in context_close() 1698 ctx->file_priv = fpriv; in gem_context_register() 1722 struct drm_i915_file_private *file_priv = file->driver_priv; in i915_gem_context_open() local 1727 mutex_init(&file_priv->proto_context_lock); in i915_gem_context_open() 1728 xa_init_flags(&file_priv->proto_context_xa, XA_FLAGS_ALLOC); in i915_gem_context_open() 1731 xa_init_flags(&file_priv->context_xa, XA_FLAGS_ALLOC1); in i915_gem_context_open() [all …]
|
/Linux-v6.1/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ioctl.c | 36 struct drm_file *file_priv) in vmw_getparam_ioctl() argument 41 struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv); in vmw_getparam_ioctl() 123 struct drm_file *file_priv) in vmw_get_cap_3d_ioctl() argument 132 struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv); in vmw_get_cap_3d_ioctl() 171 struct drm_file *file_priv) in vmw_present_ioctl() argument 173 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() 214 fb = drm_framebuffer_lookup(dev, file_priv, arg->fb_id); in vmw_present_ioctl() 229 ret = vmw_kms_present(dev_priv, file_priv, in vmw_present_ioctl() 248 struct drm_file *file_priv) in vmw_present_readback_ioctl() argument 291 fb = drm_framebuffer_lookup(dev, file_priv, arg->fb_id); in vmw_present_readback_ioctl() [all …]
|
/Linux-v6.1/drivers/char/tpm/ |
D | tpm-dev-common.c | 57 struct file_priv *priv = in tpm_dev_async_work() 58 container_of(work, struct file_priv, async_work); in tpm_dev_async_work() 89 struct file_priv *priv = from_timer(priv, t, user_read_timer); in user_reader_timeout() 99 struct file_priv *priv = container_of(work, struct file_priv, in tpm_timeout_work() 111 struct file_priv *priv, struct tpm_space *space) in tpm_common_open() 128 struct file_priv *priv = file->private_data; in tpm_common_read() 168 struct file_priv *priv = file->private_data; in tpm_common_write() 239 struct file_priv *priv = file->private_data; in tpm_common_poll() 262 void tpm_common_release(struct file *file, struct file_priv *priv) in tpm_common_release()
|