Lines Matching refs:file_priv
1655 struct drm_file *file_priv = kn->kn_hook; in filt_drmreaddetach() local
1659 klist_remove_locked(&file_priv->rsel.si_note, kn); in filt_drmreaddetach()
1666 struct drm_file *file_priv = kn->kn_hook; in filt_drmread() local
1670 mtx_enter(&file_priv->minor->dev->event_lock); in filt_drmread()
1671 val = !list_empty(&file_priv->event_list); in filt_drmread()
1673 mtx_leave(&file_priv->minor->dev->event_lock); in filt_drmread()
1695 struct drm_file *file_priv = NULL; in drmkqfilter() local
1705 file_priv = drm_find_file_by_minor(dev, minor(kdev)); in drmkqfilter()
1707 if (file_priv == NULL) in drmkqfilter()
1711 kn->kn_hook = file_priv; in drmkqfilter()
1714 klist_insert_locked(&file_priv->rsel.si_note, kn); in drmkqfilter()
1736 struct drm_file *file_priv; in drmopen() local
1775 file_priv = drm_file_alloc(dm); in drmopen()
1776 if (IS_ERR(file_priv)) { in drmopen()
1782 if (drm_is_primary_client(file_priv)) { in drmopen()
1783 ret = drm_master_open(file_priv); in drmopen()
1788 file_priv->filp = (void *)file_priv; in drmopen()
1789 file_priv->fminor = minor(kdev); in drmopen()
1792 SPLAY_INSERT(drm_file_tree, &dev->files, file_priv); in drmopen()
1807 drm_file_free(file_priv); in drmopen()
1819 struct drm_file *file_priv; in drmclose() local
1831 file_priv = drm_find_file_by_minor(dev, minor(kdev)); in drmclose()
1832 if (file_priv == NULL) { in drmclose()
1839 SPLAY_REMOVE(drm_file_tree, &dev->files, file_priv); in drmclose()
1841 drm_file_free(file_priv); in drmclose()
1856 struct drm_file *file_priv; in drmread() local
1864 file_priv = drm_find_file_by_minor(dev, minor(kdev)); in drmread()
1866 if (file_priv == NULL) in drmread()
1877 while (error == 0 && list_empty(&file_priv->event_list)) { in drmread()
1882 error = msleep_nsec(&file_priv->event_wait, &dev->event_lock, in drmread()
1889 while (drm_dequeue_event(dev, file_priv, uio->uio_resid, &ev)) { in drmread()
1913 drm_dequeue_event(struct drm_device *dev, struct drm_file *file_priv, in drm_dequeue_event() argument
1922 if (list_empty(&file_priv->event_list)) in drm_dequeue_event()
1924 e = list_first_entry(&file_priv->event_list, in drm_dequeue_event()
1929 file_priv->event_space += e->event->length; in drm_dequeue_event()
2053 drm_getpciinfo(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getpciinfo() argument