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 = FVFS_GET_FIRST_FILE_INFO (Instance);
227 *RootFile = &Instance->Root->FileProtocol;
374 @param DriverBinding Protocol instance pointer.
406 @param DriverBinding Protocol instance pointer.
426 FV_FILESYSTEM_INSTANCE *Instance;
452 // Create an instance
454 Instance = AllocateZeroPool (sizeof (FV_FILESYSTEM_INSTANCE));
455 if (Instance == NULL) {
459 Instance->Root = NULL;
460 Instance->FvProtocol = FvProtocol;
461 Instance->Signature = FVFS_INSTANCE_SIGNATURE;
462 InitializeListHead (&Instance->FileInfoHead);
463 InitializeListHead (&Instance->FileHead);
464 CopyMem (&Instance->SimpleFs, &mSimpleFsTemplate, sizeof (mSimpleFsTemplate));
470 &Instance->SimpleFs
477 Instance->VolumeLabel = NULL;
496 Instance->VolumeLabel = AllocateZeroPool (FVFS_VOLUME_LABEL_SIZE);
500 if (Instance->VolumeLabel != NULL) {
509 Instance->VolumeLabel,
524 if (Instance->VolumeLabel == NULL) {
525 Instance->VolumeLabel = AllocateCopyPool (
538 @param DriverBinding Protocol instance pointer.
558 FV_FILESYSTEM_INSTANCE *Instance;
576 Instance = FVFS_INSTANCE_FROM_SIMPLE_FS_THIS (SimpleFile);
578 if (IsListEmpty (&Instance->FileHead) == FALSE) {
599 &Instance->SimpleFs
606 if (!IsListEmpty (&Instance->FileInfoHead)) {
610 for(Entry = Instance->FileInfoHead.ForwardLink;
611 Entry != (&Instance->FileInfoHead);
622 if (Instance->Root != NULL) {
626 if (Instance->Root->FvFileInfo != NULL) {
627 FreePool (Instance->Root->FvFileInfo);
629 FreePool (Instance->Root);
633 // Free Instance
635 if (Instance->VolumeLabel != NULL) {
636 FreePool (Instance->VolumeLabel);
638 FreePool (Instance);