Lines Matching refs:file
292 static ssize_t f_hidg_intout_read(struct file *file, char __user *buffer,
295 struct f_hidg *hidg = file->private_data;
311 if (file->f_flags & O_NONBLOCK)
366 static ssize_t f_hidg_ssreport_read(struct file *file, char __user *buffer,
369 struct f_hidg *hidg = file->private_data;
380 if (file->f_flags & O_NONBLOCK)
407 static ssize_t f_hidg_read(struct file *file, char __user *buffer,
410 struct f_hidg *hidg = file->private_data;
413 return f_hidg_intout_read(file, buffer, count, ptr);
415 return f_hidg_ssreport_read(file, buffer, count, ptr);
434 static ssize_t f_hidg_write(struct file *file, const char __user *buffer,
437 struct f_hidg *hidg = file->private_data;
454 if (file->f_flags & O_NONBLOCK)
527 static __poll_t f_hidg_poll(struct file *file, poll_table *wait)
529 struct f_hidg *hidg = file->private_data;
532 poll_wait(file, &hidg->read_queue, wait);
533 poll_wait(file, &hidg->write_queue, wait);
553 static int f_hidg_release(struct inode *inode, struct file *fd)
559 static int f_hidg_open(struct inode *inode, struct file *fd)