Lines Matching full:file
138 pr_info("Successfully uploaded capsule file with reboot type '%s'\n",
143 pr_info("Successfully processed capsule file\n");
152 * @file: file pointer
160 * - Users should close and re-open this file note in order to upload more
162 * - After an error returned, user should close the file and restart the
164 * file is closed.
166 * binary file and passed in as first block data of write operation.
168 static ssize_t efi_capsule_write(struct file *file, const char __user *buff,
172 struct capsule_info *cap_info = file->private_data;
246 * efi_capsule_release - called by file close
248 * @file: file pointer
253 static int efi_capsule_release(struct inode *inode, struct file *file)
255 struct capsule_info *cap_info = file->private_data;
266 kfree(file->private_data);
267 file->private_data = NULL;
272 * efi_capsule_open - called by file open
274 * @file: file pointer
276 * Will allocate each capsule_info memory for each file open call.
277 * This provided the capability to support multiple file open feature
281 static int efi_capsule_open(struct inode *inode, struct file *file)
302 file->private_data = cap_info;