Searched refs:size (Results 276 - 300 of 2734) sorted by relevance

<<11121314151617181920>>

/haiku/src/system/runtime_loader/
H A Dheap.cpp30 the requested size is split (or taken as a whole if it can't be
33 The free list is ordered by size, starting with the smallest
37 size 0 that can't be allocated.
91 void SetTo(size_t size);
105 FreeChunkKey(size_t size) argument
107 fSize(size),
170 align(size_t size, size_t alignment = kAlignment) argument
172 return (size + alignment - 1) & ~(alignment - 1);
177 FreeChunk::SetTo(size_t size) argument
179 fSize = size;
267 add_area(size_t size) argument
326 malloc(size_t size) argument
[all...]
/haiku/src/system/boot/platform/efi/arch/arm/
H A Darch_mmu.cpp108 map_range(addr_t virtAddr, phys_addr_t physAddr, size_t size, uint32_t flags) argument
112 // virtAddr, physAddr, size, flags);
114 for (addr_t offset = 0; offset < size; offset += B_PAGE_SIZE) {
119 ASSERT_ALWAYS(insert_virtual_allocated_range(virtAddr, size) >= B_OK);
124 insert_virtual_range_to_keep(uint64 start, uint64 size) argument
129 MAX_VIRTUAL_RANGES_TO_KEEP, start, size);
139 map_range_to_new_area(addr_t start, size_t size, uint32_t flags) argument
141 if (size == 0)
145 size_t alignedSize = ROUNDUP(size + (start - physAddr), B_PAGE_SIZE);
158 range.start = map_range_to_new_area(range.start, range.size, flag
165 uint64_t size = entry->NumberOfPages * B_PAGE_SIZE; local
186 uint64 size = gKernelArgs.physical_memory_range[i].size; local
194 uint64 size = gKernelArgs.physical_allocated_range[i].size; local
202 uint64 size = gKernelArgs.virtual_allocated_range[i].size; local
210 uint32 size = gKernelArgs.arch_args.virtual_ranges_to_keep[i].size; local
273 size_t size; local
[all...]
/haiku/src/system/boot/arch/m68k/
H A Dmmu.cpp104 get_next_virtual_address(size_t size) argument
107 sNextVirtualAddress += size;
109 TRACE(("%s(%d): %08x\n", __FUNCTION__, size, address));
115 get_next_physical_address(size_t size) argument
118 sNextPhysicalAddress += size;
120 TRACE(("%s(%d): %08x\n", __FUNCTION__, size, address));
308 mmu_map_physical_memory(addr_t physicalAddress, size_t size, uint32 flags) argument
315 for (addr_t offset = 0; offset < size; offset += B_PAGE_SIZE) {
324 mmu_allocate(void *virtualAddress, size_t size) argument
326 TRACE(("mmu_allocate: requested vaddr: %p, next free vaddr: 0x%lx, size
371 mmu_free(void *virtualAddress, size_t size) argument
648 platform_allocate_region(void **_address, size_t size, uint8 protection, bool ) argument
661 platform_free_region(void *address, size_t size) argument
[all...]
/haiku/src/preferences/time/
H A DTZDisplay.cpp45 BSize size = _CalcPrefSize(); local
46 ResizeTo(size.width, size.height);
126 BSize size = _CalcPrefSize(); local
127 size.width = B_SIZE_UNLIMITED;
130 size);
156 BSize size; local
157 size.height = 2 * ceilf(fontHeight.ascent + fontHeight.descent +
165 size.width = firstLine > secondLine ? firstLine : secondLine;
167 return size;
[all...]
/haiku/src/apps/haikudepot/ui_generic/
H A DBitmapView.cpp92 BSize size(0.0f, 0.0f);
96 size.width = bounds.Width();
97 size.height = bounds.Height();
100 return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
107 BSize size = MinSize(); local
108 return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), size);
115 BSize size = MinSize(); local
116 return BLayoutUtils::ComposeSize(ExplicitMaxSize(), size);
126 BSize size = MinSize();
133 if (size !
[all...]
/haiku/src/apps/drivesetup/
H A DCreateParametersPanel.cpp44 BPartition* partition, off_t offset, off_t size)
48 _CreateCreateControls(partition, offset, size);
60 CreateParametersPanel::Go(off_t& offset, off_t& size, BString& name, argument
73 size = storage.GetInt64("size", 0);
90 off_t size = strtoll(fSizeTextControl->Text(), NULL, 10) * kMegaByte; local
91 if (size >= 0 && size <= fSizeSlider->MaxPartitionSize())
92 fSizeSlider->SetSize(size);
116 status_t status = storage.SetInt64("size", fSizeSlide
43 CreateParametersPanel(BWindow* window, BPartition* partition, off_t offset, off_t size) argument
140 _CreateCreateControls(BPartition* parent, off_t offset, off_t size) argument
[all...]
/haiku/src/system/boot/platform/atari_m68k/
H A Dmmu.cpp105 get_next_virtual_address(size_t size) argument
108 sNextVirtualAddress += size;
110 TRACE(("%s(%d): %08x\n", __FUNCTION__, size, address));
116 get_next_physical_address(size_t size) argument
119 sNextPhysicalAddress += size;
121 TRACE(("%s(%d): %08x\n", __FUNCTION__, size, address));
309 mmu_map_physical_memory(addr_t physicalAddress, size_t size, uint32 flags) argument
316 for (addr_t offset = 0; offset < size; offset += B_PAGE_SIZE) {
325 mmu_allocate(void *virtualAddress, size_t size) argument
327 TRACE(("mmu_allocate: requested vaddr: %p, next free vaddr: 0x%lx, size
372 mmu_free(void *virtualAddress, size_t size) argument
651 platform_allocate_region(void **_address, size_t size, uint8 protection, bool ) argument
664 platform_free_region(void *address, size_t size) argument
[all...]
/haiku/src/system/boot/platform/amiga_m68k/
H A Dmmu.cpp104 get_next_virtual_address(size_t size) argument
107 sNextVirtualAddress += size;
109 TRACE(("%s(%d): %08x\n", __FUNCTION__, size, address));
115 get_next_physical_address(size_t size) argument
118 sNextPhysicalAddress += size;
120 TRACE(("%s(%d): %08x\n", __FUNCTION__, size, address));
308 mmu_map_physical_memory(addr_t physicalAddress, size_t size, uint32 flags) argument
315 for (addr_t offset = 0; offset < size; offset += B_PAGE_SIZE) {
324 mmu_allocate(void *virtualAddress, size_t size) argument
326 TRACE(("mmu_allocate: requested vaddr: %p, next free vaddr: 0x%lx, size
371 mmu_free(void *virtualAddress, size_t size) argument
646 platform_allocate_region(void **_address, size_t size, uint8 protection, bool ) argument
659 platform_free_region(void *address, size_t size) argument
[all...]
/haiku/src/system/kernel/vm/
H A DVMUserAddressSpace.cpp44 /*! Verifies that an area with the given aligned base and size fits into
48 is_valid_spot(addr_t base, addr_t alignedBase, addr_t size, addr_t limit) argument
50 return (alignedBase >= base && alignedBase + (size - 1) > alignedBase
51 && alignedBase + (size - 1) <= limit);
83 VMUserAddressSpace::VMUserAddressSpace(team_id id, addr_t base, size_t size) argument
85 VMAddressSpace(id, base, size, "address space"),
163 VMUserAddressSpace::InsertArea(VMArea* _area, size_t size, argument
175 searchEnd = (addr_t)addressRestrictions->address + (size - 1);
196 status = _InsertAreaSlot(searchBase, size, searchEnd,
283 VMUserAddressSpace::ShrinkAreaHead(VMArea* area, size_t size, argument
298 ShrinkAreaTail(VMArea* area, size_t size, uint32 allocationFlags) argument
312 ReserveAddressRange(size_t size, const virtual_address_restrictions* addressRestrictions, uint32 flags, uint32 allocationFlags, void** _address) argument
344 UnreserveAddressRange(addr_t address, size_t size, uint32 allocationFlags) argument
448 _InsertAreaIntoReservedRegion(addr_t start, size_t size, VMUserArea* area, uint32 allocationFlags) argument
518 _InsertAreaSlot(addr_t start, addr_t size, addr_t end, uint32 addressSpec, size_t alignment, VMUserArea* area, uint32 allocationFlags) argument
[all...]
/haiku/src/tests/kits/app/bmessage/
H A DMessageInt32ItemTest.cpp33 ssize_t size; local
34 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, &ptr, &size) ==
50 ssize_t size; local
52 &size) == B_OK);
54 CPPUNIT_ASSERT(size == sizeof (int32));
71 ssize_t size; local
73 &size) == B_OK);
75 CPPUNIT_ASSERT(size == sizeof (int32));
87 ssize_t size; local
88 CPPUNIT_ASSERT(msg.FindData("an int32", B_INT32_TYPE, 1, &ptr, &size)
99 ssize_t size; local
139 ssize_t size; local
158 ssize_t size; local
171 ssize_t size; local
[all...]
/haiku/headers/cpp/
H A Dstrstream.h43 void init_static(char *ptr, int size, char *pstart);
44 void init_readonly(const char *ptr, int size);
55 strstreambuf(char *ptr, int size, char *pstart = NULL) argument
56 { init_static(ptr, size, pstart); }
57 strstreambuf(unsigned char *ptr, int size, unsigned char *pstart = NULL) argument
58 { init_static((char*)ptr, size, (char*)pstart); }
59 strstreambuf(const char *ptr, int size) argument
60 { init_readonly(ptr, size); }
61 strstreambuf(const unsigned char *ptr, int size) argument
62 { init_readonly((const char*)ptr, size); }
63 strstreambuf(signed char *ptr, int size, signed char *pstart = NULL) argument
65 strstreambuf(const signed char *ptr, int size) argument
[all...]
/haiku/src/add-ons/screen_savers/gravity/
H A DParticle.cpp25 Particle::Initialize(int32 size, int32 shade) argument
29 for (int32 i = 0; i < size; i++) {
31 Particle::_FillParticle(p, size, shade);
38 Particle::AddParticles(int32 size, int32 shade) argument
40 for (int32 i = list->CountItems(); i < size; i++) {
42 Particle::_FillParticle(p, size, shade);
49 Particle::RemoveParticles(int32 size, int32 shade) argument
51 while (list->CountItems() > size)
57 Particle::ColorParticles(int32 size, int32 shade) argument
59 for (int32 i = 0; i < size;
120 _FillParticle(Particle* p, int32 size, int32 shade) argument
137 _ColorParticle(Particle* p, int32 size, int32 shade) argument
[all...]
/haiku/src/add-ons/media/media-add-ons/dvb/
H A DMediaFormat.cpp66 GetHeaderFormatAc3Audio(media_format *out_format, const uint8 *header, size_t size) argument
97 GetHeaderFormatDtsAudio(media_format *out_format, const uint8 *header, size_t size) argument
105 GetHeaderFormatLpcmAudio(media_format *out_format, const uint8 *header, size_t size) argument
113 GetHeaderFormatPrivateStream(media_format *out_format, const uint8 *header, size_t size) argument
116 return GetHeaderFormatAc3Audio(out_format, header, size);
121 GetHeaderFormatMpegAudio(media_format *out_format, const uint8 *header, size_t size) argument
155 GetHeaderFormatMpegVideo(media_format *out_format, const uint8 *header, size_t size) argument
185 GetHeaderFormat(media_format *out_format, const void *header, size_t size, int stream_id) argument
198 status = GetHeaderFormatAc3Audio(out_format, h, size);
200 status = GetHeaderFormatDtsAudio(out_format, h, size);
[all...]
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DAllocationInfo.cpp75 AllocationInfo::AddAttributeAllocation(size_t size) argument
78 fAttributeSize += size;
97 AllocationInfo::AddFileAllocation(size_t size) argument
100 fFileSize += size;
105 AllocationInfo::AddSymLinkAllocation(size_t size) argument
108 fSymLinkSize += size;
113 AllocationInfo::AddAreaAllocation(size_t size, size_t count) argument
116 fAreaSize += count * size;
121 AllocationInfo::AddBlockAllocation(size_t size) argument
124 fBlockSize += size;
137 AddOtherAllocation(size_t size, size_t count) argument
145 AddStringAllocation(size_t size) argument
[all...]
/haiku/src/system/kernel/util/
H A Dkernel_cpp.cpp88 operator new(size_t size) _THROW(std::bad_alloc)
93 return malloc(size);
98 operator new[](size_t size) argument
100 return malloc(size);
105 operator new(size_t size, const std::nothrow_t &) _NOEXCEPT
107 return malloc(size);
112 operator new[](size_t size, const std::nothrow_t &) _NOEXCEPT
114 return malloc(size);
119 operator new(size_t size, const mynothrow_t &) _NOEXCEPT
121 return malloc(size);
186 fwrite(const void *buffer, size_t size, size_t numItems, FILE *stream) argument
[all...]
/haiku/src/apps/cortex/Persistence/
H A DExportContext.cpp85 if(!m_objectStack.size()) {
112 if(!m_objectStack.size()) {
116 ASSERT(m_elementStack.size());
144 if(!m_objectStack.size()) {
148 ASSERT(m_elementStack.size());
163 if(!m_objectStack.size()) {\
167 ASSERT(m_elementStack.size());\
244 int elements = m_elementStack.size();
253 else if(m_elementStack.size() - elements > 1)
358 if(m_elementStack.size()) {
[all...]
/haiku/src/kits/interface/
H A DToolTipManager.cpp180 BSize size = PreferredSize();
188 if (size.width > screenFrame.Width())
189 size.width = screenFrame.Width();
191 if (size.width > where.x - screenFrame.left
192 && size.width > screenFrame.right - where.x) {
195 if (size.height > where.y - screenFrame.top
197 size.height = where.y - offset.y - screenFrame.top;
198 } else if (size.height > screenFrame.bottom - where.y
200 size.height = screenFrame.bottom - where.y - offset.y;
212 location.x -= size
[all...]
/haiku/headers/private/media/experimental/
H A DAdapterIO.h21 virtual ssize_t Write(const void* buffer, size_t size);
48 size_t size);
50 const void* buffer, size_t size);
55 virtual status_t SetSize(off_t size);
56 virtual status_t GetSize(off_t* size) const;
74 ssize_t BackWrite(const void* buffer, size_t size);
77 status_t _EvaluateWait(off_t pos, off_t size);
/haiku/src/kits/tracker/
H A DAttributeStream.cpp58 fInfo.size = 0;
79 AttributeInfo::AttributeInfo(const char* name, uint32 type, off_t size) argument
84 fInfo.size = size;
105 return fInfo.size;
126 AttributeInfo::SetTo(const char* name, uint32 type, off_t size) argument
130 fInfo.size = size;
190 uint32 type, off_t size, void* buffer, void (*swapFunc)(void*))
195 return fReadFrom->Read(name, foreignName, type, size, buffe
189 Read(const char* name, const char* foreignName, uint32 type, off_t size, void* buffer, void (*swapFunc)(void*)) argument
200 Write(const char* name, const char* foreignName, uint32 type, off_t size, const void* buffer) argument
328 Read(const char* name, const char* foreignName, uint32 type, off_t size, void* buffer, void (*swapFunc)(void*)) argument
351 Write(const char* name, const char* foreignName, uint32 type, off_t size, const void* buffer) argument
513 Write(const char* name, const char*, uint32 type, off_t size, const void* buffer) argument
540 BufferingGet(const char* name, uint32 type, off_t size) argument
[all...]
/haiku/src/libs/agg/src/
H A Dagg_trans_double_path.cpp105 if(vertices.size() > 2)
107 if(vertices[vertices.size() - 2].dist * 10.0 <
108 vertices[vertices.size() - 3].dist)
110 d = vertices[vertices.size() - 3].dist +
111 vertices[vertices.size() - 2].dist;
113 vertices[vertices.size() - 2] =
114 vertices[vertices.size() - 1];
117 vertices[vertices.size() - 2].dist = d;
122 for(i = 0; i < vertices.size(); i++)
130 return (vertices.size()
[all...]
/haiku/src/tools/remote_disk_server/
H A Dremote_disk_server.cpp144 // get its size
196 int16_t size = ntohs(fRequest->size); local
199 printf("READ request: offset: %" PRIu64 ", %hd bytes\n", offset, size);
201 if (offset < (uint64_t)fImageSize && size > 0) {
203 size = REMOTE_DISK_BLOCK_SIZE;
204 if (offset + size > (uint64_t)fImageSize)
205 size = fImageSize - offset;
211 ssize_t bytesRead = read(fImageFD, reply->data, size);
229 reply->size
239 int16_t size = ntohs(fRequest->size); local
278 _SendReply(remote_disk_header *reply, int size) argument
[all...]
/haiku/src/add-ons/translators/wonderbrush/support/
H A Dbitmap_compression.cpp24 compress_bitmap_zlib(const BBitmap* bitmap, void** buffer, unsigned* size) argument
30 *size = (unsigned)ceilf(srcLength * 1.01) + 12;
31 *buffer = malloc(*size);
34 (uLongf*)size,
40 // srcLength, *size, ((float)*size / (float)srcLength) * 100.0);
41 if ((unsigned)ceilf(srcLength * 1.01) + 12 != *size) {
42 void* tmpBuffer = realloc(*buffer, *size);
53 *size = 0;
57 *size
64 decompress_bitmap_zlib(const void* buffer, unsigned int size, BRect frame, color_space format) argument
101 unsigned size; local
[all...]
/haiku/src/apps/resedit/
H A DResourceData.cpp101 fLength = info.size;
108 ssize_t size = node.ReadAttr(name, info.type, 0, (void*)fData, fLength); local
109 if (size >= 0) {
110 fLength = (size_t) size;
153 ResourceData::SetData(const char *data, const size_t &size) argument
157 fLength = size;
159 if (size > 0) {
160 fData = (char *)malloc(size);
161 memcpy(fData, data, size);
/haiku/src/kits/network/libnetservices2/
H A DHttpBuffer.cpp49 auto currentSize = fBuffer.size();
55 // Adjust the buffer to the maximum size
70 // Adjust the buffer to the current size
80 \param func Handle the actual writing. The function accepts a pointer and a size as inputs
92 auto size = RemainingBytes();
93 if (maxSize.has_value() && *maxSize < size)
94 size = *maxSize;
96 auto bytesWritten = func(fBuffer.data() + fCurrentOffset, size);
97 if (bytesWritten > size)
137 return fBuffer.size()
[all...]
/haiku/src/add-ons/media/media-add-ons/usb_webcam/
H A DCamFilterInterface.h28 virtual ssize_t Read(void *buffer, size_t size);
29 virtual ssize_t ReadAt(off_t pos, void *buffer, size_t size);
31 virtual ssize_t Write(const void *buffer, size_t size);
32 virtual ssize_t WriteAt(off_t pos, const void *buffer, size_t size);
36 virtual status_t SetSize(off_t size);
37 // size of the buffer required for reading a whole frame

Completed in 227 milliseconds

<<11121314151617181920>>