Home
last modified time | relevance | path

Searched refs:filep (Results 1 – 25 of 85) sorted by relevance

1234

/linux/fs/nfs/
H A Dnfs4file.c203 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument
210 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek()
215 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
219 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate() argument
221 struct inode *inode = file_inode(filep); in nfs42_fallocate()
241 return nfs42_proc_deallocate(filep, offset, len); in nfs42_fallocate()
243 return nfs42_proc_zero_range(filep, offset ,len); in nfs42_fallocate()
244 return nfs42_proc_allocate(filep, offset, len); in nfs42_fallocate()
309 struct file *filep, *res; in __nfs42_ssc_open() local
346 filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, O_RDONLY, in __nfs42_ssc_open()
[all …]
H A Dnfs42proc.c27 static void nfs42_set_netaddr(struct file *filep, struct nfs42_netaddr *naddr) in nfs42_set_netaddr() argument
29 struct nfs_client *clp = (NFS_SERVER(file_inode(filep)))->nfs_client; in nfs42_set_netaddr()
46 static int _nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, in _nfs42_proc_fallocate() argument
49 struct inode *inode = file_inode(filep); in _nfs42_proc_fallocate()
101 static int nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, in nfs42_proc_fallocate() argument
104 struct inode *inode = file_inode(filep); in nfs42_proc_fallocate()
110 lock = nfs_get_lock_context(nfs_file_open_context(filep)); in nfs42_proc_fallocate()
122 err = _nfs42_proc_fallocate(msg, filep, lock, offset, len); in nfs42_proc_fallocate()
134 int nfs42_proc_allocate(struct file *filep, loff_t offset, loff_t len) in nfs42_proc_allocate() argument
139 struct inode *inode = file_inode(filep); in nfs42_proc_allocate()
[all …]
/linux/drivers/isdn/mISDN/
H A Dtimerdev.c44 mISDN_open(struct inode *ino, struct file *filep) in mISDN_open() argument
49 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_open()
59 filep->private_data = dev; in mISDN_open()
60 return nonseekable_open(ino, filep); in mISDN_open()
64 mISDN_close(struct inode *ino, struct file *filep) in mISDN_close() argument
66 struct mISDNtimerdev *dev = filep->private_data; in mISDN_close()
71 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_close()
93 mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off) in mISDN_read() argument
95 struct mISDNtimerdev *dev = filep->private_data; in mISDN_read()
102 filep, buf, (int)count, off); in mISDN_read()
[all …]
/linux/drivers/ntb/test/
H A Dntb_tool.c405 static ssize_t tool_port_read(struct file *filep, char __user *ubuf, in tool_port_read() argument
408 struct tool_ctx *tc = filep->private_data; in tool_port_read()
421 static ssize_t tool_peer_port_read(struct file *filep, char __user *ubuf, in tool_peer_port_read() argument
424 struct tool_peer *peer = filep->private_data; in tool_peer_port_read()
462 static ssize_t tool_link_write(struct file *filep, const char __user *ubuf, in tool_link_write() argument
465 struct tool_ctx *tc = filep->private_data; in tool_link_write()
488 static ssize_t tool_peer_link_read(struct file *filep, char __user *ubuf, in tool_peer_link_read() argument
491 struct tool_peer *peer = filep->private_data; in tool_peer_link_read()
509 static ssize_t tool_peer_link_event_write(struct file *filep, in tool_peer_link_event_write() argument
513 struct tool_peer *peer = filep->private_data; in tool_peer_link_event_write()
[all …]
/linux/drivers/iommu/iommufd/
H A Deventq.c124 static ssize_t iommufd_fault_fops_read(struct file *filep, char __user *buf, in iommufd_fault_fops_read() argument
128 struct iommufd_eventq *eventq = filep->private_data; in iommufd_fault_fops_read()
174 static ssize_t iommufd_fault_fops_write(struct file *filep, const char __user *buf, in iommufd_fault_fops_write() argument
178 struct iommufd_eventq *eventq = filep->private_data; in iommufd_fault_fops_write()
300 static ssize_t iommufd_veventq_fops_read(struct file *filep, char __user *buf, in iommufd_veventq_fops_read() argument
303 struct iommufd_eventq *eventq = filep->private_data; in iommufd_veventq_fops_read()
354 static __poll_t iommufd_eventq_fops_poll(struct file *filep, in iommufd_eventq_fops_poll() argument
357 struct iommufd_eventq *eventq = filep->private_data; in iommufd_eventq_fops_poll()
363 poll_wait(filep, &eventq->wait_queue, wait); in iommufd_eventq_fops_poll()
372 static int iommufd_eventq_fops_release(struct inode *inode, struct file *filep) in iommufd_eventq_fops_release() argument
[all …]
/linux/drivers/vfio/pci/pds/
H A Dlm.c32 lm_file->filep = in pds_vfio_get_lm_file()
34 if (IS_ERR(lm_file->filep)) in pds_vfio_get_lm_file()
37 stream_open(lm_file->filep->f_inode, lm_file->filep); in pds_vfio_get_lm_file()
41 get_file(lm_file->filep); in pds_vfio_get_lm_file()
83 fput(lm_file->filep); in pds_vfio_get_lm_file()
98 lm_file->filep->f_pos = 0; in pds_vfio_put_lm_file()
111 fput(lm_file->filep); in pds_vfio_put_lm_file()
167 lm_file->filep->f_pos = 0; in pds_vfio_release_file()
379 return pds_vfio->save_file->filep; in pds_vfio_step_device_state_locked()
393 return pds_vfio->restore_file->filep; in pds_vfio_step_device_state_locked()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c127 static int kfd_open(struct inode *inode, struct file *filep) in kfd_open() argument
149 if (kfd_process_init_cwsr_apu(process, filep)) { in kfd_open()
155 filep->private_data = process; in kfd_open()
163 static int kfd_release(struct inode *inode, struct file *filep) in kfd_release() argument
165 struct kfd_process *process = filep->private_data; in kfd_release()
178 static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p, in kfd_ioctl_get_version() argument
318 static int kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p, in kfd_ioctl_create_queue() argument
553 static int kfd_ioctl_get_queue_wave_state(struct file *filep, in kfd_ioctl_get_queue_wave_state() argument
571 static int kfd_ioctl_set_memory_policy(struct file *filep, in kfd_ioctl_set_memory_policy() argument
626 static int kfd_ioctl_set_trap_handler(struct file *filep, in kfd_ioctl_set_trap_handler() argument
[all …]
H A Dkfd_smi_events.c65 static __poll_t kfd_smi_ev_poll(struct file *filep, in kfd_smi_ev_poll() argument
68 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_poll()
71 poll_wait(filep, &client->wait_queue, wait); in kfd_smi_ev_poll()
81 static ssize_t kfd_smi_ev_read(struct file *filep, char __user *user, in kfd_smi_ev_read() argument
86 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_read()
126 static ssize_t kfd_smi_ev_write(struct file *filep, const char __user *user, in kfd_smi_ev_write() argument
129 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_write()
150 static int kfd_smi_ev_release(struct inode *inode, struct file *filep) in kfd_smi_ev_release() argument
152 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_release()
/linux/kernel/liveupdate/
H A Dluo_session.c203 static int luo_session_release(struct inode *inodep, struct file *filep) in luo_session_release() argument
205 struct luo_session *session = filep->private_data; in luo_session_release()
324 static long luo_session_ioctl(struct file *filep, unsigned int cmd, in luo_session_ioctl() argument
327 struct luo_session *session = filep->private_data; in luo_session_ioctl()
367 static int luo_session_getfile(struct luo_session *session, struct file **filep) in luo_session_getfile() argument
378 *filep = file; in luo_session_getfile()
383 int luo_session_create(const char *name, struct file **filep) in luo_session_create() argument
397 err = luo_session_getfile(session, filep); in luo_session_create()
411 int luo_session_retrieve(const char *name, struct file **filep) in luo_session_retrieve() argument
434 err = luo_session_getfile(session, filep); in luo_session_retrieve()
H A Dluo_internal.h80 int luo_session_create(const char *name, struct file **filep);
81 int luo_session_retrieve(const char *name, struct file **filep);
96 struct file **filep);
H A Dluo_core.c340 static int luo_open(struct inode *inodep, struct file *filep) in luo_open()
342 struct luo_device_state *ldev = container_of(filep->private_data, in luo_open()
358 static int luo_release(struct inode *inodep, struct file *filep) in luo_release()
360 struct luo_device_state *ldev = container_of(filep->private_data, in luo_release()
397 static long luo_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in luo_ioctl()
336 luo_open(struct inode * inodep,struct file * filep) luo_open() argument
354 luo_release(struct inode * inodep,struct file * filep) luo_release() argument
393 luo_ioctl(struct file * filep,unsigned int cmd,unsigned long arg) luo_ioctl() argument
/linux/fs/smb/client/
H A Dioctl.c25 static long cifs_ioctl_query_info(unsigned int xid, struct file *filep, in cifs_ioctl_query_info() argument
28 struct inode *inode = file_inode(filep); in cifs_ioctl_query_info()
31 struct dentry *dentry = filep->f_path.dentry; in cifs_ioctl_query_info()
59 filep->private_data ? 0 : 1, p); in cifs_ioctl_query_info()
348 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) in cifs_ioctl() argument
350 struct inode *inode = file_inode(filep); in cifs_ioctl()
354 struct cifsFileInfo *pSMBFile = filep->private_data; in cifs_ioctl()
436 rc = cifs_ioctl_copychunk(xid, filep, arg); in cifs_ioctl()
439 rc = cifs_ioctl_query_info(xid, filep, arg); in cifs_ioctl()
556 filep, (void __user *)arg, in cifs_ioctl()
[all …]
/linux/drivers/misc/uacce/
H A Duacce.c73 static long uacce_fops_unl_ioctl(struct file *filep, in uacce_fops_unl_ioctl() argument
76 struct uacce_queue *q = filep->private_data; in uacce_fops_unl_ioctl()
111 static long uacce_fops_compat_ioctl(struct file *filep, in uacce_fops_compat_ioctl() argument
116 return uacce_fops_unl_ioctl(filep, cmd, arg); in uacce_fops_compat_ioctl()
151 static int uacce_fops_open(struct inode *inode, struct file *filep) in uacce_fops_open() argument
185 filep->private_data = q; in uacce_fops_open()
187 q->mapping = filep->f_mapping; in uacce_fops_open()
202 static int uacce_fops_release(struct inode *inode, struct file *filep) in uacce_fops_release() argument
204 struct uacce_queue *q = filep->private_data; in uacce_fops_release()
241 static int uacce_fops_mmap(struct file *filep, struct vm_area_struct *vma) in uacce_fops_mmap() argument
[all …]
/linux/drivers/vfio/
H A Dgroup.c253 struct file *filep; in vfio_device_open_file() local
268 filep = anon_inode_getfile_fmode("[vfio-device]", &vfio_device_fops, in vfio_device_open_file()
270 if (IS_ERR(filep)) { in vfio_device_open_file()
271 ret = PTR_ERR(filep); in vfio_device_open_file()
279 filep->f_mapping = device->inode->i_mapping; in vfio_device_open_file()
288 return filep; in vfio_device_open_file()
359 static long vfio_group_fops_unl_ioctl(struct file *filep, in vfio_group_fops_unl_ioctl() argument
362 struct vfio_group *group = filep->private_data; in vfio_group_fops_unl_ioctl()
406 static int vfio_group_fops_open(struct inode *inode, struct file *filep) in vfio_group_fops_open() argument
440 group->opened_file = filep; in vfio_group_fops_open()
[all …]
H A Dcontainer.c327 static long vfio_fops_unl_ioctl(struct file *filep, in vfio_fops_unl_ioctl() argument
330 struct vfio_container *container = filep->private_data; in vfio_fops_unl_ioctl()
359 static int vfio_fops_open(struct inode *inode, struct file *filep) in vfio_fops_open() argument
371 filep->private_data = container; in vfio_fops_open()
376 static int vfio_fops_release(struct inode *inode, struct file *filep) in vfio_fops_release() argument
378 struct vfio_container *container = filep->private_data; in vfio_fops_release()
380 filep->private_data = NULL; in vfio_fops_release()
H A Dvfio.h239 struct vfio_container *vfio_container_from_file(struct file *filep);
260 vfio_container_from_file(struct file *filep) in vfio_container_from_file() argument
377 int vfio_device_fops_cdev_open(struct inode *inode, struct file *filep);
399 struct file *filep) in vfio_device_fops_cdev_open() argument
/linux/drivers/uio/
H A Duio.c476 static int uio_open(struct inode *inode, struct file *filep) in uio_open() argument
505 filep->private_data = listener; in uio_open()
535 static int uio_fasync(int fd, struct file *filep, int on) in uio_fasync() argument
537 struct uio_listener *listener = filep->private_data; in uio_fasync()
540 return fasync_helper(fd, filep, on, &idev->async_queue); in uio_fasync()
543 static int uio_release(struct inode *inode, struct file *filep) in uio_release() argument
546 struct uio_listener *listener = filep->private_data; in uio_release()
560 static __poll_t uio_poll(struct file *filep, poll_table *wait) in uio_poll() argument
562 struct uio_listener *listener = filep->private_data; in uio_poll()
574 poll_wait(filep, &idev->wait, wait); in uio_poll()
[all …]
/linux/include/linux/
H A Dnfs_ssc.h21 void (*sco_close)(struct file *filep);
51 static inline void nfs42_ssc_close(struct file *filep) in nfs42_ssc_close() argument
54 (*nfs_ssc_client_tbl.ssc_nfs4_ops->sco_close)(filep); in nfs42_ssc_close()
/linux/tools/power/x86/intel-speed-select/
H A Disst-core-tpmi.c576 FILE *filep; in _set_uncore_min_max() local
591 filep = fopen(buffer, "r"); in _set_uncore_min_max()
592 if (!filep) in _set_uncore_min_max()
595 ret = fscanf(filep, "%u", &tmp_id); in _set_uncore_min_max()
596 fclose(filep); in _set_uncore_min_max()
607 filep = fopen(buffer, "r"); in _set_uncore_min_max()
608 if (!filep) in _set_uncore_min_max()
611 ret = fscanf(filep, "%u", &tmp_id); in _set_uncore_min_max()
612 fclose(filep); in _set_uncore_min_max()
628 filep = fopen(buffer, "w"); in _set_uncore_min_max()
[all …]
/linux/drivers/bus/fsl-mc/
H A Dfsl-mc-uapi.c477 static int fsl_mc_uapi_dev_open(struct inode *inode, struct file *filep) in fsl_mc_uapi_dev_open() argument
490 mc_uapi = container_of(filep->private_data, struct fsl_mc_uapi, misc); in fsl_mc_uapi_dev_open()
511 filep->private_data = priv_data; in fsl_mc_uapi_dev_open()
524 static int fsl_mc_uapi_dev_release(struct inode *inode, struct file *filep) in fsl_mc_uapi_dev_release() argument
530 priv_data = filep->private_data; in fsl_mc_uapi_dev_release()
541 kfree(filep->private_data); in fsl_mc_uapi_dev_release()
542 filep->private_data = NULL; in fsl_mc_uapi_dev_release()
/linux/drivers/iio/
H A Dindustrialio-event.c99 static __poll_t iio_event_poll(struct file *filep, in iio_event_poll() argument
102 struct iio_dev *indio_dev = filep->private_data; in iio_event_poll()
110 poll_wait(filep, &ev_int->wait, wait); in iio_event_poll()
118 static ssize_t iio_event_chrdev_read(struct file *filep, in iio_event_chrdev_read() argument
123 struct iio_dev *indio_dev = filep->private_data; in iio_event_chrdev_read()
137 if (filep->f_flags & O_NONBLOCK) in iio_event_chrdev_read()
163 if (copied == 0 && (filep->f_flags & O_NONBLOCK)) in iio_event_chrdev_read()
171 static int iio_event_chrdev_release(struct inode *inode, struct file *filep) in iio_event_chrdev_release() argument
173 struct iio_dev *indio_dev = filep->private_data; in iio_event_chrdev_release()
/linux/drivers/gpu/drm/
H A Ddrm_debugfs_crc.c196 static int crtc_crc_open(struct inode *inode, struct file *filep) in crtc_crc_open() argument
259 static int crtc_crc_release(struct inode *inode, struct file *filep) in crtc_crc_release() argument
261 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_release()
285 static ssize_t crtc_crc_read(struct file *filep, char __user *user_buf, in crtc_crc_read() argument
288 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_read()
303 if (filep->f_flags & O_NONBLOCK) { in crtc_crc_read()
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_debugfs.c113 static int fm10k_dbg_desc_open(struct inode *inode, struct file *filep) in fm10k_dbg_desc_open() argument
125 err = seq_open(filep, desc_seq_ops); in fm10k_dbg_desc_open()
129 ((struct seq_file *)filep->private_data)->private = ring; in fm10k_dbg_desc_open()
/linux/drivers/gpib/common/
H A Dgpib_os.c37 static int open_dev_ioctl(struct file *filep, struct gpib_board *board, unsigned long arg);
38 static int close_dev_ioctl(struct file *filep, struct gpib_board *board, unsigned long arg);
527 int ibopen(struct inode *inode, struct file *filep) in ibopen() argument
540 filep->private_data = kmalloc_obj(struct gpib_file_private); in ibopen()
541 if (!filep->private_data) in ibopen()
544 priv = filep->private_data; in ibopen()
545 init_gpib_file_private((struct gpib_file_private *)filep->private_data); in ibopen()
565 int ibclose(struct inode *inode, struct file *filep) in ibclose() argument
569 struct gpib_file_private *priv = filep->private_data; in ibclose()
604 kfree(filep->private_data); in ibclose()
[all …]
/linux/tools/hv/
H A Dhv_kvp_daemon.c160 FILE *filep; in kvp_update_file() local
168 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file()
169 if (!filep) { in kvp_update_file()
177 kvp_file_info[pool].num_records, filep); in kvp_update_file()
179 if (ferror(filep) || fclose(filep)) { in kvp_update_file()
204 FILE *filep; in kvp_update_mem_state() local
213 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state()
214 if (!filep) { in kvp_update_mem_state()
224 filep); in kvp_update_mem_state()
226 if (ferror(filep)) { in kvp_update_mem_state()
[all …]

1234