/drivers/isdn/mISDN/ |
D | timerdev.c | 51 mISDN_open(struct inode *ino, struct file *filep) in mISDN_open() argument 56 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_open() 66 filep->private_data = dev; in mISDN_open() 67 return nonseekable_open(ino, filep); in mISDN_open() 71 mISDN_close(struct inode *ino, struct file *filep) in mISDN_close() argument 73 struct mISDNtimerdev *dev = filep->private_data; in mISDN_close() 78 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_close() 100 mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off) in mISDN_read() argument 102 struct mISDNtimerdev *dev = filep->private_data; in mISDN_read() 109 filep, buf, (int)count, off); in mISDN_read() [all …]
|
/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 | 204 hysdn_log_open(struct inode *ino, struct file *filep) in hysdn_log_open() argument 209 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_open() 211 filep->private_data = card; /* remember our own card */ in hysdn_log_open() 212 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_log_open() 220 filep->private_data = &pd->log_tail->next; in hysdn_log_open() 222 filep->private_data = &pd->log_head; in hysdn_log_open() 229 return nonseekable_open(ino, filep); in hysdn_log_open() 240 hysdn_log_close(struct inode *ino, struct file *filep) in hysdn_log_close() argument 248 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_close() 254 inf = *((struct log_data **) filep->private_data); /* get first log entry */ in hysdn_log_close() [all …]
|
/drivers/ntb/test/ |
D | ntb_tool.c | 348 static ssize_t tool_db_read(struct file *filep, char __user *ubuf, in tool_db_read() argument 351 struct tool_ctx *tc = filep->private_data; in tool_db_read() 357 static ssize_t tool_db_write(struct file *filep, const char __user *ubuf, in tool_db_write() argument 360 struct tool_ctx *tc = filep->private_data; in tool_db_write() 371 static ssize_t tool_mask_read(struct file *filep, char __user *ubuf, in tool_mask_read() argument 374 struct tool_ctx *tc = filep->private_data; in tool_mask_read() 380 static ssize_t tool_mask_write(struct file *filep, const char __user *ubuf, in tool_mask_write() argument 383 struct tool_ctx *tc = filep->private_data; in tool_mask_write() 394 static ssize_t tool_peer_db_read(struct file *filep, char __user *ubuf, in tool_peer_db_read() argument 397 struct tool_ctx *tc = filep->private_data; in tool_peer_db_read() [all …]
|
/drivers/vfio/ |
D | vfio.c | 1143 static long vfio_fops_unl_ioctl(struct file *filep, in vfio_fops_unl_ioctl() argument 1146 struct vfio_container *container = filep->private_data; in vfio_fops_unl_ioctl() 1180 static long vfio_fops_compat_ioctl(struct file *filep, in vfio_fops_compat_ioctl() argument 1184 return vfio_fops_unl_ioctl(filep, cmd, arg); in vfio_fops_compat_ioctl() 1188 static int vfio_fops_open(struct inode *inode, struct file *filep) in vfio_fops_open() argument 1200 filep->private_data = container; in vfio_fops_open() 1205 static int vfio_fops_release(struct inode *inode, struct file *filep) in vfio_fops_release() argument 1207 struct vfio_container *container = filep->private_data; in vfio_fops_release() 1209 filep->private_data = NULL; in vfio_fops_release() 1220 static ssize_t vfio_fops_read(struct file *filep, char __user *buf, in vfio_fops_read() argument [all …]
|
/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()
|
/drivers/uio/ |
D | uio.c | 431 static int uio_open(struct inode *inode, struct file *filep) in uio_open() argument 458 filep->private_data = listener; in uio_open() 477 static int uio_fasync(int fd, struct file *filep, int on) in uio_fasync() argument 479 struct uio_listener *listener = filep->private_data; in uio_fasync() 482 return fasync_helper(fd, filep, on, &idev->async_queue); in uio_fasync() 485 static int uio_release(struct inode *inode, struct file *filep) in uio_release() argument 488 struct uio_listener *listener = filep->private_data; in uio_release() 499 static unsigned int uio_poll(struct file *filep, poll_table *wait) in uio_poll() argument 501 struct uio_listener *listener = filep->private_data; in uio_poll() 507 poll_wait(filep, &idev->wait, wait); in uio_poll() [all …]
|
/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()
|
/drivers/iio/ |
D | industrialio-event.c | 98 static unsigned int 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()
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_chardev.c | 102 static int kfd_open(struct inode *inode, struct file *filep) in kfd_open() argument 130 static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p, in kfd_ioctl_get_version() argument 248 static int kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p, in kfd_ioctl_create_queue() argument 285 err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, in kfd_ioctl_create_queue() 383 static int kfd_ioctl_set_memory_policy(struct file *filep, in kfd_ioctl_set_memory_policy() argument 435 static int kfd_ioctl_dbg_register(struct file *filep, in kfd_ioctl_dbg_register() argument 489 static int kfd_ioctl_dbg_unrgesiter(struct file *filep, in kfd_ioctl_dbg_unrgesiter() argument 527 static int kfd_ioctl_dbg_address_watch(struct file *filep, in kfd_ioctl_dbg_address_watch() argument 626 static int kfd_ioctl_dbg_wave_control(struct file *filep, in kfd_ioctl_dbg_wave_control() argument 710 static int kfd_ioctl_get_clock_counters(struct file *filep, in kfd_ioctl_get_clock_counters() argument [all …]
|
/drivers/staging/media/lirc/ |
D | lirc_parallel.c | 315 static loff_t lirc_lseek(struct file *filep, loff_t offset, int orig) in lirc_lseek() argument 320 static ssize_t lirc_read(struct file *filep, char __user *buf, size_t n, in lirc_read() argument 342 if (filep->f_flags & O_NONBLOCK) { in lirc_read() 359 static ssize_t lirc_write(struct file *filep, const char __user *buf, size_t n, in lirc_write() argument 457 static long lirc_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in lirc_ioctl() argument 510 static int lirc_open(struct inode *node, struct file *filep) in lirc_open() argument 526 static int lirc_close(struct inode *node, struct file *filep) in lirc_close() argument
|
D | lirc_zilog.c | 891 static ssize_t read(struct file *filep, char __user *outbuf, size_t n, in read() argument 894 struct IR *ir = filep->private_data; in read() 933 if (filep->f_flags & O_NONBLOCK) { in read() 1100 static ssize_t write(struct file *filep, const char __user *buf, size_t n, in write() argument 1103 struct IR *ir = filep->private_data; in write() 1208 static unsigned int poll(struct file *filep, poll_table *wait) in poll() argument 1210 struct IR *ir = filep->private_data; in poll() 1231 poll_wait(filep, &rbuf->wait_poll, wait); in poll() 1241 static long ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in ioctl() argument 1243 struct IR *ir = filep->private_data; in ioctl() [all …]
|
D | lirc_sir.c | 152 static long lirc_ioctl(struct file *filep, unsigned int cmd, unsigned long arg); 272 static long lirc_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in lirc_ioctl() argument
|
D | lirc_serial.c | 839 static long lirc_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in lirc_ioctl() argument 897 return lirc_dev_fop_ioctl(filep, cmd, arg); in lirc_ioctl()
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_debugfs.c | 130 static int fm10k_dbg_desc_open(struct inode *inode, struct file *filep) in fm10k_dbg_desc_open() argument 142 err = seq_open(filep, desc_seq_ops); in fm10k_dbg_desc_open() 146 ((struct seq_file *)filep->private_data)->private = ring; in fm10k_dbg_desc_open()
|
/drivers/gpio/ |
D | gpiolib.c | 344 static long linehandle_ioctl(struct file *filep, unsigned int cmd, in linehandle_ioctl() argument 347 struct linehandle_state *lh = filep->private_data; in linehandle_ioctl() 392 static long linehandle_ioctl_compat(struct file *filep, unsigned int cmd, in linehandle_ioctl_compat() argument 395 return linehandle_ioctl(filep, cmd, (unsigned long)compat_ptr(arg)); in linehandle_ioctl_compat() 399 static int linehandle_release(struct inode *inode, struct file *filep) in linehandle_release() argument 401 struct linehandle_state *lh = filep->private_data; in linehandle_release() 580 static unsigned int lineevent_poll(struct file *filep, in lineevent_poll() argument 583 struct lineevent_state *le = filep->private_data; in lineevent_poll() 586 poll_wait(filep, &le->wait, wait); in lineevent_poll() 595 static ssize_t lineevent_read(struct file *filep, in lineevent_read() argument [all …]
|
/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() 1242 mraid_mm_compat_ioctl(struct file *filep, unsigned int cmd, in mraid_mm_compat_ioctl() argument 1247 err = mraid_mm_ioctl(filep, cmd, arg); in mraid_mm_compat_ioctl()
|
/drivers/char/ipmi/ |
D | ipmi_devintf.c | 783 static long compat_ipmi_ioctl(struct file *filep, unsigned int cmd, in compat_ipmi_ioctl() argument 787 struct ipmi_file_private *priv = filep->private_data; in compat_ipmi_ioctl() 825 rc = ipmi_ioctl(filep, in compat_ipmi_ioctl() 842 return ipmi_ioctl(filep, cmd, arg); in compat_ipmi_ioctl() 846 static long unlocked_compat_ipmi_ioctl(struct file *filep, unsigned int cmd, in unlocked_compat_ipmi_ioctl() argument 852 ret = compat_ipmi_ioctl(filep, cmd, arg); in unlocked_compat_ipmi_ioctl()
|
D | ipmi_watchdog.c | 869 static int ipmi_open(struct inode *ino, struct file *filep) in ipmi_open() argument 882 return nonseekable_open(ino, filep); in ipmi_open() 912 static int ipmi_close(struct inode *ino, struct file *filep) in ipmi_close() argument
|
/drivers/vhost/ |
D | vhost.c | 1272 struct file *eventfp, *filep = NULL; in vhost_vring_ioctl() local 1403 pollstop = (filep = vq->kick) != NULL; in vhost_vring_ioctl() 1406 filep = eventfp; in vhost_vring_ioctl() 1419 filep = vq->call; in vhost_vring_ioctl() 1425 filep = eventfp; in vhost_vring_ioctl() 1438 filep = vq->error; in vhost_vring_ioctl() 1444 filep = eventfp; in vhost_vring_ioctl() 1474 if (filep) in vhost_vring_ioctl() 1475 fput(filep); in vhost_vring_ioctl() 1515 struct file *eventfp, *filep = NULL; in vhost_dev_ioctl() local [all …]
|
/drivers/media/rc/ |
D | ir-lirc-codec.c | 180 static long ir_lirc_ioctl(struct file *filep, unsigned int cmd, in ir_lirc_ioctl() argument 189 lirc = lirc_get_pdata(filep); in ir_lirc_ioctl() 309 return lirc_dev_fop_ioctl(filep, cmd, arg); in ir_lirc_ioctl()
|
D | ir-rx51.c | 176 static long lirc_rx51_ioctl(struct file *filep, in lirc_rx51_ioctl() argument 182 struct lirc_rx51 *lirc_rx51 = filep->private_data; in lirc_rx51_ioctl()
|
/drivers/scsi/qla4xxx/ |
D | ql4_attr.c | 13 qla4_8xxx_sysfs_read_fw_dump(struct file *filep, struct kobject *kobj, in qla4_8xxx_sysfs_read_fw_dump() argument 31 qla4_8xxx_sysfs_write_fw_dump(struct file *filep, struct kobject *kobj, in qla4_8xxx_sysfs_write_fw_dump() argument
|
/drivers/isdn/i4l/ |
D | isdn_common.c | 1734 isdn_open(struct inode *ino, struct file *filep) in isdn_open() argument 1747 p->private = (char *) &(filep->private_data); in isdn_open() 1750 filep->private_data = (char *) 1; in isdn_open() 1784 retval = isdn_ppp_open(minor - ISDN_MINOR_PPP, filep); in isdn_open() 1791 nonseekable_open(ino, filep); in isdn_open() 1797 isdn_close(struct inode *ino, struct file *filep) in isdn_close() argument 1807 if (p->private == (char *) &(filep->private_data)) { in isdn_close() 1831 isdn_ppp_release(minor - ISDN_MINOR_PPP, filep); in isdn_close()
|
/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 1056 static int radeon_ttm_vram_open(struct inode *inode, struct file *filep) in radeon_ttm_vram_open() argument 1060 filep->private_data = inode->i_private; in radeon_ttm_vram_open() 1108 static int radeon_ttm_gtt_open(struct inode *inode, struct file *filep) in radeon_ttm_gtt_open() argument 1112 filep->private_data = inode->i_private; in radeon_ttm_gtt_open()
|