| /linux-6.15/drivers/isdn/mISDN/ |
| H A D | timerdev.c | 44 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.15/fs/nfs/ |
| H A D | nfs4file.c | 216 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek() 222 struct inode *inode = file_inode(filep); in nfs42_fallocate() 237 return nfs42_proc_allocate(filep, offset, len); in nfs42_fallocate() 321 struct file *filep, *res; in __nfs42_ssc_open() local 360 if (IS_ERR(filep)) { in __nfs42_ssc_open() 361 res = ERR_CAST(filep); in __nfs42_ssc_open() 367 flags_to_mode(filep->f_flags), filep); in __nfs42_ssc_open() 388 nfs_file_set_open_context(filep, ctx); in __nfs42_ssc_open() 391 file_ra_state_init(&filep->f_ra, filep->f_mapping->host->i_mapping); in __nfs42_ssc_open() 392 res = filep; in __nfs42_ssc_open() [all …]
|
| H A D | nfs42proc.c | 49 struct inode *inode = file_inode(filep); in _nfs42_proc_fallocate() 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() 139 struct inode *inode = file_inode(filep); in nfs42_proc_allocate() 147 err = nfs42_proc_fallocate(&msg, filep, offset, len); in nfs42_proc_allocate() 160 struct inode *inode = file_inode(filep); in nfs42_proc_deallocate() 168 err = nfs42_proc_fallocate(&msg, filep, offset, len); in nfs42_proc_deallocate() 814 static loff_t _nfs42_proc_llseek(struct file *filep, in _nfs42_proc_llseek() argument 817 struct inode *inode = file_inode(filep); in _nfs42_proc_llseek() 874 exception.inode = file_inode(filep); in nfs42_proc_llseek() [all …]
|
| /linux-6.15/drivers/ntb/test/ |
| H A D | ntb_tool.c | 408 struct tool_ctx *tc = filep->private_data; in tool_port_read() 465 struct tool_ctx *tc = filep->private_data; in tool_link_write() 1028 struct tool_ctx *tc = filep->private_data; in tool_db_read() 1036 struct tool_ctx *tc = filep->private_data; in tool_db_write() 1049 struct tool_ctx *tc = filep->private_data; in tool_db_valid_mask_read() 1061 struct tool_ctx *tc = filep->private_data; in tool_db_mask_read() 1069 struct tool_ctx *tc = filep->private_data; in tool_db_mask_write() 1082 struct tool_ctx *tc = filep->private_data; in tool_peer_db_read() 1090 struct tool_ctx *tc = filep->private_data; in tool_peer_db_write() 1103 struct tool_ctx *tc = filep->private_data; in tool_peer_db_mask_read() [all …]
|
| /linux-6.15/drivers/iommu/iommufd/ |
| H A D | eventq.c | 174 struct iommufd_eventq *eventq = filep->private_data; in iommufd_fault_fops_read() 409 poll_wait(filep, &eventq->wait_queue, wait); in iommufd_eventq_fops_poll() 441 struct file *filep; in iommufd_eventq_init() local 449 if (IS_ERR(filep)) in iommufd_eventq_init() 450 return PTR_ERR(filep); in iommufd_eventq_init() 454 eventq->filep = filep; in iommufd_eventq_init() 459 fput(filep); in iommufd_eventq_init() 499 fd_install(fdno, fault->common.filep); in iommufd_fault_alloc() 504 fput(fault->common.filep); in iommufd_fault_alloc() 586 fd_install(fdno, veventq->common.filep); in iommufd_veventq_alloc() [all …]
|
| /linux-6.15/drivers/vfio/ |
| H A D | group.c | 254 struct file *filep; in vfio_device_open_file() local 271 if (IS_ERR(filep)) { in vfio_device_open_file() 272 ret = PTR_ERR(filep); in vfio_device_open_file() 289 return filep; in vfio_device_open_file() 303 struct file *filep; in vfio_group_ioctl_get_device_fd() local 324 if (IS_ERR(filep)) { in vfio_group_ioctl_get_device_fd() 325 ret = PTR_ERR(filep); in vfio_group_ioctl_get_device_fd() 329 fd_install(fdno, filep); in vfio_group_ioctl_get_device_fd() 459 group->opened_file = filep; in vfio_group_fops_open() 460 filep->private_data = group; in vfio_group_fops_open() [all …]
|
| H A D | container.c | 327 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 D | vfio.h | 239 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-6.15/drivers/vfio/pci/pds/ |
| H A D | lm.c | 32 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() 168 lm_file->filep->f_pos = 0; in pds_vfio_release_file() 380 return pds_vfio->save_file->filep; in pds_vfio_step_device_state_locked() 394 return pds_vfio->restore_file->filep; in pds_vfio_step_device_state_locked()
|
| /linux-6.15/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_smi_events.c | 65 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()
|
| H A D | kfd_chardev.c | 156 filep->private_data = process; in kfd_open() 2562 static int criu_restore(struct file *filep, in criu_restore() argument 2618 static int criu_unpause(struct file *filep, in criu_unpause() argument 2642 static int criu_resume(struct file *filep, in criu_resume() argument 2736 ret = criu_process_info(filep, p, args); in kfd_ioctl_criu() 2739 ret = criu_checkpoint(filep, p, args); in kfd_ioctl_criu() 2742 ret = criu_unpause(filep, p, args); in kfd_ioctl_criu() 2745 ret = criu_restore(filep, p, args); in kfd_ioctl_criu() 2748 ret = criu_resume(filep, p, args); in kfd_ioctl_criu() 3281 process = filep->private_data; in kfd_ioctl() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | nfs_ssc.h | 21 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.15/fs/smb/client/ |
| H A D | ioctl.c | 26 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() 349 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) in cifs_ioctl() argument 351 struct inode *inode = file_inode(filep); in cifs_ioctl() 355 struct cifsFileInfo *pSMBFile = filep->private_data; in cifs_ioctl() 437 rc = cifs_ioctl_copychunk(xid, filep, arg); in cifs_ioctl() 440 rc = cifs_ioctl_query_info(xid, filep, arg); in cifs_ioctl() 557 filep, (void __user *)arg, in cifs_ioctl() [all …]
|
| /linux-6.15/drivers/misc/uacce/ |
| H A D | uacce.c | 59 static long uacce_fops_unl_ioctl(struct file *filep, in uacce_fops_unl_ioctl() argument 62 struct uacce_queue *q = filep->private_data; in uacce_fops_unl_ioctl() 97 static long uacce_fops_compat_ioctl(struct file *filep, in uacce_fops_compat_ioctl() argument 102 return uacce_fops_unl_ioctl(filep, cmd, arg); in uacce_fops_compat_ioctl() 137 static int uacce_fops_open(struct inode *inode, struct file *filep) in uacce_fops_open() argument 171 filep->private_data = q; in uacce_fops_open() 173 q->mapping = filep->f_mapping; in uacce_fops_open() 188 static int uacce_fops_release(struct inode *inode, struct file *filep) in uacce_fops_release() argument 190 struct uacce_queue *q = filep->private_data; in uacce_fops_release() 221 static int uacce_fops_mmap(struct file *filep, struct vm_area_struct *vma) in uacce_fops_mmap() argument [all …]
|
| /linux-6.15/drivers/fsi/ |
| H A D | i2cr-scom.c | 35 static ssize_t i2cr_scom_read(struct file *filep, char __user *buf, size_t len, loff_t *offset) in i2cr_scom_read() argument 37 struct i2cr_scom *scom = filep->private_data; in i2cr_scom_read() 55 static ssize_t i2cr_scom_write(struct file *filep, const char __user *buf, size_t len, in i2cr_scom_write() argument 58 struct i2cr_scom *scom = filep->private_data; in i2cr_scom_write()
|
| /linux-6.15/drivers/uio/ |
| H A D | uio.c | 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() 546 struct uio_listener *listener = filep->private_data; in uio_release() 562 struct uio_listener *listener = filep->private_data; in uio_poll() 574 poll_wait(filep, &idev->wait, wait); in uio_poll() 583 struct uio_listener *listener = filep->private_data; in uio_read() 617 if (filep->f_flags & O_NONBLOCK) { in uio_read() 638 struct uio_listener *listener = filep->private_data; in uio_write() [all …]
|
| /linux-6.15/tools/power/x86/intel-speed-select/ |
| H A D | isst-core-tpmi.c | 536 FILE *filep; in _set_uncore_min_max() local 551 filep = fopen(buffer, "r"); in _set_uncore_min_max() 552 if (!filep) in _set_uncore_min_max() 556 fclose(filep); in _set_uncore_min_max() 567 filep = fopen(buffer, "r"); in _set_uncore_min_max() 568 if (!filep) in _set_uncore_min_max() 572 fclose(filep); in _set_uncore_min_max() 588 filep = fopen(buffer, "w"); in _set_uncore_min_max() 589 if (!filep) in _set_uncore_min_max() 592 fprintf(filep, "%d\n", freq); in _set_uncore_min_max() [all …]
|
| /linux-6.15/drivers/bus/fsl-mc/ |
| H A D | fsl-mc-uapi.c | 470 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.15/drivers/iio/ |
| H A D | industrialio-event.c | 99 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.15/drivers/gpu/drm/ |
| H A D | drm_debugfs_crc.c | 195 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.15/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_debugfs.c | 113 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.15/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_debugfs.c | 20 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.15/drivers/staging/gpib/common/ |
| H A D | gpib_os.c | 521 int ibopen(struct inode *inode, struct file *filep) in ibopen() argument 535 if (!filep->private_data) in ibopen() 538 priv = filep->private_data; in ibopen() 559 int ibclose(struct inode *inode, struct file *filep) in ibclose() argument 563 gpib_file_private_t *priv = filep->private_data; in ibclose() 598 kfree(filep->private_data); in ibclose() 599 filep->private_data = NULL; in ibclose() 609 gpib_file_private_t *file_priv = filep->private_data; in ibioctl() 699 retval = close_dev_ioctl(filep, board, arg); in ibioctl() 702 retval = open_dev_ioctl(filep, board, arg); in ibioctl() [all …]
|
| /linux-6.15/tools/hv/ |
| H A D | hv_kvp_daemon.c | 159 FILE *filep; in kvp_update_file() local 167 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file() 168 if (!filep) { in kvp_update_file() 176 kvp_file_info[pool].num_records, filep); in kvp_update_file() 178 if (ferror(filep) || fclose(filep)) { in kvp_update_file() 189 FILE *filep; in kvp_update_mem_state() local 199 if (!filep) { in kvp_update_mem_state() 209 filep); in kvp_update_mem_state() 211 if (ferror(filep)) { in kvp_update_mem_state() 219 if (!feof(filep)) { in kvp_update_mem_state() [all …]
|
| /linux-6.15/drivers/staging/gpib/include/ |
| H A D | gpib_proto.h | 8 int ibopen(struct inode *inode, struct file *filep); 10 long ibioctl(struct file *filep, unsigned int cmd, unsigned long arg);
|