Searched refs:newSize (Results 1 - 25 of 110) sorted by last modified time

12345

/haiku/src/system/kernel/fs/
H A Dvfs.cpp3655 resize_monitor_table(struct io_context* context, const int newSize) argument
3659 if (newSize <= 0 || newSize > MAX_NODE_MONITORS)
3664 if ((size_t)newSize < context->num_monitors) {
3668 context->max_monitors = newSize;
5041 vfs_resize_fd_table(struct io_context* context, uint32 newSize) argument
5043 if (newSize == 0 || newSize > MAX_FD_TABLE_SIZE)
5046 TIOC(ResizeIOContext(context, newSize));
5052 int newCloseOnExitBitmapSize = (newSize
[all...]
/haiku/src/system/kernel/vm/
H A Dvm.cpp5328 vm_resize_area(area_id areaID, size_t newSize, bool kernel) argument
5330 // is newSize a multiple of B_PAGE_SIZE?
5331 if (newSize & (B_PAGE_SIZE - 1))
5367 if (newSize == oldSize)
5373 if (oldSize < newSize) {
5377 if (!current->address_space->CanResizeArea(current, newSize))
5391 current->Base() + newSize, oldSize - newSize, &locker,
5407 if (oldSize < newSize) {
5409 status = cache->Resize(cache->virtual_base + newSize, priorit
6340 resize_area(area_id areaID, size_t newSize) argument
6575 _user_resize_area(area_id area, size_t newSize) argument
[all...]
H A DVMCache.cpp1171 VMCache::Resize(off_t newSize, int priority) argument
1173 TRACE(("VMCache::Resize(cache %p, newSize %" B_PRIdOFF ") old size %"
1174 B_PRIdOFF "\n", this, newSize, this->virtual_end));
1177 T(Resize(this, newSize));
1179 status_t status = Commit(newSize - virtual_base, priority);
1185 page_num_t newPageCount = (page_num_t)((newSize + B_PAGE_SIZE - 1)
1195 virtual_end = newSize;
H A DVMKernelAddressSpace.cpp242 VMKernelAddressSpace::CanResizeArea(VMArea* area, size_t newSize) argument
246 if (newSize <= range->size)
260 return newSize - range->size <= nextRange->size;
265 VMKernelAddressSpace::ResizeArea(VMArea* _area, size_t newSize, argument
269 newSize);
274 if (newSize == range->size)
279 if (newSize < range->size) {
283 nextRange->size += range->size - newSize;
284 nextRange->base = range->base + newSize;
290 range->base + newSize, rang
333 ShrinkAreaHead(VMArea* _area, size_t newSize, uint32 allocationFlags) argument
380 ShrinkAreaTail(VMArea* area, size_t newSize, uint32 allocationFlags) argument
[all...]
/haiku/src/kits/tracker/
H A DPoseView.cpp9668 BPoseView::ResizeColumn(BColumn* column, float newSize, argument
9683 bool shrinking = newSize < column->Width();
9686 - kRoomForLine + newSize;
9694 column->SetWidth(newSize);
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DInode.cpp104 Resize(Inode* inode, off_t oldSize, off_t newSize, bool trim) argument
109 fNewSize(newSize),
1669 Inode::FillGapWithZeros(off_t pos, off_t newSize) argument
1671 while (pos < newSize) {
1673 if (newSize > pos + 1024 * 1024 * 1024)
1676 size = newSize - pos;
H A DBPlusTree.cpp3127 int32 newSize = Count() - 1;
3129 (newSize - index) * sizeof(off_t));
3130 count = HOST_ENDIAN_TO_BFS_INT64(newSize);
/haiku/src/apps/mediaplayer/
H A DMainWin.cpp2067 int newSize = percent * (100 + percentDiff) / 100; local
2069 if (newSize < 25)
2070 newSize = 25;
2071 if (newSize > 400)
2072 newSize = 400;
2073 if (newSize != percent) {
2075 message.AddInt32("size", newSize);
/haiku/src/kits/interface/
H A DAbstractSpinner.cpp1585 BSize newSize = Bounds().Size(); local
1589 if (newSize != oldSize)
H A DMenuField.cpp1189 BSize newSize = Bounds().Size(); local
1193 if (newSize != oldSize)
/haiku/headers/private/system/
H A Dsyscalls.h439 extern status_t _kern_resize_area(area_id area, size_t newSize);
/haiku/src/system/libroot/posix/malloc_hoard2/
H A Darch-specific.cpp182 size_t newSize = chunk->size - size; local
187 chunk->size = newSize;
/haiku/src/apps/serialconnect/
H A DTermView.cpp185 VTermRect newSize = _PixelsToGlyphs(BRect(0, 0, width - 2 * kBorderSpacing, local
187 vterm_set_size(fTerm, newSize.end_row, newSize.end_col);
/haiku/headers/os/kernel/
H A DOS.h105 extern status_t resize_area(area_id id, size_t newSize);
/haiku/src/system/kernel/cache/
H A Dfile_cache.cpp1253 file_cache_set_size(void* _cacheRef, off_t newSize) argument
1257 TRACE(("file_cache_set_size(ref = %p, size = %lld)\n", ref, newSize));
1266 status_t status = cache->Resize(newSize, VM_PRIORITY_USER);
1269 if (status == B_OK && newSize < oldSize) {
1272 uint32 partialBytes = newSize % B_PAGE_SIZE;
1274 vm_page* page = cache->LookupPage(newSize - partialBytes);
/haiku/src/kits/app/
H A DMessage.cpp2023 uint32 newSize = (uint32)numBytes;
2024 memcpy(fData + offset, &newSize, sizeof(uint32));
2025 memcpy(fData + offset + sizeof(uint32), data, newSize);
/haiku/src/build/libbe/app/
H A DMessage.cpp1589 uint32 newSize = (uint32)numBytes;
1590 memcpy(fData + offset, &newSize, sizeof(uint32));
1591 memcpy(fData + offset + sizeof(uint32), data, newSize);
/haiku/src/apps/diskprobe/
H A DDataEditor.cpp1014 off_t newSize = fSize; local
1023 newSize = 0;
1025 newSize = info.size;
1029 if (fFile.GetSize(&newSize) != B_OK)
1033 if (fSize != newSize) {
1034 fSize = newSize;
1038 update.AddInt64("file_size", newSize);
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DDataContainer.cpp88 DataContainer::Resize(off_t newSize) argument
90 // PRINT("DataContainer::Resize(%lld), fSize: %lld\n", newSize, fSize);
93 if (_RequiresCacheMode(newSize)) {
94 if (newSize < fSize) {
98 error = fCache->Resize(newSize, VM_PRIORITY_SYSTEM);
109 fCache->Resize(newSize, VM_PRIORITY_SYSTEM);
114 } else if (fSmallBufferSize < newSize
115 || (fSmallBufferSize - newSize) > (kMaximumSmallBufferSize / 2)) {
116 const size_t newBufferSize = max_c(next_power_of_2(newSize),
126 fSize = newSize;
[all...]
/haiku/src/system/kernel/slab/
H A Dallocator.cpp259 realloc_etc(void* address, size_t newSize, uint32 flags) argument
261 if (newSize == 0) {
267 return block_alloc(newSize, 0, flags);
276 if (oldSize == newSize)
279 void* newBlock = block_alloc(newSize, 0, flags);
283 memcpy(newBlock, address, std::min(oldSize, newSize));
292 realloc(void* address, size_t newSize) argument
294 return realloc_etc(address, newSize, 0);
/haiku/src/system/kernel/
H A Dheap.cpp236 Reallocate(addr_t oldAddress, addr_t newAddress, size_t newSize) argument
239 fNewSize(newSize)
1776 size_t newSize, uint32 flags)
1804 TRACE(("realloc(address = %p, newSize = %lu)\n", address, newSize));
1843 newSize += sizeof(heap_leak_check_info);
1847 if (newSize > minSize && newSize <= maxSize) {
1852 info->size = newSize - sizeof(heap_leak_check_info);
1853 newSize
1775 heap_realloc(heap_allocator *heap, void *address, void **newAddress, size_t newSize, uint32 flags) argument
2405 realloc_etc(void *address, size_t newSize, uint32 flags) argument
2480 realloc(void *address, size_t newSize) argument
[all...]
H A Dguarded_heap.cpp545 guarded_heap_realloc(void* address, size_t newSize, uint32 flags) argument
562 if (oldSize == newSize)
565 void* newBlock = malloc_etc(newSize, flags);
569 memcpy(newBlock, address, min_c(oldSize, newSize));
969 realloc_etc(void* address, size_t newSize, uint32 flags) argument
971 if (newSize == 0) {
977 return malloc_etc(newSize, flags);
979 return guarded_heap_realloc(address, newSize, flags);
984 realloc(void* address, size_t newSize) argument
986 return realloc_etc(address, newSize,
[all...]
/haiku/headers/private/kernel/
H A Dheap.h63 void* realloc_etc(void* address, size_t newSize, uint32 flags);
/haiku/headers/private/kernel/util/
H A DOpenHashTable.h434 bool _Resize(size_t newSize) argument
437 = (ValueType**)fAllocator.Allocate(sizeof(ValueType*) * newSize);
441 _Resize(newTable, newSize);
445 void _Resize(ValueType** newTable, size_t newSize, void** _oldTable = NULL) argument
447 for (size_t i = 0; i < newSize; i++)
455 _Insert(newTable, newSize, bucket);
467 fTableSize = newSize;
/haiku/src/build/libroot/
H A Dfs.cpp1475 _haiku_build_ftruncate(int fd, off_t newSize) argument
1478 return ftruncate(fd, newSize);
1481 st.st_size = newSize;

Completed in 266 milliseconds

12345