/linux-master/drivers/isdn/mISDN/ |
H A D | timerdev.c | 44 mISDN_open(struct inode *ino, struct file *filep) argument 49 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); 59 filep->private_data = dev; 60 return nonseekable_open(ino, filep); 64 mISDN_close(struct inode *ino, struct file *filep) argument 66 struct mISDNtimerdev *dev = filep->private_data; 71 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); 93 mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off) argument 95 struct mISDNtimerdev *dev = filep->private_data; 102 filep, bu 136 mISDN_poll(struct file *filep, poll_table *wait) argument 217 mISDN_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) argument [all...] |
/linux-master/fs/nfs/ |
H A D | nfs4file.c | 204 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) argument 211 ret = nfs42_proc_llseek(filep, offset, whence); 216 return nfs_file_llseek(filep, offset, whence); 220 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) argument 222 struct inode *inode = file_inode(filep); 236 return nfs42_proc_deallocate(filep, offset, len); 237 return nfs42_proc_allocate(filep, offset, len); 321 struct file *filep, *res; local 358 filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, O_RDONLY, 360 if (IS_ERR(filep)) { 407 __nfs42_ssc_close(struct file *filep) argument [all...] |
H A D | nfs42proc.c | 25 static void nfs42_set_netaddr(struct file *filep, struct nfs42_netaddr *naddr) argument 27 struct nfs_client *clp = (NFS_SERVER(file_inode(filep)))->nfs_client; 44 static int _nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, argument 47 struct inode *inode = file_inode(filep); 99 static int nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, argument 102 struct inode *inode = file_inode(filep); 108 lock = nfs_get_lock_context(nfs_file_open_context(filep)); 120 err = _nfs42_proc_fallocate(msg, filep, lock, offset, len); 132 int nfs42_proc_allocate(struct file *filep, loff_t offset, loff_t len) argument 137 struct inode *inode = file_inode(filep); 153 nfs42_proc_deallocate(struct file *filep, loff_t offset, loff_t len) argument 662 _nfs42_proc_llseek(struct file *filep, struct nfs_lock_context *lock, loff_t offset, int whence) argument 711 nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) argument [all...] |
/linux-master/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) argument 54 (*nfs_ssc_client_tbl.ssc_nfs4_ops->sco_close)(filep);
|
/linux-master/drivers/ntb/test/ |
H A D | ntb_tool.c | 405 static ssize_t tool_port_read(struct file *filep, char __user *ubuf, argument 408 struct tool_ctx *tc = filep->private_data; 421 static ssize_t tool_peer_port_read(struct file *filep, char __user *ubuf, argument 424 struct tool_peer *peer = filep->private_data; 462 static ssize_t tool_link_write(struct file *filep, const char __user *ubuf, argument 465 struct tool_ctx *tc = filep->private_data; 488 static ssize_t tool_peer_link_read(struct file *filep, char __user *ubuf, argument 491 struct tool_peer *peer = filep->private_data; 509 static ssize_t tool_peer_link_event_write(struct file *filep, argument 513 struct tool_peer *peer = filep 541 tool_mw_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 553 tool_mw_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 637 tool_mw_trans_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 699 tool_mw_trans_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 724 tool_peer_mw_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 762 tool_peer_mw_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 865 tool_peer_mw_trans_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 922 tool_peer_mw_trans_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1025 tool_db_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1033 tool_db_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1046 tool_db_valid_mask_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1058 tool_db_mask_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1066 tool_db_mask_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1079 tool_peer_db_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1087 tool_peer_db_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1100 tool_peer_db_mask_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1109 tool_peer_db_mask_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1124 tool_db_event_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1151 tool_spad_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1167 tool_spad_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1192 tool_peer_spad_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1208 tool_peer_spad_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1274 tool_inmsg_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1294 tool_outmsg_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1315 tool_msg_sts_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1323 tool_msg_sts_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1336 tool_msg_inbits_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1348 tool_msg_outbits_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) argument 1360 tool_msg_mask_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument 1374 tool_msg_event_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) argument [all...] |
/linux-master/arch/x86/kernel/cpu/sgx/ |
H A D | driver.h | 25 long sgx_ioctl(struct file *filep, unsigned int cmd, unsigned long arg);
|
H A D | driver.c | 120 static long sgx_compat_ioctl(struct file *filep, unsigned int cmd, argument 123 return sgx_ioctl(filep, cmd, arg);
|
/linux-master/tools/hv/ |
H A D | hv_kvp_daemon.c | 158 FILE *filep; local 166 filep = fopen(kvp_file_info[pool].fname, "we"); 167 if (!filep) { 175 kvp_file_info[pool].num_records, filep); 177 if (ferror(filep) || fclose(filep)) { 188 FILE *filep; local 197 filep = fopen(kvp_file_info[pool].fname, "re"); 198 if (!filep) { 208 filep); [all...] |
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_smi_events.c | 64 static __poll_t kfd_smi_ev_poll(struct file *filep, argument 67 struct kfd_smi_client *client = filep->private_data; 70 poll_wait(filep, &client->wait_queue, wait); 80 static ssize_t kfd_smi_ev_read(struct file *filep, char __user *user, argument 85 struct kfd_smi_client *client = filep->private_data; 125 static ssize_t kfd_smi_ev_write(struct file *filep, const char __user *user, argument 128 struct kfd_smi_client *client = filep->private_data; 149 static int kfd_smi_ev_release(struct inode *inode, struct file *filep) argument 151 struct kfd_smi_client *client = filep->private_data;
|
H A D | kfd_chardev.c | 129 static int kfd_open(struct inode *inode, struct file *filep) argument 151 if (kfd_process_init_cwsr_apu(process, filep)) { 156 /* filep now owns the reference returned by kfd_create_process */ 157 filep->private_data = process; 165 static int kfd_release(struct inode *inode, struct file *filep) argument 167 struct kfd_process *process = filep->private_data; 175 static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p, argument 299 static int kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p, argument 386 err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, &queue_id, wptr_bo, 554 static int kfd_ioctl_get_queue_wave_state(struct file *filep, argument 572 kfd_ioctl_set_memory_policy(struct file *filep, struct kfd_process *p, void *data) argument 626 kfd_ioctl_set_trap_handler(struct file *filep, struct kfd_process *p, void *data) argument 656 kfd_ioctl_dbg_register(struct file *filep, struct kfd_process *p, void *data) argument 662 kfd_ioctl_dbg_unregister(struct file *filep, struct kfd_process *p, void *data) argument 668 kfd_ioctl_dbg_address_watch(struct file *filep, struct kfd_process *p, void *data) argument 675 kfd_ioctl_dbg_wave_control(struct file *filep, struct kfd_process *p, void *data) argument 681 kfd_ioctl_get_clock_counters(struct file *filep, struct kfd_process *p, void *data) argument 899 kfd_ioctl_set_scratch_backing_va(struct file *filep, struct kfd_process *p, void *data) argument 938 kfd_ioctl_get_tile_config(struct file *filep, struct kfd_process *p, void *data) argument 982 kfd_ioctl_acquire_vm(struct file *filep, struct kfd_process *p, void *data) argument 1043 kfd_ioctl_get_available_memory(struct file *filep, struct kfd_process *p, void *data) argument 1057 kfd_ioctl_alloc_memory_of_gpu(struct file *filep, struct kfd_process *p, void *data) argument 1195 kfd_ioctl_free_memory_of_gpu(struct file *filep, struct kfd_process *p, void *data) argument 1247 kfd_ioctl_map_memory_to_gpu(struct file *filep, struct kfd_process *p, void *data) argument 1365 kfd_ioctl_unmap_memory_from_gpu(struct file *filep, struct kfd_process *p, void *data) argument 1467 kfd_ioctl_alloc_queue_gws(struct file *filep, struct kfd_process *p, void *data) argument 1512 kfd_ioctl_get_dmabuf_info(struct file *filep, struct kfd_process *p, void *data) argument 1565 kfd_ioctl_import_dmabuf(struct file *filep, struct kfd_process *p, void *data) argument 1615 kfd_ioctl_export_dmabuf(struct file *filep, struct kfd_process *p, void *data) argument 1668 kfd_ioctl_smi_events(struct file *filep, struct kfd_process *p, void *data) argument 1686 kfd_ioctl_set_xnack_mode(struct file *filep, struct kfd_process *p, void *data) argument 1719 kfd_ioctl_svm(struct file *filep, struct kfd_process *p, void *data) argument 1738 kfd_ioctl_set_xnack_mode(struct file *filep, struct kfd_process *p, void *data) argument 1743 kfd_ioctl_svm(struct file *filep, struct kfd_process *p, void *data) argument 2047 criu_checkpoint(struct file *filep, struct kfd_process *p, struct kfd_ioctl_criu_args *args) argument 2488 criu_restore_objects(struct file *filep, struct kfd_process *p, struct kfd_ioctl_criu_args *args, uint64_t *priv_offset, uint64_t max_priv_data_size) argument 2544 criu_restore(struct file *filep, struct kfd_process *p, struct kfd_ioctl_criu_args *args) argument 2600 criu_unpause(struct file *filep, struct kfd_process *p, struct kfd_ioctl_criu_args *args) argument 2624 criu_resume(struct file *filep, struct kfd_process *p, struct kfd_ioctl_criu_args *args) argument 2669 criu_process_info(struct file *filep, struct kfd_process *p, struct kfd_ioctl_criu_args *args) argument 2710 kfd_ioctl_criu(struct file *filep, struct kfd_process *p, void *data) argument 2871 kfd_ioctl_runtime_enable(struct file *filep, struct kfd_process *p, void *data) argument 2889 kfd_ioctl_set_debug_trap(struct file *filep, struct kfd_process *p, void *data) argument 3228 kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) argument [all...] |
/linux-master/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) argument 37 struct i2cr_scom *scom = filep->private_data; 55 static ssize_t i2cr_scom_write(struct file *filep, const char __user *buf, size_t len, argument 58 struct i2cr_scom *scom = filep->private_data;
|
/linux-master/drivers/vfio/pci/pds/ |
H A D | lm.h | 16 struct file *filep; member in struct:pds_vfio_lm_file
|
H A D | lm.c | 32 lm_file->filep = 34 if (IS_ERR(lm_file->filep)) 37 stream_open(lm_file->filep->f_inode, lm_file->filep); 41 get_file(lm_file->filep); 83 fput(lm_file->filep); 98 lm_file->filep->f_pos = 0; 111 fput(lm_file->filep); 168 lm_file->filep->f_pos = 0; 382 return pds_vfio->save_file->filep; [all...] |
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_debugfs.c | 20 static ssize_t debugfs_dim_read(struct file *filep, argument 24 struct dim *dim = filep->private_data;
|
/linux-master/tools/power/x86/intel-speed-select/ |
H A D | isst-core-tpmi.c | 530 FILE *filep; local 545 filep = fopen(buffer, "r"); 546 if (!filep) 549 ret = fscanf(filep, "%u", &tmp_id); 550 fclose(filep); 561 filep = fopen(buffer, "r"); 562 if (!filep) 565 ret = fscanf(filep, "%u", &tmp_id); 566 fclose(filep); 582 filep [all...] |
/linux-master/drivers/vfio/ |
H A D | group.c | 256 struct file *filep; local 275 filep = anon_inode_getfile("[vfio-device]", &vfio_device_fops, 277 if (IS_ERR(filep)) { 278 ret = PTR_ERR(filep); 287 filep->f_mode |= (FMODE_PREAD | FMODE_PWRITE); 296 return filep; 310 struct file *filep; local 330 filep = vfio_device_open_file(device); 331 if (IS_ERR(filep)) { 332 ret = PTR_ERR(filep); 385 vfio_group_fops_unl_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) argument 432 vfio_group_fops_open(struct inode *inode, struct file *filep) argument 474 vfio_group_fops_release(struct inode *inode, struct file *filep) argument [all...] |
H A D | container.c | 327 static long vfio_fops_unl_ioctl(struct file *filep, argument 330 struct vfio_container *container = filep->private_data; 359 static int vfio_fops_open(struct inode *inode, struct file *filep) argument 371 filep->private_data = container; 376 static int vfio_fops_release(struct inode *inode, struct file *filep) argument 378 struct vfio_container *container = filep->private_data; 380 filep->private_data = NULL;
|
H A D | vfio.h | 239 struct vfio_container *vfio_container_from_file(struct file *filep); 260 vfio_container_from_file(struct file *filep) argument 377 int vfio_device_fops_cdev_open(struct inode *inode, struct file *filep); 399 struct file *filep) 398 vfio_device_fops_cdev_open(struct inode *inode, struct file *filep) argument
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_debugfs_crc.c | 195 static int crtc_crc_open(struct inode *inode, struct file *filep) argument 258 static int crtc_crc_release(struct inode *inode, struct file *filep) argument 260 struct drm_crtc *crtc = filep->f_inode->i_private; 284 static ssize_t crtc_crc_read(struct file *filep, char __user *user_buf, argument 287 struct drm_crtc *crtc = filep->f_inode->i_private; 302 if (filep->f_flags & O_NONBLOCK) {
|
/linux-master/drivers/misc/uacce/ |
H A D | uacce.c | 59 static long uacce_fops_unl_ioctl(struct file *filep, argument 62 struct uacce_queue *q = filep->private_data; 97 static long uacce_fops_compat_ioctl(struct file *filep, argument 102 return uacce_fops_unl_ioctl(filep, cmd, arg); 137 static int uacce_fops_open(struct inode *inode, struct file *filep) argument 171 filep->private_data = q; 173 q->mapping = filep->f_mapping; 188 static int uacce_fops_release(struct inode *inode, struct file *filep) argument 190 struct uacce_queue *q = filep->private_data; 221 static int uacce_fops_mmap(struct file *filep, struc argument [all...] |
/linux-master/fs/smb/client/ |
H A D | ioctl.c | 26 static long cifs_ioctl_query_info(unsigned int xid, struct file *filep, argument 29 struct inode *inode = file_inode(filep); 32 struct dentry *dentry = filep->f_path.dentry; 60 filep->private_data ? 0 : 1, p); 332 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) argument 334 struct inode *inode = file_inode(filep); 338 struct cifsFileInfo *pSMBFile = filep->private_data; 420 rc = cifs_ioctl_copychunk(xid, filep, arg); 423 rc = cifs_ioctl_query_info(xid, filep, arg); 540 filep, (voi [all...] |
/linux-master/drivers/uio/ |
H A D | uio.c | 462 static int uio_open(struct inode *inode, struct file *filep) argument 491 filep->private_data = listener; 521 static int uio_fasync(int fd, struct file *filep, int on) argument 523 struct uio_listener *listener = filep->private_data; 526 return fasync_helper(fd, filep, on, &idev->async_queue); 529 static int uio_release(struct inode *inode, struct file *filep) argument 532 struct uio_listener *listener = filep->private_data; 546 static __poll_t uio_poll(struct file *filep, poll_table *wait) argument 548 struct uio_listener *listener = filep->private_data; 560 poll_wait(filep, 566 uio_read(struct file *filep, char __user *buf, size_t count, loff_t *ppos) argument 621 uio_write(struct file *filep, const char __user *buf, size_t count, loff_t *ppos) argument 806 uio_mmap(struct file *filep, struct vm_area_struct *vma) argument [all...] |
/linux-master/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) argument 483 mc_uapi = container_of(filep->private_data, struct fsl_mc_uapi, misc); 504 filep->private_data = priv_data; 517 static int fsl_mc_uapi_dev_release(struct inode *inode, struct file *filep) argument 523 priv_data = filep->private_data; 534 kfree(filep->private_data); 535 filep->private_data = NULL;
|
/linux-master/drivers/iio/ |
H A D | industrialio-event.c | 93 * @filep: File structure pointer to identify the device 99 static __poll_t iio_event_poll(struct file *filep, argument 102 struct iio_dev *indio_dev = filep->private_data; 110 poll_wait(filep, &ev_int->wait, wait); 118 static ssize_t iio_event_chrdev_read(struct file *filep, argument 123 struct iio_dev *indio_dev = filep->private_data; 137 if (filep->f_flags & O_NONBLOCK) 163 if (copied == 0 && (filep->f_flags & O_NONBLOCK)) 171 static int iio_event_chrdev_release(struct inode *inode, struct file *filep) argument 173 struct iio_dev *indio_dev = filep [all...] |
/linux-master/drivers/scsi/qedf/ |
H A D | qedf_attr.c | 106 qedf_sysfs_read_grcdump(struct file *filep, struct kobject *kobj, argument 126 qedf_sysfs_write_grcdump(struct file *filep, struct kobject *kobj, argument
|