Home
last modified time | relevance | path

Searched refs:newmap (Results 1 – 3 of 3) sorted by relevance

/third_party/uboot/u-boot-2020.01/lib/efi_loader/
Defi_memory.c173 struct efi_mem_list *newmap; in efi_mem_carve_out() local
217 newmap = calloc(1, sizeof(*newmap)); in efi_mem_carve_out()
218 newmap->desc = map->desc; in efi_mem_carve_out()
219 newmap->desc.physical_start = carve_start; in efi_mem_carve_out()
220 newmap->desc.virtual_start = carve_start; in efi_mem_carve_out()
221 newmap->desc.num_pages = (map_end - carve_start) >> EFI_PAGE_SHIFT; in efi_mem_carve_out()
223 list_add_tail(&newmap->link, &map->link); in efi_mem_carve_out()
/third_party/python/Modules/
Dmmapmodule.c535 void *newmap; in mmap_resize_method() local
543 newmap = mremap(self->data, self->size, new_size, MREMAP_MAYMOVE); in mmap_resize_method()
546 newmap = mremap(self->data, self->size, self->data, new_size, 0); in mmap_resize_method()
548 newmap = mremap(self->data, self->size, new_size, 0); in mmap_resize_method()
551 if (newmap == (void *)-1) in mmap_resize_method()
556 self->data = newmap; in mmap_resize_method()
/third_party/selinux/libsepol/src/
Dlink.c188 uint32_t *newmap = calloc(perm->s.value, sizeof(*newmap)); in permission_copy_callback() local
189 if (newmap == NULL) { in permission_copy_callback()
193 memcpy(newmap, mod->perm_map[sclassi], in permission_copy_callback()
194 mod->perm_map_len[sclassi] * sizeof(*newmap)); in permission_copy_callback()
196 mod->perm_map[sclassi] = newmap; in permission_copy_callback()