Lines Matching defs:file
259 static ssize_t gpio_mockup_debugfs_read(struct file *file,
273 sfile = file->private_data;
284 static ssize_t gpio_mockup_debugfs_write(struct file *file,
301 sfile = file->private_data;
310 static int gpio_mockup_debugfs_open(struct inode *inode, struct file *file)
312 return single_open(file, NULL, inode->i_private);
318 * a file using the line's offset as the name under the chip's directory.
320 * Reading from the line's file yields the current *value*, writing to the
321 * line's file changes the current *pull*. Default pull for mockup lines is
328 * the corresponding debugfs file will change the pull to down but the
333 * the same value to the debugfs file will be a noop, while writing the