Searched refs:filp (Results 76 - 100 of 723) sorted by relevance

1234567891011>>

/linux-master/include/media/
H A Dmedia-devnode.h145 * @filp: pointer to struct &file
147 static inline struct media_devnode *media_devnode_data(struct file *filp) argument
149 return filp->private_data;
/linux-master/include/rdma/
H A Dib.h76 static inline bool ib_safe_file_access(struct file *filp) argument
78 return filp->f_cred == current_cred();
/linux-master/drivers/block/aoe/
H A Daoechr.c170 aoechr_write(struct file *filp, const char __user *buf, size_t cnt, loff_t *offp) argument
174 switch ((unsigned long) filp->private_data) {
197 aoechr_open(struct inode *inode, struct file *filp) argument
203 filp->private_data = (void *) (unsigned long) n;
215 aoechr_rel(struct inode *inode, struct file *filp) argument
221 aoechr_read(struct file *filp, char __user *buf, size_t cnt, loff_t *off) argument
229 n = (unsigned long) filp->private_data;
239 if (filp->f_flags & O_NDELAY) {
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_uvd.h63 struct drm_file *filp[AMDGPU_MAX_UVD_HANDLES]; member in struct:amdgpu_uvd
85 struct drm_file *filp);
H A Damdgpu_vce.h43 struct drm_file *filp[AMDGPU_MAX_VCE_HANDLES]; member in struct:amdgpu_vce
61 void amdgpu_vce_free_handles(struct amdgpu_device *adev, struct drm_file *filp);
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_fb_bo.c79 struct drm_file *filp,
84 obj = i915_gem_object_lookup(filp, mode_cmd->handles[0]);
78 intel_fb_bo_lookup_valid_bo(struct drm_i915_private *i915, struct drm_file *filp, const struct drm_mode_fb_cmd2 *mode_cmd) argument
/linux-master/drivers/accel/
H A Ddrm_accel.c216 * @filp: file pointer.
224 int accel_open(struct inode *inode, struct file *filp) argument
239 filp->f_mapping = dev->anon_inode->i_mapping;
241 retcode = drm_open_helper(filp, minor);
254 static int accel_stub_open(struct inode *inode, struct file *filp) argument
270 replace_fops(filp, new_fops);
271 if (filp->f_op->open)
272 err = filp->f_op->open(inode, filp);
/linux-master/drivers/firmware/arm_scmi/
H A Draw_mode.c768 static ssize_t scmi_dbg_raw_mode_common_read(struct file *filp, argument
774 struct scmi_dbg_raw_data *rd = filp->private_data;
781 filp->f_flags & O_NONBLOCK);
801 static ssize_t scmi_dbg_raw_mode_common_write(struct file *filp, argument
807 struct scmi_dbg_raw_data *rd = filp->private_data;
843 static __poll_t scmi_test_dbg_raw_common_poll(struct file *filp, argument
848 struct scmi_dbg_raw_data *rd = filp->private_data;
856 poll_wait(filp, &q->wq, wait);
866 static ssize_t scmi_dbg_raw_mode_message_read(struct file *filp, argument
870 return scmi_dbg_raw_mode_common_read(filp, bu
874 scmi_dbg_raw_mode_message_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
881 scmi_dbg_raw_mode_message_poll(struct file *filp, struct poll_table_struct *wait) argument
887 scmi_dbg_raw_mode_open(struct inode *inode, struct file *filp) argument
927 scmi_dbg_raw_mode_release(struct inode *inode, struct file *filp) argument
938 scmi_dbg_raw_mode_reset_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
967 scmi_dbg_raw_mode_message_async_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
984 scmi_test_dbg_raw_mode_notif_read(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
993 scmi_test_dbg_raw_mode_notif_poll(struct file *filp, struct poll_table_struct *wait) argument
1008 scmi_test_dbg_raw_mode_errors_read(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1017 scmi_test_dbg_raw_mode_errors_poll(struct file *filp, struct poll_table_struct *wait) argument
[all...]
/linux-master/drivers/gpu/drm/xe/display/
H A Dintel_fb_bo.c59 struct drm_file *filp,
63 struct drm_gem_object *gem = drm_gem_object_lookup(filp, mode_cmd->handles[0]);
58 intel_fb_bo_lookup_valid_bo(struct drm_i915_private *i915, struct drm_file *filp, const struct drm_mode_fb_cmd2 *mode_cmd) argument
/linux-master/arch/csky/abiv1/
H A Dmmap.c25 arch_get_unmapped_area(struct file *filp, unsigned long addr, argument
42 do_align = filp || (flags & MAP_SHARED);
/linux-master/drivers/remoteproc/
H A Dremoteproc_debugfs.c42 static ssize_t rproc_coredump_read(struct file *filp, char __user *userbuf, argument
45 struct rproc *rproc = filp->private_data;
71 static ssize_t rproc_coredump_write(struct file *filp, argument
75 struct rproc *rproc = filp->private_data;
126 static ssize_t rproc_trace_read(struct file *filp, char __user *userbuf, argument
129 struct rproc_debug_trace *data = filp->private_data;
155 static ssize_t rproc_name_read(struct file *filp, char __user *userbuf, argument
158 struct rproc *rproc = filp->private_data;
175 static ssize_t rproc_recovery_read(struct file *filp, char __user *userbuf, argument
178 struct rproc *rproc = filp
209 rproc_recovery_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
252 rproc_crash_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/platform/chrome/
H A Dcros_ec_chardev.c161 static int cros_ec_chardev_open(struct inode *inode, struct file *filp) argument
163 struct miscdevice *mdev = filp->private_data;
173 filp->private_data = priv;
176 nonseekable_open(inode, filp);
189 static __poll_t cros_ec_chardev_poll(struct file *filp, poll_table *wait) argument
191 struct chardev_priv *priv = filp->private_data;
193 poll_wait(filp, &priv->wait_event, wait);
201 static ssize_t cros_ec_chardev_read(struct file *filp, char __user *buffer, argument
206 struct chardev_priv *priv = filp->private_data;
215 !(filp
254 cros_ec_chardev_release(struct inode *inode, struct file *filp) argument
345 cros_ec_chardev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
[all...]
/linux-master/drivers/scsi/qedf/
H A Dqedf_debugfs.c99 qedf_dbg_fp_int_cmd_read(struct file *filp, char __user *buffer, size_t count, argument
108 (struct qedf_dbg_ctx *)filp->private_data;
136 qedf_dbg_fp_int_cmd_write(struct file *filp, const char __user *buffer, argument
146 qedf_dbg_debug_cmd_read(struct file *filp, char __user *buffer, size_t count, argument
152 (struct qedf_dbg_ctx *)filp->private_data;
161 qedf_dbg_debug_cmd_write(struct file *filp, const char __user *buffer, argument
168 (struct qedf_dbg_ctx *)filp->private_data;
192 qedf_dbg_stop_io_on_error_cmd_read(struct file *filp, char __user *buffer, argument
198 (struct qedf_dbg_ctx *)filp->private_data;
210 qedf_dbg_stop_io_on_error_cmd_write(struct file *filp, argument
386 qedf_dbg_clear_stats_cmd_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
398 qedf_dbg_clear_stats_cmd_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/crypto/ccp/
H A Dccp-debugfs.c42 static ssize_t ccp5_debugfs_info_read(struct file *filp, char __user *ubuf, argument
45 struct ccp_device *ccp = filp->private_data;
97 static ssize_t ccp5_debugfs_stats_read(struct file *filp, char __user *ubuf, argument
100 struct ccp_device *ccp = filp->private_data;
174 static ssize_t ccp5_debugfs_stats_write(struct file *filp, argument
178 struct ccp_device *ccp = filp->private_data;
191 static ssize_t ccp5_debugfs_queue_read(struct file *filp, char __user *ubuf, argument
194 struct ccp_cmd_queue *cmd_q = filp->private_data;
245 static ssize_t ccp5_debugfs_queue_write(struct file *filp, argument
249 struct ccp_cmd_queue *cmd_q = filp
[all...]
/linux-master/drivers/gpu/drm/
H A Ddrm_gem.c128 struct file *filp; local
132 filp = shmem_file_setup("drm mm object", size, VM_NORESERVE);
133 if (IS_ERR(filp))
134 return PTR_ERR(filp);
136 obj->filp = filp;
158 obj->filp = NULL;
269 * @filp: drm file-private structure to use for the handle look up
272 * Removes the GEM handle from the @filp lookup table which has been added with
277 drm_gem_handle_delete(struct drm_file *filp, u3 argument
656 objects_lookup(struct drm_file *filp, u32 *handle, int count, struct drm_gem_object **objs) argument
698 drm_gem_objects_lookup(struct drm_file *filp, void __user *bo_handles, int count, struct drm_gem_object ***objs_out) argument
748 drm_gem_object_lookup(struct drm_file *filp, u32 handle) argument
1099 drm_gem_mmap(struct file *filp, struct vm_area_struct *vma) argument
[all...]
/linux-master/drivers/vfio/pci/mlx5/
H A Dmain.c72 migf->filp->f_pos = 0;
76 static int mlx5vf_release_file(struct inode *inode, struct file *filp) argument
78 struct mlx5_vf_migration_file *migf = filp->private_data;
195 static ssize_t mlx5vf_save_read(struct file *filp, char __user *buf, size_t len, argument
198 struct mlx5_vf_migration_file *migf = filp->private_data;
206 pos = &filp->f_pos;
208 if (!(filp->f_flags & O_NONBLOCK)) {
239 if (filp->f_flags & O_NONBLOCK) {
267 static __poll_t mlx5vf_save_poll(struct file *filp, argument
270 struct mlx5_vf_migration_file *migf = filp
483 mlx5vf_precopy_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
884 mlx5vf_resume_write(struct file *filp, const char __user *buf, size_t len, loff_t *pos) argument
[all...]
/linux-master/drivers/media/mc/
H A Dmc-request.c85 static int media_request_close(struct inode *inode, struct file *filp) argument
87 struct media_request *req = filp->private_data;
93 static __poll_t media_request_poll(struct file *filp, argument
96 struct media_request *req = filp->private_data;
103 poll_wait(filp, &req->poll_wait, wait);
221 static long media_request_ioctl(struct file *filp, unsigned int cmd, argument
224 struct media_request *req = filp->private_data;
291 struct file *filp; local
312 filp = anon_inode_getfile("request", &request_fops, NULL, O_CLOEXEC);
313 if (IS_ERR(filp)) {
[all...]
/linux-master/drivers/mailbox/
H A Dmailbox-test.c49 static ssize_t mbox_test_signal_write(struct file *filp, argument
53 struct mbox_test_device *tdev = filp->private_data;
89 static int mbox_test_message_fasync(int fd, struct file *filp, int on) argument
91 struct mbox_test_device *tdev = filp->private_data;
93 return fasync_helper(fd, filp, on, &tdev->async_queue);
96 static ssize_t mbox_test_message_write(struct file *filp, argument
100 struct mbox_test_device *tdev = filp->private_data;
171 static ssize_t mbox_test_message_read(struct file *filp, char __user *userbuf, argument
174 struct mbox_test_device *tdev = filp->private_data;
201 if (filp
244 mbox_test_message_poll(struct file *filp, struct poll_table_struct *wait) argument
[all...]
/linux-master/fs/ext4/
H A Dioctl.c1032 static int ext4_ioctl_get_es_cache(struct file *filp, unsigned long arg) argument
1037 struct inode *inode = file_inode(filp);
1060 static int ext4_ioctl_checkpoint(struct file *filp, unsigned long arg) argument
1065 struct super_block *sb = file_inode(filp)->i_sb;
1105 static int ext4_ioctl_setlabel(struct file *filp, const char __user *user_label) argument
1110 struct super_block *sb = file_inode(filp)->i_sb;
1132 ret = mnt_want_write_file(filp);
1138 mnt_drop_write_file(filp);
1193 static int ext4_ioctl_setuuid(struct file *filp, argument
1197 struct super_block *sb = file_inode(filp)
1232 __ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
1624 ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
[all...]
/linux-master/drivers/rpmsg/
H A Drpmsg_char.c135 static int rpmsg_eptdev_open(struct inode *inode, struct file *filp) argument
173 filp->private_data = eptdev;
179 static int rpmsg_eptdev_release(struct inode *inode, struct file *filp) argument
204 struct file *filp = iocb->ki_filp; local
205 struct rpmsg_eptdev *eptdev = filp->private_data;
219 if (filp->f_flags & O_NONBLOCK)
252 struct file *filp = iocb->ki_filp; local
253 struct rpmsg_eptdev *eptdev = filp->private_data;
277 if (filp->f_flags & O_NONBLOCK) {
293 static __poll_t rpmsg_eptdev_poll(struct file *filp, poll_tabl argument
[all...]
/linux-master/fs/
H A Dpipe.c254 struct file *filp = iocb->ki_filp; local
255 struct pipe_inode_info *pipe = filp->private_data;
356 if ((filp->f_flags & O_NONBLOCK) ||
407 file_accessed(filp);
430 struct file *filp = iocb->ki_filp; local
431 struct pipe_inode_info *pipe = filp->private_data;
534 if (is_packetized(filp))
557 if ((filp->f_flags & O_NONBLOCK) ||
606 if (ret > 0 && sb_start_write_trylock(file_inode(filp)->i_sb)) {
607 int err = file_update_time(filp);
615 pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
657 pipe_poll(struct file *filp, poll_table *wait) argument
747 pipe_fasync(int fd, struct file *filp, int on) argument
1105 fifo_open(struct inode *inode, struct file *filp) argument
[all...]
/linux-master/drivers/media/platform/via/
H A Dvia-camera.c676 static int viacam_open(struct file *filp) argument
678 struct via_camera *cam = video_drvdata(filp);
686 ret = v4l2_fh_open(filp);
689 if (v4l2_fh_is_singular_file(filp)) {
693 v4l2_fh_release(filp);
704 static int viacam_release(struct file *filp) argument
706 struct via_camera *cam = video_drvdata(filp);
710 last_open = v4l2_fh_is_singular_file(filp);
711 _vb2_fop_release(filp, NULL);
741 static int viacam_enum_input(struct file *filp, voi argument
752 viacam_g_input(struct file *filp, void *priv, unsigned int *i) argument
758 viacam_s_input(struct file *filp, void *priv, unsigned int i) argument
781 viacam_enum_fmt_vid_cap(struct file *filp, void *priv, struct v4l2_fmtdesc *fmt) argument
855 viacam_try_fmt_vid_cap(struct file *filp, void *priv, struct v4l2_format *fmt) argument
865 viacam_g_fmt_vid_cap(struct file *filp, void *priv, struct v4l2_format *fmt) argument
874 viacam_s_fmt_vid_cap(struct file *filp, void *priv, struct v4l2_format *fmt) argument
907 viacam_querycap(struct file *filp, void *priv, struct v4l2_capability *cap) argument
918 viacam_g_parm(struct file *filp, void *priv, struct v4l2_streamparm *parm) argument
926 viacam_s_parm(struct file *filp, void *priv, struct v4l2_streamparm *parm) argument
934 viacam_enum_framesizes(struct file *filp, void *priv, struct v4l2_frmsizeenum *sizes) argument
955 viacam_enum_frameintervals(struct file *filp, void *priv, struct v4l2_frmivalenum *interval) argument
[all...]
/linux-master/include/linux/
H A Dfscrypt.h349 int fscrypt_ioctl_set_policy(struct file *filp, const void __user *arg);
350 int fscrypt_ioctl_get_policy(struct file *filp, void __user *arg);
351 int fscrypt_ioctl_get_policy_ex(struct file *filp, void __user *arg);
352 int fscrypt_ioctl_get_nonce(struct file *filp, void __user *arg);
381 int fscrypt_ioctl_add_key(struct file *filp, void __user *arg);
382 int fscrypt_ioctl_remove_key(struct file *filp, void __user *arg);
383 int fscrypt_ioctl_remove_key_all_users(struct file *filp, void __user *arg);
384 int fscrypt_ioctl_get_key_status(struct file *filp, void __user *arg);
423 int fscrypt_file_open(struct inode *inode, struct file *filp);
540 static inline int fscrypt_ioctl_set_policy(struct file *filp, argument
546 fscrypt_ioctl_get_policy(struct file *filp, void __user *arg) argument
551 fscrypt_ioctl_get_policy_ex(struct file *filp, void __user *arg) argument
557 fscrypt_ioctl_get_nonce(struct file *filp, void __user *arg) argument
612 fscrypt_ioctl_add_key(struct file *filp, void __user *arg) argument
617 fscrypt_ioctl_remove_key(struct file *filp, void __user *arg) argument
622 fscrypt_ioctl_remove_key_all_users(struct file *filp, void __user *arg) argument
628 fscrypt_ioctl_get_key_status(struct file *filp, void __user *arg) argument
734 fscrypt_file_open(struct inode *inode, struct file *filp) argument
[all...]
/linux-master/drivers/media/pci/ivtv/
H A Divtv-fileops.c493 ssize_t ivtv_v4l2_read(struct file * filp, char __user *buf, size_t count, loff_t * pos) argument
495 struct ivtv_open_id *id = fh2id(filp->private_data);
506 rc = ivtv_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK);
536 static ssize_t ivtv_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) argument
538 struct ivtv_open_id *id = fh2id(filp->private_data);
619 if (filp->f_flags & O_NONBLOCK)
702 if (count && !(filp->f_flags & O_NONBLOCK))
708 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) argument
710 struct ivtv_open_id *id = fh2id(filp->private_data);
716 res = ivtv_write(filp, user_bu
721 ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait) argument
755 ivtv_v4l2_enc_poll(struct file *filp, poll_table *wait) argument
866 ivtv_v4l2_close(struct file *filp) argument
931 ivtv_open(struct file *filp) argument
1034 ivtv_v4l2_open(struct file *filp) argument
[all...]
/linux-master/fs/9p/
H A Dvfs_dir.c63 * @filp: opened file structure
68 static struct p9_rdir *v9fs_alloc_rdir_buf(struct file *filp, int buflen) argument
70 struct p9_fid *fid = filp->private_data;
201 * @filp: file pointer to a directory or file
205 int v9fs_dir_release(struct inode *inode, struct file *filp) argument
213 fid = filp->private_data;
214 p9_debug(P9_DEBUG_VFS, "inode: %p filp: %p fid: %d\n",
215 inode, filp, fid ? fid->fid : -1);
218 if ((S_ISREG(inode->i_mode)) && (filp->f_mode & FMODE_WRITE))
228 if ((filp
[all...]

Completed in 218 milliseconds

1234567891011>>