Searched defs:file_priv (Results 1 - 17 of 17) sorted by relevance

/solaris-x11-s11/open-src/kernel/drm/src/
H A Ddrm_dma.c136 buf->file_priv = NULL;
143 * \param file_priv DRM file private.
145 * Frees each buffer associated with \p file_priv not already on the hardware.
148 struct drm_file *file_priv)
156 if (dma->buflist[i]->file_priv == file_priv) {
147 drm_core_reclaim_buffers(struct drm_device *dev, struct drm_file *file_priv) argument
H A Ddrm_auth.c175 * \param file_priv DRM file private.
182 * file_priv.
215 * \param file_priv DRM file private.
220 * Checks if \p file_priv is associated with the magic number passed in \arg.
228 struct drm_file *file_priv; local
231 if ((file_priv = drm_find_file(file->master, auth->magic))) {
232 file_priv->authenticated = 1;
H A Ddrm_lock.c50 * \param file_priv DRM file private.
87 master->lock.file_priv = file;
123 * \param file_priv DRM file private.
216 lock_data->file_priv = NULL;
312 int drm_i_have_hw_lock(struct drm_device *dev, struct drm_file *file_priv) argument
314 struct drm_master *master = file_priv->master;
315 return (file_priv->lock_count && master->lock.hw_lock &&
317 master->lock.file_priv == file_priv);
H A Ddrm_ioctl.c52 * \param file_priv DRM file private.
91 static int drm_set_busid(struct drm_device *dev, struct drm_file *file_priv) argument
93 struct drm_master *master = file_priv->master;
119 * \param file_priv DRM file private.
170 * \param file_priv DRM file private.
212 * \param file_priv DRM file private.
273 * \param file_priv DRM file private.
H A Ddrm_context.c144 * \param file_priv DRM file private.
188 * \param file_priv DRM file private.
271 struct drm_file *file_priv, int new)
276 if (file_priv->master->lock.hw_lock != NULL &&
277 !_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) {
293 * \param file_priv DRM file private.
322 * \param file_priv DRM file private.
377 * \param file_priv DRM file private.
397 * \param file_priv DRM file private.
417 * \param file_priv DR
270 drm_context_switch_complete(struct drm_device *dev, struct drm_file *file_priv, int new) argument
[all...]
H A Ddrm_drv.c356 int drm_ioctl(dev_t dev_id, struct drm_file *file_priv, argument
359 struct drm_device *dev = file_priv->minor->dev;
370 ++file_priv->ioctl_count;
398 ((ioctl->flags & DRM_AUTH) && !file_priv->authenticated) ||
399 ((ioctl->flags & DRM_MASTER) && !file_priv->is_master) ||
400 (!(ioctl->flags & DRM_CONTROL_ALLOW) && (file_priv->minor->type == DRM_MINOR_CONTROL))) {
435 retcode = func(dev_id, dev, kdata, file_priv, mode, credp);
H A Ddrm_fops.c285 static void drm_events_release(struct drm_file *file_priv) argument
287 struct drm_device *dev = file_priv->minor->dev;
296 if (v->base.file_priv == file_priv) {
303 list_for_each_entry_safe(e, et, struct drm_pending_event, &file_priv->event_list, link)
320 drm_release(struct drm_file *file_priv) argument
322 struct drm_device *dev = file_priv->minor->dev;
330 dev->driver->preclose(dev, file_priv);
336 /* Release any auth tokens that might point to this file_priv,
338 if (file_priv
438 drm_dequeue_event(struct drm_file *file_priv, size_t total, size_t max, struct drm_pending_event **out) argument
466 drm_read(struct drm_file *file_priv, struct uio *uiop) argument
493 drm_poll(struct drm_file *file_priv, short events) argument
[all...]
H A Ddrm_gem.c437 drm_gem_handle_create(struct drm_file *file_priv, argument
449 if (idr_list_pre_get(&file_priv->object_idr, GFP_KERNEL) == 0)
453 spin_lock(&file_priv->table_lock);
454 ret = idr_list_get_new_above(&file_priv->object_idr, (void *)obj, (int *)handlep);
455 spin_unlock(&file_priv->table_lock);
465 ret = dev->driver->gem_open_object(obj, file_priv);
467 (void) drm_gem_handle_delete(file_priv, *handlep);
627 struct drm_file *file_priv = data; local
632 dev->driver->gem_close_object(obj, file_priv);
H A Ddrm_irq.c239 * \param file_priv DRM file private.
606 * \param file_priv DRM file private.
974 list_add_tail(&e->base.link, &e->base.file_priv->event_list, (caddr_t)&e->base);
975 DRM_WAKEUP(&e->base.file_priv->event_wait);
1258 struct drm_file *file_priv)
1278 e->base.file_priv = file_priv;
1283 if (file_priv->event_space < sizeof e->event) {
1288 file_priv->event_space -= sizeof e->event;
1304 pollwakeup(&e->base.file_priv
1256 drm_queue_vblank_event(struct drm_device *dev, int pipe, union drm_wait_vblank *vblwait, struct drm_file *file_priv) argument
[all...]
H A Ddrm_sunmod.c521 struct drm_file *file_priv;
541 file_priv = idr_find(&minor->clone_idr, clone_id);
542 if (!file_priv)
545 ret = drm_release(file_priv);
559 struct drm_file *file_priv; local
583 file_priv = idr_find(&minor->clone_idr, clone_id);
584 if (!file_priv)
587 return (-(drm_ioctl(dev_id, file_priv, cmd, arg, mode, credp)));
596 struct drm_file *file_priv; local
616 file_priv
691 struct drm_file *file_priv; local
[all...]
H A Ddrm_crtc.c1696 * @file_priv: DRM file info
1743 * @file_priv: DRM file info
2157 struct drm_file *file_priv)
2184 ret = crtc->funcs->cursor_set2(crtc, file_priv, req->handle,
2187 ret = crtc->funcs->cursor_set(crtc, file_priv, req->handle,
3546 e->base.file_priv = file;
2155 drm_mode_cursor_common(struct drm_device *dev, struct drm_mode_cursor2 *req, struct drm_file *file_priv) argument
/solaris-x11-s11/open-src/kernel/i915/src/
H A Di915_gem_context.c107 i915_gem_context_get(struct drm_i915_file_private *file_priv, u32 id);
146 struct drm_i915_file_private *file_priv)
177 /* Default context will never have a file_priv */
178 if (file_priv == NULL)
183 if (idr_pre_get(&file_priv->context_idr, GFP_KERNEL) == 0) {
189 ret = idr_get_new_above(&file_priv->context_idr, ctx,
191 ctx->file_priv = file_priv;
330 struct drm_i915_file_private *file_priv = file->driver_priv; local
343 return &file_priv
145 create_hw_context(struct drm_device *dev, struct drm_i915_file_private *file_priv) argument
354 struct drm_i915_file_private *file_priv = file->driver_priv; local
363 i915_gem_context_get(struct drm_i915_file_private *file_priv, u32 id) argument
547 struct drm_i915_file_private *file_priv = file->driver_priv; local
575 struct drm_i915_file_private *file_priv = file->driver_priv; local
[all...]
H A Di915_gem_execbuffer.c41 struct drm_file *file_priv; member in struct:eb_objects
45 eb_create(int size, struct drm_file *file_priv) argument
51 eb->file_priv = file_priv;
98 target_obj = drm_gem_object_lookup(dev, eb->file_priv,
H A Di915_dma.c1660 int i915_driver_open(struct drm_device *dev, struct drm_file *file_priv) argument
1677 file_priv->driver_priv = i915_file_priv;
1714 void i915_driver_preclose(struct drm_device * dev, struct drm_file *file_priv) argument
1716 i915_gem_context_close(dev, file_priv);
1717 i915_gem_release(dev, file_priv);
1755 void i915_driver_postclose(struct drm_device *dev, struct drm_file *file_priv) argument
1757 struct drm_i915_file_private *i915_file_priv = file_priv->driver_priv;
1759 file_priv->driver_priv = NULL;
H A Di915_gem.c309 struct drm_file *file_priv)
448 struct drm_file *file_priv)
482 struct drm_file *file_priv)
1265 * @file_priv: GEM object info
1577 request->file_priv = NULL;
1580 struct drm_i915_file_private *file_priv = file->driver_priv; local
1581 if (file_priv->status == 1) {
1582 spin_lock(&file_priv->mm.lock);
1583 request->file_priv = file_priv;
306 i915_gem_shmem_pread(struct drm_device *dev, struct drm_i915_gem_object *obj, struct drm_i915_gem_pread *args, struct drm_file *file_priv) argument
444 i915_gem_gtt_pwrite_fast(struct drm_device *dev, struct drm_i915_gem_object *obj, struct drm_i915_gem_pwrite *args, struct drm_file *file_priv) argument
478 i915_gem_shmem_pwrite(struct drm_device *dev, struct drm_i915_gem_object *obj, struct drm_i915_gem_pwrite *args, struct drm_file *file_priv) argument
1614 struct drm_i915_file_private *file_priv = request->file_priv; local
3045 struct drm_i915_file_private *file_priv = file->driver_priv; local
3942 i915_gem_phys_pwrite(struct drm_device *dev, struct drm_i915_gem_object *obj, struct drm_i915_gem_pwrite *args, struct drm_file *file_priv) argument
3966 struct drm_i915_file_private *file_priv = file->driver_priv; local
[all...]
H A Di915_drv.h222 struct drm_file *file_priv; /* NULL: free, -1: heap, other: real files */ member in struct:mem_block
530 struct drm_i915_file_private *file_priv; member in struct:i915_hw_context
1412 struct drm_i915_file_private *file_priv; member in struct:drm_i915_gem_request
1413 /** file_priv list entry for this request */
1590 extern int i915_driver_open(struct drm_device *dev, struct drm_file *file_priv);
1593 struct drm_file *file_priv);
1595 struct drm_file *file_priv);
1695 int i915_gem_dumb_create(struct drm_file *file_priv,
1698 int i915_gem_mmap_gtt(struct drm_file *file_priv, struct drm_device *dev,
1700 int i915_gem_dumb_destroy(struct drm_file *file_priv, struc
[all...]
/solaris-x11-s11/open-src/kernel/sys/drm/
H A DdrmP.h365 _file_priv->master->lock.file_priv != _file_priv) { \
368 (void *)_file_priv->master->lock.file_priv, (void *)_file_priv); \
484 struct drm_file *file_priv; member in struct:drm_buf
526 struct drm_file *file_priv; member in struct:drm_pending_event
656 struct drm_file *file_priv; member in struct:drm_lock_data
910 int (*master_set)(struct drm_device *dev, struct drm_file *file_priv,
912 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv,
936 int (*dumb_create)(struct drm_file *file_priv,
939 int (*dumb_map_offset)(struct drm_file *file_priv,
942 int (*dumb_destroy)(struct drm_file *file_priv,
[all...]

Completed in 336 milliseconds