Lines Matching refs:file
288 static ssize_t f_hidg_intout_read(struct file *file, char __user *buffer,
291 struct f_hidg *hidg = file->private_data;
307 if (file->f_flags & O_NONBLOCK)
362 static ssize_t f_hidg_ssreport_read(struct file *file, char __user *buffer,
365 struct f_hidg *hidg = file->private_data;
376 if (file->f_flags & O_NONBLOCK)
403 static ssize_t f_hidg_read(struct file *file, char __user *buffer,
406 struct f_hidg *hidg = file->private_data;
409 return f_hidg_intout_read(file, buffer, count, ptr);
411 return f_hidg_ssreport_read(file, buffer, count, ptr);
430 static ssize_t f_hidg_write(struct file *file, const char __user *buffer,
433 struct f_hidg *hidg = file->private_data;
450 if (file->f_flags & O_NONBLOCK)
523 static __poll_t f_hidg_poll(struct file *file, poll_table *wait)
525 struct f_hidg *hidg = file->private_data;
528 poll_wait(file, &hidg->read_queue, wait);
529 poll_wait(file, &hidg->write_queue, wait);
549 static int f_hidg_release(struct inode *inode, struct file *fd)
555 static int f_hidg_open(struct inode *inode, struct file *fd)