Lines Matching refs:file
204 struct file *file; in big_key_preparse() local
247 file = shmem_kernel_file_setup("", enclen, 0); in big_key_preparse()
248 if (IS_ERR(file)) { in big_key_preparse()
249 ret = PTR_ERR(file); in big_key_preparse()
253 written = kernel_write(file, buf->virt, enclen, &pos); in big_key_preparse()
265 *path = file->f_path; in big_key_preparse()
267 fput(file); in big_key_preparse()
282 fput(file); in big_key_preparse()
366 struct file *file; in big_key_read() local
375 file = dentry_open(path, O_RDONLY, current_cred()); in big_key_read()
376 if (IS_ERR(file)) { in big_key_read()
377 ret = PTR_ERR(file); in big_key_read()
382 ret = kernel_read(file, buf->virt, enclen, &pos); in big_key_read()
399 fput(file); in big_key_read()