BS
status = BS->LoadImage(TRUE, IH, devpath_last(dev->devpath),
status = BS->StartImage(loaderhandle, NULL, NULL);
(void)BS->FreePool(buf);
(void)BS->FreePool(loaderbuf);
status = BS->AllocatePool(EfiLoaderData, sizeof(*devinfo),
(void)BS->FreePool(devinfo);
BS = ST->BootServices;
status = BS->LocateProtocol(&ConsoleControlGUID, NULL,
if ((status = BS->AllocatePool(EfiLoaderData, hsize, (void **)&handles))
status = BS->LocateHandle(ByProtocol, &BlockIoProtocolGUID, NULL,
(void)BS->FreePool(handles);
if ((status = BS->AllocatePool(EfiLoaderData, hsize,
status = BS->LocateHandle(ByProtocol, &BlockIoProtocolGUID,
if (BS->AllocatePool(EfiLoaderData, len, &out) == EFI_SUCCESS)
(void)BS->FreePool(buf);
#define DSTALL(d) BS->Stall(d)
BS->FreePool(label);
if ((status = BS->AllocatePool(EfiLoaderData, size, &buf)) !=
(void)BS->FreePool(buf);
status = BS->AllocatePool(EfiLoaderData, label_size, (void **)&label);
extern EFI_BOOT_SERVICES *BS;
if (BS->CreateEvent(EVT_TIMER, TPL_APPLICATION, 0, 0, &ev)
BS->SetTimer(ev, TimerRelative, usecs * 10);
BS->WaitForEvent(1, &ev, &junk);
BS->WaitForEvent(1, &conin->WaitForKey, &junk);
return (BS->CheckEvent(conin->WaitForKey) == EFI_SUCCESS);
status = BS->LocateHandle(ByProtocol, &sn_guid, 0, &sz, 0);
status = BS->LocateHandle(ByProtocol, &sn_guid, 0, &sz,
status = BS->OpenProtocol(h, &sn_guid, (void **)&net,
status = BS->LocateDevicePath(&blkio_guid, &tmpdevpath,
status = BS->AllocatePool(EfiLoaderData, label_size, (void **)&label);
BS->FreePool(label);
status = BS->LocateHandle(ByProtocol, &blkio_guid, 0, &sz, 0);
status = BS->LocateHandle(ByProtocol, &blkio_guid, 0, &sz,
EFI_BOOT_SERVICES *BS;
return (BS->OpenProtocol(handle, protocol, interface, IH, NULL,
err = BS->AllocatePages(AllocateMaxAddress, EfiLoaderData, 1,
err = BS->AllocatePages(AllocateMaxAddress, EfiLoaderData, 3,
status = BS->LocateHandle(ByProtocol, &uga_guid, NULL, &bufsz, NULL);
status = BS->LocateHandle(ByProtocol, &uga_guid, NULL, &bufsz, buf);
BS->FreePool(resattr);
status = BS->LocateProtocol(&gop_guid, NULL, (VOID **)&gop);
status = BS->LocateProtocol(&uga_guid, NULL, (VOID **)&uga);
status = BS->LocateProtocol(&gop_guid, NULL, (VOID **)&gop);
status = BS->LocateProtocol(&uga_guid, NULL, (VOID **)&uga);
BS->GetMemoryMap(&sz, NULL, &efi_mapkey, &mmsz, &mmver);
status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
status = BS->GetMemoryMap(&sz, mm, &efi_mapkey, &mmsz, &mmver);
status = BS->ExitBootServices(IH, efi_mapkey);
BS->FreePages(addr, pages);
status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
BS->Exit(IH, status, 0, NULL);
status = BS->HandleProtocol(IH, &image_protocol, (VOID**)&img);
BS->FreePages(heap, EFI_SIZE_TO_PAGES(heapsize));
BS->Exit(IH, exit_code, 0, NULL);
BS = ST->BootServices;
status = BS->LocateProtocol(&console_control_protocol, NULL,
status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
status = BS->LocateHandle(ByProtocol, &inputid, 0, &sz, 0);
status = BS->LocateHandle(ByProtocol, &inputid, 0, &sz,
BS->SetWatchdogTimer(0, 0, 0, NULL);
status = BS->GetMemoryMap(&sz, 0, &key, &dsz, &dver);
status = BS->GetMemoryMap(&sz, map, &key, &dsz, &dver);
O|BS, E|TB, E|NL, O|CC, E|VT, O|CR, O|CC, E|CC, /* bs - si */
case BS: /* can't go back further */