Home
last modified time | relevance | path

Searched refs:chunkSize (Results 1 – 25 of 45) sorted by relevance

12

/haiku/src/add-ons/kernel/drivers/common/
H A Ddprintf.cpp81 int chunkSize = min_c(bytesLeft, (int)size); in dprintf_write() local
84 if (chunkSize == 0) { in dprintf_write()
91 if (chunkSize == bytesLeft) { in dprintf_write()
95 chunkSize = bytesLeft; in dprintf_write()
99 chunkSize = (int)sizeof(localBuffer) - 1; in dprintf_write()
100 if (user_memcpy(localBuffer, str, chunkSize) < B_OK) in dprintf_write()
102 localBuffer[chunkSize] = '\0'; in dprintf_write()
104 debug_puts(localBuffer, chunkSize); in dprintf_write()
106 str += chunkSize; in dprintf_write()
107 bytesLeft -= chunkSize; in dprintf_write()
[all …]
H A Dconsole.cpp736 size_t chunkSize = min_c(sizeof(localBuffer), bytesLeft); in console_write() local
737 if (user_memcpy(localBuffer, str, chunkSize) < B_OK) { in console_write()
741 written += _console_write(console, localBuffer, chunkSize); in console_write()
742 str += chunkSize; in console_write()
743 bytesLeft -= chunkSize; in console_write()
/haiku/src/system/kernel/slab/
H A DMemoryManager.cpp287 AllocateChunk(size_t chunkSize, MetaChunk* metaChunk, Chunk* chunk) in AllocateChunk() argument
290 fChunkSize(chunkSize), in AllocateChunk()
313 AllocateChunks(size_t chunkSize, uint32 chunkCount, MetaChunk* metaChunk, in AllocateChunks() argument
318 fChunkSize(chunkSize), in AllocateChunks()
539 size_t chunkSize = cache->slab_size; in Allocate() local
542 B_PRIuSIZE "\n", cache, flags, chunkSize); in Allocate()
549 status_t error = _AllocateChunks(chunkSize, 1, flags, metaChunk, chunk); in Allocate()
558 error = _MapChunk(area->vmArea, chunkAddress, chunkSize, 0, flags); in Allocate()
588 ASSERT(metaChunk->chunkSize > 0); in Free()
590 ASSERT(((addr_t)pages % metaChunk->chunkSize) == 0); in Free()
[all …]
H A DMemoryManager.h84 size_t chunkSize; member
149 static status_t _AllocateChunks(size_t chunkSize,
153 size_t chunkSize, uint32 chunkCount,
156 size_t chunkSize, MetaChunk*& _metaChunk,
163 size_t chunkSize);
279 return (address - metaChunk->chunkBase) / metaChunk->chunkSize; in _ChunkIndexForAddress()
287 + (chunk - metaChunk->chunks) * metaChunk->chunkSize; in _ChunkAddress()
/haiku/src/kits/network/libnetservices/
H A DFileRequest.cpp86 ssize_t chunkSize = 0; in _ProtocolLoop() local
89 chunkSize = file.Read(chunk, sizeof(chunk)); in _ProtocolLoop()
90 if (chunkSize > 0) { in _ProtocolLoop()
92 error = fOutput->WriteExactly(chunk, chunkSize, &written); in _ProtocolLoop()
97 transferredSize += chunkSize; in _ProtocolLoop()
108 if (chunkSize < 0) in _ProtocolLoop()
109 return (status_t)chunkSize; in _ProtocolLoop()
H A DHttpRequest.cpp614 ssize_t chunkSize = -1; in _MakeRequest() local
727 if (chunkSize >= 0) { in _MakeRequest()
728 if ((ssize_t)fInputBuffer.Size() >= chunkSize + 2) { in _MakeRequest()
730 bytesRead = chunkSize; in _MakeRequest()
731 if (inputTempSize < chunkSize + 2) { in _MakeRequest()
732 inputTempSize = chunkSize + 2; in _MakeRequest()
744 chunkSize + 2); in _MakeRequest()
745 chunkSize = -1; in _MakeRequest()
753 chunkSize = -1; in _MakeRequest()
766 chunkSize = strtol(chunkHeader.String(), NULL, 16); in _MakeRequest()
[all …]
/haiku/src/kits/media/
H A DDecoderPlugin.cpp29 Decoder::GetNextChunk(const void **chunkBuffer, size_t *chunkSize, in GetNextChunk() argument
32 return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader); in GetNextChunk()
H A DMediaWriter.cpp31 virtual status_t WriteChunk(const void* chunkBuffer, size_t chunkSize, in WriteChunk() argument
34 return fWriter->WriteChunk(fStreamIndex, chunkBuffer, chunkSize, in WriteChunk()
226 size_t chunkSize, media_encode_info* encodeInfo) in WriteChunk() argument
235 return fWriter->WriteChunk(info->cookie, chunkBuffer, chunkSize, in WriteChunk()
H A DEncoderPlugin.cpp85 Encoder::WriteChunk(const void* chunkBuffer, size_t chunkSize, in WriteChunk() argument
88 return fChunkWriter->WriteChunk(chunkBuffer, chunkSize, encodeInfo); in WriteChunk()
/haiku/headers/private/media/
H A DDecoderPlugin.h17 size_t* chunkSize,
43 size_t* chunkSize,
H A DEncoderPlugin.h23 size_t chunkSize,
77 size_t chunkSize,
H A DMediaWriter.h46 const void* chunkBuffer, size_t chunkSize,
/haiku/src/tests/add-ons/media/plugins/musepack/
H A Dmain.cpp107 size_t chunkSize; in main() local
110 status = reader->GetNextChunk(cookies[i], &chunkBuffer, &chunkSize, &mediaHeader); in main()
176 const void **chunkBuffer, size_t *chunkSize, in GetNextChunk() argument
/haiku/src/add-ons/media/plugins/ffmpeg/
H A DAVFormatWriter.cpp66 size_t chunkSize,
321 size_t chunkSize, media_encode_info* encodeInfo) in WriteChunk() argument
324 "start_time: %" B_PRIdBIGTIME ")\n", fStream->index, chunkBuffer, chunkSize, in WriteChunk()
330 fPacket->size = chunkSize; in WriteChunk()
598 size_t chunkSize, media_encode_info* encodeInfo) in WriteChunk() argument
601 chunkSize, encodeInfo); in WriteChunk()
607 return cookie->WriteChunk(chunkBuffer, chunkSize, encodeInfo); in WriteChunk()
H A DAVFormatWriter.h43 const void* chunkBuffer, size_t chunkSize,
H A DAVFormatReader.h46 size_t* chunkSize,
/haiku/headers/private/kernel/util/
H A DVectorSet.h50 VectorSet(size_t chunkSize = kDefaultChunkSize);
93 _VECTOR_SET_CLASS_NAME::VectorSet(size_t chunkSize) in VectorSet() argument
94 : fElements(chunkSize) in VectorSet()
/haiku/src/tests/kits/media/wav_reader_test/
H A Dmain.cpp91 size_t chunkSize; in main() local
94 s = reader->GetNextChunk(cookies[i], &chunkBuffer, &chunkSize, &mediaHeader); in main()
/haiku/src/tests/kits/media/mp3_reader_test/
H A Dmain.cpp91 size_t chunkSize; in main() local
94 s = reader->GetNextChunk(cookies[i], &chunkBuffer, &chunkSize, &mediaHeader); in main()
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A DList.h54 List(size_t chunkSize = kDefaultChunkSize);
97 List<ITEM, DEFAULT_ITEM_SUPPLIER>::List(size_t chunkSize) in List() argument
99 fChunkSize(chunkSize), in List()
/haiku/src/system/runtime_loader/
H A Dheap.cpp121 size_t chunkSize = chunk->Size(); in Compare() local
122 if (chunkSize != fSize) in Compare()
123 return fSize < chunkSize ? -1 : 1; in Compare()
/haiku/src/add-ons/media/plugins/au_reader/
H A Dau_reader.h54 const void **chunkBuffer, size_t *chunkSize,
/haiku/src/kits/debugger/elf/
H A DElfSymbolLookup.cpp287 size_t chunkSize = strnlen(buffer, bytesRead); in _ReadString() local
289 _string.Append(buffer, chunkSize); in _ReadString()
293 if (chunkSize < (size_t)bytesRead) { in _ReadString()
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/
H A DTemplateList.h42 TemplateList(size_t chunkSize = kDefaultChunkSize);
92 TemplateList<ITEM, DEFAULT_ITEM_SUPPLIER>::TemplateList(size_t chunkSize) in TemplateList() argument
94 fChunkSize(chunkSize), in TemplateList()
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DList.h37 List(size_t chunkSize = kDefaultChunkSize);
87 List<ITEM, DEFAULT_ITEM_SUPPLIER>::List(size_t chunkSize) in List() argument
89 fChunkSize(chunkSize), in List()

12