/haiku/src/system/kernel/slab/ |
H A D | SmallObjectCache.cpp | 20 slab_in_pages(void *pages, size_t slab_size) 29 SmallObjectCache::Create(const char* name, size_t object_size, 30 size_t alignment, size_t maximum, size_t magazineCapacity, 31 size_t maxMagazineCount, uint32 flags, void* cookie, 83 size_t byteCount = slab_size - sizeof(slab);
|
/haiku/headers/private/kernel/util/ |
H A D | BitUtils.h | 63 bitmap_shift(T* bits, size_t bitCount, ssize_t shift) 68 const size_t bitsPerElement = sizeof(T) * 8; 69 const size_t elementsCount = (bitCount + bitsPerElement - 1) / bitsPerElement; 70 const size_t absoluteShift = (shift > 0) ? shift : -shift; 71 const size_t nElements = absoluteShift / bitsPerElement; 72 const size_t nBits = absoluteShift % bitsPerElement; 103 for (size_t i = 0; i < elementsCount; i++) {
|
/haiku/src/apps/cortex/addons/common/ |
H A D | audio_buffer_tools.h | 184 inline size_t copy_linear_to_circular( 187 size_t samples, size_t toOffset, size_t toLength) { 195 size_t n = toOffset; 210 inline size_t copy_linear_to_circular_convert( 213 size_t samples, size_t toOffset, size_t toLength) { 221 size_t [all...] |
/haiku/src/libs/compat/freebsd_iflib/compat/sys/ |
H A D | nv.h | 100 size_t nvlist_size(const nvlist_t *nvl); 101 void *nvlist_pack(const nvlist_t *nvl, size_t *sizep); 102 nvlist_t *nvlist_unpack(const void *buf, size_t size, int flags); 155 void nvlist_add_binary(nvlist_t *nvl, const char *name, const void *value, size_t size); 156 void nvlist_add_bool_array(nvlist_t *nvl, const char *name, const bool *value, size_t nitems); 157 void nvlist_add_number_array(nvlist_t *nvl, const char *name, const uint64_t *value, size_t nitems); 158 void nvlist_add_string_array(nvlist_t *nvl, const char *name, const char * const *value, size_t nitems); 159 void nvlist_add_nvlist_array(nvlist_t *nvl, const char *name, const nvlist_t * const *value, size_t nitems); 162 void nvlist_add_descriptor_array(nvlist_t *nvl, const char *name, const int *value, size_t nitems); 180 void nvlist_move_binary(nvlist_t *nvl, const char *name, void *value, size_t siz [all...] |
/haiku/headers/cpp/ |
H A D | pthread_alloc | 50 template<size_t _Max_size> 66 void *_M_refill(size_t __n); 73 template <size_t _Max_size = 128> 82 static char *_S_chunk_alloc(size_t __size, int &__nobjs); 86 static size_t _S_round_up(size_t __bytes) { 89 static size_t _S_freelist_index(size_t __bytes) { 99 static size_t _S_heap_size; 123 static void * allocate(size_t __ [all...] |
/haiku/headers/private/libroot/locale/ |
H A D | LocaleBackend.h | 154 size_t mbLength, mbstate_t* mbState, 155 size_t& lengthOut) = 0; 157 size_t wcDestLength, const char** mbSource, 158 size_t mbSourceLength, mbstate_t* mbState, 159 size_t& lengthOut) = 0; 161 mbstate_t* mbState, size_t& lengthOut) = 0; 163 size_t mbDestLength, 165 size_t wcSourceLength, mbstate_t* mbState, 166 size_t& lengthOut) = 0; 173 size_t outSiz [all...] |
/haiku/src/add-ons/kernel/file_systems/fat/ |
H A D | file.h | 12 char *buffer, size_t bufferSize); 19 off_t pos, void *buf, size_t *len); 35 off_t pos, const void *buf, size_t *len); 37 size_t reqLen, struct file_io_vec *vecs, size_t *_count); 40 off_t pos, const iovec *vecs, size_t count, size_t *_numBytes); 42 off_t pos, const iovec *vecs, size_t count, size_t *_numBytes);
|
/haiku/src/apps/deskbar/ |
H A D | ResourceSet.h | 61 TStringBlock(const void* block, size_t size); 64 const char* String(size_t index) const; 67 size_t PreIndex(char* strings, ssize_t len); 68 void MakeIndex(const char* strings, ssize_t len, size_t indexLen, 69 size_t* outIndex); 71 size_t fNumEntries; 72 size_t* fIndex; 87 const void* FindResource(type_code type, int32 id, size_t* outSize); 88 const void* FindResource(type_code type, const char* name, size_t* outSize);
|
/haiku/src/system/libroot/posix/glibc/stdio-common/ |
H A D | printf-parse.c | 40 ssize_t __printf_pad __P ((FILE *, char pad, size_t n)); 54 ssize_t __wprintf_pad __P ((FILE *, wchar_t pad, size_t n)); 64 size_t 65 parse_printf_format(const char *fmt, size_t n, int *argtypes) 67 size_t nargs = 0; /* Number of arguments. */ 68 size_t max_ref_arg = 0; /* Highest index used in a positional arg. */ 78 if (spec.width_arg != -1 && (size_t)spec.width_arg < n) 82 if (spec.prec_arg != -1 && (size_t) spec.prec_arg < n) 85 if ((size_t) spec.data_arg < n) {
|
H A D | printf-prs.c | 42 ssize_t __printf_pad __P ((FILE *, char pad, size_t n)); 63 ssize_t __wprintf_pad __P ((FILE *, wchar_t pad, size_t n)); 74 size_t 77 size_t n; 80 size_t nargs; /* Number of arguments. */ 81 size_t max_ref_arg; /* Highest index used in a positional arg. */ 95 if (spec.width_arg != -1 && (size_t) spec.width_arg < n) 99 if (spec.prec_arg != -1 && (size_t) spec.prec_arg < n) 102 if ((size_t) spec.data_arg < n)
|
/haiku/src/add-ons/kernel/file_systems/packagefs/util/ |
H A D | StringPool.cpp | 12 static const size_t kInitialStringTableSize = 128; 84 StringPool::Get(const char* string, size_t length) 125 size_t unsharedStringCount = 0; 126 size_t totalReferenceCount = 0; 127 size_t totalStringSize = 0; 128 size_t totalStringSizeWithDuplicates = 0; 138 size_t stringSize = strlen(data->String() + 1); 143 size_t stringCount = sStrings->CountElements(); 144 size_t overhead = stringCount * (sizeof(StringData) - 1);
|
/haiku/src/add-ons/accelerants/radeon_hd/ |
H A D | ringqueue.cpp | 48 RingQueue::RingQueue(size_t sizeBytes, uint32 queueType) 57 size_t renderQueueSize = compute_order(sizeBytes / 8); 94 size_t 95 RingQueue::Read(unsigned char* dataPtr, size_t bytes) 101 size_t readBytesAvail = fSize - fWriteBytesAvail; 109 size_t len = fSize - fReadPtr; 123 size_t 124 RingQueue::Write(unsigned char* dataPtr, size_t bytes) 136 size_t len = fSize - fWritePtr;
|
/haiku/src/add-ons/kernel/drivers/misc/ |
H A D | mem.c | 26 static status_t mem_read(void*, off_t, void*, size_t*); 27 static status_t mem_write(void*, off_t, const void*, size_t*); 29 static area_id mem_map_target(off_t position, size_t length, uint32 protection, 111 mem_read(void* cookie, off_t position, void* buffer, size_t* numBytes) 138 mem_write(void* cookie, off_t position, const void* buffer, size_t* numBytes) 165 mem_map_target(off_t position, size_t length, uint32 protection, 170 size_t offset; 171 size_t size; 184 size = (offset + length + B_PAGE_SIZE - 1) & ~((size_t)B_PAGE_SIZE - 1);
|
/haiku/src/system/kernel/disk_device_manager/ |
H A D | UserDataWriter.cpp | 23 size_t bufferSize) 40 UserDataWriter::SetTo(user_disk_device_data *buffer, size_t bufferSize) 67 UserDataWriter::AllocateData(size_t size, size_t align) 71 size_t offset = fAllocatedSize; 85 UserDataWriter::AllocatePartitionData(size_t childCount) 95 UserDataWriter::AllocateDeviceData(size_t childCount) 109 size_t len = strlen(str) + 1; 117 size_t
|
/haiku/headers/private/kernel/boot/ |
H A D | stdio.h | 44 extern int snprintf(char *str, size_t size, char const *format, ...) __PRINTFLIKE(3,4); 49 extern int vsnprintf(char *str, size_t size, char const *format, va_list ap); 60 extern size_t fread(void *buffer, size_t size, size_t numItems, FILE *stream); 66 extern size_t fwrite(const void *buffer, size_t size, size_t numItems, FILE *stream); 72 extern int setvbuf(FILE *file, char *buff, int mode, size_t size);
|
/haiku/src/system/boot/platform/efi/arch/riscv64/ |
H A D | arch_start.cpp | 26 extern void arch_mmu_post_efi_setup(size_t memory_map_size, 27 efi_memory_descriptor *memory_map, size_t descriptor_size, 30 extern uint64_t arch_mmu_generate_post_efi_page_tables(size_t memory_map_size, 31 efi_memory_descriptor *memory_map, size_t descriptor_size, 64 size_t memory_map_size = 0; 67 size_t map_key; 68 size_t descriptor_size; 77 size_t actual_memory_map_size = memory_map_size * 2; 93 for (size_t i = 0; i < memory_map_size / descriptor_size; ++i) {
|
/haiku/src/system/boot/platform/efi/arch/x86_64/ |
H A D | arch_start.cpp | 28 extern void arch_mmu_post_efi_setup(size_t memory_map_size, 29 efi_memory_descriptor *memory_map, size_t descriptor_size, 32 extern uint64_t arch_mmu_generate_post_efi_page_tables(size_t memory_map_size, 33 efi_memory_descriptor *memory_map, size_t descriptor_size, 92 size_t memory_map_size = 0; 94 size_t map_key; 95 size_t descriptor_size; 104 size_t actual_memory_map_size = memory_map_size * 2; 120 for (size_t i = 0; i < memory_map_size / descriptor_size; i++) {
|
/haiku/headers/os/drivers/ |
H A D | midi_driver.h | 30 size_t size; 39 int (*parse)(uint32* state, uchar byte, size_t maxSize); 60 size_t length); 62 size_t* _length); 64 size_t* _length);
|
/haiku/headers/private/debug/ |
H A D | DebugContext.h | 26 const void *message, size_t messageSize, 27 void* reply, size_t replySize); 32 void* buffer, size_t size); 34 void* buffer, size_t size); 36 char* buffer, size_t size);
|
/haiku/src/add-ons/kernel/drivers/audio/cmedia/ |
H A D | midi_driver.h | 45 size_t size; 86 int (*parse)(uint32 * state, uchar byte, size_t max_size); 103 status_t (*control_hook)(void * cookie, uint32 op, void * data, size_t len); 104 status_t (*read_hook)(void * cookie, off_t pos, void * data, size_t * len); 105 status_t (*write_hook)(void * cookie, off_t pos, const void * data, size_t * len);
|
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | Query.h | 52 status_t GetNextEntry(struct dirent* , size_t size); 57 size_t oldLength, const uint8* newKey, 58 size_t newLength); 61 size_t oldLength, ino_t newDirectoryID, 62 const char* newName, size_t newLength);
|
/haiku/src/add-ons/media/media-add-ons/usb_webcam/ |
H A D | CamBufferedFilterInterface.cpp | 24 CamBufferedFilterInterface::Read(void *buffer, size_t size) 31 CamBufferedFilterInterface::ReadAt(off_t pos, void *buffer, size_t size) 38 CamBufferedFilterInterface::Write(const void *buffer, size_t size) 47 CamBufferedFilterInterface::WriteAt(off_t pos, const void *buffer, size_t size) 78 size_t
|
H A D | CamFilterInterface.h | 28 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); 38 virtual size_t FrameSize();
|
/haiku/src/apps/resedit/ |
H A D | ResourceData.h | 22 const size_t &length); 26 const char *name, char *data, const size_t &length); 44 size_t GetLength(void) const { return fLength; } 45 void SetData(const char *data, const size_t &size); 57 size_t fLength;
|
/haiku/src/libs/util/ |
H A D | trimdomain.c | 56 static size_t dlen; 60 size_t len; 78 if ((s = memchr(s, '.', (size_t)(end - s))) != NULL) { 85 (len = strlen(s + dlen + 1)) < (size_t)(end - s)) { 99 size_t w;
|