Lines Matching defs:file
8 * General Public License (GPL) Version 2, available from the file
49 #define private2dd(file) (file_inode(file)->i_private)
105 static ssize_t driver_stats_read(struct file *file, char __user *buf,
133 static ssize_t driver_names_read(struct file *file, char __user *buf,
146 static ssize_t dev_counters_read(struct file *file, char __user *buf,
151 struct qib_devdata *dd = private2dd(file);
158 static ssize_t dev_names_read(struct file *file, char __user *buf,
163 struct qib_devdata *dd = private2dd(file);
175 * Could use file_inode(file)->i_ino to figure out which file,
180 static ssize_t portnames_read(struct file *file, char __user *buf,
185 struct qib_devdata *dd = private2dd(file);
192 static ssize_t portcntrs_1_read(struct file *file, char __user *buf,
197 struct qib_devdata *dd = private2dd(file);
204 static ssize_t portcntrs_2_read(struct file *file, char __user *buf,
209 struct qib_devdata *dd = private2dd(file);
224 static ssize_t qsfp_1_read(struct file *file, char __user *buf,
227 struct qib_devdata *dd = private2dd(file);
245 static ssize_t qsfp_2_read(struct file *file, char __user *buf,
248 struct qib_devdata *dd = private2dd(file);
271 static ssize_t flash_read(struct file *file, char __user *buf,
300 dd = private2dd(file);
322 static ssize_t flash_write(struct file *file, const char __user *buf,
339 dd = private2dd(file);