Lines Matching refs:file_priv
122 static int i810_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) in i810_map_buffer() argument
124 struct drm_device *dev = file_priv->minor->dev; in i810_map_buffer()
134 old_fops = file_priv->filp->f_op; in i810_map_buffer()
135 file_priv->filp->f_op = &i810_buffer_fops; in i810_map_buffer()
137 buf_priv->virtual = (void *)vm_mmap(file_priv->filp, 0, buf->total, in i810_map_buffer()
141 file_priv->filp->f_op = old_fops; in i810_map_buffer()
170 struct drm_file *file_priv) in i810_dma_get_buffer() argument
183 retcode = i810_map_buffer(buf, file_priv); in i810_dma_get_buffer()
189 buf->file_priv = file_priv; in i810_dma_get_buffer()
423 struct drm_file *file_priv) in i810_dma_init() argument
885 struct drm_file *file_priv) in i810_driver_reclaim_buffers() argument
903 if (buf->file_priv == file_priv && buf_priv) { in i810_driver_reclaim_buffers()
916 struct drm_file *file_priv) in i810_flush_ioctl() argument
918 LOCK_TEST_WITH_RETURN(dev, file_priv); in i810_flush_ioctl()
925 struct drm_file *file_priv) in i810_dma_vertex() argument
934 LOCK_TEST_WITH_RETURN(dev, file_priv); in i810_dma_vertex()
953 struct drm_file *file_priv) in i810_clear_bufs() argument
957 LOCK_TEST_WITH_RETURN(dev, file_priv); in i810_clear_bufs()
969 struct drm_file *file_priv) in i810_swap_bufs() argument
973 LOCK_TEST_WITH_RETURN(dev, file_priv); in i810_swap_bufs()
980 struct drm_file *file_priv) in i810_getage() argument
992 struct drm_file *file_priv) in i810_getbuf() argument
1001 LOCK_TEST_WITH_RETURN(dev, file_priv); in i810_getbuf()
1005 retcode = i810_dma_get_buffer(dev, d, file_priv); in i810_getbuf()
1016 struct drm_file *file_priv) in i810_copybuf() argument
1023 struct drm_file *file_priv) in i810_docopy() argument
1088 struct drm_file *file_priv) in i810_dma_mc() argument
1097 LOCK_TEST_WITH_RETURN(dev, file_priv); in i810_dma_mc()
1112 struct drm_file *file_priv) in i810_rstatus() argument
1120 struct drm_file *file_priv) in i810_ov0_info() argument
1132 struct drm_file *file_priv) in i810_fstatus() argument
1136 LOCK_TEST_WITH_RETURN(dev, file_priv); in i810_fstatus()
1141 struct drm_file *file_priv) in i810_ov0_flip() argument
1145 LOCK_TEST_WITH_RETURN(dev, file_priv); in i810_ov0_flip()
1178 struct drm_file *file_priv) in i810_flip_bufs() argument
1184 LOCK_TEST_WITH_RETURN(dev, file_priv); in i810_flip_bufs()
1209 void i810_driver_preclose(struct drm_device *dev, struct drm_file *file_priv) in i810_driver_preclose() argument
1217 if (file_priv->master && file_priv->master->lock.hw_lock) { in i810_driver_preclose()
1218 drm_legacy_idlelock_take(&file_priv->master->lock); in i810_driver_preclose()
1219 i810_driver_reclaim_buffers(dev, file_priv); in i810_driver_preclose()
1220 drm_legacy_idlelock_release(&file_priv->master->lock); in i810_driver_preclose()
1224 i810_driver_reclaim_buffers(dev, file_priv); in i810_driver_preclose()