Home
last modified time | relevance | path

Searched refs:filp (Results 1 – 25 of 534) sorted by relevance

12345678910>>...22

/linux/net/handshake/
H A Dhandshake-test.c213 struct file *filp; in handshake_req_submit_test4() local
223 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in handshake_req_submit_test4()
224 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, filp); in handshake_req_submit_test4()
226 sock->file = filp; in handshake_req_submit_test4()
228 fcount_before = file_count(filp); in handshake_req_submit_test4()
231 KUNIT_EXPECT_EQ(test, file_count(filp), fcount_before + 1); in handshake_req_submit_test4()
241 KUNIT_EXPECT_EQ(test, file_count(filp), fcount_before); in handshake_req_submit_test4()
242 fput(filp); in handshake_req_submit_test4()
251 struct file *filp; in handshake_req_submit_test5() local
262 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in handshake_req_submit_test5()
[all …]
/linux/fs/
H A Dfcntl.c39 static int setfl(int fd, struct file * filp, unsigned int arg) in setfl() argument
41 struct inode * inode = file_inode(filp); in setfl()
48 if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode)) in setfl()
52 if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME)) in setfl()
53 if (!inode_owner_or_capable(file_mnt_idmap(filp), inode)) in setfl()
64 !(filp->f_mode & FMODE_CAN_ODIRECT)) in setfl()
67 if (filp->f_op->check_flags) in setfl()
68 error = filp->f_op->check_flags(arg); in setfl()
75 if (((arg ^ filp->f_flags) & FASYNC) && filp in setfl()
127 __f_setown(struct file * filp,struct pid * pid,enum pid_type type,int force) __f_setown() argument
153 f_setown(struct file * filp,int who,int force) f_setown() argument
190 f_delown(struct file * filp) f_delown() argument
195 f_getown(struct file * filp) f_getown() argument
216 f_setown_ex(struct file * filp,unsigned long arg) f_setown_ex() argument
260 f_getown_ex(struct file * filp,unsigned long arg) f_getown_ex() argument
308 f_getowner_uids(struct file * filp,unsigned long arg) f_getowner_uids() argument
330 f_getowner_uids(struct file * filp,unsigned long arg) f_getowner_uids() argument
396 f_dupfd_query(int fd,struct file * filp) f_dupfd_query() argument
415 f_created_query(const struct file * filp) f_created_query() argument
420 f_owner_sig(struct file * filp,int signum,bool setsig) f_owner_sig() argument
445 do_fcntl(int fd,unsigned int cmd,unsigned long arg,struct file * filp) do_fcntl() argument
1001 fasync_remove_entry(struct file * filp,struct fasync_struct ** fapp) fasync_remove_entry() argument
1049 fasync_insert_entry(int fd,struct file * filp,struct fasync_struct ** fapp,struct fasync_struct * new) fasync_insert_entry() argument
1083 fasync_add_entry(int fd,struct file * filp,struct fasync_struct ** fapp) fasync_add_entry() argument
1112 fasync_helper(int fd,struct file * filp,int on,struct fasync_struct ** fapp) fasync_helper() argument
[all...]
H A Dioctl.c44 static int vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in vfs_ioctl() argument
48 if (!filp->f_op->unlocked_ioctl) in vfs_ioctl()
51 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl()
58 static int ioctl_fibmap(struct file *filp, int __user *p) in ioctl_fibmap() argument
60 struct inode *inode = file_inode(filp); in ioctl_fibmap()
82 sb->s_id, filp); in ioctl_fibmap()
199 static int ioctl_fiemap(struct file *filp, struct fiemap __user *ufiemap) in ioctl_fiemap() argument
203 struct inode *inode = file_inode(filp); in ioctl_fiemap()
268 static int ioctl_preallocate(struct file *filp, int mode, void __user *argp) in ioctl_preallocate() argument
270 struct inode *inode = file_inode(filp); in ioctl_preallocate()
[all …]
/linux/drivers/usb/gadget/function/
H A Du_uac1_legacy.c211 snd->filp = filp_open(fn_cntl, O_RDWR, 0); in gaudio_open_snd_dev()
212 if (IS_ERR(snd->filp)) { in gaudio_open_snd_dev()
213 int ret = PTR_ERR(snd->filp); in gaudio_open_snd_dev()
216 snd->filp = NULL; in gaudio_open_snd_dev()
223 snd->filp = filp_open(fn_play, O_WRONLY, 0); in gaudio_open_snd_dev()
224 if (IS_ERR(snd->filp)) { in gaudio_open_snd_dev()
225 int ret = PTR_ERR(snd->filp); in gaudio_open_snd_dev()
228 snd->filp = NULL; in gaudio_open_snd_dev()
231 pcm_file = snd->filp->private_data; in gaudio_open_snd_dev()
238 snd->filp = filp_open(fn_cap, O_RDONLY, 0); in gaudio_open_snd_dev()
[all …]
H A Dstorage_common.c171 if (curlun->filp) { in fsg_lun_close()
173 fput(curlun->filp); in fsg_lun_close()
174 curlun->filp = NULL; in fsg_lun_close()
182 struct file *filp = NULL; in fsg_lun_open() local
194 filp = filp_open(filename, O_RDWR | O_LARGEFILE, 0); in fsg_lun_open()
195 if (PTR_ERR(filp) == -EROFS || PTR_ERR(filp) == -EACCES) in fsg_lun_open()
199 filp = filp_open(filename, O_RDONLY | O_LARGEFILE, 0); in fsg_lun_open()
200 if (IS_ERR(filp)) { in fsg_lun_open()
202 return PTR_ERR(filp); in fsg_lun_open()
205 if (!(filp->f_mode & FMODE_WRITE)) in fsg_lun_open()
[all …]
/linux/net/qrtr/
H A Dtun.c31 static int qrtr_tun_open(struct inode *inode, struct file *filp) in qrtr_tun_open() argument
45 filp->private_data = tun; in qrtr_tun_open()
54 filp->private_data = NULL; in qrtr_tun_open()
61 struct file *filp = iocb->ki_filp; in qrtr_tun_read_iter() local
62 struct qrtr_tun *tun = filp->private_data; in qrtr_tun_read_iter()
67 if (filp->f_flags & O_NONBLOCK) in qrtr_tun_read_iter()
87 struct file *filp = iocb->ki_filp; in qrtr_tun_write_iter() local
88 struct qrtr_tun *tun = filp->private_data; in qrtr_tun_write_iter()
114 static __poll_t qrtr_tun_poll(struct file *filp, poll_table *wait) in qrtr_tun_poll() argument
116 struct qrtr_tun *tun = filp->private_data; in qrtr_tun_poll()
[all …]
/linux/drivers/platform/x86/amd/pmc/
H A Dmp1_stb.c93 static int amd_stb_debugfs_open(struct inode *inode, struct file *filp) in amd_stb_debugfs_open() argument
95 struct amd_pmc_dev *dev = filp->f_inode->i_private; in amd_stb_debugfs_open()
110 filp->private_data = buf; in amd_stb_debugfs_open()
114 static ssize_t amd_stb_debugfs_read(struct file *filp, char __user *buf, size_t size, loff_t *pos) in amd_stb_debugfs_read() argument
116 if (!filp->private_data) in amd_stb_debugfs_read()
119 return simple_read_from_buffer(buf, size, pos, filp->private_data, in amd_stb_debugfs_read()
123 static int amd_stb_debugfs_release(struct inode *inode, struct file *filp) in amd_stb_debugfs_release() argument
125 kfree(filp->private_data); in amd_stb_debugfs_release()
137 static int amd_stb_handle_efr(struct file *filp) in amd_stb_handle_efr() argument
139 struct amd_pmc_dev *dev = filp->f_inode->i_private; in amd_stb_handle_efr()
[all …]
/linux/net/sunrpc/
H A Dcache.c842 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read()
845 struct cache_reader *rp = filp->private_data; in cache_read()
847 struct inode *inode = file_inode(filp); in cache_read()
951 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write()
955 struct address_space *mapping = filp->f_mapping; in cache_write()
956 struct inode *inode = file_inode(filp); in cache_write()
969 static __poll_t cache_poll(struct file *filp, poll_table *wait, in cache_poll()
973 struct cache_reader *rp = filp->private_data; in cache_poll()
975 poll_wait(filp, &cd->queue_wait, wait); in cache_poll()
991 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl()
840 cache_read(struct file * filp,char __user * buf,size_t count,loff_t * ppos,struct cache_detail * cd) cache_read() argument
949 cache_write(struct file * filp,const char __user * buf,size_t count,loff_t * ppos,struct cache_detail * cd) cache_write() argument
967 cache_poll(struct file * filp,poll_table * wait,struct cache_detail * cd) cache_poll() argument
989 cache_ioctl(struct inode * ino,struct file * filp,unsigned int cmd,unsigned long arg,struct cache_detail * cd) cache_ioctl() argument
1013 cache_open(struct inode * inode,struct file * filp,struct cache_detail * cd) cache_open() argument
1040 cache_release(struct inode * inode,struct file * filp,struct cache_detail * cd) cache_release() argument
1545 cache_read_procfs(struct file * filp,char __user * buf,size_t count,loff_t * ppos) cache_read_procfs() argument
1553 cache_write_procfs(struct file * filp,const char __user * buf,size_t count,loff_t * ppos) cache_write_procfs() argument
1561 cache_poll_procfs(struct file * filp,poll_table * wait) cache_poll_procfs() argument
1568 cache_ioctl_procfs(struct file * filp,unsigned int cmd,unsigned long arg) cache_ioctl_procfs() argument
1577 cache_open_procfs(struct inode * inode,struct file * filp) cache_open_procfs() argument
1584 cache_release_procfs(struct inode * inode,struct file * filp) cache_release_procfs() argument
1600 content_open_procfs(struct inode * inode,struct file * filp) content_open_procfs() argument
1607 content_release_procfs(struct inode * inode,struct file * filp) content_release_procfs() argument
1621 open_flush_procfs(struct inode * inode,struct file * filp) open_flush_procfs() argument
1628 release_flush_procfs(struct inode * inode,struct file * filp) release_flush_procfs() argument
1635 read_flush_procfs(struct file * filp,char __user * buf,size_t count,loff_t * ppos) read_flush_procfs() argument
1643 write_flush_procfs(struct file * filp,const char __user * buf,size_t count,loff_t * ppos) write_flush_procfs() argument
1756 cache_read_pipefs(struct file * filp,char __user * buf,size_t count,loff_t * ppos) cache_read_pipefs() argument
1764 cache_write_pipefs(struct file * filp,const char __user * buf,size_t count,loff_t * ppos) cache_write_pipefs() argument
1772 cache_poll_pipefs(struct file * filp,poll_table * wait) cache_poll_pipefs() argument
1779 cache_ioctl_pipefs(struct file * filp,unsigned int cmd,unsigned long arg) cache_ioctl_pipefs() argument
1788 cache_open_pipefs(struct inode * inode,struct file * filp) cache_open_pipefs() argument
1795 cache_release_pipefs(struct inode * inode,struct file * filp) cache_release_pipefs() argument
1812 content_open_pipefs(struct inode * inode,struct file * filp) content_open_pipefs() argument
1819 content_release_pipefs(struct inode * inode,struct file * filp) content_release_pipefs() argument
1833 open_flush_pipefs(struct inode * inode,struct file * filp) open_flush_pipefs() argument
1840 release_flush_pipefs(struct inode * inode,struct file * filp) release_flush_pipefs() argument
1847 read_flush_pipefs(struct file * filp,char __user * buf,size_t count,loff_t * ppos) read_flush_pipefs() argument
1855 write_flush_pipefs(struct file * filp,const char __user * buf,size_t count,loff_t * ppos) write_flush_pipefs() argument
[all...]
/linux/include/linux/
H A Dfsverity.h36 * @filp: a readonly file descriptor for the file
46 int (*begin_enable_verity)(struct file *filp);
51 * @filp: a readonly file descriptor for the file
68 int (*end_enable_verity)(struct file *filp, const void *desc,
179 int fsverity_ioctl_enable(struct file *filp, const void __user *arg);
183 int fsverity_ioctl_measure(struct file *filp, void __user *arg);
190 int __fsverity_file_open(struct inode *inode, struct file *filp);
194 int fsverity_ioctl_read_metadata(struct file *filp, const void __user *uarg);
221 static inline int fsverity_ioctl_enable(struct file *filp, in fsverity_ioctl_enable()
229 static inline int fsverity_ioctl_measure(struct file *filp, voi in fsverity_ioctl_measure()
219 fsverity_ioctl_enable(struct file * filp,const void __user * arg) fsverity_ioctl_enable() argument
227 fsverity_ioctl_measure(struct file * filp,void __user * arg) fsverity_ioctl_measure() argument
245 __fsverity_file_open(struct inode * inode,struct file * filp) __fsverity_file_open() argument
252 fsverity_ioctl_read_metadata(struct file * filp,const void __user * uarg) fsverity_ioctl_read_metadata() argument
305 fsverity_file_open(struct inode * inode,struct file * filp) fsverity_file_open() argument
[all...]
/linux/drivers/rapidio/devices/
H A Drio_mport_cdev.c119 struct file *filp; member
341 rio_mport_create_outbound_mapping(struct mport_dev *md, struct file *filp, in rio_mport_create_outbound_mapping() argument
364 map->filp = filp; in rio_mport_create_outbound_mapping()
375 rio_mport_get_outbound_mapping(struct mport_dev *md, struct file *filp, in rio_mport_get_outbound_mapping() argument
401 err = rio_mport_create_outbound_mapping(md, filp, rioid, raddr, in rio_mport_get_outbound_mapping()
407 static int rio_mport_obw_map(struct file *filp, void __user *arg) in rio_mport_obw_map() argument
409 struct mport_cdev_priv *priv = filp->private_data; in rio_mport_obw_map()
421 ret = rio_mport_get_outbound_mapping(data, filp, map.rioid, in rio_mport_obw_map()
441 static int rio_mport_obw_free(struct file *filp, void __user *arg) in rio_mport_obw_free() argument
443 struct mport_cdev_priv *priv = filp->private_data; in rio_mport_obw_free()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-fh.c44 void v4l2_fh_add(struct v4l2_fh *fh, struct file *filp) in v4l2_fh_add() argument
48 filp->private_data = fh; in v4l2_fh_add()
57 int v4l2_fh_open(struct file *filp) in v4l2_fh_open() argument
59 struct video_device *vdev = video_devdata(filp); in v4l2_fh_open()
65 v4l2_fh_add(fh, filp); in v4l2_fh_open()
70 void v4l2_fh_del(struct v4l2_fh *fh, struct file *filp) in v4l2_fh_del() argument
79 filp->private_data = NULL; in v4l2_fh_del()
94 int v4l2_fh_release(struct file *filp) in v4l2_fh_release() argument
96 struct v4l2_fh *fh = file_to_v4l2_fh(filp); in v4l2_fh_release()
99 v4l2_fh_del(fh, filp); in v4l2_fh_release()
/linux/fs/smb/server/
H A Dvfs.c258 saved_cred = override_creds(fp->filp->f_cred); in ksmbd_vfs_stream_read()
259 v_len = ksmbd_vfs_getcasexattr(file_mnt_idmap(fp->filp), in ksmbd_vfs_stream_read()
260 fp->filp->f_path.dentry, in ksmbd_vfs_stream_read()
286 * @filp: the file to apply the lock to
293 static int check_lock_range(struct file *filp, loff_t start, loff_t end,
297 struct file_lock_context *ctx = locks_inode_context(file_inode(filp)); in check_lock_range()
318 if (flock->c.flc_file != filp) { in check_lock_range()
344 struct file *filp = fp->filp; in ksmbd_vfs_read()
346 struct inode *inode = file_inode(filp); in ksmbd_vfs_read()
296 check_lock_range(struct file * filp,loff_t start,loff_t end,unsigned char type) check_lock_range() argument
347 struct file *filp = fp->filp; ksmbd_vfs_read() local
470 struct file *filp; ksmbd_vfs_write() local
752 struct file *filp; ksmbd_vfs_truncate() local
896 ksmbd_vfs_set_fadvise(struct file * filp,__le32 option) ksmbd_vfs_set_fadvise() argument
1010 ksmbd_vfs_unlink(struct file * filp) ksmbd_vfs_unlink() argument
[all...]
/linux/drivers/gpu/drm/
H A Ddrm_file.c281 static void drm_close_helper(struct file *filp) in drm_close_helper() argument
283 struct drm_file *file_priv = filp->private_data; in drm_close_helper()
316 int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument
322 if (filp->f_flags & O_EXCL) in drm_open_helper()
329 if (WARN_ON_ONCE(!(filp->f_op->fop_flags & FOP_UNSIGNED_OFFSET))) in drm_open_helper()
347 filp->private_data = priv; in drm_open_helper()
348 priv->filp = filp; in drm_open_helper()
369 int drm_open(struct inode *inode, struct file *filp) in drm_open() argument
386 filp->f_mapping = dev->anon_inode->i_mapping; in drm_open()
388 retcode = drm_open_helper(filp, minor); in drm_open()
[all …]
H A Ddrm_gem.c188 struct file *filp; in drm_gem_object_init() local
195 filp = shmem_file_setup_with_mnt(huge_mnt, "drm mm object", in drm_gem_object_init()
198 filp = shmem_file_setup("drm mm object", size, flags); in drm_gem_object_init()
200 if (IS_ERR(filp)) in drm_gem_object_init()
201 return PTR_ERR(filp); in drm_gem_object_init()
203 obj->filp = filp; in drm_gem_object_init()
225 obj->filp = NULL; in drm_gem_private_object_init()
392 * @filp: drm file-private structure to use for the handle look up
395 * Removes the GEM handle from the @filp looku
400 drm_gem_handle_delete(struct drm_file * filp,u32 handle) drm_gem_handle_delete() argument
784 objects_lookup(struct drm_file * filp,u32 * handle,int count,struct drm_gem_object ** objs) objects_lookup() argument
833 drm_gem_objects_lookup(struct drm_file * filp,void __user * bo_handles,int count,struct drm_gem_object *** objs_out) drm_gem_objects_lookup() argument
883 drm_gem_object_lookup(struct drm_file * filp,u32 handle) drm_gem_object_lookup() argument
1274 drm_gem_object_lookup_at_offset(struct file * filp,unsigned long start,unsigned long pages) drm_gem_object_lookup_at_offset() argument
1339 drm_gem_get_unmapped_area(struct file * filp,unsigned long uaddr,unsigned long len,unsigned long pgoff,unsigned long flags) drm_gem_get_unmapped_area() argument
1377 drm_gem_mmap(struct file * filp,struct vm_area_struct * vma) drm_gem_mmap() argument
[all...]
/linux/arch/loongarch/mm/
H A Dmmap.c21 static unsigned long arch_get_unmapped_area_common(struct file *filp, in arch_get_unmapped_area_common() argument
50 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_common()
68 if (filp && is_file_hugepages(filp)) in arch_get_unmapped_area_common()
69 info.align_mask = huge_page_mask_align(filp); in arch_get_unmapped_area_common()
95 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr0, in arch_get_unmapped_area() argument
99 return arch_get_unmapped_area_common(filp, in arch_get_unmapped_area()
107 unsigned long arch_get_unmapped_area_topdown(struct file *filp, in arch_get_unmapped_area_topdown() argument
111 return arch_get_unmapped_area_common(filp, in arch_get_unmapped_area_topdown()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_debugfs.c13 static ssize_t ixgbe_dbg_common_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_common_ops_read() argument
17 struct ixgbe_adapter *adapter = filp->private_data; in ixgbe_dbg_common_ops_read()
48 static ssize_t ixgbe_dbg_reg_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_reg_ops_read() argument
51 return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos, in ixgbe_dbg_reg_ops_read()
62 static ssize_t ixgbe_dbg_reg_ops_write(struct file *filp, in ixgbe_dbg_reg_ops_write() argument
66 struct ixgbe_adapter *adapter = filp->private_data; in ixgbe_dbg_reg_ops_write()
131 static ssize_t ixgbe_dbg_netdev_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_netdev_ops_read() argument
134 return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos, in ixgbe_dbg_netdev_ops_read()
145 static ssize_t ixgbe_dbg_netdev_ops_write(struct file *filp, in ixgbe_dbg_netdev_ops_write() argument
149 struct ixgbe_adapter *adapter = filp->private_data; in ixgbe_dbg_netdev_ops_write()
/linux/fs/notify/dnotify/
H A Ddnotify.c151 void dnotify_flush(struct file *filp, fl_owner_t id) in dnotify_flush() argument
160 inode = file_inode(filp); in dnotify_flush()
174 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { in dnotify_flush()
229 fl_owner_t id, int fd, struct file *filp, __u32 mask) in attach_dn() argument
236 if ((odn->dn_owner == id) && (odn->dn_filp == filp)) { in attach_dn()
246 dn->dn_filp = filp; in attach_dn()
259 int fcntl_dirnotify(int fd, struct file *filp, unsigned int arg) in fcntl_dirnotify() argument
281 dnotify_flush(filp, id); in fcntl_dirnotify()
287 inode = file_inode(filp); in fcntl_dirnotify()
299 error = security_path_notify(&filp->f_path, mask, in fcntl_dirnotify()
[all …]
/linux/drivers/firmware/arm_scmi/
H A Draw_mode.c782 static ssize_t scmi_dbg_raw_mode_common_read(struct file *filp, in scmi_dbg_raw_mode_common_read() argument
788 struct scmi_dbg_raw_data *rd = filp->private_data; in scmi_dbg_raw_mode_common_read()
795 filp->f_flags & O_NONBLOCK); in scmi_dbg_raw_mode_common_read()
815 static ssize_t scmi_dbg_raw_mode_common_write(struct file *filp, in scmi_dbg_raw_mode_common_write() argument
821 struct scmi_dbg_raw_data *rd = filp->private_data; in scmi_dbg_raw_mode_common_write()
857 static __poll_t scmi_test_dbg_raw_common_poll(struct file *filp, in scmi_test_dbg_raw_common_poll() argument
862 struct scmi_dbg_raw_data *rd = filp->private_data; in scmi_test_dbg_raw_common_poll()
870 poll_wait(filp, &q->wq, wait); in scmi_test_dbg_raw_common_poll()
880 static ssize_t scmi_dbg_raw_mode_message_read(struct file *filp, in scmi_dbg_raw_mode_message_read() argument
884 return scmi_dbg_raw_mode_common_read(filp, buf, count, ppos, in scmi_dbg_raw_mode_message_read()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_chardev.c197 static int cros_ec_chardev_open(struct inode *inode, struct file *filp) in cros_ec_chardev_poll()
199 struct miscdevice *mdev = filp->private_data; in cros_ec_chardev_read() argument
210 filp->private_data = priv; in cros_ec_chardev_read()
213 nonseekable_open(inode, filp); in cros_ec_chardev_read()
228 static __poll_t cros_ec_chardev_poll(struct file *filp, poll_table *wait) in cros_ec_chardev_read()
230 struct chardev_priv *priv = filp->private_data; in cros_ec_chardev_read()
236 poll_wait(filp, &priv->wait_event, wait); in cros_ec_chardev_read()
244 static ssize_t cros_ec_chardev_read(struct file *filp, char __user *buffer, in cros_ec_chardev_read()
249 struct chardev_priv *priv = filp->private_data; in cros_ec_chardev_read()
261 !(filp in cros_ec_chardev_release()
157 cros_ec_chardev_open(struct inode * inode,struct file * filp) cros_ec_chardev_open() argument
187 cros_ec_chardev_poll(struct file * filp,poll_table * wait) cros_ec_chardev_poll() argument
251 cros_ec_chardev_release(struct inode * inode,struct file * filp) cros_ec_chardev_release() argument
341 cros_ec_chardev_ioctl(struct file * filp,unsigned int cmd,unsigned long arg) cros_ec_chardev_ioctl() argument
[all...]
/linux/drivers/char/xillybus/
H A Dxillybus_core.c690 static ssize_t xillybus_read(struct file *filp, char __user *userbuf, in xillybus_read() argument
698 struct xilly_channel *channel = filp->private_data; in xillybus_read()
834 if (!no_time_left && (filp->f_flags & O_NONBLOCK)) { in xillybus_read()
936 if (filp->f_flags & O_NONBLOCK) in xillybus_read()
1177 static int xillybus_flush(struct file *filp, fl_owner_t id) in xillybus_flush() argument
1179 if (!(filp->f_mode & FMODE_WRITE)) in xillybus_flush()
1182 return xillybus_myflush(filp->private_data, HZ); /* 1 second timeout */ in xillybus_flush()
1201 static ssize_t xillybus_write(struct file *filp, const char __user *userbuf, in xillybus_write() argument
1207 struct xilly_channel *channel = filp->private_data; in xillybus_write()
1385 if (filp->f_flags & O_NONBLOCK) { in xillybus_write()
[all …]
/linux/kernel/sched/
H A Ddebug.c128 sched_feat_write(struct file *filp, const char __user *ubuf, in sched_feat_write() argument
146 inode = file_inode(filp); in sched_feat_write()
160 static int sched_feat_open(struct inode *inode, struct file *filp) in sched_feat_open() argument
162 return single_open(filp, sched_feat_show, NULL); in sched_feat_open()
173 static ssize_t sched_scaling_write(struct file *filp, const char __user *ubuf, in sched_scaling_write() argument
200 static int sched_scaling_open(struct inode *inode, struct file *filp) in sched_scaling_open() argument
202 return single_open(filp, sched_scaling_show, NULL); in sched_scaling_open()
215 sched_cache_enable_write(struct file *filp, const char __user *ubuf, in sched_dynamic_write() argument
241 struct file *filp) in sched_dynamic_show()
243 return single_open(filp, sched_cache_enable_sho in sched_dynamic_show()
263 sched_dynamic_open(struct inode * inode,struct file * filp) sched_dynamic_open() argument
283 sched_verbose_write(struct file * filp,const char __user * ubuf,size_t cnt,loff_t * ppos) sched_verbose_write() argument
317 sched_debug_open(struct inode * inode,struct file * filp) sched_debug_open() argument
337 sched_server_write_common(struct file * filp,const char __user * ubuf,size_t cnt,loff_t * ppos,enum dl_param param,void * server) sched_server_write_common() argument
417 sched_fair_server_runtime_write(struct file * filp,const char __user * ubuf,size_t cnt,loff_t * ppos) sched_fair_server_runtime_write() argument
435 sched_fair_server_runtime_open(struct inode * inode,struct file * filp) sched_fair_server_runtime_open() argument
450 sched_ext_server_runtime_write(struct file * filp,const char __user * ubuf,size_t cnt,loff_t * ppos) sched_ext_server_runtime_write() argument
468 sched_ext_server_runtime_open(struct inode * inode,struct file * filp) sched_ext_server_runtime_open() argument
483 sched_fair_server_period_write(struct file * filp,const char __user * ubuf,size_t cnt,loff_t * ppos) sched_fair_server_period_write() argument
501 sched_fair_server_period_open(struct inode * inode,struct file * filp) sched_fair_server_period_open() argument
516 sched_ext_server_period_write(struct file * filp,const char __user * ubuf,size_t cnt,loff_t * ppos) sched_ext_server_period_write() argument
534 sched_ext_server_period_open(struct inode * inode,struct file * filp) sched_ext_server_period_open() argument
[all...]
/linux/fs/xfs/
H A Dxfs_ioctl.c1040 struct file *filp, in xfs_ioc_setlabel()
1063 error = mnt_want_write_file(filp); in xfs_ioc_setlabel()
1096 mnt_drop_write_file(filp); in xfs_fs_eofblocks_from_user()
1148 struct file *filp, in xfs_ioctl_getset_resblocks()
1152 struct xfs_mount *mp = XFS_I(file_inode(filp))->i_mount; in xfs_ioctl_getset_resblocks()
1166 error = mnt_want_write_file(filp); in xfs_ioctl_getset_resblocks()
1170 mnt_drop_write_file(filp);
1220 struct file *filp, in xfs_file_ioctl()
1224 struct inode *inode = file_inode(filp); in xfs_file_ioctl()
1238 return xfs_ioc_setlabel(filp, m in xfs_file_ioctl()
1026 xfs_ioc_setlabel(struct file * filp,struct xfs_mount * mp,char __user * newlabel) xfs_ioc_setlabel() argument
1134 xfs_ioctl_getset_resblocks(struct file * filp,unsigned int cmd,void __user * arg) xfs_ioctl_getset_resblocks() argument
1206 xfs_file_ioctl(struct file * filp,unsigned int cmd,unsigned long p) xfs_file_ioctl() argument
[all...]
/linux/kernel/power/
H A Dqos.c340 static int cpu_latency_qos_open(struct inode *inode, struct file *filp) in cpu_latency_qos_open() argument
349 filp->private_data = req; in cpu_latency_qos_open()
354 static int cpu_latency_qos_release(struct inode *inode, struct file *filp) in cpu_latency_qos_release() argument
356 struct pm_qos_request *req = filp->private_data; in cpu_latency_qos_release()
358 filp->private_data = NULL; in cpu_latency_qos_release()
366 static ssize_t cpu_latency_qos_read(struct file *filp, char __user *buf, in cpu_latency_qos_read() argument
369 struct pm_qos_request *req = filp->private_data; in cpu_latency_qos_read()
383 static ssize_t cpu_latency_qos_write(struct file *filp, const char __user *buf, in cpu_latency_qos_write() argument
399 cpu_latency_qos_update_request(filp->private_data, value); in cpu_latency_qos_write()
439 static int cpu_wakeup_latency_qos_open(struct inode *inode, struct file *filp) in cpu_wakeup_latency_qos_open() argument
456 cpu_wakeup_latency_qos_release(struct inode * inode,struct file * filp) cpu_wakeup_latency_qos_release() argument
468 cpu_wakeup_latency_qos_read(struct file * filp,char __user * buf,size_t count,loff_t * f_pos) cpu_wakeup_latency_qos_read() argument
476 cpu_wakeup_latency_qos_write(struct file * filp,const char __user * buf,size_t count,loff_t * f_pos) cpu_wakeup_latency_qos_write() argument
[all...]
/linux/drivers/char/ipmi/
H A Dkcs_bmc_cdev_ipmi.c293 static inline struct kcs_bmc_ipmi *to_kcs_bmc(struct file *filp) in to_kcs_bmc() argument
295 return container_of(filp->private_data, struct kcs_bmc_ipmi, miscdev); in to_kcs_bmc()
298 static int kcs_bmc_ipmi_open(struct inode *inode, struct file *filp) in kcs_bmc_ipmi_open() argument
300 struct kcs_bmc_ipmi *priv = to_kcs_bmc(filp); in kcs_bmc_ipmi_open()
305 static __poll_t kcs_bmc_ipmi_poll(struct file *filp, poll_table *wait) in kcs_bmc_ipmi_poll() argument
307 struct kcs_bmc_ipmi *priv = to_kcs_bmc(filp); in kcs_bmc_ipmi_poll()
310 poll_wait(filp, &priv->queue, wait); in kcs_bmc_ipmi_poll()
320 static ssize_t kcs_bmc_ipmi_read(struct file *filp, char __user *buf, in kcs_bmc_ipmi_read() argument
323 struct kcs_bmc_ipmi *priv = to_kcs_bmc(filp); in kcs_bmc_ipmi_read()
328 if (!(filp->f_flags & O_NONBLOCK)) in kcs_bmc_ipmi_read()
[all …]
/linux/drivers/remoteproc/
H A Dremoteproc_debugfs.c42 static ssize_t rproc_coredump_read(struct file *filp, char __user *userbuf, in rproc_coredump_read() argument
45 struct rproc *rproc = filp->private_data; in rproc_coredump_read()
71 static ssize_t rproc_coredump_write(struct file *filp, in rproc_coredump_write() argument
75 struct rproc *rproc = filp->private_data; in rproc_coredump_write()
126 static ssize_t rproc_trace_read(struct file *filp, char __user *userbuf, in rproc_trace_read() argument
129 struct rproc_debug_trace *data = filp->private_data; in rproc_trace_read()
155 static ssize_t rproc_name_read(struct file *filp, char __user *userbuf, in rproc_name_read() argument
158 struct rproc *rproc = filp->private_data; in rproc_name_read()
175 static ssize_t rproc_recovery_read(struct file *filp, char __user *userbuf, in rproc_recovery_read() argument
178 struct rproc *rproc = filp->private_data; in rproc_recovery_read()
[all …]

12345678910>>...22