addr 40 bsp/drv/arm/include/busio.h #define bus_read_8(addr) (*((volatile uint8_t *)(addr))) addr 41 bsp/drv/arm/include/busio.h #define bus_read_16(addr) (*((volatile uint16_t *)(addr))) addr 42 bsp/drv/arm/include/busio.h #define bus_read_32(addr) (*((volatile uint32_t *)(addr))) addr 44 bsp/drv/arm/include/busio.h #define bus_write_8(addr, val) (*((volatile uint8_t *)(addr)) = (val)) addr 45 bsp/drv/arm/include/busio.h #define bus_write_16(addr, val) (*((volatile uint16_t *)(addr)) = (val)) addr 46 bsp/drv/arm/include/busio.h #define bus_write_32(addr, val) (*((volatile uint32_t *)(addr)) = (val)) addr 445 bsp/drv/dev/base/kd.c static vaddr_t addr; addr 481 bsp/drv/dev/base/kd.c addr = strtoul(p, NULL, 16); addr 482 bsp/drv/dev/base/kd.c if (addr == ULONG_MAX) addr 486 bsp/drv/dev/base/kd.c if ((kp = kmem_map((void *)addr, (size_t)len)) == NULL) addr 491 bsp/drv/dev/base/kd.c printf("\n%08lx: ", (long)addr); addr 512 bsp/drv/dev/base/kd.c addr += size; addr 522 bsp/drv/dev/base/kd.c vaddr_t addr; addr 556 bsp/drv/dev/base/kd.c addr = strtoul(pa, NULL, 16); addr 557 bsp/drv/dev/base/kd.c if (addr == ULONG_MAX) addr 564 bsp/drv/dev/base/kd.c if ((kp = kmem_map((void *)addr, (size_t)size)) == NULL) addr 573 bsp/drv/dev/base/kd.c *(char *)((char *)addr + i) = (char)(val & 0xff); addr 49 bsp/drv/dev/block/ramdisk.c char *addr; /* base address of image */ addr 103 bsp/drv/dev/block/ramdisk.c memcpy(kbuf, sc->addr + offset, nr_read); addr 131 bsp/drv/dev/block/ramdisk.c memcpy(sc->addr + offset, kbuf, nr_write); addr 168 bsp/drv/dev/block/ramdisk.c sc->addr = (char *)ptokv(phys->base); addr 173 bsp/drv/dev/block/ramdisk.c (u_int)sc->addr, sc->size/1024); addr 114 bsp/drv/dev/dma/i8237.c int addr; addr 190 bsp/drv/dev/dma/i8237.c dma_setup(dma_t handle, void *addr, u_long count, int read) addr 199 bsp/drv/dev/dma/i8237.c paddr = kvtop(addr); addr 215 bsp/drv/dev/dma/i8237.c bus_write_8(regs->addr, (u_char)((paddr >> 0) & 0xff)); /* Address low */ addr 216 bsp/drv/dev/dma/i8237.c bus_write_8(regs->addr, (u_char)((paddr >> 8) & 0xff)); /* Address high */ addr 85 bsp/drv/include/ddi.h void dma_setup(dma_t handle, void *addr, u_long count, int read); addr 43 bsp/drv/ppc/include/busio.h #define bus_read_8(addr) (*((volatile uint8_t *)(IOBASE+addr))) addr 44 bsp/drv/ppc/include/busio.h #define bus_read_16(addr) (*((volatile uint16_t *)(IOBASE+addr))) addr 45 bsp/drv/ppc/include/busio.h #define bus_read_32(addr) (*((volatile uint32_t *)(IOBASE+addr))) addr 47 bsp/drv/ppc/include/busio.h #define bus_write_8(addr, val) (*((volatile uint8_t *)(IOBASE+addr)) = (val)) addr 48 bsp/drv/ppc/include/busio.h #define bus_write_16(addr, val) (*((volatile uint16_t *)(IOBASE+addr)) = (val)) addr 49 bsp/drv/ppc/include/busio.h #define bus_write_32(addr, val) (*((volatile uint32_t *)(IOBASE+addr)) = (val)) addr 41 bsp/drv/x86/include/busio.h void bus_write_8(int addr, uint8_t val); addr 42 bsp/drv/x86/include/busio.h void bus_write_16(int addr, uint16_t val); addr 43 bsp/drv/x86/include/busio.h void bus_write_32(int addr, uint32_t val); addr 45 bsp/drv/x86/include/busio.h uint8_t bus_read_8(int addr); addr 46 bsp/drv/x86/include/busio.h uint16_t bus_read_16(int addr); addr 47 bsp/drv/x86/include/busio.h uint32_t bus_read_32(int addr); addr 108 include/sys/prex.h int vm_allocate(task_t task, void **addr, size_t size, int anywhere); addr 109 include/sys/prex.h int vm_free(task_t task, void *addr); addr 110 include/sys/prex.h int vm_attribute(task_t task, void *addr, int prot); addr 111 include/sys/prex.h int vm_map(task_t target, void *addr, size_t size, void **alloc); addr 46 sys/include/vm.h vaddr_t addr; /* base address */ addr 314 sys/mem/kmem.c kmem_map(void *addr, size_t size) addr 318 sys/mem/kmem.c pa = vm_translate((vaddr_t)addr, size); addr 85 sys/mem/vm.c vm_allocate(task_t task, void **addr, size_t size, int anywhere) addr 100 sys/mem/vm.c if (copyin(addr, &uaddr, sizeof(uaddr))) { addr 104 sys/mem/vm.c if (anywhere == 0 && !user_area(*addr)) { addr 111 sys/mem/vm.c if (copyout(&uaddr, addr, sizeof(uaddr))) addr 119 sys/mem/vm.c do_allocate(vm_map_t map, void **addr, size_t size, int anywhere) addr 138 sys/mem/vm.c start = trunc_page((vaddr_t)*addr); addr 153 sys/mem/vm.c if (mmu_map(map->pgd, pa, seg->addr, size, PG_WRITE)) addr 160 sys/mem/vm.c *addr = (void *)seg->addr; addr 182 sys/mem/vm.c vm_free(task_t task, void *addr) addr 195 sys/mem/vm.c if (!user_area(addr)) { addr 200 sys/mem/vm.c error = do_free(task->map, addr); addr 207 sys/mem/vm.c do_free(vm_map_t map, void *addr) addr 212 sys/mem/vm.c va = trunc_page((vaddr_t)addr); addr 218 sys/mem/vm.c if (seg == NULL || seg->addr != va || (seg->flags & SEG_FREE)) addr 224 sys/mem/vm.c mmu_map(map->pgd, seg->phys, seg->addr, seg->size, PG_UNMAP); addr 247 sys/mem/vm.c vm_attribute(task_t task, void *addr, int attr) addr 264 sys/mem/vm.c if (!user_area(addr)) { addr 269 sys/mem/vm.c error = do_attribute(task->map, addr, attr); addr 276 sys/mem/vm.c do_attribute(vm_map_t map, void *addr, int attr) addr 283 sys/mem/vm.c va = trunc_page((vaddr_t)addr); addr 289 sys/mem/vm.c if (seg == NULL || seg->addr != va || (seg->flags & SEG_FREE)) { addr 329 sys/mem/vm.c if (mmu_map(map->pgd, new_pa, seg->addr, seg->size, addr 343 sys/mem/vm.c if (mmu_map(map->pgd, seg->phys, seg->addr, seg->size, addr 357 sys/mem/vm.c vm_map(task_t target, void *addr, size_t size, void **alloc) addr 374 sys/mem/vm.c if (!user_area(addr)) { addr 379 sys/mem/vm.c error = do_map(target->map, addr, size, alloc); addr 386 sys/mem/vm.c do_map(vm_map_t map, void *addr, size_t size, void **alloc) addr 406 sys/mem/vm.c start = trunc_page((vaddr_t)addr); addr 407 sys/mem/vm.c end = round_page((vaddr_t)addr + size); addr 409 sys/mem/vm.c offset = (size_t)((vaddr_t)addr - start); addr 435 sys/mem/vm.c pa = tgt->phys + (paddr_t)(start - tgt->addr); addr 436 sys/mem/vm.c if (mmu_map(curmap->pgd, pa, cur->addr, size, map_type)) { addr 444 sys/mem/vm.c tmp = (void *)(cur->addr + offset); addr 495 sys/mem/vm.c mmu_map(map->pgd, seg->phys, seg->addr, addr 617 sys/mem/vm.c if (mmu_map(new_map->pgd, dest->phys, dest->addr, addr 733 sys/mem/vm.c vm_translate(vaddr_t addr, size_t size) addr 736 sys/mem/vm.c return mmu_extract(curtask->map->pgd, addr, size); addr 759 sys/mem/vm.c info->virt = seg->addr; addr 799 sys/mem/vm.c seg->addr = PAGE_SIZE; addr 810 sys/mem/vm.c seg_create(struct seg *prev, vaddr_t addr, size_t size) addr 817 sys/mem/vm.c seg->addr = addr; addr 855 sys/mem/vm.c seg_lookup(struct seg *head, vaddr_t addr, size_t size) addr 861 sys/mem/vm.c if (seg->addr <= addr && addr 862 sys/mem/vm.c seg->addr + seg->size >= addr + size) { addr 886 sys/mem/vm.c seg->addr + size, addr 945 sys/mem/vm.c seg_reserve(struct seg *head, vaddr_t addr, size_t size) addr 953 sys/mem/vm.c seg = seg_lookup(head, addr, size); addr 961 sys/mem/vm.c if (seg->addr != addr) { addr 963 sys/mem/vm.c diff = (size_t)(addr - seg->addr); addr 964 sys/mem/vm.c seg = seg_create(prev, addr, prev->size - diff); addr 973 sys/mem/vm.c next = seg_create(seg, seg->addr + size, seg->size - size); addr 78 sys/mem/vm_nommu.c vm_allocate(task_t task, void **addr, size_t size, int anywhere) addr 93 sys/mem/vm_nommu.c if (copyin(addr, &uaddr, sizeof(*addr))) { addr 97 sys/mem/vm_nommu.c if (anywhere == 0 && !user_area(*addr)) { addr 104 sys/mem/vm_nommu.c if (copyout(&uaddr, addr, sizeof(uaddr))) addr 112 sys/mem/vm_nommu.c do_allocate(vm_map_t map, void **addr, size_t size, int anywhere) addr 129 sys/mem/vm_nommu.c start = seg->addr; addr 131 sys/mem/vm_nommu.c start = trunc_page((vaddr_t)*addr); addr 142 sys/mem/vm_nommu.c *addr = (void *)seg->addr; addr 158 sys/mem/vm_nommu.c vm_free(task_t task, void *addr) addr 171 sys/mem/vm_nommu.c if (!user_area(addr)) { addr 176 sys/mem/vm_nommu.c error = do_free(task->map, addr); addr 183 sys/mem/vm_nommu.c do_free(vm_map_t map, void *addr) addr 188 sys/mem/vm_nommu.c va = trunc_page((vaddr_t)addr); addr 194 sys/mem/vm_nommu.c if (seg == NULL || seg->addr != va || (seg->flags & SEG_FREE)) addr 218 sys/mem/vm_nommu.c vm_attribute(task_t task, void *addr, int attr) addr 235 sys/mem/vm_nommu.c if (!user_area(addr)) { addr 240 sys/mem/vm_nommu.c error = do_attribute(task->map, addr, attr); addr 247 sys/mem/vm_nommu.c do_attribute(vm_map_t map, void *addr, int attr) addr 253 sys/mem/vm_nommu.c va = trunc_page((vaddr_t)addr); addr 259 sys/mem/vm_nommu.c if (seg == NULL || seg->addr != va || (seg->flags & SEG_FREE)) { addr 291 sys/mem/vm_nommu.c vm_map(task_t target, void *addr, size_t size, void **alloc) addr 308 sys/mem/vm_nommu.c if (!user_area(addr)) { addr 313 sys/mem/vm_nommu.c error = do_map(target->map, addr, size, alloc); addr 320 sys/mem/vm_nommu.c do_map(vm_map_t map, void *addr, size_t size, void **alloc) addr 337 sys/mem/vm_nommu.c start = trunc_page((vaddr_t)addr); addr 338 sys/mem/vm_nommu.c end = round_page((vaddr_t)addr + size); addr 357 sys/mem/vm_nommu.c copyout(&addr, alloc, sizeof(addr)); addr 493 sys/mem/vm_nommu.c vm_translate(vaddr_t addr, size_t size) addr 496 sys/mem/vm_nommu.c return (paddr_t)addr; addr 519 sys/mem/vm_nommu.c info->virt = seg->addr; addr 549 sys/mem/vm_nommu.c seg->addr = 0; addr 560 sys/mem/vm_nommu.c seg_create(struct seg *prev, vaddr_t addr, size_t size) addr 567 sys/mem/vm_nommu.c seg->addr = addr; addr 569 sys/mem/vm_nommu.c seg->phys = (paddr_t)addr; addr 605 sys/mem/vm_nommu.c seg_lookup(struct seg *head, vaddr_t addr, size_t size) addr 611 sys/mem/vm_nommu.c if (seg->addr <= addr && addr 612 sys/mem/vm_nommu.c seg->addr + seg->size >= addr + size) { addr 666 sys/mem/vm_nommu.c seg_reserve(struct seg *head, vaddr_t addr, size_t size) addr 671 sys/mem/vm_nommu.c pa = (paddr_t)addr; addr 942 usr/lib/libc/gen/fts.c fts_padjust(FTS *sp, void *addr) addr 948 usr/lib/libc/gen/fts.c (char *)addr + ((p)->fts_accpath - (p)->fts_path); \ addr 949 usr/lib/libc/gen/fts.c (p)->fts_path = addr; \ addr 127 usr/lib/prex/malloc/malloc.c free(void *addr) addr 131 usr/lib/prex/malloc/malloc.c if (addr == NULL) addr 135 usr/lib/prex/malloc/malloc.c p = (struct header *)addr - 1; addr 52 usr/lib/prex/malloc/malloc_r.c free_r(void *addr) addr 55 usr/lib/prex/malloc/malloc_r.c free(addr); addr 35 usr/lib/prex/malloc/realloc.c realloc(void *addr, size_t size) addr 40 usr/lib/prex/malloc/realloc.c if (addr == NULL) addr 43 usr/lib/prex/malloc/realloc.c old = (struct header *)addr - 1; addr 52 usr/lib/prex/malloc/realloc.c memcpy(p, addr, old_size); addr 54 usr/lib/prex/malloc/realloc.c memcpy(p, addr, size); addr 55 usr/lib/prex/malloc/realloc.c free(addr); addr 62 usr/server/exec/exec_elf.c void *addr, *mapped; addr 74 usr/server/exec/exec_elf.c addr = (void *)phdr->p_vaddr; addr 79 usr/server/exec/exec_elf.c if (vm_allocate(task, &addr, size, 0) != 0) addr 96 usr/server/exec/exec_elf.c if (vm_attribute(task, addr, PROT_READ) != 0) addr 199 usr/server/exec/exec_elf.c void *base, *addr, *mapped; addr 263 usr/server/exec/exec_elf.c addr = (char *)((u_long)mapped + shdr->sh_addr); addr 277 usr/server/exec/exec_elf.c if ((addr = malloc(shdr->sh_size)) == NULL) { addr 288 usr/server/exec/exec_elf.c if (read(fd, addr, shdr->sh_size) < 0) { addr 292 usr/server/exec/exec_elf.c sect_addr[i] = addr; addr 50 usr/test/attack/attack.c void *addr = (void *)random(); addr 88 usr/test/attack/attack.c vm_allocate(self, addr, size, 1); addr 89 usr/test/attack/attack.c vm_allocate(self, &addr, size, 1); addr 91 usr/test/attack/attack.c vm_free(self, addr); addr 92 usr/test/attack/attack.c vm_attribute(self, addr, attr); addr 93 usr/test/attack/attack.c vm_map(self, addr, size, &addr);