/openbsd/sys/dev/pci/drm/ |
H A D | drm_auth.c | 104 if (!file_priv->magic) { in drm_getmagic() 105 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic() 108 file_priv->magic = ret; in drm_getmagic() 243 if (file_priv->was_master && in drm_master_check_perm() 273 if (!file_priv->master) { in drm_setmaster_ioctl() 278 if (!file_priv->is_master) { in drm_setmaster_ioctl() 367 master = file_priv->master; in drm_master_release() 368 if (file_priv->magic) in drm_master_release() 369 idr_remove(&file_priv->master->magic_map, file_priv->magic); in drm_master_release() 387 if (file_priv->master) in drm_master_release() [all …]
|
H A D | drm_crtc_internal.h | 104 struct drm_file *file_priv); 106 struct drm_file *file_priv); 128 struct drm_file *file_priv); 154 struct drm_file *file_priv, 168 struct drm_file *file_priv); 170 struct drm_file *file_priv); 203 struct drm_file *file_priv); 211 struct drm_file *file_priv); 215 struct drm_file *file_priv); 251 struct drm_file *file_priv, [all …]
|
H A D | drm_file.c | 223 e->file_priv = NULL; in drm_events_release() 314 list_del(&file_priv->lhead); in drm_close_helper() 317 drm_file_free(file_priv); in drm_close_helper() 674 file_priv->event_space -= length; in drm_read() 756 struct drm_file *file_priv, in drm_event_reserve_init_locked() argument 767 p->file_priv = file_priv; in drm_event_reserve_init_locked() 798 struct drm_file *file_priv, in drm_event_reserve_init() argument 828 if (p->file_priv) { in drm_event_cancel_free() 860 if (!e->file_priv) { in drm_send_event_helper() 867 &e->file_priv->event_list); in drm_send_event_helper() [all …]
|
H 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() 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 142 return drm_gem_handle_delete(file_priv, handle); in drm_mode_destroy_dumb() 146 void *data, struct drm_file *file_priv) in drm_mode_destroy_dumb_ioctl() argument [all …]
|
H 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 …]
|
H A D | drm_ioctl.c | 119 struct drm_file *file_priv) in drm_getunique() argument 125 master = file_priv->master; in drm_getunique() 189 struct drm_file *file_priv) argument 233 struct drm_file *file_priv) argument 360 file_priv->atomic = req->value; 373 if (!file_priv->atomic) 478 struct drm_file *file_priv) argument 904 dev = file_priv->minor->dev; 1021 struct drm_file *file_priv; local 1032 if (file_priv == NULL) { [all …]
|
H A D | drm_internal.h | 71 struct drm_file *file_priv); 73 struct drm_file *file_priv); 115 struct drm_file *file_priv); 122 struct drm_file *file_priv); 133 struct drm_file *file_priv); 135 struct drm_file *file_priv); 137 struct drm_file *file_priv); 139 struct drm_file *file_priv); 181 struct drm_file *file_priv); 183 struct drm_file *file_priv); [all …]
|
H 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 …]
|
H A 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); 204 struct drm_file *file_priv); 206 struct drm_file *file_priv); 208 struct drm_file *file_priv); 247 struct drm_file *file_priv); 249 struct drm_file *file_priv); [all …]
|
H A D | drm_context.c | 175 struct drm_file *file_priv) in drm_legacy_getsareactx() argument 222 struct drm_file *file_priv) in drm_legacy_setsareactx() argument 299 struct drm_file *file_priv, int new) in drm_context_switch_complete() argument 326 struct drm_file *file_priv) in drm_legacy_resctx() argument 360 struct drm_file *file_priv) in drm_legacy_addctx() argument 391 ctx_entry->tag = file_priv; in drm_legacy_addctx() 410 struct drm_file *file_priv) in drm_legacy_getctx() argument 435 struct drm_file *file_priv) in drm_legacy_switchctx() argument 458 struct drm_file *file_priv) in drm_legacy_newctx() argument 466 drm_context_switch_complete(dev, file_priv, ctx->handle); in drm_legacy_newctx() [all …]
|
H A D | drm_prime.c | 309 mutex_lock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle() 340 ret = drm_prime_add_buf_handle(&file_priv->prime, in drm_gem_prime_fd_to_handle() 342 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle() 354 drm_gem_handle_delete(file_priv, *handle); in drm_gem_prime_fd_to_handle() 361 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle() 368 struct drm_file *file_priv) in drm_prime_fd_to_handle_ioctl() argument 436 mutex_lock(&file_priv->prime.lock); in drm_gem_prime_handle_to_fd() 437 obj = drm_gem_object_lookup(file_priv, handle); in drm_gem_prime_handle_to_fd() 482 ret = drm_prime_add_buf_handle(&file_priv->prime, in drm_gem_prime_handle_to_fd() 510 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_handle_to_fd() [all …]
|
H A D | drm_plane.c | 656 struct drm_file *file_priv) in drm_mode_getplane_res() argument 678 !file_priv->universal_planes) in drm_mode_getplane_res() 690 file_priv->atomic && in drm_mode_getplane_res() 707 struct drm_file *file_priv) in drm_mode_getplane() argument 981 struct drm_file *file_priv) in drm_mode_setplane() argument 1034 struct drm_file *file_priv, in drm_mode_cursor_universal() argument 1121 struct drm_file *file_priv) in drm_mode_cursor_common() argument 1200 void *data, struct drm_file *file_priv) in drm_mode_cursor_ioctl() argument 1217 void *data, struct drm_file *file_priv) in drm_mode_cursor2_ioctl() argument 1225 void *data, struct drm_file *file_priv) in drm_mode_page_flip_ioctl() argument [all …]
|
H A D | drm_drv.c | 1707 if (file_priv == NULL) in drmkqfilter() 1711 kn->kn_hook = file_priv; in drmkqfilter() 1736 struct drm_file *file_priv; in drmopen() local 1776 if (IS_ERR(file_priv)) { in drmopen() 1788 file_priv->filp = (void *)file_priv; in drmopen() 1807 drm_file_free(file_priv); in drmopen() 1819 struct drm_file *file_priv; in drmclose() local 1832 if (file_priv == NULL) { in drmclose() 1841 drm_file_free(file_priv); in drmclose() 1856 struct drm_file *file_priv; in drmread() local [all …]
|
H A D | drm_mode_object.c | 138 struct drm_file *file_priv, in __drm_mode_object_find() argument 152 !_drm_lease_held(file_priv, obj->id)) { in __drm_mode_object_find() 179 struct drm_file *file_priv, in drm_mode_object_find() argument 184 obj = __drm_mode_object_find(dev, file_priv, id, type); in drm_mode_object_find() 456 struct drm_file *file_priv) in drm_mode_obj_get_properties_ioctl() argument 468 obj = drm_mode_object_find(dev, file_priv, arg->obj_id, arg->obj_type); in drm_mode_obj_get_properties_ioctl() 478 ret = drm_mode_object_get_properties(obj, file_priv->atomic, in drm_mode_obj_get_properties_ioctl() 534 struct drm_file *file_priv, in set_property_atomic() argument 570 ret = drm_atomic_set_property(state, file_priv, obj, prop, prop_value); in set_property_atomic() 591 struct drm_file *file_priv) in drm_mode_obj_set_property_ioctl() argument [all …]
|
H A D | drm_gem.c | 437 struct drm_file *file_priv = data; in drm_gem_object_release_handle() local 441 obj->funcs->close(obj, file_priv); in drm_gem_object_release_handle() 558 spin_lock(&file_priv->table_lock); in drm_gem_handle_create_tail() 562 spin_unlock(&file_priv->table_lock); in drm_gem_handle_create_tail() 576 ret = obj->funcs->open(obj, file_priv); in drm_gem_handle_create_tail() 587 spin_lock(&file_priv->table_lock); in drm_gem_handle_create_tail() 588 idr_remove(&file_priv->object_idr, handle); in drm_gem_handle_create_tail() 589 spin_unlock(&file_priv->table_lock); in drm_gem_handle_create_tail() 998 struct drm_file *file_priv) in drm_gem_close_ioctl() argument 1024 struct drm_file *file_priv) in drm_gem_flink_ioctl() argument [all …]
|
H A D | drm_dma.c | 143 buf->file_priv = NULL; in drm_legacy_free_buffer() 156 struct drm_file *file_priv) in drm_legacy_reclaim_buffers() argument 164 if (dma->buflist[i]->file_priv == file_priv) { in drm_legacy_reclaim_buffers()
|
H A D | drm_property.c | 458 void *data, struct drm_file *file_priv) in drm_mode_getproperty_ioctl() argument 472 property = drm_property_find(dev, file_priv, out_resp->prop_id); in drm_mode_getproperty_ioctl() 610 struct drm_file *file_priv) in drm_property_destroy_user_blobs() argument 618 list_for_each_entry_safe(blob, bt, &file_priv->blobs, head_file) { in drm_property_destroy_user_blobs() 755 void *data, struct drm_file *file_priv) in drm_mode_getblob_ioctl() argument 784 void *data, struct drm_file *file_priv) in drm_mode_createblob_ioctl() argument 809 list_add_tail(&blob->head_file, &file_priv->blobs); in drm_mode_createblob_ioctl() 820 void *data, struct drm_file *file_priv) in drm_mode_destroyblob_ioctl() argument 836 list_for_each_entry(bt, &file_priv->blobs, head_file) { in drm_mode_destroyblob_ioctl()
|
/openbsd/sys/dev/pci/drm/include/drm/ |
H A D | drm_file.h | 143 struct drm_file *file_priv; member 418 static inline bool drm_is_primary_client(const struct drm_file *file_priv) in drm_is_primary_client() argument 420 return file_priv->minor->type == DRM_MINOR_PRIMARY; in drm_is_primary_client() 432 static inline bool drm_is_render_client(const struct drm_file *file_priv) in drm_is_render_client() argument 434 return file_priv->minor->type == DRM_MINOR_RENDER; in drm_is_render_client() 447 static inline bool drm_is_accel_client(const struct drm_file *file_priv) in drm_is_accel_client() argument 449 return file_priv->minor->type == DRM_MINOR_ACCEL; in drm_is_accel_client() 467 struct drm_file *file_priv, 471 struct drm_file *file_priv,
|
H A D | drm_drv.h | 295 void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, 302 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv); 326 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, 333 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, 382 int (*dumb_create)(struct drm_file *file_priv, 400 int (*dumb_map_offset)(struct drm_file *file_priv, 464 void (*preclose) (struct drm_device *, struct drm_file *file_priv); 465 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
|
H A D | drm_ioctl.h | 55 struct drm_file *file_priv); 186 struct drm_file *file_priv); 188 struct drm_file *file_priv);
|
H A D | drm_framebuffer.h | 74 struct drm_file *file_priv, 98 struct drm_file *file_priv, unsigned flags, 222 struct drm_file *file_priv,
|
/openbsd/sys/dev/pci/drm/i915/gem/ |
H A D | i915_gem_context.c | 362 xa_lock(&file_priv->vm_xa); in i915_gem_vm_lookup() 363 vm = xa_load(&file_priv->vm_xa, id); in i915_gem_vm_lookup() 366 xa_unlock(&file_priv->vm_xa); in i915_gem_vm_lookup() 1545 ctx->file_priv = ERR_PTR(-EBADF); in context_close() 1727 ctx->file_priv = fpriv; in gem_context_register() 1791 xa_destroy(&file_priv->vm_xa); in i915_gem_context_open() 1792 xa_destroy(&file_priv->context_xa); in i915_gem_context_open() 1813 xa_destroy(&file_priv->context_xa); in i915_gem_context_close() 1817 xa_destroy(&file_priv->vm_xa); in i915_gem_context_close() 2271 ctx = __context_lookup(file_priv, id); in i915_gem_context_lookup() [all …]
|
/openbsd/sys/dev/pci/drm/i915/ |
H A D | i915_drm_client.c | 95 struct drm_i915_file_private *file_priv = file->driver_priv; in i915_drm_client_fdinfo() local 96 struct drm_i915_private *i915 = file_priv->i915; in i915_drm_client_fdinfo() 109 show_client_class(p, i915, file_priv->client, i); in i915_drm_client_fdinfo()
|
/openbsd/sys/dev/pci/drm/radeon/ |
H A D | radeon_drv.h | 123 int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv); 125 struct drm_file *file_priv);
|
H A D | radeon_kms.c | 639 int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv) in radeon_driver_open_kms() argument 646 file_priv->driver_priv = NULL; in radeon_driver_open_kms() 689 file_priv->driver_priv = fpriv; in radeon_driver_open_kms() 717 struct drm_file *file_priv) in radeon_driver_postclose_kms() argument 724 if (rdev->hyperz_filp == file_priv) in radeon_driver_postclose_kms() 726 if (rdev->cmask_filp == file_priv) in radeon_driver_postclose_kms() 730 radeon_uvd_free_handles(rdev, file_priv); in radeon_driver_postclose_kms() 731 radeon_vce_free_handles(rdev, file_priv); in radeon_driver_postclose_kms() 734 if (rdev->family >= CHIP_CAYMAN && file_priv->driver_priv) { in radeon_driver_postclose_kms() 735 struct radeon_fpriv *fpriv = file_priv->driver_priv; in radeon_driver_postclose_kms() [all …]
|