Home | History | Annotate | Download | only in UefiShellCommandLib

Lines Matching refs:Node

170   SHELL_COMMAND_INTERNAL_LIST_ENTRY *Node;

178 Node = (SHELL_COMMAND_INTERNAL_LIST_ENTRY *)GetFirstNode(&mCommandList.Link);
179 RemoveEntryList(&Node->Link);
180 SHELL_FREE_NON_NULL(Node->CommandString);
181 FreePool(Node);
182 DEBUG_CODE(Node = NULL;);
311 SHELL_COMMAND_INTERNAL_LIST_ENTRY *Node;
321 for ( Node = (SHELL_COMMAND_INTERNAL_LIST_ENTRY *)GetFirstNode(&mCommandList.Link)
322 ; !IsNull(&mCommandList.Link, &Node->Link)
323 ; Node = (SHELL_COMMAND_INTERNAL_LIST_ENTRY *)GetNextNode(&mCommandList.Link, &Node->Link)
325 ASSERT(Node->CommandString != NULL);
329 Node->CommandString) == 0
394 SHELL_COMMAND_INTERNAL_LIST_ENTRY *Node;
404 for ( Node = (SHELL_COMMAND_INTERNAL_LIST_ENTRY *)GetFirstNode(&mCommandList.Link)
405 ; !IsNull(&mCommandList.Link, &Node->Link)
406 ; Node = (SHELL_COMMAND_INTERNAL_LIST_ENTRY *)GetNextNode(&mCommandList.Link, &Node->Link)
408 ASSERT(Node->CommandString != NULL);
412 Node->CommandString) == 0
414 return (HiiGetString(Node->HiiHandle, Node->ManFormatHelp, NULL));
505 SHELL_COMMAND_INTERNAL_LIST_ENTRY *Node;
542 Node = AllocateZeroPool(sizeof(SHELL_COMMAND_INTERNAL_LIST_ENTRY));
543 if (Node == NULL) {
546 Node->CommandString = AllocateCopyPool(StrSize(CommandString), CommandString);
547 if (Node->CommandString == NULL) {
548 FreePool (Node);
552 Node->GetManFileName = GetManFileName;
553 Node->CommandHandler = CommandHandler;
554 Node->LastError = CanAffectLE;
555 Node
556 Node->ManFormatHelp = ManFormatHelp;
576 InsertHeadList (&mCommandList.Link, &Node->Link);
659 SHELL_COMMAND_INTERNAL_LIST_ENTRY *Node;
670 for ( Node = (SHELL_COMMAND_INTERNAL_LIST_ENTRY *)GetFirstNode(&mCommandList.Link)
671 ; !IsNull(&mCommandList.Link, &Node->Link)
672 ; Node = (SHELL_COMMAND_INTERNAL_LIST_ENTRY *)GetNextNode(&mCommandList.Link, &Node->Link)
674 ASSERT(Node->CommandString != NULL);
678 Node->CommandString) == 0
681 *CanAffectLE = Node->LastError;
684 *RetVal = Node->CommandHandler(NULL, gST);
686 Node->CommandHandler(NULL, gST);
727 SHELL_COMMAND_INTERNAL_LIST_ENTRY *Node;
737 for ( Node = (SHELL_COMMAND_INTERNAL_LIST_ENTRY *)GetFirstNode(&mCommandList.Link)
738 ; !IsNull(&mCommandList.Link, &Node->Link)
739 ; Node = (SHELL_COMMAND_INTERNAL_LIST_ENTRY *)GetNextNode(&mCommandList.Link, &Node->Link)
741 ASSERT(Node->CommandString != NULL);
745 Node->CommandString) == 0
747 return (Node->GetManFileName());
794 ALIAS_LIST *Node;
808 Node = AllocateZeroPool(sizeof(ALIAS_LIST));
809 if (Node == NULL) {
812 Node->CommandString = AllocateCopyPool(StrSize(Command), Command);
813 if (Node->CommandString == NULL) {
814 FreePool (Node);
817 Node->Alias = AllocateCopyPool(StrSize(Alias), Alias);
818 if (Node->Alias == NULL) {
819 FreePool (Node->CommandString);
820 FreePool (Node);
824 InsertHeadList (&mAliasList.Link, &Node->Link);
889 ALIAS_LIST *Node;
899 for ( Node = (ALIAS_LIST *)GetFirstNode(&mAliasList.Link)
900 ; !IsNull(&mAliasList.Link, &Node->Link)
901 ; Node = (ALIAS_LIST *)GetNextNode(&mAliasList.Link, &Node->Link)
903 ASSERT(Node->CommandString != NULL);
904 ASSERT(Node->Alias != NULL);
908 Node->CommandString) == 0
915 Node->Alias) == 0
1104 SCRIPT_FILE_LIST *Node;
1109 Node = (SCRIPT_FILE_LIST *)GetFirstNode(&mScriptList.Link);
1110 RemoveEntryList(&Node->Link);
1111 DeleteScriptFileStruct(Node->Data);
1112 FreePool(Node);
1114 Node = AllocateZeroPool(sizeof(SCRIPT_FILE_LIST));
1115 if (Node == NULL) {
1118 Node->Data = Script;
1119 InsertHeadList(&mScriptList.Link, &Node->Link);
1156 Function to add a map node to the list of map items and update the "path" environment variable (optionally).
1588 BUFFER_LIST *Node;
1590 for (Node = (BUFFER_LIST*)GetFirstNode(&mFileHandleList.Link)
1591 ; !IsNull(&mFileHandleList.Link, &Node->Link)
1592 ; Node = (BUFFER_LIST*)GetNextNode(&mFileHandleList.Link, &Node->Link)
1594 if ((Node->Buffer) && (((SHELL_COMMAND_FILE_HANDLE *)Node->Buffer)->FileHandle == Handle)){
1595 return (((SHELL_COMMAND_FILE_HANDLE *)Node->Buffer)->Path);
1615 BUFFER_LIST *Node;
1617 for (Node = (BUFFER_LIST*)GetFirstNode(&mFileHandleList.Link)
1618 ; !IsNull(&mFileHandleList.Link, &Node->Link)
1619 ; Node = (BUFFER_LIST*)GetNextNode(&mFileHandleList.Link, &Node->Link)
1621 if ((Node->Buffer) && (((SHELL_COMMAND_FILE_HANDLE *)Node->Buffer)->FileHandle == Handle)){
1622 RemoveEntryList(&Node->Link);
1623 SHELL_FREE_NON_NULL(((SHELL_COMMAND_FILE_HANDLE *)Node->Buffer)->Path);
1624 SHELL_FREE_NON_NULL(Node->Buffer);
1625 SHELL_FREE_NON_NULL(Node);