Lines Matching defs:file
69 static inline struct ipmb_dev *to_ipmb_dev(struct file *file)
71 return container_of(file->private_data, struct ipmb_dev, miscdev);
74 static ssize_t ipmb_read(struct file *file, char __user *buf, size_t count,
77 struct ipmb_dev *ipmb_dev = to_ipmb_dev(file);
89 if (file->f_flags & O_NONBLOCK)
135 static ssize_t ipmb_write(struct file *file, const char __user *buf,
138 struct ipmb_dev *ipmb_dev = to_ipmb_dev(file);
180 static __poll_t ipmb_poll(struct file *file, poll_table *wait)
182 struct ipmb_dev *ipmb_dev = to_ipmb_dev(file);
186 poll_wait(file, &ipmb_dev->wait_queue, wait);