Home
last modified time | relevance | path

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

123

/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/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 …]
H A Dntb_perf.c1180 static ssize_t perf_dbgfs_read_info(struct file *filep, char __user *ubuf, in perf_dbgfs_read_info() argument
1183 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_read_info()
1263 static ssize_t perf_dbgfs_read_run(struct file *filep, char __user *ubuf, in perf_dbgfs_read_run() argument
1266 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_read_run()
1285 static ssize_t perf_dbgfs_write_run(struct file *filep, const char __user *ubuf, in perf_dbgfs_write_run() argument
1288 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_write_run()
1314 static ssize_t perf_dbgfs_read_tcnt(struct file *filep, char __user *ubuf, in perf_dbgfs_read_tcnt() argument
1317 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_read_tcnt()
1326 static ssize_t perf_dbgfs_write_tcnt(struct file *filep, in perf_dbgfs_write_tcnt() argument
1330 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_write_tcnt()
/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_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()
/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/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/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/vfio/
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()
/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/net/ethernet/broadcom/bnxt/
H A Dbnxt_debugfs.c20 static ssize_t debugfs_dim_read(struct file *filep, in debugfs_dim_read() argument
24 struct dim *dim = filep->private_data; in debugfs_dim_read()
/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 …]
/linux/drivers/gpib/include/
H A Dgpib_proto.h8 int ibopen(struct inode *inode, struct file *filep);
10 long ibioctl(struct file *filep, unsigned int cmd, unsigned long arg);
/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/kernel/
H A Dkcov.c493 static int kcov_mmap(struct file *filep, struct vm_area_struct *vma) in kcov_mmap() argument
526 static int kcov_open(struct inode *inode, struct file *filep) in kcov_open() argument
537 filep->private_data = kcov; in kcov_open()
538 return nonseekable_open(inode, filep); in kcov_open()
541 static int kcov_close(struct inode *inode, struct file *filep) in kcov_close() argument
543 kcov_put(filep->private_data); in kcov_close()
703 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument
713 kcov = filep->private_data; in kcov_ioctl()
/linux/arch/x86/kernel/cpu/sgx/
H A Ddriver.c137 static long sgx_compat_ioctl(struct file *filep, unsigned int cmd, in sgx_compat_ioctl() argument
140 return sgx_ioctl(filep, cmd, arg); in sgx_compat_ioctl()
H A Ddriver.h24 long sgx_ioctl(struct file *filep, unsigned int cmd, unsigned long arg);
/linux/drivers/iommu/iommufd/
H A Dmain.c142 struct file **filep = ((void *)obj) + ops->file_offset; in iommufd_object_abort_and_destroy() local
155 if (*filep) in iommufd_object_abort_and_destroy()
156 __fput_sync(*filep); in iommufd_object_abort_and_destroy()
703 IOMMUFD_FILE_OFFSET(struct iommufd_fault, common.filep, common.obj),
726 IOMMUFD_FILE_OFFSET(struct iommufd_veventq, common.filep, common.obj),
/linux/drivers/scsi/qedf/
H A Dqedf_attr.c106 qedf_sysfs_read_grcdump(struct file *filep, struct kobject *kobj, in qedf_sysfs_read_grcdump() argument
126 qedf_sysfs_write_grcdump(struct file *filep, struct kobject *kobj, in qedf_sysfs_write_grcdump() argument

123