Home
last modified time | relevance | path

Searched refs:area (Results 1 – 25 of 460) sorted by relevance

12345678910>>...19

/haiku/src/system/kernel/
H A Dguarded_heap.cpp53 area_id area; member
156 guarded_heap_page_protect(guarded_heap_area& area, size_t pageIndex, in guarded_heap_page_protect() argument
159 if (area.area < 0) in guarded_heap_page_protect()
162 addr_t address = area.base + pageIndex * B_PAGE_SIZE; in guarded_heap_page_protect()
163 vm_set_kernel_area_debug_protection(area.protection_cookie, (void*)address, in guarded_heap_page_protect()
169 guarded_heap_page_allocate(guarded_heap_area& area, size_t startPageIndex, in guarded_heap_page_allocate() argument
180 guarded_heap_page& page = area.pages[startPageIndex + i]; in guarded_heap_page_allocate()
206 list_remove_item(&area.free_list, &page); in guarded_heap_page_allocate()
210 guarded_heap_page_protect(area, startPageIndex + i, 0); in guarded_heap_page_allocate()
212 guarded_heap_page_protect(area, startPageIndex + i, in guarded_heap_page_allocate()
[all …]
H A Dheap.cpp64 area_id area; member
84 heap_area * area; member
131 area_id area; member
350 heap_area *area = heap->all_areas; in dump_allocator_areas() local
351 while (area) { in dump_allocator_areas()
353 "%" B_PRIu32 "; free_pages: %p (%" B_PRIu32 " entr%s)\n", area, in dump_allocator_areas()
354 area->area, (void *)area->base, area->size, area->page_count, in dump_allocator_areas()
355 area->free_pages, area->free_page_count, in dump_allocator_areas()
356 area->free_page_count == 1 ? "y" : "ies"); in dump_allocator_areas()
357 area = area->all_next; in dump_allocator_areas()
[all …]
/haiku/src/preferences/screensaver/
H A DUtility.h9 scale_direct(float x, float y, BRect area) in scale_direct() argument
11 return BPoint(area.Width() * x + area.left, area.Height() * y + area.top); in scale_direct()
16 scale_direct(float x1, float x2, float y1, float y2, BRect area) in scale_direct() argument
18 return BRect(area.Width() * x1 + area.left, area.Height() * y1 + area.top, in scale_direct()
19 area.Width()* x2 + area.left, area.Height() * y2 + area.top); in scale_direct()
26 scale(int x, int y,BRect area) in scale() argument
28 return scale_direct(kPositionalX[x], kPositionalY[y], area); in scale()
33 scale(int x1, int x2, int y1, int y2,BRect area) in scale() argument
36 kPositionalY[y1], kPositionalY[y2], area); in scale()
/haiku/src/system/libroot/posix/malloc/debug/
H A Dguarded_heap.cpp178 area_id area; member
237 guarded_heap_page_protect(guarded_heap_area& area, size_t pageIndex, in guarded_heap_page_protect() argument
240 guarded_heap_page_protect_raw(area.base + pageIndex * B_PAGE_SIZE, in guarded_heap_page_protect()
318 guarded_heap_page_allocate(guarded_heap_area& area, size_t startPageIndex, in guarded_heap_page_allocate() argument
329 guarded_heap_page& page = area.pages[startPageIndex + i]; in guarded_heap_page_allocate()
348 list_remove_item(&area.free_list, &page); in guarded_heap_page_allocate()
352 guarded_heap_page_protect(area, startPageIndex + i, 0); in guarded_heap_page_allocate()
354 guarded_heap_page_protect(area, startPageIndex + i, in guarded_heap_page_allocate()
362 guarded_heap_free_page(guarded_heap_area& area, size_t pageIndex, in guarded_heap_free_page() argument
365 guarded_heap_page& page = area.pages[pageIndex]; in guarded_heap_free_page()
[all …]
H A Dheap.cpp92 area_id area; member
109 heap_area * area; member
149 area_id area; member
248 heap_area *area = heap->all_areas; in dump_allocator_areas() local
249 while (area) { in dump_allocator_areas()
252 area, area->area, area->base, area->size, area->page_count, in dump_allocator_areas()
253 area->free_pages, area->free_page_count, in dump_allocator_areas()
254 area->free_page_count == 1 ? "y" : "ies"); in dump_allocator_areas()
255 area = area->all_next; in dump_allocator_areas()
287 heap_area *area = heap->all_areas; in dump_allocations() local
[all …]
/haiku/src/system/kernel/vm/
H A DVMUserAddressSpace.cpp99 VMUserArea* area = fAreas.LeftMost(); in FirstArea() local
100 while (area != NULL && area->id == RESERVED_AREA_ID) in FirstArea()
101 area = fAreas.Next(area); in FirstArea()
102 return area; in FirstArea()
109 VMUserArea* area = static_cast<VMUserArea*>(_area); in NextArea() local
110 area = fAreas.Next(area); in NextArea()
111 while (area != NULL && area->id == RESERVED_AREA_ID) in NextArea()
112 area = fAreas.Next(area); in NextArea()
113 return area; in NextArea()
128 VMUserArea* area = static_cast<VMUserArea*>(_area); in DeleteArea() local
[all …]
H A DVMUserArea.cpp30 VMUserArea* area = new(malloc_flags(allocationFlags)) VMUserArea( in Create() local
32 if (area == NULL) in Create()
35 if (area->Init(name, allocationFlags) != B_OK) { in Create()
36 area->~VMUserArea(); in Create()
37 free_etc(area, allocationFlags); in Create()
41 return area; in Create()
49 VMUserArea* area = new(malloc_flags(allocationFlags)) VMUserArea( in CreateReserved() local
51 if (area != NULL) { in CreateReserved()
52 area->id = RESERVED_AREA_ID; in CreateReserved()
53 area->protection = flags; in CreateReserved()
[all …]
H A Dvm.cpp100 inline AreaCacheLocker(VMArea* area) in AreaCacheLocker() argument
103 SetTo(area); in AreaCacheLocker()
111 inline void SetTo(VMArea* area) in SetTo() argument
114 area != NULL ? vm_area_get_locked_cache(area) : NULL, true, true); in SetTo()
261 static void delete_area(VMAddressSpace* addressSpace, VMArea* area,
320 PageFaultError(area_id area, status_t error) in PageFaultError() argument
322 fArea(area), in PageFaultError()
369 PageFaultDone(area_id area, VMCache* topCache, VMCache* cache, in PageFaultDone() argument
372 fArea(area), in PageFaultDone()
482 virtual_page_address(VMArea* area, vm_page* page) in virtual_page_address() argument
[all …]
H A DVMTranslationMap.cpp48 VMTranslationMap::UnmapPages(VMArea* area, addr_t base, size_t size, in UnmapPages() argument
65 UnmapPage(area, address, updatePageQueue); in UnmapPages()
68 UnmapPage(area, address, updatePageQueue); in UnmapPages()
73 UnmapPage(area, address, updatePageQueue); in UnmapPages()
92 VMTranslationMap::UnmapArea(VMArea* area, bool deletingAddressSpace, in UnmapArea() argument
95 addr_t address = area->Base(); in UnmapArea()
96 addr_t end = address + area->Size(); in UnmapArea()
106 UnmapPage(area, address, true); in UnmapArea()
109 UnmapPage(area, address, true); in UnmapArea()
114 UnmapPage(area, address, true); in UnmapArea()
[all …]
H A Dvm_debug.cpp335 VMArea* area = cache->areas; in dump_caches_recursively() local
336 kprintf(", areas: %" B_PRId32 " (%s, team: %" B_PRId32 ")", area->id, in dump_caches_recursively()
337 area->name, area->address_space->ID()); in dump_caches_recursively()
339 while (area->cache_next != NULL) { in dump_caches_recursively()
340 area = area->cache_next; in dump_caches_recursively()
341 kprintf(", %" B_PRId32, area->id); in dump_caches_recursively()
467 dump_area_struct(VMArea* area, bool mappings) in dump_area_struct() argument
469 kprintf("AREA: %p\n", area); in dump_area_struct()
470 kprintf("name:\t\t'%s'\n", area->name); in dump_area_struct()
471 kprintf("owner:\t\t0x%" B_PRIx32 "\n", area->address_space->ID()); in dump_area_struct()
[all …]
H A DVMAddressSpaceLocking.cpp28 VMArea* area = VMAreas::LookupLocked(id); in GetAddressSpaceByAreaID() local
29 if (area != NULL) { in GetAddressSpaceByAreaID()
30 addressSpace = area->address_space; in GetAddressSpaceByAreaID()
123 AddressSpaceReadLocker::SetFromArea(area_id areaID, VMArea*& area) in SetFromArea() argument
133 area = VMAreas::Lookup(areaID); in SetFromArea()
135 if (area == NULL || area->address_space != fSpace) { in SetFromArea()
250 AddressSpaceWriteLocker::SetFromArea(area_id areaID, VMArea*& area) in SetFromArea() argument
260 area = VMAreas::Lookup(areaID); in SetFromArea()
262 if (area == NULL || area->address_space != fSpace) { in SetFromArea()
274 bool allowKernel, VMArea*& area) in SetFromArea() argument
[all …]
H A DVMArea.cpp86 ASSERT(range->area == NULL); in Wire()
88 range->area = this; in Wire()
100 ASSERT(range->area == this); in Unwire()
103 range->area = NULL; in Unwire()
153 waiter->area = this; in AddWaiterIfWired()
186 waiter->area = this; in AddWaiterIfWired()
217 VMArea* area = LookupLocked(id); in Lookup() local
219 return area; in Lookup()
234 VMArea* area = it.Next();) { in Find()
235 if (strcmp(area->name, name) == 0) { in Find()
[all …]
H A DVMUserAddressSpace.h21 virtual VMArea* NextArea(VMArea* area) const;
28 virtual void DeleteArea(VMArea* area,
30 virtual status_t InsertArea(VMArea* area, size_t size,
34 virtual void RemoveArea(VMArea* area,
37 virtual bool CanResizeArea(VMArea* area, size_t newSize);
38 virtual status_t ResizeArea(VMArea* area, size_t newSize,
40 virtual status_t ShrinkAreaHead(VMArea* area, size_t newSize,
42 virtual status_t ShrinkAreaTail(VMArea* area, size_t newSize,
63 size_t size, VMUserArea* area,
67 size_t alignment, VMUserArea* area,
/haiku/src/servers/registrar/
H A DMessagingService.cpp51 MessagingArea *area = new(nothrow) MessagingArea; in Create() local
52 if (!area) in Create()
56 area_id areaID = clone_area("messaging", (void**)&area->fHeader, in Create()
59 delete area; in Create()
64 area->fID = areaID; in Create()
65 area->fSize = area->fHeader->size; in Create()
66 area->fLockSem = lockSem; in Create()
67 area->fCounterSem = counterSem; in Create()
68 area->fNextArea = NULL; in Create()
70 _area = area; in Create()
[all …]
/haiku/src/tests/add-ons/kernel/network/
H A Duserland_ipc.c81 area_id area; member
108 delete_cloned_areas(net_area_info *area) in delete_cloned_areas() argument
112 if (area[i].id == 0) in delete_cloned_areas()
115 delete_area(area[i].id); in delete_cloned_areas()
128 if (command->area[i].id <= 0) in clone_command_areas()
132 B_READ_AREA | B_WRITE_AREA,command->area[i].id); in clone_command_areas()
208 net_area_info area[MAX_NET_AREAS]; in connection_runner() local
222 if (clone_command_areas(area, command) < B_OK) { in connection_runner()
235 args = convert_to_local(&command->area[0],&area[0], command->data); in connection_runner()
262 convert_to_local(&command->area[1], &area[1], args->u.sockopt.optval), in connection_runner()
[all …]
/haiku/src/system/kernel/messaging/
H A DMessagingService.cpp55 MessagingArea *area = new(nothrow) MessagingArea; in Create() local
56 if (!area) in Create()
60 area->fID = create_area("messaging", (void**)&area->fHeader, in Create()
63 if (area->fID < 0) { in Create()
64 delete area; in Create()
69 area->fSize = kMessagingAreaSize; in Create()
70 area->fLockSem = lockSem; in Create()
71 area->fCounterSem = counterSem; in Create()
72 area->fNextArea = NULL; in Create()
73 area->InitHeader(); in Create()
[all …]
/haiku/src/libs/alm/
H A DRowColumnManager.cpp39 RowColumnManager::AddArea(Area* area) in AddArea() argument
41 Row* row = _FindRowFor(area); in AddArea()
43 row = new Row(fLinearSpec, area->Top(), area->Bottom()); in AddArea()
46 area->fRow = row; in AddArea()
47 row->fAreas.AddItem(area); in AddArea()
49 Column* column = _FindColumnFor(area); in AddArea()
51 column = new Column(fLinearSpec, area->Left(), area->Right()); in AddArea()
54 area->fColumn = column; in AddArea()
55 column->fAreas.AddItem(area); in AddArea()
63 RowColumnManager::RemoveArea(Area* area) in RemoveArea() argument
[all …]
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dutil.c43 area_id area; in alloc_mem() local
49 area = create_area(name, &virtadr, B_ANY_KERNEL_ADDRESS, size, in alloc_mem()
53 if (area < B_OK) { in alloc_mem()
59 delete_area(area); in alloc_mem()
68 …TRACE("area = %" B_PRId32 ", size = %ld, virt = %p, phy = %" B_PRIxPHYSADDR "\n", area, size, virt… in alloc_mem()
70 return area; in alloc_mem()
81 area_id area; in map_mem() local
89 area = map_physical_memory(name, (addr_t)phyadr, size, in map_mem()
91 if (area < B_OK) { in map_mem()
92 ERROR("mapping '%s' failed, error 0x%" B_PRIx32 " (%s)\n", name, area, in map_mem()
[all …]
/haiku/src/add-ons/kernel/drivers/misc/
H A Dmem.c114 area_id area; in mem_read() local
123 area = mem_map_target(position, *numBytes, B_READ_AREA, &virtualAddress); in mem_read()
124 if (area < 0) { in mem_read()
126 return area; in mem_read()
132 delete_area(area); in mem_read()
141 area_id area; in mem_write() local
150 area = mem_map_target(position, *numBytes, B_WRITE_AREA, &virtualAddress); in mem_write()
151 if (area < 0) { in mem_write()
153 return area; in mem_write()
159 delete_area(area); in mem_write()
[all …]
/haiku/src/system/kernel/slab/
H A DMemoryManager.cpp177 AllocateArea(Area* area, uint32 flags) in AllocateArea() argument
180 fArea(area), in AllocateArea()
200 AddArea(Area* area) in AddArea() argument
203 fArea(area) in AddArea()
220 FreeArea(Area* area, bool areaRemoved, uint32 flags) in FreeArea() argument
223 fArea(area), in FreeArea()
454 Area* area = NULL; in Init() local
455 _AllocateArea(0, area); in Init()
456 _AddArea(area); in Init()
474 Area* area = it.Next();) { in InitPostArea()
[all …]
/haiku/src/tests/system/kernel/
H A Dtransfer_area_test.cpp21 area_id area; in main() local
35 area = create_area("test transfer area", (void **)&address, in main()
37 if (area < 0) { in main()
38 fprintf(stderr, "Could not create area: %s.\n", strerror(area)); in main()
44 area_id targetArea = _kern_transfer_area(area, (void **)&address, in main()
57 fprintf(stderr, "Could not create port: %s.\n", strerror(area)); in main()
65 if ((size = read_port(port, (int32 *)&area, NULL, 0)) < B_OK) { in main()
70 printf("Received Area %ld\n", area); in main()
73 if (get_area_info(area, &info) != B_OK) { in main()
81 delete_area(area); in main()
/haiku/src/add-ons/kernel/drivers/graphics/radeon/
H A DPCI_GART.c51 gart->buffer.area = create_area("Radeon PCI GART buffer", in createGARTBuffer()
56 if (gart->buffer.area < 0) { in createGARTBuffer()
58 strerror(gart->buffer.area)); in createGARTBuffer()
59 return gart->buffer.area; in createGARTBuffer()
103 gart->buffer.area = map_physical_memory( "Radeon aligned PCI GART buffer", in createGARTBuffer()
108 if( gart->buffer.area < 0 ) { in createGARTBuffer()
110 gart->buffer.area = map_physical_memory( "Radeon aligned PCI GART buffer", in createGARTBuffer()
116 if( gart->buffer.area < 0 ) { in createGARTBuffer()
120 return gart->buffer.area; in createGARTBuffer()
147 gart->GATT.area = create_area("Radeon GATT", (void **)&gart->GATT.ptr, in initGATT()
[all …]
/haiku/src/add-ons/kernel/file_systems/userlandfs/private/
H A DAreaSupport.cpp7 UserlandFSUtil::get_area_for_address(void* address, int32 size, area_id* area, in get_area_for_address() argument
11 if (!area || !offset || size < 0) in get_area_for_address()
15 *area = -1; in get_area_for_address()
20 *area = area_for(address); in get_area_for_address()
21 if (*area < 0) in get_area_for_address()
22 return *area; in get_area_for_address()
24 status_t error = get_area_info(*area, &areaInfo); in get_area_for_address()
/haiku/headers/private/kernel/vm/
H A DVMTranslationMap.h46 virtual status_t UnmapPage(VMArea* area, addr_t address,
48 virtual void UnmapPages(VMArea* area, addr_t base,
50 virtual void UnmapArea(VMArea* area,
63 status_t ProtectPage(VMArea* area, addr_t address,
65 status_t ProtectArea(VMArea* area,
72 VMArea* area, addr_t address,
85 void PageUnmapped(VMArea* area,
88 void UnaccessedPageUnmapped(VMArea* area,
147 VMTranslationMap::ProtectPage(VMArea* area, addr_t address, uint32 attributes) in ProtectPage() argument
150 area->MemoryType()); in ProtectPage()
[all …]
/haiku/src/add-ons/kernel/drivers/audio/generic/
H A Dutil.c71 area_id area; in alloc_mem() local
81 area = create_area(name, &logadr, B_ANY_KERNEL_ADDRESS, size, in alloc_mem()
85 if (area < B_OK) { in alloc_mem()
91 delete_area(area); in alloc_mem()
103 LOG(("area = %d, size = %d, log = %#08X, phy = %#08X\n", area, size, logadr, in alloc_mem()
105 return area; in alloc_mem()
115 area_id area; in map_mem() local
122 area = map_physical_memory(name, phyadr, size, B_ANY_KERNEL_ADDRESS, in map_mem()
127 phy, *log, offset, phyadr, mapadr, size, area)); in map_mem()
129 return area; in map_mem()

12345678910>>...19