Searched refs:filp (Results 201 - 225 of 726) sorted by relevance

1234567891011>>

/linux-master/fs/ext4/
H A Dcrypto.c89 int ext4_ioctl_get_encryption_pwsalt(struct file *filp, void __user *arg) argument
91 struct super_block *sb = file_inode(filp)->i_sb;
100 err = mnt_want_write_file(filp);
122 mnt_drop_write_file(filp);
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bo_list.h69 struct drm_file *filp,
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-xscom.c87 static ssize_t scom_debug_read(struct file *filp, char __user *ubuf, argument
90 struct scom_debug_entry *ent = filp->private_data;
118 static ssize_t scom_debug_write(struct file *filp, const char __user *ubuf, argument
121 struct scom_debug_entry *ent = filp->private_data;
/linux-master/include/linux/
H A Dtty_port.h241 struct file *filp);
243 struct file *filp);
246 struct file *filp);
250 struct file *filp);
/linux-master/kernel/bpf/
H A Dtoken.c61 static int bpf_token_release(struct inode *inode, struct file *filp) argument
63 struct bpf_token *token = filp->private_data;
69 static void bpf_token_show_fdinfo(struct seq_file *m, struct file *filp) argument
71 struct bpf_token *token = filp->private_data;
/linux-master/fs/f2fs/
H A Dverity.c118 static int f2fs_begin_enable_verity(struct file *filp) argument
120 struct inode *inode = file_inode(filp);
146 static int f2fs_end_enable_verity(struct file *filp, const void *desc, argument
149 struct inode *inode = file_inode(filp);
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_gem.c118 struct drm_file *filp,
136 ret = drm_gem_handle_create(filp, &(*p_vbo)->tbo.base, handle);
175 struct drm_file *filp)
186 ret = vmw_gem_object_create_with_handle(dev_priv, filp,
117 vmw_gem_object_create_with_handle(struct vmw_private *dev_priv, struct drm_file *filp, uint32_t size, uint32_t *handle, struct vmw_bo **p_vbo) argument
174 vmw_gem_object_create_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) argument
/linux-master/arch/riscv/kvm/
H A Dmain.c17 long kvm_arch_dev_ioctl(struct file *filp, argument
/linux-master/arch/arc/mm/
H A Dmmap.c25 arch_get_unmapped_area(struct file *filp, unsigned long addr, argument
/linux-master/drivers/dma-buf/
H A Dudmabuf.c293 static long udmabuf_ioctl_create(struct file *filp, unsigned long arg) argument
309 return udmabuf_create(filp->private_data, &head, &list);
312 static long udmabuf_ioctl_create_list(struct file *filp, unsigned long arg) argument
328 ret = udmabuf_create(filp->private_data, &head, list);
333 static long udmabuf_ioctl(struct file *filp, unsigned int ioctl, argument
340 ret = udmabuf_ioctl_create(filp, arg);
343 ret = udmabuf_ioctl_create_list(filp, arg);
/linux-master/arch/mips/sibyte/common/
H A Dsb_tbprof.c253 static int sbprof_zbprof_start(struct file *filp) argument
264 filp->f_pos = 0;
389 static int sbprof_tb_open(struct inode *inode, struct file *filp) argument
418 static int sbprof_tb_release(struct inode *inode, struct file *filp) argument
440 static ssize_t sbprof_tb_read(struct file *filp, char __user *buf, argument
491 static long sbprof_tb_ioctl(struct file *filp, argument
500 err = sbprof_zbprof_start(filp);
/linux-master/drivers/virt/
H A Dfsl_hypervisor.c570 static __poll_t fsl_hv_poll(struct file *filp, struct poll_table_struct *p) argument
572 struct doorbell_queue *dbq = filp->private_data;
578 poll_wait(filp, &dbq->wait, p);
593 static ssize_t fsl_hv_read(struct file *filp, char __user *buf, size_t len, argument
596 struct doorbell_queue *dbq = filp->private_data;
616 if (filp->f_flags & O_NONBLOCK)
658 static int fsl_hv_open(struct inode *inode, struct file *filp) argument
676 filp->private_data = dbq;
684 static int fsl_hv_close(struct inode *inode, struct file *filp) argument
686 struct doorbell_queue *dbq = filp
[all...]
/linux-master/fs/crypto/
H A Dpolicy.c503 int fscrypt_ioctl_set_policy(struct file *filp, const void __user *arg) argument
507 struct inode *inode = file_inode(filp);
538 ret = mnt_want_write_file(filp);
563 mnt_drop_write_file(filp);
569 int fscrypt_ioctl_get_policy(struct file *filp, void __user *arg) argument
574 err = fscrypt_get_policy(file_inode(filp), &policy);
588 int fscrypt_ioctl_get_policy_ex(struct file *filp, void __user *uarg) argument
601 err = fscrypt_get_policy(file_inode(filp), policy);
620 int fscrypt_ioctl_get_nonce(struct file *filp, void __user *arg) argument
622 struct inode *inode = file_inode(filp);
[all...]
/linux-master/drivers/xen/xenbus/
H A Dxenbus_dev_frontend.c125 static ssize_t xenbus_file_read(struct file *filp, argument
129 struct xenbus_file_priv *u = filp->private_data;
138 if (filp->f_flags & O_NONBLOCK)
550 static ssize_t xenbus_file_write(struct file *filp, argument
554 struct xenbus_file_priv *u = filp->private_data;
649 static int xenbus_file_open(struct inode *inode, struct file *filp) argument
656 stream_open(inode, filp);
673 filp->private_data = u;
678 static int xenbus_file_release(struct inode *inode, struct file *filp) argument
680 struct xenbus_file_priv *u = filp
[all...]
/linux-master/arch/powerpc/platforms/pseries/
H A Ddtl.c240 static int dtl_file_open(struct inode *inode, struct file *filp) argument
249 filp->private_data = dtl;
253 static int dtl_file_release(struct inode *inode, struct file *filp) argument
260 static ssize_t dtl_file_read(struct file *filp, char __user *buf, size_t len, argument
270 dtl = filp->private_data;
/linux-master/drivers/gpu/drm/
H A Ddrm_ioc32.c350 * @filp: file this ioctl is called on
362 long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
365 struct drm_file *file_priv = filp->private_data;
375 return drm_ioctl(filp, cmd, arg);
379 return drm_ioctl(filp, cmd, arg);
386 ret = (*fn)(filp, cmd, arg);
/linux-master/fs/ext2/
H A Dfile.c139 * Called when filp is released. This happens when all file descriptors
143 static int ext2_release_file (struct inode * inode, struct file * filp) argument
145 if (filp->f_mode & FMODE_WRITE) {
305 static int ext2_file_open(struct inode *inode, struct file *filp) argument
307 filp->f_mode |= FMODE_CAN_ODIRECT;
308 return dquot_file_open(inode, filp);
/linux-master/drivers/md/
H A Ddm-ioctl.c528 typedef int (*ioctl_fn)(struct file *filp, struct dm_ioctl *param, size_t param_size);
530 static int remove_all(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
591 static int list_devices(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
757 static int list_versions(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
762 static int get_target_version(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
879 static int dev_create(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
977 static int dev_remove(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1044 static int dev_rename(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1074 static int dev_set_geometry(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1233 static int dev_suspend(struct file *filp, struc argument
1245 dev_status(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1338 dev_wait(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1379 dev_arm_poll(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1496 table_load(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1583 table_clear(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1666 table_deps(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1692 table_status(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
1747 target_message(struct file *filp, struct dm_ioctl *param, size_t param_size) argument
2116 dm_open(struct inode *inode, struct file *filp) argument
2134 dm_release(struct inode *inode, struct file *filp) argument
2140 dm_poll(struct file *filp, poll_table *wait) argument
[all...]
/linux-master/kernel/
H A Drelay.c809 * @filp: the file
813 static int relay_file_open(struct inode *inode, struct file *filp) argument
817 filp->private_data = buf;
819 return nonseekable_open(inode, filp);
824 * @filp: the file
829 static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma) argument
831 struct rchan_buf *buf = filp->private_data;
837 * @filp: the file
842 static __poll_t relay_file_poll(struct file *filp, poll_table *wait) argument
845 struct rchan_buf *buf = filp
867 relay_file_release(struct inode *inode, struct file *filp) argument
1033 relay_file_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/net/wwan/
H A Dwwan_core.c677 static int wwan_port_fops_release(struct inode *inode, struct file *filp) argument
679 struct wwan_port *port = filp->private_data;
687 static ssize_t wwan_port_fops_read(struct file *filp, char __user *buf, argument
690 struct wwan_port *port = filp->private_data;
695 ret = wwan_wait_rx(port, !!(filp->f_flags & O_NONBLOCK));
719 static ssize_t wwan_port_fops_write(struct file *filp, const char __user *buf, argument
723 struct wwan_port *port = filp->private_data;
727 ret = wwan_wait_tx(port, !!(filp->f_flags & O_NONBLOCK));
762 ret = wwan_port_op_tx(port, head, !!(filp->f_flags & O_NONBLOCK));
771 static __poll_t wwan_port_fops_poll(struct file *filp, poll_tabl argument
865 wwan_port_fops_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
[all...]
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_vce.c167 rdev->vce.filp[i] = NULL;
311 * @filp: drm file pointer
315 void radeon_vce_free_handles(struct radeon_device *rdev, struct drm_file *filp) argument
320 if (!handle || rdev->vce.filp[i] != filp)
330 rdev->vce.filp[i] = NULL;
528 if (p->rdev->vce.filp[i] != p->filp) {
539 p->rdev->vce.filp[i] = p->filp;
[all...]
/linux-master/drivers/s390/char/
H A Dvmlogrdr.c91 static ssize_t vmlogrdr_read (struct file *filp, char __user *data,
309 static int vmlogrdr_open (struct inode *inode, struct file *filp) argument
324 if (filp->f_flags & O_NONBLOCK)
341 filp->private_data = logptr;
372 nonseekable_open(inode, filp);
387 static int vmlogrdr_release (struct inode *inode, struct file *filp) argument
391 struct vmlogrdr_priv_t * logptr = filp->private_data;
476 static ssize_t vmlogrdr_read(struct file *filp, char __user *data, argument
480 struct vmlogrdr_priv_t * priv = filp->private_data;
/linux-master/kernel/sched/
H A Ddebug.c124 sched_feat_write(struct file *filp, const char __user *ubuf, argument
142 inode = file_inode(filp);
156 static int sched_feat_open(struct inode *inode, struct file *filp) argument
158 return single_open(filp, sched_feat_show, NULL);
171 static ssize_t sched_scaling_write(struct file *filp, const char __user *ubuf, argument
204 static int sched_scaling_open(struct inode *inode, struct file *filp) argument
206 return single_open(filp, sched_scaling_show, NULL);
221 static ssize_t sched_dynamic_write(struct file *filp, const char __user *ubuf, argument
266 static int sched_dynamic_open(struct inode *inode, struct file *filp) argument
268 return single_open(filp, sched_dynamic_sho
287 sched_verbose_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
324 sched_debug_open(struct inode *inode, struct file *filp) argument
[all...]
/linux-master/drivers/net/wireless/ath/wil6210/
H A Dpmc.c314 ssize_t wil_pmc_read(struct file *filp, char __user *buf, size_t count, argument
317 struct wil6210_priv *wil = filp->private_data;
370 loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence) argument
373 struct wil6210_priv *wil = filp->private_data;
394 newpos = filp->f_pos + off;
413 filp->f_pos = newpos;
/linux-master/fs/configfs/
H A Dfile.c379 static int configfs_release(struct inode *inode, struct file *filp) argument
381 struct configfs_buffer *buffer = filp->private_data;
391 static int configfs_open_file(struct inode *inode, struct file *filp) argument
393 return __configfs_open_file(inode, filp, CONFIGFS_ITEM_ATTR);
396 static int configfs_open_bin_file(struct inode *inode, struct file *filp) argument
398 return __configfs_open_file(inode, filp, CONFIGFS_ITEM_BIN_ATTR);

Completed in 585 milliseconds

1234567891011>>