Lines Matching refs:file
1377 struct file *file, poll_table *wait) in psi_trigger_poll() argument
1389 poll_wait(file, &t->event_wait, wait); in psi_trigger_poll()
1413 static int psi_io_open(struct inode *inode, struct file *file) in psi_io_open() argument
1415 return single_open(file, psi_io_show, NULL); in psi_io_open()
1418 static int psi_memory_open(struct inode *inode, struct file *file) in psi_memory_open() argument
1420 return single_open(file, psi_memory_show, NULL); in psi_memory_open()
1423 static int psi_cpu_open(struct inode *inode, struct file *file) in psi_cpu_open() argument
1425 return single_open(file, psi_cpu_show, NULL); in psi_cpu_open()
1428 static ssize_t psi_write(struct file *file, const char __user *user_buf, in psi_write() argument
1448 seq = file->private_data; in psi_write()
1471 static ssize_t psi_io_write(struct file *file, const char __user *user_buf, in psi_io_write() argument
1474 return psi_write(file, user_buf, nbytes, PSI_IO); in psi_io_write()
1477 static ssize_t psi_memory_write(struct file *file, const char __user *user_buf, in psi_memory_write() argument
1480 return psi_write(file, user_buf, nbytes, PSI_MEM); in psi_memory_write()
1483 static ssize_t psi_cpu_write(struct file *file, const char __user *user_buf, in psi_cpu_write() argument
1486 return psi_write(file, user_buf, nbytes, PSI_CPU); in psi_cpu_write()
1489 static __poll_t psi_fop_poll(struct file *file, poll_table *wait) in psi_fop_poll() argument
1491 struct seq_file *seq = file->private_data; in psi_fop_poll()
1493 return psi_trigger_poll(&seq->private, file, wait); in psi_fop_poll()
1496 static int psi_fop_release(struct inode *inode, struct file *file) in psi_fop_release() argument
1498 struct seq_file *seq = file->private_data; in psi_fop_release()
1501 return single_release(inode, file); in psi_fop_release()
1537 static int psi_irq_open(struct inode *inode, struct file *file) in psi_irq_open() argument
1539 return single_open(file, psi_irq_show, NULL); in psi_irq_open()
1542 static ssize_t psi_irq_write(struct file *file, const char __user *user_buf, in psi_irq_write() argument
1545 return psi_write(file, user_buf, nbytes, PSI_IRQ); in psi_irq_write()