Home
last modified time | relevance | path

Searched refs:file_priv (Results 1 - 25 of 29) sorted by relevance

12

/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_auth.c64 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, 1, 0, GFP_KERNEL); in drm_getmagic()
73 file_priv->magic = ret; in drm_getmagic()
76 auth->magic = file_priv->magic; in drm_getmagic()
84 int drm_authmagic(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_authmagic() argument
92 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic()
95 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic()
204 static int drm_master_check_perm(struct drm_device *dev, struct drm_file *file_priv) in drm_master_check_perm() argument
217 drm_setmaster_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_setmaster_ioctl() argument
267 drm_dropmaster_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_dropmaster_ioctl() argument
300 drm_master_open(struct drm_file *file_priv) drm_master_open() argument
318 drm_master_release(struct drm_file *file_priv) drm_master_release() argument
[all...]
H A Ddrm_file.c219 static void drm_events_release(struct drm_file *file_priv) in drm_events_release() argument
221 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
228 list_for_each_entry_safe(e, et, &file_priv->pending_event_list, pending_link) in drm_events_release()
231 e->file_priv = NULL; in drm_events_release()
235 list_for_each_entry_safe(e, et, &file_priv->event_list, link) in drm_events_release()
317 struct drm_file *file_priv = filp->private_data; in drm_close_helper() local
318 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper()
321 list_del(&file_priv->lhead); in drm_close_helper()
324 drm_file_free(file_priv); in drm_close_helper()
510 struct drm_file *file_priv in drm_release() local
553 struct drm_file *file_priv = filp->private_data; drm_release_noglobal() local
598 struct drm_file *file_priv = filp->private_data; drm_read() local
689 struct drm_file *file_priv = filp->private_data; drm_poll() local
726 drm_event_reserve_init_locked(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e) drm_event_reserve_init_locked() argument
767 drm_event_reserve_init(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e) drm_event_reserve_init() argument
[all...]
H A Ddrm_ioctl.c110 * \param file_priv DRM file private.
117 int drm_getunique(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getunique() argument
123 master = file_priv->master; in drm_getunique()
143 static int drm_set_busid(struct drm_device *dev, struct drm_file *file_priv) in drm_set_busid() argument
145 struct drm_master *master = file_priv->master; in drm_set_busid()
173 * \param file_priv DRM file private.
182 int drm_getclient(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getclient() argument
198 client->auth = file_priv->authenticated; in drm_getclient()
214 * \param file_priv DRM file private.
220 static int drm_getstats(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getstats() argument
233 drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_getcap() argument
318 drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_setclientcap() argument
394 drm_setversion(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_setversion() argument
448 drm_noop(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_noop() argument
470 drm_invalid_op(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_invalid_op() argument
513 drm_version(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_version() argument
544 drm_ioctl_permit(u32 flags, struct drm_file *file_priv) drm_ioctl_permit() argument
766 struct drm_file *file_priv = file->private_data; drm_ioctl_kernel() local
806 struct drm_file *file_priv = filp->private_data; drm_ioctl() local
[all...]
H A Ddrm_internal.h57 struct drm_file *file_priv);
64 struct drm_file *file_priv) in drm_irq_by_busid()
83 struct drm_file *file_priv);
85 struct drm_file *file_priv);
130 struct drm_file *file_priv);
137 struct drm_file *file_priv);
148 struct drm_file *file_priv);
150 struct drm_file *file_priv);
152 struct drm_file *file_priv);
154 struct drm_file *file_priv);
63 drm_irq_by_busid(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_irq_by_busid() argument
[all...]
H A Ddrm_gem.c248 struct drm_file *file_priv = data; in drm_gem_object_release_handle() local
253 obj->funcs->close(obj, file_priv); in drm_gem_object_release_handle()
255 dev->driver->gem_close_object(obj, file_priv); in drm_gem_object_release_handle()
257 drm_gem_remove_prime_handles(obj, file_priv); in drm_gem_object_release_handle()
258 drm_vma_node_revoke(&obj->vma_node, file_priv); in drm_gem_object_release_handle()
359 * @file_priv: drm file-private structure to register the handle for
368 * when userspace closes @file_priv for all attached handles, or through the
372 drm_gem_handle_create_tail(struct drm_file *file_priv, in drm_gem_handle_create_tail() argument
389 spin_lock(&file_priv->table_lock); in drm_gem_handle_create_tail()
391 ret = idr_alloc(&file_priv in drm_gem_handle_create_tail()
443 drm_gem_handle_create(struct drm_file *file_priv, struct drm_gem_object *obj, u32 *handlep) drm_gem_handle_create() argument
811 drm_gem_close_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_gem_close_ioctl() argument
837 drm_gem_flink_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_gem_flink_ioctl() argument
887 drm_gem_open_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_gem_open_ioctl() argument
[all...]
H A Ddrm_prime.c284 * @file_priv: drm file-private structure
295 int drm_gem_prime_fd_to_handle(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle) in drm_gem_prime_fd_to_handle() argument
306 mutex_lock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle()
308 ret = drm_prime_lookup_buf_handle(&file_priv->prime, dma_buf, handle); in drm_gem_prime_fd_to_handle()
333 ret = drm_gem_handle_create_tail(file_priv, obj, handle); in drm_gem_prime_fd_to_handle()
339 ret = drm_prime_add_buf_handle(&file_priv->prime, dma_buf, *handle); in drm_gem_prime_fd_to_handle()
340 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle()
353 drm_gem_handle_delete(file_priv, *handle); in drm_gem_prime_fd_to_handle()
360 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle()
366 int drm_prime_fd_to_handle_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_prime_fd_to_handle_ioctl() argument
425 drm_gem_prime_handle_to_fd(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd) drm_gem_prime_handle_to_fd() argument
510 drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_prime_handle_to_fd_ioctl() argument
[all...]
H A Ddrm_lease.c97 * @file_priv: the master drm_file
106 bool _drm_lease_held(struct drm_file *file_priv, int id) in _drm_lease_held() argument
108 if (!file_priv || !file_priv->master) { in _drm_lease_held()
112 return _drm_lease_held_master(file_priv->master, id); in _drm_lease_held()
117 * @file_priv: the master drm_file
126 bool drm_lease_held(struct drm_file *file_priv, int id) in drm_lease_held() argument
131 if (!file_priv || !file_priv->master || !file_priv in drm_lease_held()
150 drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs_in) drm_lease_filter_crtcs() argument
[all...]
H A Ddrm_atomic_uapi.c486 struct drm_file *file_priv, struct drm_property *property, uint64_t val) in drm_atomic_plane_set_property()
496 fb = drm_framebuffer_lookup(dev, file_priv, val); in drm_atomic_plane_set_property()
515 struct drm_crtc *crtc = drm_crtc_find(dev, file_priv, val); in drm_atomic_plane_set_property()
638 struct drm_file *file_priv, struct drm_property *property, uint64_t val) in drm_atomic_connector_set_property()
646 struct drm_crtc *crtc = drm_crtc_find(dev, file_priv, val); in drm_atomic_connector_set_property()
721 fb = drm_framebuffer_lookup(dev, file_priv, val); in drm_atomic_connector_set_property()
924 int drm_atomic_set_property(struct drm_atomic_state *state, struct drm_file *file_priv, struct drm_mode_object *obj, in drm_atomic_set_property() argument
945 ret = drm_atomic_connector_set_property(connector, connector_state, file_priv, prop, prop_value); in drm_atomic_set_property()
971 ret = drm_atomic_plane_set_property(plane, plane_state, file_priv, prop, prop_value); in drm_atomic_set_property()
1061 struct drm_file *file_priv, struc in prepare_signaling()
485 drm_atomic_plane_set_property(struct drm_plane *plane, struct drm_plane_state *state, struct drm_file *file_priv, struct drm_property *property, uint64_t val) drm_atomic_plane_set_property() argument
637 drm_atomic_connector_set_property(struct drm_connector *connector, struct drm_connector_state *state, struct drm_file *file_priv, struct drm_property *property, uint64_t val) drm_atomic_connector_set_property() argument
1060 prepare_signaling(struct drm_device *dev, struct drm_atomic_state *state, struct drm_mode_atomic *arg, struct drm_file *file_priv, struct drm_out_fence_state **fence_state, unsigned int *num_fences) prepare_signaling() argument
1239 drm_mode_atomic_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_mode_atomic_ioctl() argument
[all...]
H A Ddrm_mode_config.c84 * @file_priv: drm file for the ioctl call
94 int drm_mode_getresources(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_mode_getresources() argument
112 mutex_lock(&file_priv->fbs_lock); in drm_mode_getresources()
115 list_for_each_entry(fb, &file_priv->fbs, filp_head) in drm_mode_getresources()
118 mutex_unlock(&file_priv->fbs_lock); in drm_mode_getresources()
124 mutex_unlock(&file_priv->fbs_lock); in drm_mode_getresources()
135 if (drm_lease_held(file_priv, crtc->base.id)) { in drm_mode_getresources()
161 if (!file_priv->writeback_connectors && (connector->connector_type == DRM_MODE_CONNECTOR_WRITEBACK)) { in drm_mode_getresources()
165 if (drm_lease_held(file_priv, connector->base.id)) { in drm_mode_getresources()
H A Ddrm_vblank.c984 trace_drm_vblank_event_delivered(e->base.file_priv, e->pipe, seq); in send_vblank_event()
1572 int drm_legacy_modeset_ctl_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_legacy_modeset_ctl_ioctl() argument
1607 union drm_wait_vblank *vblwait, struct drm_file *file_priv) in drm_queue_vblank_event()
1647 ret = drm_event_reserve_init_locked(dev, file_priv, &e->base, &e->event.base); in drm_queue_vblank_event()
1656 trace_drm_vblank_event_queued(file_priv, pipe, req_seq); in drm_queue_vblank_event()
1723 int drm_wait_vblank_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_wait_vblank_ioctl() argument
1760 if (drm_lease_held(file_priv, crtc->base.id)) { in drm_wait_vblank_ioctl()
1817 return drm_queue_vblank_event(dev, pipe, req_seq, vblwait, file_priv); in drm_wait_vblank_ioctl()
1987 * \param file_priv drm file private for the user's open file descriptor
1990 int drm_crtc_get_sequence_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_crtc_get_sequence_ioctl() argument
1606 drm_queue_vblank_event(struct drm_device *dev, unsigned int pipe, u64 req_seq, union drm_wait_vblank *vblwait, struct drm_file *file_priv) drm_queue_vblank_event() argument
2047 drm_crtc_queue_sequence_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_crtc_queue_sequence_ioctl() argument
[all...]
H A Ddrm_color_mgmt.c252 * @file_priv: DRM file info
262 int drm_mode_gamma_set_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_mode_gamma_set_ioctl() argument
275 crtc = drm_crtc_find(dev, file_priv, crtc_lut->crtc_id); in drm_mode_gamma_set_ioctl()
321 * @file_priv: DRM file info
332 int drm_mode_gamma_get_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_mode_gamma_get_ioctl() argument
344 crtc = drm_crtc_find(dev, file_priv, crtc_lut->crtc_id); in drm_mode_gamma_get_ioctl()
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/
H A Ddrm_internal.h57 struct drm_file *file_priv);
64 struct drm_file *file_priv) in drm_irq_by_busid()
83 struct drm_file *file_priv);
85 struct drm_file *file_priv);
130 struct drm_file *file_priv);
137 struct drm_file *file_priv);
148 struct drm_file *file_priv);
150 struct drm_file *file_priv);
152 struct drm_file *file_priv);
154 struct drm_file *file_priv);
63 drm_irq_by_busid(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_irq_by_busid() argument
[all...]
/device/soc/rockchip/common/sdk_linux/include/drm/
H A Ddrm_file.h128 * @file_priv:
133 struct drm_file *file_priv; member
148 * events for @file_priv, to allow correct unwinding of them when
357 * @file_priv: DRM file
360 * &drm_file.minor of @file_priv is a primary minor.
365 static inline bool drm_is_primary_client(const struct drm_file *file_priv) in drm_is_primary_client() argument
367 return file_priv->minor->type == DRM_MINOR_PRIMARY; in drm_is_primary_client()
372 * @file_priv: DRM file
375 * &drm_file.minor of @file_priv is a render minor.
379 static inline bool drm_is_render_client(const struct drm_file *file_priv) in drm_is_render_client() argument
[all...]
H A Ddrm_drv.h314 void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, bool from_open);
320 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv);
371 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags,
382 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle);
484 int (*dumb_create)(struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args);
500 int (*dumb_map_offset)(struct drm_file *file_priv, struct drm_device *dev, uint32_t handle, uint64_t *offset);
517 int (*dumb_destroy)(struct drm_file *file_priv, struct drm_device *dev, uint32_t handle);
575 void (*preclose)(struct drm_device *, struct drm_file *file_priv);
576 int (*dma_ioctl)(struct drm_device *dev, void *data, struct drm_file *file_priv);
H A Ddrm_crtc.h452 int (*cursor_set)(struct drm_crtc *crtc, struct drm_file *file_priv, uint32_t handle, uint32_t width,
474 int (*cursor_set2)(struct drm_crtc *crtc, struct drm_file *file_priv, uint32_t handle, uint32_t width,
1226 * @file_priv: drm file to check for lease against.
1233 static inline struct drm_crtc *drm_crtc_find(struct drm_device *dev, struct drm_file *file_priv, uint32_t id) in drm_crtc_find() argument
1236 mo = drm_mode_object_find(dev, file_priv, id, DRM_MODE_OBJECT_CRTC); in drm_crtc_find()
H A Ddrm_prime.h68 int drm_gem_prime_fd_to_handle(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle);
69 int drm_gem_prime_handle_to_fd(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags,
H A Ddrm_auth.h46 struct drm_file *file_priv; member
H A Ddrm_mode_object.h117 struct drm_mode_object *drm_mode_object_find(struct drm_device *dev, struct drm_file *file_priv, uint32_t id,
H A Ddrm_mode_config.h77 struct drm_framebuffer *(*fb_create)(struct drm_device *dev, struct drm_file *file_priv,
H A Ddrm_connector.h1577 * @file_priv: drm file to check for lease against.
1583 static inline struct drm_connector *drm_connector_lookup(struct drm_device *dev, struct drm_file *file_priv, in drm_connector_lookup() argument
1587 mo = drm_mode_object_find(dev, file_priv, id, DRM_MODE_OBJECT_CONNECTOR); in drm_connector_lookup()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_gem.h56 int rockchip_gem_dumb_create(struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args);
62 int rockchip_gem_create_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv);
65 int rockchip_gem_map_offset_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv);
67 int rockchip_gem_get_phys_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv);
H A Drockchip_drm_gem.c707 static struct rockchip_gem_object *rockchip_gem_create_with_handle(struct drm_file *file_priv, struct drm_device *drm, in rockchip_gem_create_with_handle() argument
727 ret = drm_gem_handle_create(file_priv, obj, handle); in rockchip_gem_create_with_handle()
750 int rockchip_gem_dumb_create(struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args) in rockchip_gem_dumb_create() argument
761 rk_obj = rockchip_gem_create_with_handle(file_priv, dev, args->size, &args->handle, args->flags); in rockchip_gem_dumb_create()
896 int rockchip_gem_create_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) in rockchip_gem_create_ioctl() argument
901 rk_obj = rockchip_gem_create_with_handle(file_priv, dev, args->size, &args->handle, args->flags); in rockchip_gem_create_ioctl()
905 int rockchip_gem_map_offset_ioctl(struct drm_device *drm, void *data, struct drm_file *file_priv) in rockchip_gem_map_offset_ioctl() argument
909 return drm_gem_dumb_map_offset(file_priv, drm, args->handle, &args->offset); in rockchip_gem_map_offset_ioctl()
912 int rockchip_gem_get_phys_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) in rockchip_gem_get_phys_ioctl() argument
919 obj = drm_gem_object_lookup(file_priv, arg in rockchip_gem_get_phys_ioctl()
[all...]
H A Drockchip_drm_drv.c1366 static void rockchip_drm_crtc_cancel_pending_vblank(struct drm_crtc *crtc, struct drm_file *file_priv) in rockchip_drm_crtc_cancel_pending_vblank() argument
1371 priv->crtc_funcs[pipe]->cancel_pending_vblank(crtc, file_priv); in rockchip_drm_crtc_cancel_pending_vblank()
1384 static void rockchip_drm_postclose(struct drm_device *dev, struct drm_file *file_priv) in rockchip_drm_postclose() argument
1389 rockchip_drm_crtc_cancel_pending_vblank(crtc, file_priv); in rockchip_drm_postclose()
1401 static struct drm_pending_vblank_event *rockchip_drm_add_vcnt_event(struct drm_crtc *crtc, struct drm_file *file_priv) in rockchip_drm_add_vcnt_event() argument
1420 drm_event_reserve_init_locked(dev, file_priv, &e->base, &e->event.base); in rockchip_drm_add_vcnt_event()
1426 static int rockchip_drm_get_vcnt_event_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) in rockchip_drm_get_vcnt_event_ioctl() argument
1445 e = rockchip_drm_add_vcnt_event(crtc, file_priv); in rockchip_drm_get_vcnt_event_ioctl()
H A Drockchip_drm_drv.h319 void (*cancel_pending_vblank)(struct drm_crtc *crtc, struct drm_file *file_priv);
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_gem.h60 int rockchip_gem_dumb_create(struct drm_file *file_priv,
69 struct drm_file *file_priv);
73 struct drm_file *file_priv);
76 struct drm_file *file_priv);

Completed in 24 milliseconds

12