Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/isdn/mISDN/
A Dtimerdev.c44 mISDN_open(struct inode *ino, struct file *filep) in mISDN_open() argument
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()
95 struct mISDNtimerdev *dev = filep->private_data; in mISDN_read()
102 filep, buf, (int)count, off); in mISDN_read()
110 if (filep->f_flags & O_NONBLOCK) in mISDN_read()
136 mISDN_poll(struct file *filep, poll_table *wait) in mISDN_poll() argument
144 poll_wait(filep, &dev->wait, wait); in mISDN_poll()
[all …]
/linux-6.3-rc2/fs/nfs/
A Dnfs4file.c215 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
221 struct inode *inode = file_inode(filep); in nfs42_fallocate()
236 return nfs42_proc_allocate(filep, offset, len); in nfs42_fallocate()
320 struct file *filep, *res; in __nfs42_ssc_open() local
359 if (IS_ERR(filep)) { in __nfs42_ssc_open()
360 res = ERR_CAST(filep); in __nfs42_ssc_open()
366 flags_to_mode(filep->f_flags), filep); in __nfs42_ssc_open()
387 nfs_file_set_open_context(filep, ctx); in __nfs42_ssc_open()
390 file_ra_state_init(&filep->f_ra, filep->f_mapping->host->i_mapping); in __nfs42_ssc_open()
391 res = filep; in __nfs42_ssc_open()
[all …]
A Dnfs42proc.c47 struct inode *inode = file_inode(filep); in _nfs42_proc_fallocate()
101 struct inode *inode = file_inode(filep); in nfs42_proc_fallocate()
107 lock = nfs_get_lock_context(nfs_file_open_context(filep)); in nfs42_proc_fallocate()
136 struct inode *inode = file_inode(filep); in nfs42_proc_allocate()
144 err = nfs42_proc_fallocate(&msg, filep, offset, len); in nfs42_proc_allocate()
157 struct inode *inode = file_inode(filep); in nfs42_proc_deallocate()
165 err = nfs42_proc_fallocate(&msg, filep, offset, len); in nfs42_proc_deallocate()
660 static loff_t _nfs42_proc_llseek(struct file *filep, in _nfs42_proc_llseek() argument
663 struct inode *inode = file_inode(filep); in _nfs42_proc_llseek()
720 exception.inode = file_inode(filep); in nfs42_proc_llseek()
[all …]
/linux-6.3-rc2/drivers/ntb/test/
A Dntb_tool.c415 struct tool_ctx *tc = filep->private_data; in tool_port_read()
472 struct tool_ctx *tc = filep->private_data; in tool_link_write()
1033 struct tool_ctx *tc = filep->private_data; in tool_db_read()
1041 struct tool_ctx *tc = filep->private_data; in tool_db_write()
1054 struct tool_ctx *tc = filep->private_data; in tool_db_valid_mask_read()
1066 struct tool_ctx *tc = filep->private_data; in tool_db_mask_read()
1074 struct tool_ctx *tc = filep->private_data; in tool_db_mask_write()
1087 struct tool_ctx *tc = filep->private_data; in tool_peer_db_read()
1095 struct tool_ctx *tc = filep->private_data; in tool_peer_db_write()
1108 struct tool_ctx *tc = filep->private_data; in tool_peer_db_mask_read()
[all …]
/linux-6.3-rc2/drivers/vfio/
A Dgroup.c221 struct file *filep; in vfio_device_open_file() local
234 if (IS_ERR(filep)) { in vfio_device_open_file()
235 ret = PTR_ERR(filep); in vfio_device_open_file()
253 return filep; in vfio_device_open_file()
265 struct file *filep; in vfio_group_ioctl_get_device_fd() local
286 if (IS_ERR(filep)) { in vfio_group_ioctl_get_device_fd()
287 ret = PTR_ERR(filep); in vfio_group_ioctl_get_device_fd()
291 fd_install(fdno, filep); in vfio_group_ioctl_get_device_fd()
389 group->opened_file = filep; in vfio_group_fops_open()
390 filep->private_data = group; in vfio_group_fops_open()
[all …]
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()
A Dvfio_main.c517 static int vfio_device_fops_release(struct inode *inode, struct file *filep) in vfio_device_fops_release() argument
519 struct vfio_device *device = filep->private_data; in vfio_device_fops_release()
1086 static long vfio_device_fops_unl_ioctl(struct file *filep, in vfio_device_fops_unl_ioctl() argument
1089 struct vfio_device *device = filep->private_data; in vfio_device_fops_unl_ioctl()
1113 static ssize_t vfio_device_fops_read(struct file *filep, char __user *buf, in vfio_device_fops_read() argument
1116 struct vfio_device *device = filep->private_data; in vfio_device_fops_read()
1124 static ssize_t vfio_device_fops_write(struct file *filep, in vfio_device_fops_write() argument
1128 struct vfio_device *device = filep->private_data; in vfio_device_fops_write()
1136 static int vfio_device_fops_mmap(struct file *filep, struct vm_area_struct *vma) in vfio_device_fops_mmap() argument
1138 struct vfio_device *device = filep->private_data; in vfio_device_fops_mmap()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A Dkfd_smi_events.c64 static __poll_t kfd_smi_ev_poll(struct file *filep, in kfd_smi_ev_poll() argument
67 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_poll()
70 poll_wait(filep, &client->wait_queue, wait); in kfd_smi_ev_poll()
80 static ssize_t kfd_smi_ev_read(struct file *filep, char __user *user, in kfd_smi_ev_read() argument
85 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_read()
125 static ssize_t kfd_smi_ev_write(struct file *filep, const char __user *user, in kfd_smi_ev_write() argument
128 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_write()
149 static int kfd_smi_ev_release(struct inode *inode, struct file *filep) in kfd_smi_ev_release() argument
151 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_release()
A Dkfd_chardev.c145 process = kfd_create_process(filep); in kfd_open()
157 filep->private_data = process; in kfd_open()
2462 static int criu_restore(struct file *filep, in criu_restore() argument
2542 static int criu_resume(struct file *filep, in criu_resume() argument
2636 ret = criu_process_info(filep, p, args); in kfd_ioctl_criu()
2639 ret = criu_checkpoint(filep, p, args); in kfd_ioctl_criu()
2642 ret = criu_unpause(filep, p, args); in kfd_ioctl_criu()
2645 ret = criu_restore(filep, p, args); in kfd_ioctl_criu()
2648 ret = criu_resume(filep, p, args); in kfd_ioctl_criu()
2810 process = filep->private_data; in kfd_ioctl()
[all …]
/linux-6.3-rc2/fs/cifs/
A Dioctl.c26 static long cifs_ioctl_query_info(unsigned int xid, struct file *filep, in cifs_ioctl_query_info() argument
29 struct inode *inode = file_inode(filep); in cifs_ioctl_query_info()
32 struct dentry *dentry = filep->f_path.dentry; in cifs_ioctl_query_info()
60 filep->private_data ? 0 : 1, p); in cifs_ioctl_query_info()
313 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) in cifs_ioctl() argument
315 struct inode *inode = file_inode(filep); in cifs_ioctl()
319 struct cifsFileInfo *pSMBFile = filep->private_data; in cifs_ioctl()
392 rc = cifs_ioctl_copychunk(xid, filep, arg); in cifs_ioctl()
395 rc = cifs_ioctl_query_info(xid, filep, arg); in cifs_ioctl()
487 filep, (void __user *)arg, in cifs_ioctl()
[all …]
/linux-6.3-rc2/include/linux/
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-6.3-rc2/drivers/uio/
A Duio.c490 filep->private_data = listener; in uio_open()
520 static int uio_fasync(int fd, struct file *filep, int on) in uio_fasync() argument
522 struct uio_listener *listener = filep->private_data; in uio_fasync()
525 return fasync_helper(fd, filep, on, &idev->async_queue); in uio_fasync()
531 struct uio_listener *listener = filep->private_data; in uio_release()
547 struct uio_listener *listener = filep->private_data; in uio_poll()
559 poll_wait(filep, &idev->wait, wait); in uio_poll()
568 struct uio_listener *listener = filep->private_data; in uio_read()
602 if (filep->f_flags & O_NONBLOCK) { in uio_read()
623 struct uio_listener *listener = filep->private_data; in uio_write()
[all …]
/linux-6.3-rc2/drivers/misc/uacce/
A Duacce.c56 static long uacce_fops_unl_ioctl(struct file *filep, in uacce_fops_unl_ioctl() argument
59 struct uacce_queue *q = filep->private_data; in uacce_fops_unl_ioctl()
94 static long uacce_fops_compat_ioctl(struct file *filep, in uacce_fops_compat_ioctl() argument
99 return uacce_fops_unl_ioctl(filep, cmd, arg); in uacce_fops_compat_ioctl()
134 static int uacce_fops_open(struct inode *inode, struct file *filep) in uacce_fops_open() argument
168 filep->private_data = q; in uacce_fops_open()
185 static int uacce_fops_release(struct inode *inode, struct file *filep) in uacce_fops_release() argument
187 struct uacce_queue *q = filep->private_data; in uacce_fops_release()
215 static int uacce_fops_mmap(struct file *filep, struct vm_area_struct *vma) in uacce_fops_mmap() argument
217 struct uacce_queue *q = filep->private_data; in uacce_fops_mmap()
/linux-6.3-rc2/drivers/bus/fsl-mc/
A Dfsl-mc-uapi.c470 static int fsl_mc_uapi_dev_open(struct inode *inode, struct file *filep) in fsl_mc_uapi_dev_open() argument
483 mc_uapi = container_of(filep->private_data, struct fsl_mc_uapi, misc); in fsl_mc_uapi_dev_open()
504 filep->private_data = priv_data; in fsl_mc_uapi_dev_open()
517 static int fsl_mc_uapi_dev_release(struct inode *inode, struct file *filep) in fsl_mc_uapi_dev_release() argument
523 priv_data = filep->private_data; in fsl_mc_uapi_dev_release()
534 kfree(filep->private_data); in fsl_mc_uapi_dev_release()
535 filep->private_data = NULL; in fsl_mc_uapi_dev_release()
/linux-6.3-rc2/drivers/iio/
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-6.3-rc2/drivers/gpu/drm/
A Ddrm_debugfs_crc.c195 static int crtc_crc_open(struct inode *inode, struct file *filep) in crtc_crc_open() argument
258 static int crtc_crc_release(struct inode *inode, struct file *filep) in crtc_crc_release() argument
260 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_release()
284 static ssize_t crtc_crc_read(struct file *filep, char __user *user_buf, in crtc_crc_read() argument
287 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_read()
302 if (filep->f_flags & O_NONBLOCK) { in crtc_crc_read()
/linux-6.3-rc2/tools/hv/
A Dhv_kvp_daemon.c147 FILE *filep; in kvp_update_file() local
155 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file()
156 if (!filep) { in kvp_update_file()
164 kvp_file_info[pool].num_records, filep); in kvp_update_file()
166 if (ferror(filep) || fclose(filep)) { in kvp_update_file()
177 FILE *filep; in kvp_update_mem_state() local
187 if (!filep) { in kvp_update_mem_state()
197 filep); in kvp_update_mem_state()
199 if (ferror(filep)) { in kvp_update_mem_state()
207 if (!feof(filep)) { in kvp_update_mem_state()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/fm10k/
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-6.3-rc2/drivers/net/ethernet/broadcom/bnxt/
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-6.3-rc2/tools/power/x86/intel-speed-select/
A Disst-config.c171 if (!filep) in fopen_or_exit()
174 return filep; in fopen_or_exit()
182 FILE *filep; in parse_int_file() local
192 if (!filep) in parse_int_file()
197 fclose(filep); in parse_int_file()
566 FILE *filep; in set_max_cpu_num() local
577 if (filep) in set_max_cpu_num()
581 if (!filep) { in set_max_cpu_num()
971 FILE *filep; in isst_print_extended_platform_info() local
980 if (filep) in isst_print_extended_platform_info()
[all …]
/linux-6.3-rc2/kernel/
A Dkcov.c476 static int kcov_mmap(struct file *filep, struct vm_area_struct *vma) in kcov_mmap() argument
507 static int kcov_open(struct inode *inode, struct file *filep) in kcov_open() argument
518 filep->private_data = kcov; in kcov_open()
519 return nonseekable_open(inode, filep); in kcov_open()
522 static int kcov_close(struct inode *inode, struct file *filep) in kcov_close() argument
524 kcov_put(filep->private_data); in kcov_close()
680 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument
690 kcov = filep->private_data; in kcov_ioctl()
/linux-6.3-rc2/drivers/iommu/iommufd/
A Dselftest.c503 struct file *filep) in iommufd_test_staccess_release() argument
505 struct selftest_access *staccess = filep->private_data; in iommufd_test_staccess_release()
532 struct file *filep; in iommufd_test_alloc_access() local
540 filep = anon_inode_getfile("[iommufd_test_staccess]", in iommufd_test_alloc_access()
543 if (IS_ERR(filep)) { in iommufd_test_alloc_access()
545 return ERR_CAST(filep); in iommufd_test_alloc_access()
547 staccess->file = filep; in iommufd_test_alloc_access()
/linux-6.3-rc2/arch/x86/kernel/cpu/sgx/
A Ddriver.c120 static long sgx_compat_ioctl(struct file *filep, unsigned int cmd, in sgx_compat_ioctl() argument
123 return sgx_ioctl(filep, cmd, arg); in sgx_compat_ioctl()
A Ddriver.h25 long sgx_ioctl(struct file *filep, unsigned int cmd, unsigned long arg);
/linux-6.3-rc2/drivers/scsi/qedf/
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

Completed in 62 milliseconds

123