Searched refs:filp (Results 1 - 25 of 724) sorted by relevance

1234567891011>>

/linux-master/fs/ocfs2/
H A Dmove_extents.h10 int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp);
H A Dioctl.h17 long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
/linux-master/fs/jffs2/
H A Dioctl.c16 long jffs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ioc32.c37 long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
42 return drm_compat_ioctl(filp, cmd, arg);
44 return amdgpu_drm_ioctl(filp, cmd, arg);
H A Damdgpu_gem.h50 int amdgpu_mode_dumb_mmap(struct drm_file *filp,
55 struct drm_file *filp);
57 struct drm_file *filp);
59 struct drm_file *filp);
61 struct drm_file *filp);
63 struct drm_file *filp);
66 struct drm_file *filp);
68 struct drm_file *filp);
71 struct drm_file *filp);
H A Damdgpu_drv.h47 long amdgpu_drm_ioctl(struct file *filp,
50 long amdgpu_kms_compat_ioctl(struct file *filp,
H A Damdgpu_sched.h36 struct drm_file *filp);
/linux-master/drivers/media/pci/ivtv/
H A Divtv-fileops.h13 int ivtv_v4l2_open(struct file *filp);
14 ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count,
16 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count,
18 int ivtv_v4l2_close(struct file *filp);
19 __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait);
20 __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);
/linux-master/drivers/gpu/drm/i915/
H A Di915_ioc32.h11 long i915_ioc32_compat_ioctl(struct file *filp, unsigned int cmd,
H A Di915_ioc32.c69 * @filp: the file pointer
76 long i915_ioc32_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
83 return drm_compat_ioctl(filp, cmd, arg);
89 ret = (*fn) (filp, cmd, arg);
91 ret = drm_ioctl(filp, cmd, arg);
/linux-master/drivers/gpu/drm/nouveau/
H A Dnouveau_ioc32.c45 * \param filp file pointer.
50 long nouveau_compat_ioctl(struct file *filp, unsigned int cmd, argument
58 return drm_compat_ioctl(filp, cmd, arg);
65 ret = (*fn)(filp, cmd, arg);
67 ret = nouveau_drm_ioctl(filp, cmd, arg);
/linux-master/drivers/media/pci/cx18/
H A Dcx18-fileops.h11 int cx18_v4l2_open(struct file *filp);
12 ssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count,
14 ssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count,
16 int cx18_v4l2_close(struct file *filp);
17 __poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait);
/linux-master/include/linux/
H A Dfsverity.h35 * @filp: a readonly file descriptor for the file
45 int (*begin_enable_verity)(struct file *filp);
50 * @filp: a readonly file descriptor for the file
67 int (*end_enable_verity)(struct file *filp, const void *desc,
140 int fsverity_ioctl_enable(struct file *filp, const void __user *arg);
144 int fsverity_ioctl_measure(struct file *filp, void __user *arg);
151 int __fsverity_file_open(struct inode *inode, struct file *filp);
169 int fsverity_ioctl_read_metadata(struct file *filp, const void __user *uarg);
186 static inline int fsverity_ioctl_enable(struct file *filp, argument
194 static inline int fsverity_ioctl_measure(struct file *filp, voi argument
212 __fsverity_file_open(struct inode *inode, struct file *filp) argument
229 fsverity_ioctl_read_metadata(struct file *filp, const void __user *uarg) argument
297 fsverity_file_open(struct inode *inode, struct file *filp) argument
[all...]
H A Ddnotify.h37 static inline void dnotify_flush(struct file *filp, fl_owner_t id) argument
41 static inline int fcntl_dirnotify(int fd, struct file *filp, unsigned int arg) argument
/linux-master/drivers/media/mc/
H A Dmc-devnode.c70 static ssize_t media_read(struct file *filp, char __user *buf, argument
73 struct media_devnode *devnode = media_devnode_data(filp);
79 return devnode->fops->read(filp, buf, sz, off);
82 static ssize_t media_write(struct file *filp, const char __user *buf, argument
85 struct media_devnode *devnode = media_devnode_data(filp);
91 return devnode->fops->write(filp, buf, sz, off);
94 static __poll_t media_poll(struct file *filp, argument
97 struct media_devnode *devnode = media_devnode_data(filp);
103 return devnode->fops->poll(filp, poll);
107 __media_ioctl(struct file *filp, unsigne argument
122 media_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
131 media_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
142 media_open(struct inode *inode, struct file *filp) argument
180 media_release(struct inode *inode, struct file *filp) argument
[all...]
/linux-master/include/media/
H A Dv4l2-fh.h86 * @filp: pointer to struct file
91 int v4l2_fh_open(struct file *filp);
98 * On error filp->private_data will be %NULL, otherwise it will point to
125 * @filp: pointer to struct file
128 * frees it. It will do nothing if filp->private_data (the pointer to the
133 int v4l2_fh_release(struct file *filp);
149 * @filp: pointer to struct file
154 * If filp->private_data is %NULL, then it will return 0.
156 static inline int v4l2_fh_is_singular_file(struct file *filp) argument
158 return v4l2_fh_is_singular(filp
[all...]
/linux-master/fs/
H A Dfcntl.c38 static int setfl(int fd, struct file * filp, unsigned int arg) argument
40 struct inode * inode = file_inode(filp);
47 if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode))
51 if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME))
52 if (!inode_owner_or_capable(file_mnt_idmap(filp), inode))
63 !(filp->f_mode & FMODE_CAN_ODIRECT))
66 if (filp->f_op->check_flags)
67 error = filp->f_op->check_flags(arg);
74 if (((arg ^ filp->f_flags) & FASYNC) && filp
90 f_modown(struct file *filp, struct pid *pid, enum pid_type type, int force) argument
108 __f_setown(struct file *filp, struct pid *pid, enum pid_type type, int force) argument
116 f_setown(struct file *filp, int who, int force) argument
147 f_delown(struct file *filp) argument
152 f_getown(struct file *filp) argument
168 f_setown_ex(struct file *filp, unsigned long arg) argument
208 f_getown_ex(struct file *filp, unsigned long arg) argument
248 f_getowner_uids(struct file *filp, unsigned long arg) argument
266 f_getowner_uids(struct file *filp, unsigned long arg) argument
330 do_fcntl(int fd, unsigned int cmd, unsigned long arg, struct file *filp) argument
874 fasync_remove_entry(struct file *filp, struct fasync_struct **fapp) argument
922 fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new) argument
956 fasync_add_entry(int fd, struct file *filp, struct fasync_struct **fapp) argument
985 fasync_helper(int fd, struct file * filp, int on, struct fasync_struct **fapp) argument
[all...]
/linux-master/fs/9p/
H A Dvfs_file.c96 * @filp: file to be locked
104 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) argument
106 struct inode *inode = file_inode(filp);
108 p9_debug(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl);
118 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) argument
126 fid = filp->private_data;
131 res = locks_lock_file_wait(filp, fl);
159 v9ses = v9fs_inode2v9ses(file_inode(filp));
214 locks_lock_file_wait(filp, f
223 v9fs_file_getlock(struct file *filp, struct file_lock *fl) argument
288 v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) argument
318 v9fs_file_flock_dotl(struct file *filp, int cmd, struct file_lock *fl) argument
410 v9fs_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync) argument
434 v9fs_file_fsync_dotl(struct file *filp, loff_t start, loff_t end, int datasync) argument
457 v9fs_file_mmap(struct file *filp, struct vm_area_struct *vma) argument
[all...]
/linux-master/net/qrtr/
H A Dtun.c31 static int qrtr_tun_open(struct inode *inode, struct file *filp) argument
45 filp->private_data = tun;
54 filp->private_data = NULL;
61 struct file *filp = iocb->ki_filp; local
62 struct qrtr_tun *tun = filp->private_data;
67 if (filp->f_flags & O_NONBLOCK)
87 struct file *filp = iocb->ki_filp; local
88 struct qrtr_tun *tun = filp->private_data;
114 static __poll_t qrtr_tun_poll(struct file *filp, poll_table *wait) argument
116 struct qrtr_tun *tun = filp
127 qrtr_tun_release(struct inode *inode, struct file *filp) argument
[all...]
/linux-master/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-debugfs.c174 static ssize_t xgmac_reg_addr_read(struct file *filp, char __user *buffer, argument
177 struct xgbe_prv_data *pdata = filp->private_data;
182 static ssize_t xgmac_reg_addr_write(struct file *filp, argument
186 struct xgbe_prv_data *pdata = filp->private_data;
192 static ssize_t xgmac_reg_value_read(struct file *filp, char __user *buffer, argument
195 struct xgbe_prv_data *pdata = filp->private_data;
203 static ssize_t xgmac_reg_value_write(struct file *filp, argument
207 struct xgbe_prv_data *pdata = filp->private_data;
234 static ssize_t xpcs_mmd_read(struct file *filp, char __user *buffer, argument
237 struct xgbe_prv_data *pdata = filp
242 xpcs_mmd_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) argument
251 xpcs_reg_addr_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
259 xpcs_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) argument
268 xpcs_reg_value_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
280 xpcs_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) argument
319 xprop_reg_addr_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
327 xprop_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) argument
337 xprop_reg_value_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
348 xprop_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) argument
379 xi2c_reg_addr_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
387 xi2c_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) argument
397 xi2c_reg_value_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
408 xi2c_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) argument
[all...]
/linux-master/net/handshake/
H A Dhandshake-test.c212 struct file *filp; local
222 filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
223 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, filp);
225 sock->file = filp;
238 fput(filp);
246 struct file *filp; local
257 filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
258 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, filp);
260 sock->file = filp;
275 fput(filp);
283 struct file *filp; local
316 struct file *filp; local
351 struct file *filp; local
393 struct file *filp; local
451 struct file *filp; local
[all...]
/linux-master/drivers/usb/gadget/function/
H A Du_uac1_legacy.c211 snd->filp = filp_open(fn_cntl, O_RDWR, 0);
212 if (IS_ERR(snd->filp)) {
213 int ret = PTR_ERR(snd->filp);
216 snd->filp = NULL;
223 snd->filp = filp_open(fn_play, O_WRONLY, 0);
224 if (IS_ERR(snd->filp)) {
225 int ret = PTR_ERR(snd->filp);
228 snd->filp = NULL;
231 pcm_file = snd->filp->private_data;
238 snd->filp
[all...]
/linux-master/drivers/infiniband/core/
H A Duverbs_std_types_async_fd.c35 int uverbs_async_event_release(struct inode *inode, struct file *filp) argument
38 struct ib_uobject *uobj = filp->private_data;
42 return uverbs_uobject_fd_release(inode, filp);
54 ret = uverbs_uobject_fd_release(inode, filp);
/linux-master/fs/nfsd/
H A Dlockd.c28 nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp, argument
43 nfserr = nfsd_open(rqstp, &fh, S_IFREG, access, filp);
61 nlm_fclose(struct file *filp) argument
63 fput(filp);
/linux-master/drivers/gpu/drm/xe/display/
H A Dintel_fb_bo.h21 struct drm_file *filp,

Completed in 212 milliseconds

1234567891011>>