map 301 bsp/hal/arm/arch/mmu.c struct mmumap *map; map 304 bsp/hal/arm/arch/mmu.c for (map = mmumap_table; map->type != 0; map++) { map 305 bsp/hal/arm/arch/mmu.c switch (map->type) { map 316 bsp/hal/arm/arch/mmu.c if (mmu_map(boot_pgd, map->phys, map->virt, map 317 bsp/hal/arm/arch/mmu.c map->size, map_type)) map 262 bsp/hal/x86/arch/mmu.c struct mmumap *map; map 265 bsp/hal/x86/arch/mmu.c for (map = mmumap_table; map->type != 0; map++) { map 266 bsp/hal/x86/arch/mmu.c switch (map->type) { map 277 bsp/hal/x86/arch/mmu.c if (mmu_map(boot_pgd, map->phys, map->virt, map 278 bsp/hal/x86/arch/mmu.c (size_t)map->size, map_type)) map 48 sys/include/task.h vm_map_t map; /* address space description */ map 245 sys/kern/sched.c vm_switch(next->task->map); map 65 sys/kern/task.c vm_map_t map = NULL; map 115 sys/kern/task.c map = vm_create(); map 118 sys/kern/task.c vm_reference(parent->map); map 119 sys/kern/task.c map = parent->map; map 122 sys/kern/task.c map = vm_dup(parent->map); map 125 sys/kern/task.c if (map == NULL) { map 134 sys/kern/task.c task->map = map; map 205 sys/kern/task.c vm_terminate(task->map); map 206 sys/kern/task.c task->map = NULL; map 456 sys/kern/task.c info->vmsize = task->map->total; map 491 sys/kern/task.c if ((error = vm_load(task->map, mod, &stack)) != 0) map 109 sys/mem/vm.c error = do_allocate(task->map, &uaddr, size, anywhere); map 119 sys/mem/vm.c do_allocate(vm_map_t map, void **addr, size_t size, int anywhere) map 127 sys/mem/vm.c if (map->total + size >= MAXMEM) map 135 sys/mem/vm.c if ((seg = seg_alloc(&map->head, size)) == NULL) map 142 sys/mem/vm.c if ((seg = seg_reserve(&map->head, start, size)) == NULL) map 153 sys/mem/vm.c if (mmu_map(map->pgd, pa, seg->addr, size, PG_WRITE)) map 161 sys/mem/vm.c map->total += size; map 167 sys/mem/vm.c seg_free(&map->head, seg); map 200 sys/mem/vm.c error = do_free(task->map, addr); map 207 sys/mem/vm.c do_free(vm_map_t map, void *addr) map 217 sys/mem/vm.c seg = seg_lookup(&map->head, va, 1); map 224 sys/mem/vm.c mmu_map(map->pgd, seg->phys, seg->addr, seg->size, PG_UNMAP); map 232 sys/mem/vm.c map->total -= seg->size; map 233 sys/mem/vm.c seg_free(&map->head, seg); map 269 sys/mem/vm.c error = do_attribute(task->map, addr, attr); map 276 sys/mem/vm.c do_attribute(vm_map_t map, void *addr, int attr) map 288 sys/mem/vm.c seg = seg_lookup(&map->head, va, 1); map 329 sys/mem/vm.c if (mmu_map(map->pgd, new_pa, seg->addr, seg->size, map 343 sys/mem/vm.c if (mmu_map(map->pgd, seg->phys, seg->addr, seg->size, map 379 sys/mem/vm.c error = do_map(target->map, addr, size, alloc); map 386 sys/mem/vm.c do_map(vm_map_t map, void *addr, size_t size, void **alloc) map 398 sys/mem/vm.c if (map->total + size >= MAXMEM) map 414 sys/mem/vm.c seg = seg_lookup(&map->head, start, size); map 422 sys/mem/vm.c curmap = curtask->map; map 460 sys/mem/vm.c struct vm_map *map; map 463 sys/mem/vm.c if ((map = kmem_alloc(sizeof(*map))) == NULL) map 466 sys/mem/vm.c map->refcnt = 1; map 467 sys/mem/vm.c map->total = 0; map 470 sys/mem/vm.c if ((map->pgd = mmu_newmap()) == NO_PGD) { map 471 sys/mem/vm.c kmem_free(map); map 474 sys/mem/vm.c seg_init(&map->head); map 475 sys/mem/vm.c return map; map 483 sys/mem/vm.c vm_terminate(vm_map_t map) map 487 sys/mem/vm.c if (--map->refcnt > 0) map 491 sys/mem/vm.c seg = &map->head; map 495 sys/mem/vm.c mmu_map(map->pgd, seg->phys, seg->addr, map 506 sys/mem/vm.c seg_delete(&map->head, tmp); map 507 sys/mem/vm.c } while (seg != &map->head); map 509 sys/mem/vm.c if (map == curtask->map) { map 517 sys/mem/vm.c mmu_terminate(map->pgd); map 518 sys/mem/vm.c kmem_free(map); map 651 sys/mem/vm.c vm_switch(vm_map_t map) map 654 sys/mem/vm.c if (map != &kernel_map) map 655 sys/mem/vm.c mmu_switch(map->pgd); map 662 sys/mem/vm.c vm_reference(vm_map_t map) map 665 sys/mem/vm.c map->refcnt++; map 674 sys/mem/vm.c vm_load(vm_map_t map, struct module *mod, void **stack) map 686 sys/mem/vm.c vm_switch(map); map 695 sys/mem/vm.c error = do_allocate(map, &text, mod->textsz, 0); map 699 sys/mem/vm.c error = do_attribute(map, text, PROT_READ); map 707 sys/mem/vm.c error = do_allocate(map, &data, mod->datasz + mod->bsssz, 0); map 719 sys/mem/vm.c error = do_allocate(map, stack, DFLSTKSZ, 0); map 736 sys/mem/vm.c return mmu_extract(curtask->map->pgd, addr, size); map 745 sys/mem/vm.c vm_map_t map; map 753 sys/mem/vm.c map = task->map; map 754 sys/mem/vm.c seg = &map->head; map 767 sys/mem/vm.c } while (seg != &map->head); map 786 sys/mem/vm.c kernel_task.map = &kernel_map; map 102 sys/mem/vm_nommu.c error = do_allocate(task->map, &uaddr, size, anywhere); map 112 sys/mem/vm_nommu.c do_allocate(vm_map_t map, void **addr, size_t size, int anywhere) map 119 sys/mem/vm_nommu.c if (map->total + size >= MAXMEM) map 127 sys/mem/vm_nommu.c if ((seg = seg_alloc(&map->head, size)) == NULL) map 135 sys/mem/vm_nommu.c if ((seg = seg_reserve(&map->head, start, size)) == NULL) map 143 sys/mem/vm_nommu.c map->total += size; map 176 sys/mem/vm_nommu.c error = do_free(task->map, addr); map 183 sys/mem/vm_nommu.c do_free(vm_map_t map, void *addr) map 193 sys/mem/vm_nommu.c seg = seg_lookup(&map->head, va, 1); map 203 sys/mem/vm_nommu.c map->total -= seg->size; map 204 sys/mem/vm_nommu.c seg_free(&map->head, seg); map 240 sys/mem/vm_nommu.c error = do_attribute(task->map, addr, attr); map 247 sys/mem/vm_nommu.c do_attribute(vm_map_t map, void *addr, int attr) map 258 sys/mem/vm_nommu.c seg = seg_lookup(&map->head, va, 1); map 313 sys/mem/vm_nommu.c error = do_map(target->map, addr, size, alloc); map 320 sys/mem/vm_nommu.c do_map(vm_map_t map, void *addr, size_t size, void **alloc) map 329 sys/mem/vm_nommu.c if (map->total + size >= MAXMEM) map 344 sys/mem/vm_nommu.c seg = seg_lookup(&map->head, start, size); map 352 sys/mem/vm_nommu.c curmap = curtask->map; map 371 sys/mem/vm_nommu.c struct vm_map *map; map 374 sys/mem/vm_nommu.c if ((map = kmem_alloc(sizeof(*map))) == NULL) map 377 sys/mem/vm_nommu.c map->refcnt = 1; map 378 sys/mem/vm_nommu.c map->total = 0; map 380 sys/mem/vm_nommu.c seg_init(&map->head); map 381 sys/mem/vm_nommu.c return map; map 389 sys/mem/vm_nommu.c vm_terminate(vm_map_t map) map 393 sys/mem/vm_nommu.c if (--map->refcnt > 0) map 397 sys/mem/vm_nommu.c seg = &map->head; map 408 sys/mem/vm_nommu.c seg_delete(&map->head, tmp); map 409 sys/mem/vm_nommu.c } while (seg != &map->head); map 411 sys/mem/vm_nommu.c kmem_free(map); map 431 sys/mem/vm_nommu.c vm_switch(vm_map_t map) map 439 sys/mem/vm_nommu.c vm_reference(vm_map_t map) map 442 sys/mem/vm_nommu.c map->refcnt++; map 454 sys/mem/vm_nommu.c vm_load(vm_map_t map, struct module *mod, void **stack) map 474 sys/mem/vm_nommu.c if ((seg = seg_create(&map->head, start, size)) == NULL) map 485 sys/mem/vm_nommu.c return do_allocate(map, stack, DFLSTKSZ, 1); map 505 sys/mem/vm_nommu.c vm_map_t map; map 513 sys/mem/vm_nommu.c map = task->map; map 514 sys/mem/vm_nommu.c seg = &map->head; map 527 sys/mem/vm_nommu.c } while (seg != &map->head); map 537 sys/mem/vm_nommu.c kernel_task.map = &kernel_map; map 47 usr/server/exec/exec_cap.c const struct cap_map *map; map 54 usr/server/exec/exec_cap.c map = &cap_table[0]; map 55 usr/server/exec/exec_cap.c while (map->c_path != NULL) { map 56 usr/server/exec/exec_cap.c if (!strncmp(path, map->c_path, PATH_MAX)) { map 57 usr/server/exec/exec_cap.c cap = map->c_capset; map 60 usr/server/exec/exec_cap.c map++; map 164 usr/server/exec/main.c const struct msg_map *map; map 211 usr/server/exec/main.c map = &execmsg_map[0]; map 212 usr/server/exec/main.c while (map->code != 0) { map 213 usr/server/exec/main.c if (map->code == msg->hdr.code) { map 214 usr/server/exec/main.c error = (*map->func)(msg); map 217 usr/server/exec/main.c map++; map 1030 usr/server/fs/vfs/main.c const struct msg_map *map; map 1047 usr/server/fs/vfs/main.c map = &fsmsg_map[0]; map 1048 usr/server/fs/vfs/main.c while (map->code != 0) { map 1049 usr/server/fs/vfs/main.c if (map->code == msg->hdr.code) { map 1053 usr/server/fs/vfs/main.c if (map->code == STD_BOOT) { map 1057 usr/server/fs/vfs/main.c if (map->code == FS_REGISTER) { map 1068 usr/server/fs/vfs/main.c error = (*map->func)(t, msg); map 1069 usr/server/fs/vfs/main.c if (map->code != FS_EXIT) map 1073 usr/server/fs/vfs/main.c map++; map 1078 usr/server/fs/vfs/main.c msg->hdr.task, map->code, error); map 162 usr/server/fs/vfs/vfs_security.c const struct fscap_map *map; map 172 usr/server/fs/vfs/vfs_security.c map = &fscap_table[0]; map 173 usr/server/fs/vfs/vfs_security.c while (map->path != NULL) { map 174 usr/server/fs/vfs/vfs_security.c if (!strncmp(path, map->path, map->len)) { map 178 usr/server/fs/vfs/vfs_security.c map++; map 186 usr/server/fs/vfs/vfs_security.c if (!capable(task, map->cap_read)) map 190 usr/server/fs/vfs/vfs_security.c if (!capable(task, map->cap_write)) map 196 usr/server/fs/vfs/vfs_security.c path, map->cap_read, map->cap_write, map->cap_exec)); map 214 usr/server/fs/vfs/vfs_security.c const struct fscap_map *map; map 220 usr/server/fs/vfs/vfs_security.c map = &fscap_table[0]; map 221 usr/server/fs/vfs/vfs_security.c while (map->path != NULL) { map 222 usr/server/fs/vfs/vfs_security.c if (!strncmp(path, map->path, map->len)) { map 226 usr/server/fs/vfs/vfs_security.c map++; map 233 usr/server/fs/vfs/vfs_security.c if ((found == 1) && (map->cap_exec == ACC_OK)) { map 396 usr/server/pow/pow.c const struct msg_map *map; map 455 usr/server/pow/pow.c map = NULL; map 459 usr/server/pow/pow.c map = &powermsg_map[0]; map 460 usr/server/pow/pow.c while (map->code != 0) { map 461 usr/server/pow/pow.c if (map->code == msg.hdr.code) { map 462 usr/server/pow/pow.c error = (*map->func)(&msg); map 465 usr/server/pow/pow.c map++; map 474 usr/server/pow/pow.c if (map != NULL && error != 0) map 476 usr/server/pow/pow.c map->code, error)); map 525 usr/server/proc/main.c const struct msg_map *map; map 559 usr/server/proc/main.c map = &procmsg_map[0]; map 560 usr/server/proc/main.c while (map->code != 0) { map 561 usr/server/proc/main.c if (map->code == msg.hdr.code) { map 565 usr/server/proc/main.c error = (*map->func)(&msg); map 568 usr/server/proc/main.c map++; map 578 usr/server/proc/main.c map->code, error));