Lines Matching refs:filp

338 static ssize_t ib_uverbs_event_read(struct file *filp, char __user *buf,  in ib_uverbs_event_read()  argument
341 struct ib_uverbs_event_file *file = filp->private_data; in ib_uverbs_event_read()
351 if (filp->f_flags & O_NONBLOCK) in ib_uverbs_event_read()
403 static unsigned int ib_uverbs_event_poll(struct file *filp, in ib_uverbs_event_poll() argument
407 struct ib_uverbs_event_file *file = filp->private_data; in ib_uverbs_event_poll()
409 poll_wait(filp, &file->poll_wait, wait); in ib_uverbs_event_poll()
419 static int ib_uverbs_event_fasync(int fd, struct file *filp, int on) in ib_uverbs_event_fasync() argument
421 struct ib_uverbs_event_file *file = filp->private_data; in ib_uverbs_event_fasync()
423 return fasync_helper(fd, filp, on, &file->async_queue); in ib_uverbs_event_fasync()
426 static int ib_uverbs_event_close(struct inode *inode, struct file *filp) in ib_uverbs_event_close() argument
428 struct ib_uverbs_event_file *file = filp->private_data; in ib_uverbs_event_close()
593 struct file *filp; in ib_uverbs_alloc_event_file() local
609 filp = anon_inode_getfile("[infinibandevent]", &uverbs_event_fops, in ib_uverbs_alloc_event_file()
611 if (IS_ERR(filp)) in ib_uverbs_alloc_event_file()
634 return filp; in ib_uverbs_alloc_event_file()
637 fput(filp); in ib_uverbs_alloc_event_file()
645 return filp; in ib_uverbs_alloc_event_file()
677 static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf, in ib_uverbs_write() argument
680 struct ib_uverbs_file *file = filp->private_data; in ib_uverbs_write()
687 if (WARN_ON_ONCE(!ib_safe_file_access(filp))) in ib_uverbs_write()
843 static int ib_uverbs_mmap(struct file *filp, struct vm_area_struct *vma) in ib_uverbs_mmap() argument
845 struct ib_uverbs_file *file = filp->private_data; in ib_uverbs_mmap()
877 static int ib_uverbs_open(struct inode *inode, struct file *filp) in ib_uverbs_open() argument
926 filp->private_data = file; in ib_uverbs_open()
932 return nonseekable_open(inode, filp); in ib_uverbs_open()
946 static int ib_uverbs_close(struct inode *inode, struct file *filp) in ib_uverbs_close() argument
948 struct ib_uverbs_file *file = filp->private_data; in ib_uverbs_close()