Lines Matching refs:file
11 static ssize_t xsd_read(struct file *file, char __user *buf, in xsd_read() argument
14 const char *str = (const char *)file->private_data; in xsd_read()
18 static int xsd_release(struct inode *inode, struct file *file) in xsd_release() argument
20 kfree(file->private_data); in xsd_release()
24 static int xsd_kva_open(struct inode *inode, struct file *file) in xsd_kva_open() argument
26 file->private_data = (void *)kasprintf(GFP_KERNEL, "0x%p", in xsd_kva_open()
28 if (!file->private_data) in xsd_kva_open()
33 static int xsd_kva_mmap(struct file *file, struct vm_area_struct *vma) in xsd_kva_mmap() argument
55 static int xsd_port_open(struct inode *inode, struct file *file) in xsd_port_open() argument
57 file->private_data = (void *)kasprintf(GFP_KERNEL, "%d", in xsd_port_open()
59 if (!file->private_data) in xsd_port_open()