Lines Matching refs:gBS
48 if (gBS->FreePages(mem - FRONT_BYTES, (nbramdisk.size / PAGE_SIZE) + FRONT_PAGES)) {
60 if (gBS->AllocatePages(AllocateMaxAddress, EfiLoaderData,
91 status = gBS->CreateEvent(EVT_TIMER, 0, NULL, NULL, &TimerEvent);
97 status = gBS->SetTimer(TimerEvent, TimerPeriodic, 10000000);
120 status = gBS->WaitForEvent(wait_idx, WaitList, &Index);
151 gBS->CloseEvent(TimerEvent);
223 if (gBS->AllocatePages(AllocateMaxAddress, EfiLoaderData, KBUFSIZE / 4096, &mem)) {
239 efi_tpl prev_tpl = gBS->RaiseTPL(TPL_NOTIFY);
278 r = gBS->LoadImage(false, gImg, (efi_device_path_protocol*)mempath, (void*)nbkernel.data, nbkernel.offset, &h);
283 r = gBS->StartImage(h, &exitdatasize, NULL);
296 gBS->RestoreTPL(prev_tpl);
344 if (xefi_find_pci_mmio(gBS, 0x0C, 0x03, 0x30, &mmio) == EFI_SUCCESS) {
358 efi_status status = gBS->LocateProtocol(&GraphicsOutputProtocol, NULL,
390 if (gBS->AllocatePages(AllocateAddress, EfiLoaderData,
502 gBS->SetWatchdogTimer(0, 0x10000, 0, NULL);