Lines Matching refs:fp
434 static ssize_t ilo_read(struct file *fp, char __user *buf,
438 struct ccb_data *data = fp->private_data;
484 static ssize_t ilo_write(struct file *fp, const char __user *buf,
488 struct ccb_data *data = fp->private_data;
516 static __poll_t ilo_poll(struct file *fp, poll_table *wait)
518 struct ccb_data *data = fp->private_data;
521 poll_wait(fp, &data->ccb_waitq, wait);
531 static int ilo_close(struct inode *ip, struct file *fp)
545 data = fp->private_data;
562 static int ilo_open(struct inode *ip, struct file *fp)
589 data->ccb_excl = fp->f_flags & O_EXCL;
615 if (fp->f_flags & O_EXCL || hw->ccb_alloc[slot]->ccb_excl) {
631 fp->private_data = hw->ccb_alloc[slot];