Lines Matching refs:r
189 int r; in efi_add_memory_map() local
192 r = efi_mem_carve_out(lmem, &newlist->desc, in efi_add_memory_map()
194 switch (r) { in efi_add_memory_map()
213 carved_pages += r; in efi_add_memory_map()
282 efi_status_t r = EFI_SUCCESS; in efi_allocate_pages() local
290 r = EFI_NOT_FOUND; in efi_allocate_pages()
298 r = EFI_NOT_FOUND; in efi_allocate_pages()
308 r = EFI_INVALID_PARAMETER; in efi_allocate_pages()
312 if (r == EFI_SUCCESS) { in efi_allocate_pages()
321 r = EFI_OUT_OF_RESOURCES; in efi_allocate_pages()
325 return r; in efi_allocate_pages()
332 efi_status_t r; in efi_alloc() local
334 r = efi_allocate_pages(0, memory_type, pages, &ret); in efi_alloc()
335 if (r == EFI_SUCCESS) in efi_alloc()
343 uint64_t r = 0; in efi_free_pages() local
345 r = efi_add_memory_map(memory, pages, EFI_CONVENTIONAL_MEMORY, false); in efi_free_pages()
348 if (r == memory) in efi_free_pages()
357 efi_status_t r; in efi_allocate_pool() local
366 r = efi_allocate_pages(0, pool_type, num_pages, &t); in efi_allocate_pool()
368 if (r == EFI_SUCCESS) { in efi_allocate_pool()
374 return r; in efi_allocate_pool()
379 efi_status_t r; in efi_free_pool() local
389 r = efi_free_pages((uintptr_t)alloc, alloc->num_pages); in efi_free_pool()
391 return r; in efi_free_pool()