Lines Matching refs:Handle

16 #include "Handle.h"
74 IHANDLE *Handle;
76 Handle = (IHANDLE *)UserHandle;
77 if (Handle == NULL) {
80 if (Handle->Signature != EFI_HANDLE_SIGNATURE) {
164 @param Handle The handle to search the protocol on
173 IN IHANDLE *Handle,
195 for (Link = Handle->Protocols.ForwardLink; Link != &Handle->Protocols; Link=Link->ForwardLink) {
349 IHANDLE *Handle;
372 Handle = NULL;
406 Handle = (IHANDLE *)*UserHandle;
407 if (Handle == NULL) {
408 Handle = AllocateZeroPool (sizeof(IHANDLE));
409 if (Handle == NULL) {
417 Handle->Signature = EFI_HANDLE_SIGNATURE;
418 InitializeListHead (&Handle->Protocols);
424 Handle->Key = gHandleDatabaseKey;
430 InsertTailList (&gHandleList, &Handle->AllHandles);
433 Status = CoreValidateHandle (Handle);
441 ASSERT (CoreFindProtocolInterface (Handle, Protocol, Interface) == NULL);
447 Prot->Handle = Handle;
461 InsertHeadList (&Handle->Protocols, &Prot->Link);
486 *UserHandle = Handle;
508 @param Handle The handle to install the protocol handlers on,
513 protocols are added to Handle.
515 @retval EFI_INVALID_PARAMETER Handle is NULL.
522 IN OUT EFI_HANDLE *Handle,
536 if (Handle == NULL) {
544 OldHandle = *Handle;
549 VA_START (Args, Handle);
577 Status = CoreInstallProtocolInterface (Handle, Protocol, EFI_NATIVE_INTERFACE, Interface);
588 VA_START (Args, Handle);
592 CoreUninstallProtocolInterface (*Handle, Protocol, Interface);
596 *Handle = OldHandle;
714 IHANDLE *Handle;
764 Handle = (IHANDLE *)UserHandle;
765 Prot = CoreRemoveInterfaceFromProtocol (Handle, Protocol, Interface);
772 Handle->Key = gHandleDatabaseKey;
790 if (IsListEmpty (&Handle->Protocols)) {
791 Handle->Signature = 0;
792 RemoveEntryList (&Handle->AllHandles);
793 CoreFreePool (Handle);
812 @param Handle The handle to uninstall the protocol
816 the protocols are added to Handle.
824 IN EFI_HANDLE Handle,
834 VA_START (Args, Handle);
849 Status = CoreUninstallProtocolInterface (Handle, Protocol, Interface);
861 VA_START (Args, Handle);
865 CoreInstallProtocolInterface (&Handle, Protocol, EFI_NATIVE_INTERFACE, Interface);
875 Locate a certain GUID protocol interface in a Handle's protocols.
892 IHANDLE *Handle;
900 Handle = (IHANDLE *)UserHandle;
905 for (Link = Handle->Protocols.ForwardLink; Link != &Handle->Protocols; Link = Link->ForwardLink) {
927 @retval EFI_INVALID_PARAMETER Handle is NULL..
966 specified by Handle and Protocol.
1201 @retval EFI_INVALID_PARAMETER Handle, AgentHandle or ControllerHandle is not a
1293 @retval EFI_NOT_FOUND Handle does not support the protocol specified by Protocol.
1387 pointers that are installed on Handle.
1392 on Handle was returned in ProtocolBuffer. The
1395 @retval EFI_INVALID_PARAMETER Handle is NULL.
1396 @retval EFI_INVALID_PARAMETER Handle is not a valid EFI_HANDLE.
1412 IHANDLE *Handle;
1423 Handle = (IHANDLE *)UserHandle;
1439 for (Link = Handle->Protocols.ForwardLink; Link != &Handle->Protocols; Link = Link->ForwardLink) {
1444 // If there are no protocol interfaces installed on Handle, then Handle is not a valid EFI_HANDLE
1460 for ( Link = Handle->Protocols.ForwardLink, ProtocolCount = 0;
1461 Link != &Handle->Protocols;
1479 @return Handle database key.
1507 IHANDLE *Handle;
1516 Handle = CR (Link, IHANDLE, AllHandles, EFI_HANDLE_SIGNATURE);
1517 if (Handle->Key > Key) {
1529 Handle = CR (Link, IHANDLE, AllHandles, EFI_HANDLE_SIGNATURE);
1530 if (Handle->Key > Key) {
1531 HandleBuffer[Count++] = Handle;