/linux/drivers/gpu/drm/ |
A D | drm_auth.c | 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() 238 if (file_priv->pid == task_pid(current) && file_priv->was_master) in drm_master_check_perm() 266 if (!file_priv->master) { in drm_setmaster_ioctl() 271 if (!file_priv->is_master) { in drm_setmaster_ioctl() 356 master = file_priv->master; in drm_master_release() 357 if (file_priv->magic) in drm_master_release() 358 idr_remove(&file_priv->master->magic_map, file_priv->magic); in drm_master_release() 376 if (file_priv->master) in drm_master_release() [all …]
|
A D | drm_crtc_internal.h | 103 struct drm_file *file_priv); 105 struct drm_file *file_priv); 127 struct drm_file *file_priv); 153 struct drm_file *file_priv, 167 struct drm_file *file_priv); 169 struct drm_file *file_priv); 202 struct drm_file *file_priv); 210 struct drm_file *file_priv); 214 struct drm_file *file_priv); 250 struct drm_file *file_priv, [all …]
|
A D | drm_file.c | 222 e->file_priv = NULL; in drm_events_release() 305 list_del(&file_priv->lhead); in drm_close_helper() 308 drm_file_free(file_priv); in drm_close_helper() 614 file_priv->event_space -= length; in drm_read() 693 struct drm_file *file_priv, in drm_event_reserve_init_locked() argument 700 file_priv->event_space -= e->length; in drm_event_reserve_init_locked() 704 p->file_priv = file_priv; in drm_event_reserve_init_locked() 735 struct drm_file *file_priv, in drm_event_reserve_init() argument 765 if (p->file_priv) { in drm_event_cancel_free() 797 if (!e->file_priv) { in drm_send_event_helper() [all …]
|
A 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() 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() 149 void *data, struct drm_file *file_priv) in drm_mode_destroy_dumb_ioctl() argument [all …]
|
A 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() 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() 336 master->lock.file_priv == file_priv); in drm_legacy_i_have_hw_lock() [all …]
|
A D | drm_ioctl.c | 117 struct drm_file *file_priv) in drm_getunique() argument 123 master = file_priv->master; in drm_getunique() 183 struct drm_file *file_priv) in drm_getclient() argument 222 struct drm_file *file_priv) in drm_getstats() argument 346 file_priv->atomic = req->value; in drm_setclientcap() 359 if (!file_priv->atomic) in drm_setclientcap() 441 struct drm_file *file_priv) in drm_noop() argument 464 struct drm_file *file_priv) in drm_invalid_op() argument 505 struct drm_file *file_priv) in drm_version() argument 533 !file_priv->authenticated)) in drm_ioctl_permit() [all …]
|
A D | drm_internal.h | 71 struct drm_file *file_priv); 73 struct drm_file *file_priv); 118 struct drm_file *file_priv); 125 struct drm_file *file_priv); 136 struct drm_file *file_priv); 138 struct drm_file *file_priv); 140 struct drm_file *file_priv); 142 struct drm_file *file_priv); 165 struct drm_file *file_priv); 167 struct drm_file *file_priv); [all …]
|
A D | drm_legacy.h | 101 struct drm_file *file_priv); 156 struct drm_file *file_priv); 158 struct drm_file *file_priv); 160 struct drm_file *file_priv); 162 struct drm_file *file_priv); 166 struct drm_file *file_priv); 168 struct drm_file *file_priv); 170 struct drm_file *file_priv); 209 struct drm_file *file_priv); 211 struct drm_file *file_priv); [all …]
|
A 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 289 struct drm_file *file_priv) in drm_internal_framebuffer_create() argument 363 mutex_lock(&file_priv->fbs_lock); in drm_mode_addfb2() 365 mutex_unlock(&file_priv->fbs_lock); in drm_mode_addfb2() 429 struct drm_file *file_priv) in drm_mode_rmfb() argument 442 mutex_lock(&file_priv->fbs_lock); 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() [all …]
|
A 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 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 477 drm_context_switch_complete(dev, file_priv, ctx->handle); in drm_legacy_newctx() [all …]
|
/linux/drivers/xen/ |
A D | privcmd-buf.c | 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() 48 file->private_data = file_priv; in privcmd_buf_open() 70 mutex_lock(&file_priv->lock); in privcmd_buf_release() 79 mutex_unlock(&file_priv->lock); in privcmd_buf_release() 81 kfree(file_priv); in privcmd_buf_release() 106 file_priv = vma_priv->file_priv; in privcmd_buf_vma_close() 108 mutex_lock(&file_priv->lock); in privcmd_buf_vma_close() 154 mutex_lock(&file_priv->lock); in privcmd_buf_mmap() [all …]
|
/linux/drivers/gpu/drm/v3d/ |
A D | v3d_gem.c | 292 struct drm_file *file_priv, in v3d_lookup_bos() argument 334 spin_lock(&file_priv->table_lock); in v3d_lookup_bos() 342 spin_unlock(&file_priv->table_lock); in v3d_lookup_bos() 348 spin_unlock(&file_priv->table_lock); in v3d_lookup_bos() 409 struct drm_file *file_priv) in v3d_wait_bo_ioctl() argument 719 struct drm_file *file_priv) in v3d_submit_cl_ioctl() argument 872 struct drm_file *file_priv) in v3d_submit_tfu_ioctl() argument 910 spin_lock(&file_priv->table_lock); in v3d_submit_tfu_ioctl() 919 bo = idr_find(&file_priv->object_idr, in v3d_submit_tfu_ioctl() 932 spin_unlock(&file_priv->table_lock); in v3d_submit_tfu_ioctl() [all …]
|
A D | v3d_drv.h | 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); 418 struct drm_file *file_priv); [all …]
|
/linux/include/drm/ |
A 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);
|
A 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); 309 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, 320 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, 375 int (*dumb_create)(struct drm_file *file_priv, 393 int (*dumb_map_offset)(struct drm_file *file_priv, 412 int (*dumb_destroy)(struct drm_file *file_priv, 463 void (*preclose) (struct drm_device *, struct drm_file *file_priv); 464 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
|
/linux/drivers/gpu/drm/via/ |
A 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()
|
A 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);
|
/linux/drivers/gpu/drm/i810/ |
A D | i810_dma.c | 137 old_fops = file_priv->filp->f_op; in i810_map_buffer() 144 file_priv->filp->f_op = old_fops; in i810_map_buffer() 192 buf->file_priv = file_priv; in i810_dma_get_buffer() 426 struct drm_file *file_priv) in i810_dma_init() argument 906 if (buf->file_priv == file_priv && buf_priv) { in i810_driver_reclaim_buffers() 1019 struct drm_file *file_priv) in i810_copybuf() argument 1026 struct drm_file *file_priv) in i810_docopy() argument 1115 struct drm_file *file_priv) in i810_rstatus() argument 1123 struct drm_file *file_priv) in i810_ov0_info() argument 1135 struct drm_file *file_priv) in i810_fstatus() argument [all …]
|
/linux/drivers/gpu/drm/panfrost/ |
A D | panfrost_perfcnt.c | 71 struct drm_file *file_priv, in panfrost_perfcnt_enable_locked() argument 74 struct panfrost_file_priv *user = file_priv->driver_priv; in panfrost_perfcnt_enable_locked() 97 ret = panfrost_gem_open(&bo->base, file_priv); in panfrost_perfcnt_enable_locked() 171 panfrost_gem_close(&bo->base, file_priv); in panfrost_perfcnt_enable_locked() 180 struct drm_file *file_priv) in panfrost_perfcnt_disable_locked() argument 210 struct drm_file *file_priv) in panfrost_ioctl_perfcnt_enable() argument 227 ret = panfrost_perfcnt_enable_locked(pfdev, file_priv, in panfrost_ioctl_perfcnt_enable() 237 struct drm_file *file_priv) in panfrost_ioctl_perfcnt_dump() argument 250 if (perfcnt->user != file_priv->driver_priv) { in panfrost_ioctl_perfcnt_dump() 268 void panfrost_perfcnt_close(struct drm_file *file_priv) in panfrost_perfcnt_close() argument [all …]
|
/linux/drivers/gpu/drm/sis/ |
A 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()
|
A 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() 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 326 if (list_empty(&file_priv->obj_list)) { in sis_reclaim_buffers_locked() [all …]
|
/linux/drivers/gpu/drm/exynos/ |
A 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
|
A 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/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_drv.h | 787 struct drm_file *file_priv); 789 struct drm_file *file_priv); 961 struct drm_file *file_priv); 1189 struct drm_file *file_priv); 1205 struct drm_file *file_priv, 1212 struct drm_file *file_priv); 1260 struct drm_file *file_priv, 1263 struct drm_file *file_priv, 1324 struct drm_file *file_priv); 1356 struct drm_file *file_priv); [all …]
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_context.c | 1464 ctx->file_priv = ERR_PTR(-EBADF); in context_close() 1650 ctx->file_priv = fpriv; in gem_context_register() 1695 gem_context_register(ctx, file_priv, 0); in i915_gem_context_open() 1700 xa_destroy(&file_priv->vm_xa); in i915_gem_context_open() 1701 xa_destroy(&file_priv->context_xa); in i915_gem_context_open() 1722 xa_destroy(&file_priv->context_xa); in i915_gem_context_close() 1724 xa_for_each(&file_priv->vm_xa, idx, vm) in i915_gem_context_close() 1726 xa_destroy(&file_priv->vm_xa); in i915_gem_context_close() 2163 ctx = __context_lookup(file_priv, id); in i915_gem_context_lookup() 2169 ctx = __context_lookup(file_priv, id); in i915_gem_context_lookup() [all …]
|