Lines Matching refs:filp

264 		drm_legacy_lock_release(dev, file->filp);  in drm_file_free()
298 static void drm_close_helper(struct file *filp) in drm_close_helper() argument
300 struct drm_file *file_priv = filp->private_data; in drm_close_helper()
333 int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument
339 if (filp->f_flags & O_EXCL) in drm_open_helper()
362 filp->private_data = priv; in drm_open_helper()
363 filp->f_mode |= FMODE_UNSIGNED_OFFSET; in drm_open_helper()
364 priv->filp = filp; in drm_open_helper()
409 int drm_open(struct inode *inode, struct file *filp) in drm_open() argument
428 filp->f_mapping = dev->anon_inode->i_mapping; in drm_open()
430 retcode = drm_open_helper(filp, minor); in drm_open()
436 drm_close_helper(filp); in drm_open()
483 int drm_release(struct inode *inode, struct file *filp) in drm_release() argument
485 struct drm_file *file_priv = filp->private_data; in drm_release()
494 drm_close_helper(filp); in drm_release()
508 void drm_file_update_pid(struct drm_file *filp) in drm_file_update_pid() argument
518 if (filp->was_master) in drm_file_update_pid()
527 if (pid == rcu_access_pointer(filp->pid)) in drm_file_update_pid()
530 dev = filp->minor->dev; in drm_file_update_pid()
532 old = rcu_replace_pointer(filp->pid, pid, 1); in drm_file_update_pid()
557 int drm_release_noglobal(struct inode *inode, struct file *filp) in drm_release_noglobal() argument
559 struct drm_file *file_priv = filp->private_data; in drm_release_noglobal()
563 drm_close_helper(filp); in drm_release_noglobal()
601 ssize_t drm_read(struct file *filp, char __user *buffer, in drm_read() argument
604 struct drm_file *file_priv = filp->private_data; in drm_read()
628 if (filp->f_flags & O_NONBLOCK) { in drm_read()
686 __poll_t drm_poll(struct file *filp, struct poll_table_struct *wait) in drm_poll() argument
688 struct drm_file *file_priv = filp->private_data; in drm_poll()
691 poll_wait(filp, &file_priv->event_wait, wait); in drm_poll()
1071 priv->filp = file; in mock_drm_getfile()