Searched refs:size (Results 251 - 275 of 2734) sorted by relevance

<<11121314151617181920>>

/haiku/src/kits/package/hpkg/
H A DPackageDataReader.cpp40 virtual status_t ReadData(off_t offset, void* buffer, size_t size) argument
42 if (size == 0)
48 if ((uint64)offset > fSize || size > fSize - offset)
51 return fDataReader->ReadData(fOffset + offset, buffer, size);
54 virtual status_t ReadDataToOutput(off_t offset, size_t size, argument
57 if (size == 0)
63 if ((uint64)offset > fSize || size > fSize - offset)
66 return fDataReader->ReadDataToOutput(fOffset + offset, size, output);
/haiku/headers/private/system/arch/ppc/
H A Dasm_defs.h10 #define SYMBOL_END(name) 1: .size name, 1b - name
13 #define FUNCTION_END(name) 1: .size name, 1b - name
/haiku/headers/private/kernel/platform/sbi/
H A Dsbi_syscalls.h71 unsigned long size);
75 unsigned long size,
95 unsigned long size);
100 unsigned long size,
106 unsigned long size,
112 unsigned long size);
117 unsigned long size,
123 unsigned long size);
/haiku/src/add-ons/kernel/file_systems/websearchfs/
H A Dringbuff.h9 size_t size; member in struct:ring_buffer
15 void rb_init(struct ring_buffer *rb, size_t size);
/haiku/headers/private/storage/
H A DFileIO.h20 virtual ssize_t Read(void *buffer, size_t size);
21 virtual ssize_t Write(const void *buffer, size_t size);
24 size_t size);
26 size_t size);
31 virtual status_t SetSize(off_t size);
32 virtual status_t GetSize(off_t* size) const;
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DSymLink.cpp42 uint64 size = Size(); local
43 if (size > kMaxSymLinkSize)
46 if (toRead > size)
47 toRead = size;
71 uint64 size = Size(); local
72 if (size > kMaxSymLinkSize)
/haiku/headers/private/shared/
H A DRangeArray.h20 Value size; member in struct:BPrivate::Range
22 Range(const Value& offset, const Value& size) argument
25 size(size)
31 return offset + size;
54 const Value& size);
57 const Value& size);
65 const Value& size) const;
106 return AddRange(range.offset, range.size);
110 /*! Adds the range starting at \a offset with size \
119 AddRange(const Value& offset, const Value& size) argument
178 RemoveRange(const Value& offset, const Value& size) argument
[all...]
/haiku/src/system/kernel/
H A Dcommpage.cpp36 allocate_commpage_entry(int entry, size_t size) argument
39 sFreeCommPageSpace = ALIGN_ENTRY((addr_t)sFreeCommPageSpace + size);
41 dprintf("allocate_commpage_entry(%d, %lu) -> %p\n", entry, size,
48 fill_commpage_entry(int entry, const void* copyFrom, size_t size) argument
50 void* space = allocate_commpage_entry(entry, size);
51 memcpy(space, copyFrom, size);
/haiku/src/apps/haikudepot/ui_generic/
H A DSharedBitmap.h27 SharedBitmap(BDataIO& data, size_t size);
33 void _InitWithData(BDataIO& data, size_t size);
34 BBitmap* _CreateBitmapFromResource(int32 size) const;
35 BBitmap* _CreateBitmapFromBuffer(int32 size) const;
36 BBitmap* _CreateBitmapFromMimeType(int32 size) const;
45 size_t dataSize, int32 size) const;
/haiku/src/system/libroot/os/
H A Darea.c15 create_area(const char *name, void **address, uint32 addressSpec, size_t size, argument
20 return _kern_create_area(name, address, addressSpec, size, lock, protection);
72 _get_area_info(area_id id, area_info *areaInfo, size_t size) argument
74 // size is not yet used, but may, if area_info changes
75 (void)size;
82 _get_next_area_info(team_id team, ssize_t *cookie, area_info *areaInfo, size_t size) argument
84 // size is not yet used, but may, if area_info changes
85 (void)size;
/haiku/src/system/libroot/posix/malloc_debug/
H A Dmalloc_debug_api.cpp107 heap_debug_malloc_with_guard_page(size_t size) argument
110 return sCurrentHeap->malloc_with_guard_page(size);
117 heap_debug_get_allocation_info(void *address, size_t *size, argument
121 return sCurrentHeap->get_allocation_info(address, size, thread);
239 memalign(size_t alignment, size_t size) argument
241 return sCurrentHeap->memalign(alignment, size);
246 aligned_alloc(size_t alignment, size_t size) argument
248 if ((size % alignment) != 0)
251 return sCurrentHeap->memalign(alignment, size);
256 malloc(size_t size) argument
277 calloc(size_t numElements, size_t size) argument
291 valloc(size_t size) argument
301 posix_memalign(void **pointer, size_t alignment, size_t size) argument
320 size_t size; local
[all...]
/haiku/src/kits/package/
H A DFetchUtils.cpp69 type_code type, const void* data, size_t size)
74 ssize_t written = node.WriteAttr(attrName, type, 0, data, size);
75 if (written != (ssize_t)size) {
86 type_code type, void* data, size_t size)
91 ssize_t read = node.ReadAttr(attrName, type, 0, data, size);
92 if (read != (ssize_t)size) {
68 _SetAttribute(BNode& node, const char* attrName, type_code type, const void* data, size_t size) argument
85 _GetAttribute(const BNode& node, const char* attrName, type_code type, void* data, size_t size) argument
/haiku/src/tools/gensyscalls/
H A Dgensyscalls.h20 Type(const char* name, int size,
42 const char* parameterName, int size,
70 void SetReturnType(int size, const char* name);
71 Type* SetReturnType(const char* name, int size,
74 void AddParameter(int size, const char* typeName,
77 const char* parameterName, int size,
/haiku/src/system/libroot/posix/string/
H A Dstrxfrm.cpp20 strxfrm(char *out, const char *in, size_t size) argument
26 status_t status = backend->Strxfrm(out, in, size, outSize);
34 return strlcpy(out, in, size);
39 strxfrm_l(char *out, const char *in, size_t size, locale_t l) argument
46 status_t status = backend->Strxfrm(out, in, size, outSize);
54 return strlcpy(out, in, size);
/haiku/headers/private/kernel/util/
H A Dkernel_cpp.h31 extern void* operator new(size_t size) _THROW(std::bad_alloc);
32 extern void* operator new[](size_t size) _THROW(std::bad_alloc);
33 extern void* operator new(size_t size, const std::nothrow_t &) _NOEXCEPT;
34 extern void* operator new[](size_t size, const std::nothrow_t &) _NOEXCEPT;
35 extern void* operator new(size_t size, const mynothrow_t &) _NOEXCEPT;
36 extern void* operator new[](size_t size, const mynothrow_t &) _NOEXCEPT;
/haiku/src/system/boot/platform/riscv/
H A Dmmu.cpp30 size_t size; member in struct:MemoryRegion
74 AllocPhysPages(size_t size) argument
76 size = ROUNDUP(size, B_PAGE_SIZE);
79 if (adr + size - (addr_t)gMemBase > gTotalMem)
82 gFreeMem = (uint8*)(adr + size);
96 FreePhysPages(phys_addr_t physAdr, size_t size) argument
98 if (physAdr + size == (phys_addr_t)gFreeMem)
99 gFreeMem -= size;
104 AllocVirtPages(size_t size) argument
115 FreeVirtPages(addr_t virtAdr, size_t size) argument
185 MapRange(addr_t virtAdr, phys_addr_t physAdr, size_t size, uint64 flags) argument
199 MapRangeIdentity(addr_t adr, size_t size, uint64 flags) argument
300 platform_allocate_region(void** address, size_t size, uint8 protection, bool exactAddress) argument
330 platform_free_region(void* address, size_t size) argument
[all...]
/haiku/src/system/boot/platform/efi/arch/riscv64/
H A Darch_mmu.cpp84 DumpPageWrite(uint64_t virtAdr, uint64_t physAdr, size_t size, uint64 flags, uint64& firstVirt, argument
88 len += size;
100 len = size;
198 MapRange(addr_t virtAdr, phys_addr_t physAdr, size_t size, uint64 flags) argument
201 B_PRIxADDR ")\n", virtAdr, virtAdr + (size - 1), physAdr, physAdr + (size - 1), size);
202 for (size_t i = 0; i < size; i += B_PAGE_SIZE)
205 ASSERT_ALWAYS(insert_virtual_allocated_range(virtAdr, size) >= B_OK);
210 insert_virtual_range_to_keep(uint64 start, uint64 size) argument
313 uint64 size = gKernelArgs.physical_memory_range[i].size; local
321 uint64 size = gKernelArgs.physical_allocated_range[i].size; local
329 uint64 size = gKernelArgs.virtual_allocated_range[i].size; local
337 uint64 size = gKernelArgs.arch_args.virtual_ranges_to_keep[i].size; local
421 size_t size; local
[all...]
/haiku/src/kits/tracker/
H A DIconCache.cpp110 icon_size_for(BSize size) argument
112 ASSERT(size.Width() == size.Height());
113 return (icon_size)(size.IntegerWidth() + 1);
186 IconCacheEntry::HaveIconBitmap(IconDrawMode mode, BSize size) const
192 return size == IconCache::sMiniIconSize ? fMiniIcon != NULL
194 && fLargeIcon->Bounds().Size() == size;
196 return size == IconCache::sMiniIconSize ? fHighlightedMiniIcon != NULL
198 && fHighlightedLargeIcon->Bounds().Size() == size;
206 IconCacheEntry::IconForMode(IconDrawMode mode, BSize size) cons
261 ConstructBitmap(BBitmap* constructFrom, IconDrawMode requestedMode, IconDrawMode constructFromMode, BSize size, LazyBitmapAllocator* lazyBitmap) argument
278 ConstructBitmap(IconDrawMode requestedMode, BSize size, LazyBitmapAllocator* lazyBitmap) argument
304 SetIcon(BBitmap* bitmap, IconDrawMode mode, BSize size) argument
347 GetIconForPreferredApp(const char* fileTypeSignature, const char* preferredApp, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument
404 GetIconFromMetaMime(const char* fileType, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument
487 GetIconFromFileTypes(ModelNodeLazyOpener* modelOpener, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument
576 GetVolumeIcon(AutoLock<SimpleIconCache>*nodeCacheLocker, AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap) argument
655 GetRootIcon(AutoLock<SimpleIconCache>*, AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model*, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap) argument
671 GetWellKnownIcon(AutoLock<SimpleIconCache>*, AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap) argument
784 GetNodeIcon(ModelNodeLazyOpener* modelOpener, AutoLock<SimpleIconCache>* nodeCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconSource& source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry, bool permanent) argument
849 GetGenericIcon(AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument
881 GetFallbackIcon(AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument
909 Preload(AutoLock<SimpleIconCache>* nodeCacheLocker, AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingCache, Model* model, IconDrawMode mode, BSize size, bool permanent) argument
1098 Draw(Model* model, BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument
1128 SyncDraw(Model* model, BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument
1151 Preload(Model* model, IconDrawMode mode, BSize size, bool permanent) argument
1163 Preload(const char* fileType, IconDrawMode mode, BSize size) argument
1261 MakeSelectedIcon(const BBitmap* normal, BSize size, LazyBitmapAllocator* lazyBitmap) argument
1374 IconHitTest(BPoint where, const Model* model, IconDrawMode mode, BSize size) argument
1436 Draw(IconCacheEntry* entry, BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument
1444 Draw(IconCacheEntry* entry, BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument
1531 Draw(BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument
1557 Draw(BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument
1617 Draw(BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument
1646 Draw(BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument
1706 Draw(IconCacheEntry* entry, BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument
1714 Draw(IconCacheEntry* entry, BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument
1845 LazyBitmapAllocator(BSize size, color_space colorSpace, bool preallocate) argument
[all...]
/haiku/src/add-ons/translators/hvif/
H A DHVIFTranslator.cpp100 off_t size = inSource->Seek(0, SEEK_END);
101 if (size <= 0 || size > 256 * 1024 || inSource->Seek(0, SEEK_SET) != 0)
104 uint8 *buffer = (uint8 *)malloc(size);
108 if (inSource->Read(buffer, size) != size) {
114 if (BIconUtils::GetVectorIcon(buffer, size, &dummy) != B_OK) {
142 off_t size = inSource->Seek(0, SEEK_END);
143 if (size <= 0 || size > 25
[all...]
/haiku/src/system/libnetwork/netresolv/inet/
H A Dinet_net_ntop.c52 char *dst, size_t size);
54 char *dst, size_t size);
58 * inet_net_ntop(af, src, bits, dst, size)
67 inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size) argument
71 return (inet_net_ntop_ipv4(src, bits, dst, size));
73 return (inet_net_ntop_ipv6(src, bits, dst, size));
82 * inet_net_ntop_ipv4(src, bits, dst, size)
94 inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) argument
107 if (size < sizeof "0")
110 size
169 inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) argument
[all...]
/haiku/src/add-ons/media/media-add-ons/usb_webcam/
H A DCamBufferingDeframer.cpp37 CamBufferingDeframer::Write(const void *buffer, size_t size) argument
45 IB.Write(buffer, size);
49 PRINT((CH "(%p, %" B_PRIuSIZE "), IB: %" B_PRIuSIZE CT, buffer, size,
53 return size; // not enough data anyway
61 "(too many queued frames)" CT, size));
62 return size; // drop XXX
109 return size;
112 return size;
117 CamBufferingDeframer::DiscardFromInput(size_t size) argument
122 size, I
[all...]
/haiku/src/apps/drivesetup/
H A DSupport.cpp35 char size[1024]; local
37 printf("\tSize(): %s\n", string_for_size(partition->Size(), size,
38 sizeof(size)));
40 size, sizeof(size)));
63 is_valid_partitionable_space(size_t size) argument
67 return size >= 8 * 1024 * 1024;
107 BMessage* message, off_t offset, off_t size, uint32 minGranularity)
112 fEndOffset(offset + size),
113 fMaxPartitionSize(size),
106 SizeSlider(const char* name, const char* label, BMessage* message, off_t offset, off_t size, uint32 minGranularity) argument
167 SetSize(off_t size) argument
[all...]
/haiku/src/kits/support/
H A DBufferedDataIO.cpp106 BBufferedDataIO::Read(void* buffer, size_t size) argument
111 TRACE("%p::Read(size %lu)\n", this, size);
117 bytesRead = min_c(size, fSize);
123 size -= bytesRead;
131 if (size > fBufferSize || fBuffer == NULL) {
133 return fStream.Read(buffer, size);
136 if (size > 0) {
154 size_t copy = min_c(size, fSize);
168 BBufferedDataIO::Write(const void* buffer, size_t size) argument
[all...]
/haiku/src/add-ons/kernel/drivers/graphics/common/
H A Dmemory_manager.c36 uint32 size; member in struct:mem_block
60 block->size += next->size;
113 uint32 size; local
128 // align size to B_PAGE_SIZE
129 size = heapEntries * sizeof(mem_block);
130 size = (size + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
133 B_ANY_ADDRESS, size, B_FULL_LOCK, B_READ_AREA | B_WRITE_AREA);
149 first->size
188 mem_alloc(mem_info *mem, uint32 size, void *tag, uint32 *blockID, uint32 *offset) argument
[all...]
/haiku/src/add-ons/kernel/drivers/graphics/radeon/
H A DPCI_GART.c31 createGARTBuffer(GART_info *gart, size_t size) argument
35 gart->buffer.size = size = (size + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
53 size, B_FULL_LOCK,
64 memset( gart->buffer.ptr, 0, size );
71 static status_t createGARTBuffer( GART_info *gart, size_t size )
78 gart->buffer.size = size = (size
193 size_t size = map[i].size; local
[all...]

Completed in 128 milliseconds

<<11121314151617181920>>