Searched refs:filp (Results 301 - 325 of 723) sorted by relevance

<<11121314151617181920>>

/linux-master/fs/devpts/
H A Dinode.c149 struct vfsmount *devpts_mntget(struct file *filp, struct pts_fs_info *fsi) argument
154 path = filp->f_path;
180 struct pts_fs_info *devpts_acquire(struct file *filp) argument
186 path = filp->f_path;
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_fb.h92 struct drm_file *filp,
/linux-master/drivers/scsi/fnic/
H A Dfnic_debugfs.c83 * @filp: The file pointer to read from.
98 static ssize_t fnic_trace_ctrl_read(struct file *filp, argument
106 trace_type = (u8 *)filp->private_data;
123 * @filp: The file pointer to write from.
136 static ssize_t fnic_trace_ctrl_write(struct file *filp, argument
144 trace_type = (u8 *)filp->private_data;
449 * @filp: The file pointer to read from.
478 * @filp: The file pointer to write from.
/linux-master/drivers/tty/
H A Dehv_bytechan.c511 static int ehv_bc_tty_open(struct tty_struct *ttys, struct file *filp) argument
518 return tty_port_open(&bc->port, ttys, filp);
526 static void ehv_bc_tty_close(struct tty_struct *ttys, struct file *filp) argument
531 tty_port_close(&bc->port, ttys, filp);
H A Dgoldfish.c165 static int goldfish_tty_open(struct tty_struct *tty, struct file *filp) argument
168 return tty_port_open(&qtty->port, tty, filp);
171 static void goldfish_tty_close(struct tty_struct *tty, struct file *filp) argument
173 tty_port_close(tty->port, tty, filp);
/linux-master/drivers/infiniband/hw/mlx5/
H A Dcong.c371 static ssize_t set_param(struct file *filp, const char __user *buf, argument
374 struct mlx5_ib_dbg_param *param = filp->private_data;
395 static ssize_t get_param(struct file *filp, char __user *buf, size_t count, argument
398 struct mlx5_ib_dbg_param *param = filp->private_data;
/linux-master/drivers/net/wireless/realtek/rtw89/
H A Ddebug.c27 ssize_t (*cb_write)(struct file *filp, const char __user *buffer,
78 static ssize_t rtw89_debugfs_single_write(struct file *filp, argument
82 struct rtw89_debugfs_priv *debugfs_priv = filp->private_data;
84 return debugfs_priv->cb_write(filp, buffer, count, loff);
87 static ssize_t rtw89_debugfs_seq_file_write(struct file *filp, argument
91 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
94 return debugfs_priv->cb_write(filp, buffer, count, loff);
97 static int rtw89_debugfs_single_open(struct inode *inode, struct file *filp) argument
99 return single_open(filp, rtw89_debugfs_single_show, inode->i_private);
102 static int rtw89_debugfs_close(struct inode *inode, struct file *filp) argument
132 rtw89_debug_priv_read_reg_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
210 rtw89_debug_priv_write_reg_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
254 rtw89_debug_priv_read_rf_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
309 rtw89_debug_priv_write_rf_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
870 rtw89_debug_priv_mac_reg_dump_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
987 rtw89_debug_priv_mac_mem_dump_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
1097 rtw89_debug_priv_mac_dbg_port_dump_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3256 rtw89_debug_priv_send_h2c_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3294 rtw89_debug_priv_early_h2c_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3375 rtw89_debug_priv_fw_crash_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3423 rtw89_debug_priv_btc_manual_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3445 rtw89_debug_fw_log_manual_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3810 rtw89_debug_priv_disable_dm_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
[all...]
/linux-master/drivers/pci/switch/
H A Dswitchtec.c465 static int switchtec_dev_open(struct inode *inode, struct file *filp) argument
476 filp->private_data = stuser;
477 stream_open(inode, filp);
484 static int switchtec_dev_release(struct inode *inode, struct file *filp) argument
486 struct switchtec_user *stuser = filp->private_data;
506 static ssize_t switchtec_dev_write(struct file *filp, const char __user *data, argument
509 struct switchtec_user *stuser = filp->private_data;
558 static ssize_t switchtec_dev_read(struct file *filp, char __user *data, argument
561 struct switchtec_user *stuser = filp->private_data;
582 if (filp
634 switchtec_dev_poll(struct file *filp, poll_table *wait) argument
1201 switchtec_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
[all...]
/linux-master/drivers/platform/x86/
H A Dwmi-bmof.c28 static ssize_t read_bmof(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, argument
/linux-master/drivers/tee/
H A Dtee_shm.c431 static int tee_shm_fop_release(struct inode *inode, struct file *filp) argument
433 tee_shm_put(filp->private_data);
437 static int tee_shm_fop_mmap(struct file *filp, struct vm_area_struct *vma) argument
439 struct tee_shm *shm = filp->private_data;
/linux-master/drivers/crypto/hisilicon/
H A Ddebugfs.c141 static ssize_t qm_cmd_read(struct file *filp, char __user *buffer, argument
513 static ssize_t qm_cmd_write(struct file *filp, const char __user *buffer, argument
516 struct hisi_qm *qm = filp->private_data;
715 static ssize_t qm_debug_read(struct file *filp, char __user *buf, argument
718 struct debugfs_file *file = filp->private_data;
755 static ssize_t qm_debug_write(struct file *filp, const char __user *buf, argument
758 struct debugfs_file *file = filp->private_data;
1077 static ssize_t qm_status_read(struct file *filp, char __user *buffer, argument
1080 struct hisi_qm *qm = filp->private_data;
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vce.c192 adev->vce.filp[i] = NULL;
405 * @filp: drm file pointer
409 void amdgpu_vce_free_handles(struct amdgpu_device *adev, struct drm_file *filp) argument
417 if (!handle || adev->vce.filp[i] != filp)
424 adev->vce.filp[i] = NULL;
707 if (p->adev->vce.filp[i] != p->filp) {
718 p->adev->vce.filp[i] = p->filp;
[all...]
/linux-master/include/drm/
H A Ddrm_gem_vram_helper.h21 struct filp;
/linux-master/arch/sparc/mm/
H A Dhugetlbpage.c26 static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *filp, argument
32 struct hstate *h = hstate_file(filp);
56 hugetlb_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, argument
61 struct hstate *h = hstate_file(filp);
/linux-master/drivers/fpga/
H A Ddfl-afu-main.c596 static int afu_open(struct inode *inode, struct file *filp) argument
607 ret = dfl_feature_dev_use_begin(pdata, filp->f_flags & O_EXCL);
611 filp->private_data = fdev;
618 static int afu_release(struct inode *inode, struct file *filp) argument
620 struct platform_device *pdev = filp->private_data;
757 static long afu_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
759 struct platform_device *pdev = filp->private_data;
805 static int afu_mmap(struct file *filp, struct vm_area_struct *vma) argument
807 struct platform_device *pdev = filp->private_data;
/linux-master/drivers/dma/idxd/
H A Dcdev.c221 static int idxd_cdev_open(struct inode *inode, struct file *filp) argument
250 filp->private_data = ctx;
392 static int idxd_cdev_mmap(struct file *filp, struct vm_area_struct *vma) argument
394 struct idxd_user_context *ctx = filp->private_data;
473 static ssize_t idxd_cdev_write(struct file *filp, const char __user *buf, size_t len, argument
477 struct idxd_user_context *ctx = filp->private_data;
493 static __poll_t idxd_cdev_poll(struct file *filp, argument
496 struct idxd_user_context *ctx = filp->private_data;
501 poll_wait(filp, &wq->err_queue, wait);
/linux-master/include/linux/
H A Dnfs_fs.h442 extern struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, fmode_t f_mode, struct file *filp);
444 extern void nfs_file_set_open_context(struct file *filp, struct nfs_open_context *ctx);
520 static inline struct nfs_open_context *nfs_file_open_context(struct file *filp) argument
522 return filp->private_data;
/linux-master/security/selinux/
H A Dselinuxfs.c123 static ssize_t sel_read_enforce(struct file *filp, char __user *buf, argument
199 static ssize_t sel_read_handle_unknown(struct file *filp, char __user *buf, argument
204 ino_t ino = file_inode(filp)->i_ino;
218 static int sel_open_handle_status(struct inode *inode, struct file *filp) argument
225 filp->private_data = status;
230 static ssize_t sel_read_handle_status(struct file *filp, char __user *buf, argument
233 struct page *status = filp->private_data;
242 static int sel_mmap_handle_status(struct file *filp, argument
245 struct page *status = filp->private_data;
311 static ssize_t sel_read_policyvers(struct file *filp, cha argument
342 sel_read_mls(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
363 sel_open_policy(struct inode *inode, struct file *filp) argument
413 sel_release_policy(struct inode *inode, struct file *filp) argument
428 sel_read_policy(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
468 sel_mmap_policy(struct file *filp, struct vm_area_struct *vma) argument
667 sel_read_checkreqprot(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1409 sel_read_avc_cache_threshold(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1458 sel_read_avc_hash_stats(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1476 sel_read_sidtab_hash_stats(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/infiniband/core/
H A Ducma.c78 struct file *filp; member in struct:ucma_file
389 if (file->filp->f_flags & O_NONBLOCK)
1714 static ssize_t ucma_write(struct file *filp, const char __user *buf, argument
1717 struct ucma_file *file = filp->private_data;
1721 if (!ib_safe_file_access(filp)) {
1750 static __poll_t ucma_poll(struct file *filp, struct poll_table_struct *wait) argument
1752 struct ucma_file *file = filp->private_data;
1755 poll_wait(filp, &file->poll_wait, wait);
1771 static int ucma_open(struct inode *inode, struct file *filp) argument
1784 filp
1790 ucma_close(struct inode *inode, struct file *filp) argument
[all...]
/linux-master/fs/
H A Dread_write.c385 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) argument
391 init_sync_kiocb(&kiocb, filp);
395 ret = filp->f_op->read_iter(&kiocb, &iter);
487 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) argument
493 init_sync_kiocb(&kiocb, filp);
497 ret = filp->f_op->write_iter(&kiocb, &iter);
726 static ssize_t do_iter_readv_writev(struct file *filp, struct iov_iter *iter, argument
732 init_sync_kiocb(&kiocb, filp);
739 ret = filp->f_op->read_iter(&kiocb, iter);
741 ret = filp
749 do_loop_readv_writev(struct file *filp, struct iov_iter *iter, loff_t *ppos, int type, rwf_t flags) argument
[all...]
/linux-master/drivers/media/usb/hdpvr/
H A Dhdpvr-video.c526 static __poll_t hdpvr_poll(struct file *filp, poll_table *wait) argument
530 struct hdpvr_device *dev = video_drvdata(filp);
531 __poll_t mask = v4l2_ctrl_poll(filp, wait);
544 dev->owner = filp->private_data;
554 poll_wait(filp, &dev->wait_data, wait);
1040 static int vidioc_encoder_cmd(struct file *filp, void *priv, argument
1043 struct hdpvr_device *dev = video_drvdata(filp);
1051 if (dev->owner && filp->private_data != dev->owner) {
1059 dev->owner = filp->private_data;
1064 if (dev->owner && filp
1085 vidioc_try_encoder_cmd(struct file *filp, void *priv, struct v4l2_encoder_cmd *a) argument
[all...]
/linux-master/fs/smb/server/
H A Dsmb2pdu.c2805 struct file *filp = NULL; local
2926 rc = ksmbd_vfs_getattr(&fp->filp->f_path, &stat);
3243 filp = dentry_open(&path, open_flags, current_cred());
3244 if (IS_ERR(filp)) {
3245 rc = PTR_ERR(filp);
3263 ksmbd_vfs_set_fadvise(filp, req->CreateOptions);
3266 fp = ksmbd_open_fd(work, filp);
3268 fput(filp);
3392 if (!S_ISDIR(file_inode(filp)->i_mode) && open_flags & O_TRUNC &&
3398 share_ret = ksmbd_smb_check_shared_mode(fp->filp, f
5879 smb2_create_link(struct ksmbd_work *work, struct ksmbd_share_config *share, struct smb2_file_link_info *file_info, unsigned int buf_len, struct file *filp, struct nls_table *local_nls) argument
5959 struct file *filp; local
7165 struct file *filp = NULL; local
[all...]
/linux-master/drivers/s390/crypto/
H A Dzcrypt_api.c478 static ssize_t zcrypt_read(struct file *filp, char __user *buf, argument
489 static ssize_t zcrypt_write(struct file *filp, const char __user *buf, argument
500 static int zcrypt_open(struct inode *inode, struct file *filp) argument
504 if (filp->f_inode->i_cdev == &zcrypt_cdev) {
509 zcdndev = find_zcdndev_by_devt(filp->f_inode->i_rdev);
515 filp->private_data = (void *)perms;
518 return stream_open(inode, filp);
526 static int zcrypt_release(struct inode *inode, struct file *filp) argument
528 if (filp->f_inode->i_cdev == &zcrypt_cdev) {
532 zcdndev = find_zcdndev_by_devt(filp
1582 zcrypt_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
1723 trans_modexpo32(struct ap_perms *perms, struct file *filp, unsigned int cmd, unsigned long arg) argument
1770 trans_modexpo_crt32(struct ap_perms *perms, struct file *filp, unsigned int cmd, unsigned long arg) argument
1828 trans_xcrb32(struct ap_perms *perms, struct file *filp, unsigned int cmd, unsigned long arg) argument
1879 zcrypt_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
[all...]
H A Dpkey_api.c1347 static long pkey_unlocked_ioctl(struct file *filp, unsigned int cmd, argument
1852 static ssize_t protkey_aes_128_read(struct file *filp, argument
1862 static ssize_t protkey_aes_192_read(struct file *filp, argument
1872 static ssize_t protkey_aes_256_read(struct file *filp, argument
1882 static ssize_t protkey_aes_128_xts_read(struct file *filp, argument
1892 static ssize_t protkey_aes_256_xts_read(struct file *filp, argument
1956 static ssize_t ccadata_aes_128_read(struct file *filp, argument
1966 static ssize_t ccadata_aes_192_read(struct file *filp, argument
1976 static ssize_t ccadata_aes_256_read(struct file *filp, argument
1986 static ssize_t ccadata_aes_128_xts_read(struct file *filp, argument
1996 ccadata_aes_256_xts_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2078 ccacipher_aes_128_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2088 ccacipher_aes_192_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2098 ccacipher_aes_256_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2108 ccacipher_aes_128_xts_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2118 ccacipher_aes_256_xts_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2205 ep11_aes_128_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2215 ep11_aes_192_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2225 ep11_aes_256_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2235 ep11_aes_128_xts_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
2245 ep11_aes_256_xts_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
[all...]
/linux-master/drivers/w1/slaves/
H A Dw1_ds2431.c97 static ssize_t eeprom_read(struct file *filp, struct kobject *kobj, argument
203 static ssize_t eeprom_write(struct file *filp, struct kobject *kobj, argument

Completed in 470 milliseconds

<<11121314151617181920>>