Lines Matching defs:file
64 static struct file *acpi_aml_active_reader;
469 static int acpi_aml_open(struct inode *inode, struct file *file)
483 if ((file->f_flags & O_ACCMODE) != O_WRONLY) {
493 acpi_aml_active_reader = file;
505 if (acpi_aml_active_reader == file) {
527 if (acpi_aml_active_reader == file)
535 static int acpi_aml_release(struct inode *inode, struct file *file)
539 if (file == acpi_aml_active_reader) {
606 static ssize_t acpi_aml_read(struct file *file, char __user *buf,
621 if (file->f_flags & O_NONBLOCK)
676 static ssize_t acpi_aml_write(struct file *file, const char __user *buf,
691 if (file->f_flags & O_NONBLOCK)
718 static __poll_t acpi_aml_poll(struct file *file, poll_table *wait)
722 poll_wait(file, &acpi_aml_io.wait, wait);