/Linux-v4.19/drivers/isdn/hysdn/ |
D | hysdn_procconf.c | 229 hysdn_conf_open(struct inode *ino, struct file *filep) in hysdn_conf_open() argument 240 filep->f_cred->fsuid, filep->f_cred->fsgid, in hysdn_conf_open() 241 filep->f_mode); in hysdn_conf_open() 243 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_conf_open() 253 filep->private_data = cnf; in hysdn_conf_open() 255 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_conf_open() 262 filep->private_data = tmp; /* start of string */ in hysdn_conf_open() 297 return nonseekable_open(ino, filep); in hysdn_conf_open() 304 hysdn_conf_close(struct inode *ino, struct file *filep) in hysdn_conf_close() argument 314 filep->f_cred->fsuid, filep->f_cred->fsgid, in hysdn_conf_close() [all …]
|
D | hysdn_proclog.c | 202 hysdn_log_open(struct inode *ino, struct file *filep) in hysdn_log_open() argument 207 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_open() 209 filep->private_data = card; /* remember our own card */ in hysdn_log_open() 210 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_log_open() 218 filep->private_data = &pd->log_tail->next; in hysdn_log_open() 220 filep->private_data = &pd->log_head; in hysdn_log_open() 227 return nonseekable_open(ino, filep); in hysdn_log_open() 238 hysdn_log_close(struct inode *ino, struct file *filep) in hysdn_log_close() argument 246 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_close() 252 inf = *((struct log_data **) filep->private_data); /* get first log entry */ in hysdn_log_close() [all …]
|
/Linux-v4.19/drivers/isdn/mISDN/ |
D | timerdev.c | 53 mISDN_open(struct inode *ino, struct file *filep) in mISDN_open() argument 58 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_open() 68 filep->private_data = dev; in mISDN_open() 69 return nonseekable_open(ino, filep); in mISDN_open() 73 mISDN_close(struct inode *ino, struct file *filep) in mISDN_close() argument 75 struct mISDNtimerdev *dev = filep->private_data; in mISDN_close() 80 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_close() 102 mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off) in mISDN_read() argument 104 struct mISDNtimerdev *dev = filep->private_data; in mISDN_read() 111 filep, buf, (int)count, off); in mISDN_read() [all …]
|
/Linux-v4.19/drivers/ntb/test/ |
D | ntb_tool.c | 410 static ssize_t tool_port_read(struct file *filep, char __user *ubuf, in tool_port_read() argument 413 struct tool_ctx *tc = filep->private_data; in tool_port_read() 426 static ssize_t tool_peer_port_read(struct file *filep, char __user *ubuf, in tool_peer_port_read() argument 429 struct tool_peer *peer = filep->private_data; in tool_peer_port_read() 467 static ssize_t tool_link_write(struct file *filep, const char __user *ubuf, in tool_link_write() argument 470 struct tool_ctx *tc = filep->private_data; in tool_link_write() 493 static ssize_t tool_peer_link_read(struct file *filep, char __user *ubuf, in tool_peer_link_read() argument 496 struct tool_peer *peer = filep->private_data; in tool_peer_link_read() 514 static ssize_t tool_peer_link_event_write(struct file *filep, in tool_peer_link_event_write() argument 518 struct tool_peer *peer = filep->private_data; in tool_peer_link_event_write() [all …]
|
D | ntb_perf.c | 1145 static ssize_t perf_dbgfs_read_info(struct file *filep, char __user *ubuf, in perf_dbgfs_read_info() argument 1148 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_read_info() 1225 static ssize_t perf_dbgfs_read_run(struct file *filep, char __user *ubuf, in perf_dbgfs_read_run() argument 1228 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_read_run() 1247 static ssize_t perf_dbgfs_write_run(struct file *filep, const char __user *ubuf, in perf_dbgfs_write_run() argument 1250 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_write_run() 1276 static ssize_t perf_dbgfs_read_tcnt(struct file *filep, char __user *ubuf, in perf_dbgfs_read_tcnt() argument 1279 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_read_tcnt() 1288 static ssize_t perf_dbgfs_write_tcnt(struct file *filep, in perf_dbgfs_write_tcnt() argument 1292 struct perf_ctx *perf = filep->private_data; in perf_dbgfs_write_tcnt()
|
/Linux-v4.19/drivers/vfio/ |
D | vfio.c | 1171 static long vfio_fops_unl_ioctl(struct file *filep, in vfio_fops_unl_ioctl() argument 1174 struct vfio_container *container = filep->private_data; in vfio_fops_unl_ioctl() 1204 static long vfio_fops_compat_ioctl(struct file *filep, in vfio_fops_compat_ioctl() argument 1208 return vfio_fops_unl_ioctl(filep, cmd, arg); in vfio_fops_compat_ioctl() 1212 static int vfio_fops_open(struct inode *inode, struct file *filep) in vfio_fops_open() argument 1224 filep->private_data = container; in vfio_fops_open() 1229 static int vfio_fops_release(struct inode *inode, struct file *filep) in vfio_fops_release() argument 1231 struct vfio_container *container = filep->private_data; in vfio_fops_release() 1233 filep->private_data = NULL; in vfio_fops_release() 1244 static ssize_t vfio_fops_read(struct file *filep, char __user *buf, in vfio_fops_read() argument [all …]
|
/Linux-v4.19/drivers/isdn/hardware/eicon/ |
D | divamnt.c | 113 static int maint_open(struct inode *ino, struct file *filep) in maint_open() argument 123 filep->private_data = NULL; in maint_open() 124 ret = nonseekable_open(ino, filep); in maint_open() 130 static int maint_close(struct inode *ino, struct file *filep) in maint_close() argument 132 if (filep->private_data) { in maint_close() 133 diva_os_free(0, filep->private_data); in maint_close() 134 filep->private_data = NULL; in maint_close()
|
/Linux-v4.19/fs/nfs/ |
D | nfs42proc.c | 22 static int _nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, in _nfs42_proc_fallocate() argument 25 struct inode *inode = file_inode(filep); in _nfs42_proc_fallocate() 59 static int nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, in nfs42_proc_fallocate() argument 62 struct nfs_server *server = NFS_SERVER(file_inode(filep)); in nfs42_proc_fallocate() 67 lock = nfs_get_lock_context(nfs_file_open_context(filep)); in nfs42_proc_fallocate() 71 exception.inode = file_inode(filep); in nfs42_proc_fallocate() 75 err = _nfs42_proc_fallocate(msg, filep, lock, offset, len); in nfs42_proc_fallocate() 87 int nfs42_proc_allocate(struct file *filep, loff_t offset, loff_t len) in nfs42_proc_allocate() argument 92 struct inode *inode = file_inode(filep); in nfs42_proc_allocate() 100 err = nfs42_proc_fallocate(&msg, filep, offset, len); in nfs42_proc_allocate() [all …]
|
D | nfs4file.c | 147 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument 154 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek() 159 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek() 163 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate() argument 165 struct inode *inode = file_inode(filep); in nfs42_fallocate() 179 return nfs42_proc_deallocate(filep, offset, len); in nfs42_fallocate() 180 return nfs42_proc_allocate(filep, offset, len); in nfs42_fallocate()
|
/Linux-v4.19/kernel/ |
D | kcov.c | 271 static int kcov_mmap(struct file *filep, struct vm_area_struct *vma) in kcov_mmap() argument 307 static int kcov_open(struct inode *inode, struct file *filep) in kcov_open() argument 317 filep->private_data = kcov; in kcov_open() 318 return nonseekable_open(inode, filep); in kcov_open() 321 static int kcov_close(struct inode *inode, struct file *filep) in kcov_close() argument 323 kcov_put(filep->private_data); in kcov_close() 420 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument 425 kcov = filep->private_data; in kcov_ioctl()
|
/Linux-v4.19/drivers/uio/ |
D | uio.c | 457 static int uio_open(struct inode *inode, struct file *filep) in uio_open() argument 486 filep->private_data = listener; in uio_open() 516 static int uio_fasync(int fd, struct file *filep, int on) in uio_fasync() argument 518 struct uio_listener *listener = filep->private_data; in uio_fasync() 521 return fasync_helper(fd, filep, on, &idev->async_queue); in uio_fasync() 524 static int uio_release(struct inode *inode, struct file *filep) in uio_release() argument 527 struct uio_listener *listener = filep->private_data; in uio_release() 541 static __poll_t uio_poll(struct file *filep, poll_table *wait) in uio_poll() argument 543 struct uio_listener *listener = filep->private_data; in uio_poll() 555 poll_wait(filep, &idev->wait, wait); in uio_poll() [all …]
|
/Linux-v4.19/drivers/isdn/divert/ |
D | divert_procfs.c | 139 isdn_divert_open(struct inode *ino, struct file *filep) in isdn_divert_open() argument 146 filep->private_data = &(divert_info_tail->next); in isdn_divert_open() 148 filep->private_data = &divert_info_head; in isdn_divert_open() 151 return nonseekable_open(ino, filep); in isdn_divert_open() 158 isdn_divert_close(struct inode *ino, struct file *filep) in isdn_divert_close() argument 165 inf = *((struct divert_info **) filep->private_data); in isdn_divert_close()
|
/Linux-v4.19/drivers/iio/ |
D | industrialio-event.c | 98 static __poll_t iio_event_poll(struct file *filep, in iio_event_poll() argument 101 struct iio_dev *indio_dev = filep->private_data; in iio_event_poll() 108 poll_wait(filep, &ev_int->wait, wait); in iio_event_poll() 116 static ssize_t iio_event_chrdev_read(struct file *filep, in iio_event_chrdev_read() argument 121 struct iio_dev *indio_dev = filep->private_data; in iio_event_chrdev_read() 134 if (filep->f_flags & O_NONBLOCK) in iio_event_chrdev_read() 160 if (copied == 0 && (filep->f_flags & O_NONBLOCK)) in iio_event_chrdev_read() 168 static int iio_event_chrdev_release(struct inode *inode, struct file *filep) in iio_event_chrdev_release() argument 170 struct iio_dev *indio_dev = filep->private_data; in iio_event_chrdev_release()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_debugfs_crc.c | 150 static int crtc_crc_open(struct inode *inode, struct file *filep) in crtc_crc_open() argument 229 static int crtc_crc_release(struct inode *inode, struct file *filep) in crtc_crc_release() argument 231 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_release() 251 static ssize_t crtc_crc_read(struct file *filep, char __user *user_buf, in crtc_crc_read() argument 254 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_read() 269 if (filep->f_flags & O_NONBLOCK) { in crtc_crc_read()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_chardev.c | 103 static int kfd_open(struct inode *inode, struct file *filep) in kfd_open() argument 121 process = kfd_create_process(filep); in kfd_open() 134 static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p, in kfd_ioctl_get_version() argument 253 static int kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p, in kfd_ioctl_create_queue() argument 290 err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, &queue_id); in kfd_ioctl_create_queue() 450 static int kfd_ioctl_set_memory_policy(struct file *filep, in kfd_ioctl_set_memory_policy() argument 502 static int kfd_ioctl_set_trap_handler(struct file *filep, in kfd_ioctl_set_trap_handler() argument 534 static int kfd_ioctl_dbg_register(struct file *filep, in kfd_ioctl_dbg_register() argument 588 static int kfd_ioctl_dbg_unregister(struct file *filep, in kfd_ioctl_dbg_unregister() argument 626 static int kfd_ioctl_dbg_address_watch(struct file *filep, in kfd_ioctl_dbg_address_watch() argument [all …]
|
D | kfd_process.c | 65 struct file *filep); 204 struct kfd_process *kfd_create_process(struct file *filep) in kfd_create_process() argument 228 process = create_process(thread, filep); in kfd_create_process() 445 static int kfd_process_init_cwsr_apu(struct kfd_process *p, struct file *filep) in kfd_process_init_cwsr_apu() argument 459 qpd->tba_addr = (int64_t)vm_mmap(filep, 0, in kfd_process_init_cwsr_apu() 513 struct file *filep) in create_process() argument 566 err = kfd_process_init_cwsr_apu(process, filep); in create_process()
|
/Linux-v4.19/fs/cifs/ |
D | ioctl.c | 121 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) in cifs_ioctl() argument 123 struct inode *inode = file_inode(filep); in cifs_ioctl() 127 struct cifsFileInfo *pSMBFile = filep->private_data; in cifs_ioctl() 197 rc = cifs_ioctl_copychunk(xid, filep, arg); in cifs_ioctl()
|
/Linux-v4.19/tools/hv/ |
D | hv_kvp_daemon.c | 147 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 186 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state() 187 if (!filep) { in kvp_update_mem_state() 197 filep); in kvp_update_mem_state() 199 if (ferror(filep)) { in kvp_update_mem_state() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/ |
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-v4.19/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_debugfs.c | 20 static ssize_t debugfs_dim_read(struct file *filep, in debugfs_dim_read() argument 24 struct net_dim *dim = filep->private_data; in debugfs_dim_read()
|
/Linux-v4.19/virt/kvm/ |
D | vfio.c | 38 static struct vfio_group *kvm_vfio_group_get_external_user(struct file *filep) in kvm_vfio_group_get_external_user() argument 47 vfio_group = fn(filep); in kvm_vfio_group_get_external_user() 55 struct file *filep) in kvm_vfio_external_group_match_file() argument 63 ret = fn(group, filep); in kvm_vfio_external_group_match_file()
|
/Linux-v4.19/drivers/scsi/qedf/ |
D | qedf_attr.c | 102 qedf_sysfs_read_grcdump(struct file *filep, struct kobject *kobj, in qedf_sysfs_read_grcdump() argument 122 qedf_sysfs_write_grcdump(struct file *filep, struct kobject *kobj, in qedf_sysfs_write_grcdump() argument
|
/Linux-v4.19/include/linux/ |
D | vfio.h | 98 extern struct vfio_group *vfio_group_get_external_user(struct file *filep); 101 struct file *filep);
|
/Linux-v4.19/drivers/scsi/megaraid/ |
D | megaraid_mm.c | 96 mraid_mm_open(struct inode *inode, struct file *filep) in mraid_mm_open() argument 114 mraid_mm_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in mraid_mm_ioctl() argument 226 mraid_mm_unlocked_ioctl(struct file *filep, unsigned int cmd, in mraid_mm_unlocked_ioctl() argument 233 err = mraid_mm_ioctl(filep, cmd, arg); in mraid_mm_unlocked_ioctl() 1244 mraid_mm_compat_ioctl(struct file *filep, unsigned int cmd, in mraid_mm_compat_ioctl() argument 1249 err = mraid_mm_ioctl(filep, cmd, arg); in mraid_mm_compat_ioctl()
|
/Linux-v4.19/drivers/gpio/ |
D | gpiolib.c | 424 static long linehandle_ioctl(struct file *filep, unsigned int cmd, in linehandle_ioctl() argument 427 struct linehandle_state *lh = filep->private_data; in linehandle_ioctl() 477 static long linehandle_ioctl_compat(struct file *filep, unsigned int cmd, in linehandle_ioctl_compat() argument 480 return linehandle_ioctl(filep, cmd, (unsigned long)compat_ptr(arg)); in linehandle_ioctl_compat() 484 static int linehandle_release(struct inode *inode, struct file *filep) in linehandle_release() argument 486 struct linehandle_state *lh = filep->private_data; in linehandle_release() 689 static __poll_t lineevent_poll(struct file *filep, in lineevent_poll() argument 692 struct lineevent_state *le = filep->private_data; in lineevent_poll() 695 poll_wait(filep, &le->wait, wait); in lineevent_poll() 704 static ssize_t lineevent_read(struct file *filep, in lineevent_read() argument [all …]
|