Searched refs:area (Results 1 - 25 of 272) sorted by relevance

1234567891011

/haiku/src/preferences/screensaver/
H A DUtility.h9 scale_direct(float x, float y, BRect area) argument
11 return BPoint(area.Width() * x + area.left, area.Height() * y + area.top);
16 scale_direct(float x1, float x2, float y1, float y2, BRect area) argument
18 return BRect(area.Width() * x1 + area.left, area.Height() * y1 + area
26 scale(int x, int y,BRect area) argument
33 scale(int x1, int x2, int y1, int y2,BRect area) argument
[all...]
/haiku/src/system/kernel/vm/
H A DVMUserArea.cpp30 VMUserArea* area = new(malloc_flags(allocationFlags)) VMUserArea( local
32 if (area == NULL)
35 if (area->Init(name, allocationFlags) != B_OK) {
36 area->~VMUserArea();
37 free_etc(area, allocationFlags);
41 return area;
49 VMUserArea* area = new(malloc_flags(allocationFlags)) VMUserArea( local
51 if (area != NULL) {
52 area->id = RESERVED_AREA_ID;
53 area
[all...]
H A DVMUserAddressSpace.cpp44 /*! Verifies that an area with the given aligned base and size fits into
99 VMUserArea* area = fAreas.Head(); local
100 while (area != NULL && area->id == RESERVED_AREA_ID)
101 area = fAreas.GetNext(area);
102 return area;
109 VMUserArea* area = static_cast<VMUserArea*>(_area); local
110 area = fAreas.GetNext(area);
128 VMUserArea* area = static_cast<VMUserArea*>(_area); local
168 VMUserArea* area = static_cast<VMUserArea*>(_area); local
214 VMUserArea* area = static_cast<VMUserArea*>(_area); local
229 CanResizeArea(VMArea* area, size_t newSize) argument
254 VMUserArea* area = static_cast<VMUserArea*>(_area); local
287 ShrinkAreaHead(VMArea* area, size_t size, uint32 allocationFlags) argument
302 ShrinkAreaTail(VMArea* area, size_t size, uint32 allocationFlags) argument
327 VMUserArea* area = VMUserArea::CreateReserved(this, flags, allocationFlags); local
450 _InsertAreaIntoReservedRegion(addr_t start, size_t size, VMUserArea* area, uint32 allocationFlags) argument
526 _InsertAreaSlot(addr_t start, addr_t size, addr_t end, uint32 addressSpec, size_t alignment, VMUserArea* area, uint32 allocationFlags) argument
[all...]
H A DVMKernelArea.cpp32 VMKernelArea* area = new(objectCache, allocationFlags) VMKernelArea( local
34 if (area == NULL)
37 if (area->Init(name, allocationFlags) != B_OK) {
38 object_cache_delete(objectCache, area);
42 return area;
H A DVMUserArea.h38 VMUserArea* area) const
40 return &area->AddressSpaceLink();
44 const VMUserArea* area) const
46 return &area->AddressSpaceLink();
/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, argument
11 if (!area || !offset || size < 0)
15 *area = -1;
19 // get area and in-area offset
20 *area = area_for(address);
21 if (*area < 0)
22 return *area;
24 status_t error = get_area_info(*area, &areaInfo);
H A DRequest.cpp11 fUnrelocated.area = -1;
17 Address::SetTo(area_id area, int32 offset, int32 size) argument
19 fUnrelocated.area = area;
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dutil.c43 area_id area; local
49 area = create_area(name, &virtadr, B_ANY_KERNEL_ADDRESS, size,
53 if (area < B_OK) {
54 ERROR("couldn't allocate area %s\n", name);
59 delete_area(area);
68 TRACE("area = %" B_PRId32 ", size = %ld, virt = %p, phy = %" B_PRIxPHYSADDR "\n", area, size, virtadr,
70 return area;
81 area_id area; local
89 area
[all...]
/haiku/src/system/libroot/posix/malloc_debug/
H A Dheap.cpp92 area_id area; member in struct:heap_area_s
109 heap_area * area; member in struct:heap_page_s
143 heap_area * areas; // sorted so that the desired area is always first
149 area_id area; member in struct:area_allocation_info_s
248 heap_area *area = heap->all_areas; local
249 while (area) {
250 printf("\tarea %p: area: %" B_PRId32 "; base: 0x%08lx; size: %lu; "
252 area, area->area, are
287 heap_area *area = heap->all_areas; local
382 heap_area *area = heap->all_areas; local
487 heap_area *area = heap->all_areas; local
657 heap_area *area = (heap_area *)base; local
738 heap_remove_area(heap_allocator *heap, heap_area *area) argument
827 heap_free_pages_added(heap_allocator *heap, heap_area *area, uint32 pageCount) argument
869 heap_free_pages_removed(heap_allocator *heap, heap_area *area, uint32 pageCount) argument
944 heap_area *area = heap->areas; local
1053 heap_area *area = heap->areas; local
1178 heap_area *area = heap->all_areas; local
1388 heap_area *area = heap->all_areas; local
1506 heap_area *area = heap->all_areas; local
1772 area_id area = area_for(address); local
2016 delete_area(area); variable
[all...]
H A Dguarded_heap.cpp177 area_id area; member in struct:guarded_heap_area
225 guarded_heap_page_protect(guarded_heap_area& area, size_t pageIndex, argument
228 addr_t address = area.base + pageIndex * B_PAGE_SIZE;
306 guarded_heap_page_allocate(guarded_heap_area& area, size_t startPageIndex, argument
317 guarded_heap_page& page = area.pages[startPageIndex + i];
340 list_remove_item(&area.free_list, &page);
344 guarded_heap_page_protect(area, startPageIndex + i, 0);
346 guarded_heap_page_protect(area, startPageIndex + i,
354 guarded_heap_free_page(guarded_heap_area& area, size_t pageIndex, argument
357 guarded_heap_page& page = area
380 guarded_heap_area_allocate(guarded_heap_area& area, size_t pagesNeeded, size_t size, size_t alignment) argument
436 guarded_heap_area* area = (guarded_heap_area*)baseAddress; local
514 area_id area = create_area("guarded_heap_huge_allocation", &address, local
626 guarded_heap_area_page_index_for(guarded_heap_area& area, void* address) argument
659 guarded_heap_area_free(guarded_heap_area& area, void* address) argument
754 guarded_heap_area* area = guarded_heap_get_locked_area_for(sGuardedHeap, local
827 guarded_heap_area* area = NULL; local
890 dump_guarded_heap_area(guarded_heap_area& area) argument
961 guarded_heap_area* area = heap.areas; local
[all...]
/haiku/src/tests/system/kernel/
H A Dtransfer_area_test.cpp14 static const char *kPortName = "transfer area test";
21 area_id area; local
35 area = create_area("test transfer area", (void **)&address,
37 if (area < 0) {
38 fprintf(stderr, "Could not create area: %s.\n", strerror(area));
44 area_id targetArea = _kern_transfer_area(area, (void **)&address,
47 fprintf(stderr, "Could not transfer area: %s.\n",
57 fprintf(stderr, "Could not create port: %s.\n", strerror(area));
[all...]
H A Dpage_fault_cache_merge_test.cpp19 area_id area = create_area("test area", (void**)&address, B_ANY_ADDRESS, local
22 if (area < 0) {
23 fprintf(stderr, "Creating the area failed: %s", strerror(area));
41 // delete the copied area
56 delete_area(area);
/haiku/src/system/kernel/
H A Dguarded_heap.cpp53 area_id area; member in struct:guarded_heap_area
156 guarded_heap_page_protect(guarded_heap_area& area, size_t pageIndex, argument
159 if (area.area < 0)
162 addr_t address = area.base + pageIndex * B_PAGE_SIZE;
163 vm_set_kernel_area_debug_protection(area.protection_cookie, (void*)address,
169 guarded_heap_page_allocate(guarded_heap_area& area, size_t startPageIndex, argument
180 guarded_heap_page& page = area.pages[startPageIndex + i];
206 list_remove_item(&area.free_list, &page);
210 guarded_heap_page_protect(area, startPageInde
224 guarded_heap_free_page(guarded_heap_area& area, size_t pageIndex, bool force = false) argument
265 guarded_heap_area_allocate(guarded_heap_area& area, size_t size, size_t alignment, uint32 flags, bool& grow) argument
333 guarded_heap_area* area = (guarded_heap_area*)baseAddress; local
467 guarded_heap_area_page_index_for(guarded_heap_area& area, void* address) argument
500 guarded_heap_area_free(guarded_heap_area& area, void* address, uint32 flags) argument
547 guarded_heap_area* area = guarded_heap_get_locked_area_for(sGuardedHeap, local
591 guarded_heap_area* area = NULL; local
665 guarded_heap_area* area = NULL; local
767 guarded_heap_area* area = heap->areas; local
805 guarded_heap_area* area = sGuardedHeap.areas; local
[all...]
H A Dheap.cpp64 area_id area; member in struct:heap_area_s
84 heap_area * area; member in struct:heap_page_s
124 heap_area * areas; // sorted so that the desired area is always first
131 area_id area; member in struct:area_allocation_info_s
350 heap_area *area = heap->all_areas; local
351 while (area) {
352 kprintf("\tarea %p: area: %" B_PRId32 "; base: %p; size: %zu; page_count: "
353 "%" B_PRIu32 "; free_pages: %p (%" B_PRIu32 " entr%s)\n", area,
354 area->area, (voi
459 heap_area *area = heap->all_areas; local
566 heap_area *area = heap->all_areas; local
703 heap_area *area = heap->all_areas; local
858 heap_area *area = heap->all_areas; local
1025 heap_area *area = (heap_area *)base; local
1110 heap_remove_area(heap_allocator *heap, heap_area *area) argument
1218 heap_free_pages_added(heap_allocator *heap, heap_area *area, uint32 pageCount) argument
1260 heap_free_pages_removed(heap_allocator *heap, heap_area *area, uint32 pageCount) argument
1336 heap_area *area = heap->areas; local
1446 heap_area *area = heap->areas; local
1599 heap_area *area = heap->all_areas; local
1779 heap_area *area = heap->all_areas; local
2385 area_id area = area_for(address); local
2438 area_id area = area_for(address); local
[all...]
/haiku/src/bin/
H A Dcatarea.c6 area_id area, cloned; local
14 area = atoi(argv[1]);
16 cloned = clone_area("cloned for catarea", (void **)&ptr, B_ANY_ADDRESS, B_READ_AREA, area);
/haiku/headers/private/interface/
H A DDirectWindowPrivate.h16 area_id area; member in struct:direct_window_sync_data
/haiku/src/add-ons/kernel/drivers/misc/
H A Dmem.c114 area_id area; local
123 area = mem_map_target(position, *numBytes, B_READ_AREA, &virtualAddress);
124 if (area < 0) {
126 return area;
132 delete_area(area);
141 area_id area; local
150 area = mem_map_target(position, *numBytes, B_WRITE_AREA, &virtualAddress);
151 if (area < 0) {
153 return area;
159 delete_area(area);
168 area_id area; local
[all...]
/haiku/src/servers/registrar/
H A DMessagingService.cpp26 \brief Represents an area of the messaging service shared between kernel
30 the area.
51 MessagingArea *area = new(nothrow) MessagingArea; local
52 if (!area)
55 // clone the kernel area
56 area_id areaID = clone_area("messaging", (void**)&area->fHeader,
59 delete area;
64 area->fID = areaID;
65 area->fSize = area
151 SetNextArea(MessagingArea *area) argument
405 MessagingArea *area = fFirstArea; local
[all...]
/haiku/src/libs/alm/
H A DRowColumnManager.h30 spring effect. That is each area with a preferred size constraint is pulling
33 same preferred size, the three-area row gets a different size than the
34 two-area row. However, one would expect that both rows have the same height.
43 void AddArea(Area* area);
44 void RemoveArea(Area* area);
47 void TabsChanged(Area* area);
50 Row* _FindRowFor(Area* area);
51 Column* _FindColumnFor(Area* area);
H A DRowColumnManager.cpp39 RowColumnManager::AddArea(Area* area) argument
41 Row* row = _FindRowFor(area);
43 row = new Row(fLinearSpec, area->Top(), area->Bottom());
46 area->fRow = row;
47 row->fAreas.AddItem(area);
49 Column* column = _FindColumnFor(area);
51 column = new Column(fLinearSpec, area->Left(), area->Right());
54 area
63 RemoveArea(Area* area) argument
100 TabsChanged(Area* area) argument
108 _FindRowFor(Area* area) argument
121 _FindColumnFor(Area* area) argument
[all...]
/haiku/src/add-ons/kernel/drivers/audio/echo/
H A Dutil.c71 area_id area; local
77 area = create_area(name, &logadr, B_ANY_KERNEL_ADDRESS, size,
81 if (area < B_OK) {
82 PRINT(("couldn't allocate area %s\n", name));
87 delete_area(area);
96 LOG(("area = %d, size = %d, log = %#08X, phy = %#08X\n", area, size, logadr,
98 return area;
108 area_id area; local
115 area
[all...]
/haiku/src/add-ons/kernel/drivers/audio/ac97/auich/
H A Dutil.c71 area_id area; local
81 area = create_area(name, &logadr, B_ANY_KERNEL_ADDRESS, size,
85 if (area < B_OK) {
86 PRINT(("couldn't allocate area %s\n", name));
91 delete_area(area);
103 LOG(("area = %d, size = %d, log = %#08X, phy = %#08X\n", area, size, logadr,
105 return area;
115 area_id area; local
122 area
[all...]
/haiku/src/tests/add-ons/kernel/network/
H A Duserland_ipc.c81 area_id area; member in struct:__anon2040
108 delete_cloned_areas(net_area_info *area) argument
112 if (area[i].id == 0)
115 delete_area(area[i].id);
128 if (command->area[i].id <= 0)
132 B_READ_AREA | B_WRITE_AREA,command->area[i].id);
208 net_area_info area[MAX_NET_AREAS]; local
222 if (clone_command_areas(area, command) < B_OK) {
235 args = convert_to_local(&command->area[0],&area[
[all...]
/haiku/src/system/kernel/messaging/
H A DMessagingService.cpp55 MessagingArea *area = new(nothrow) MessagingArea; local
56 if (!area)
59 // create the area
60 area->fID = create_area("messaging", (void**)&area->fHeader,
63 if (area->fID < 0) {
64 delete area;
69 area->fSize = kMessagingAreaSize;
70 area->fLockSem = lockSem;
71 area
222 SetNextArea(MessagingArea *area) argument
361 MessagingArea *area = fFirstArea; local
389 MessagingArea *area; local
420 _AllocateCommand(int32 commandWhat, int32 size, MessagingArea *&area, void *&data, bool &wasEmpty) argument
[all...]
/haiku/headers/private/userlandfs/private/
H A DAreaSupport.h10 status_t get_area_for_address(void* address, int32 size, area_id* area,

Completed in 180 milliseconds

1234567891011