Lines Matching refs:NewFile
483 FV_FILESYSTEM_FILE *NewFile;
518 NewFile = AllocateZeroPool (sizeof (FV_FILESYSTEM_FILE));
519 if (NewFile == NULL) {
522 NewFile->Signature = FVFS_FILE_SIGNATURE;
523 NewFile->Instance = Instance;
524 NewFile->FvFileInfo = File->FvFileInfo;
525 CopyMem (&NewFile->FileProtocol, &mFileSystemTemplate, sizeof (mFileSystemTemplate));
526 InitializeListHead (&NewFile->Link);
527 InsertHeadList (&Instance->FileHead, &NewFile->Link);
529 NewFile->DirReadNext = FVFS_GET_FIRST_FILE_INFO (Instance);
531 *NewHandle = &NewFile->FileProtocol;
578 NewFile = AllocateZeroPool (sizeof (FV_FILESYSTEM_FILE));
579 if (NewFile == NULL) {
583 NewFile->Signature = FVFS_FILE_SIGNATURE;
584 NewFile->Instance = Instance;
585 NewFile->FvFileInfo = FvFileInfo;
586 CopyMem (&NewFile->FileProtocol, &mFileSystemTemplate, sizeof (mFileSystemTemplate));
587 InitializeListHead (&NewFile->Link);
588 InsertHeadList (&Instance->FileHead, &NewFile->Link);
590 *NewHandle = &NewFile->FileProtocol;