Lines Matching refs:Instance
96 FV_FILESYSTEM_INSTANCE *Instance;
104 Instance = FVFS_INSTANCE_FROM_SIMPLE_FS_THIS (This);
107 if (Instance->Root == NULL) {
116 Instance->Root = Root;
117 Root->Instance = Instance;
128 // Populate the instance's list of files. We consider anything a file that
131 FvProtocol = Instance->FvProtocol;
215 InsertHeadList (&Instance->FileInfoHead, &FvFileInfo->Link);
226 Instance->Root->DirReadNext = NULL;
227 if (!IsListEmpty (&Instance->FileInfoHead)) {
228 Instance->Root->DirReadNext = FVFS_GET_FIRST_FILE_INFO (Instance);
231 *RootFile = &Instance->Root->FileProtocol;
378 @param DriverBinding Protocol instance pointer.
410 @param DriverBinding Protocol instance pointer.
430 FV_FILESYSTEM_INSTANCE *Instance;
456 // Create an instance
458 Instance = AllocateZeroPool (sizeof (FV_FILESYSTEM_INSTANCE));
459 ASSERT (Instance != NULL);
461 Instance->Root = NULL;
462 Instance->FvProtocol = FvProtocol;
463 Instance->Signature = FVFS_INSTANCE_SIGNATURE;
464 InitializeListHead (&Instance->FileInfoHead);
465 InitializeListHead (&Instance->FileHead);
466 CopyMem (&Instance->SimpleFs, &mSimpleFsTemplate, sizeof (mSimpleFsTemplate));
472 &Instance->SimpleFs
480 Instance->VolumeLabel = NULL;
499 Instance->VolumeLabel = AllocateZeroPool (FVFS_VOLUME_LABEL_SIZE);
503 if (Instance->VolumeLabel != NULL) {
512 Instance->VolumeLabel,
527 if (Instance->VolumeLabel == NULL) {
528 Instance->VolumeLabel = AllocateCopyPool (
541 @param DriverBinding Protocol instance pointer.
561 FV_FILESYSTEM_INSTANCE *Instance;
579 Instance = FVFS_INSTANCE_FROM_SIMPLE_FS_THIS (SimpleFile);
581 if (IsListEmpty (&Instance->FileHead) == FALSE) {
602 &Instance->SimpleFs
609 if (!IsListEmpty (&Instance->FileInfoHead)) {
613 for(Entry = Instance->FileInfoHead.ForwardLink;
614 Entry != (&Instance->FileInfoHead);
625 if (Instance->Root != NULL) {
629 if (Instance->Root->FvFileInfo != NULL) {
630 FreePool (Instance->Root->FvFileInfo);
632 FreePool (Instance->Root);
636 // Free Instance
638 if (Instance->VolumeLabel != NULL) {
639 FreePool (Instance->VolumeLabel);
641 FreePool (Instance);